/* style/promotions-weekly-cashback.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-promotions-weekly-cashback {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Crucial: Space for fixed header */
}

.page-promotions-weekly-cashback__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions-weekly-cashback__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-promotions-weekly-cashback__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions-weekly-cashback .highlight {
  color: #FFD700; /* Highlight important keywords */
  font-weight: bold;
}

/* Hero Banner Section */
.page-promotions-weekly-cashback__hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for visual impact */
}

.page-promotions-weekly-cashback__hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-promotions-weekly-cashback__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.5); /* Darken image to make text readable */
}

.page-promotions-weekly-cashback__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
}

.page-promotions-weekly-cashback__hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions-weekly-cashback__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-promotions-weekly-cashback__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #000000; /* Black text for gold button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-promotions-weekly-cashback__hero-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
}


/* General Section Styling */
.page-promotions-weekly-cashback__intro-section,
.page-promotions-weekly-cashback__eligibility-section,
.page-promotions-weekly-cashback__calculation-section,
.page-promotions-weekly-cashback__claiming-section,
.page-promotions-weekly-cashback__terms-section,
.page-promotions-weekly-cashback__faq-section,
.page-promotions-weekly-cashback__cta-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions-weekly-cashback__intro-section {
  background-color: #0d0d0d;
}

.page-promotions-weekly-cashback__eligibility-section {
  background-color: #1a1a1a;
}

.page-promotions-weekly-cashback__calculation-section {
  background-color: #0d0d0d;
}

.page-promotions-weekly-cashback__claiming-section {
  background-color: #1a1a1a;
}

.page-promotions-weekly-cashback__terms-section {
  background-color: #0d0d0d;
}

.page-promotions-weekly-cashback__faq-section {
  background-color: #1a1a1a;
}

.page-promotions-weekly-cashback__cta-section {
  background-color: #000000;
  border-bottom: none;
}

/* Lists */
.page-promotions-weekly-cashback__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-promotions-weekly-cashback__list--ordered {
  list-style: decimal;
}

.page-promotions-weekly-cashback__list-item {
  margin-bottom: 10px;
  font-size: 16px;
}

/* Tables */
.page-promotions-weekly-cashback__table-wrapper {
  overflow-x: auto;
  margin-bottom: 30px;
}

.page-promotions-weekly-cashback__cashback-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-promotions-weekly-cashback__cashback-table th,
.page-promotions-weekly-cashback__cashback-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 15px;
  text-align: left;
  font-size: 15px;
}

.page-promotions-weekly-cashback__cashback-table th {
  background-color: #FFD700; /* Gold header */
  color: #000000; /* Black text for gold header */
  font-weight: bold;
  text-transform: uppercase;
}

.page-promotions-weekly-cashback__cashback-table tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions-weekly-cashback__cashback-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.page-promotions-weekly-cashback__button-group {
  text-align: center;
  margin-top: 30px;
}

.page-promotions-weekly-cashback__btn-primary,
.page-promotions-weekly-cashback__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 17px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
  cursor: pointer;
  border: 2px solid transparent; /* Ensure consistent border space */
}

.page-promotions-weekly-cashback__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black text */
}

.page-promotions-weekly-cashback__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-promotions-weekly-cashback__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border-color: #FFD700;
}

.page-promotions-weekly-cashback__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
}

.page-promotions-weekly-cashback__btn-primary--large {
    padding: 18px 36px;
    font-size: 20px;
}

/* Image Styling */
.page-promotions-weekly-cashback__image-wrapper {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions-weekly-cashback__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* FAQ Section */
.page-promotions-weekly-cashback__faq-list {
  margin-top: 30px;
}

.page-promotions-weekly-cashback__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions-weekly-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #333333;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-promotions-weekly-cashback__faq-question:hover {
  background: #444444;
}

.page-promotions-weekly-cashback__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-promotions-weekly-cashback__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate */
  color: #ffffff;
}

.page-promotions-weekly-cashback__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #e0e0e0;
}

.page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #2a2a2a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-weekly-cashback__hero-title {
    font-size: 40px;
  }
  .page-promotions-weekly-cashback__hero-description {
    font-size: 18px;
  }
  .page-promotions-weekly-cashback__section-title {
    font-size: 28px;
  }
  .page-promotions-weekly-cashback__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-promotions-weekly-cashback {
    padding-top: 10px; /* Ensure space for fixed header on mobile */
  }
  .page-promotions-weekly-cashback__hero-banner {
      min-height: 300px;
  }
  .page-promotions-weekly-cashback__hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .page-promotions-weekly-cashback__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-promotions-weekly-cashback__hero-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-promotions-weekly-cashback__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-promotions-weekly-cashback__text-block,
  .page-promotions-weekly-cashback__list-item {
    font-size: 15px;
  }
  .page-promotions-weekly-cashback__cashback-table th,
  .page-promotions-weekly-cashback__cashback-table td {
    padding: 10px;
    font-size: 13px;
  }
  .page-promotions-weekly-cashback__btn-primary,
  .page-promotions-weekly-cashback__btn-secondary {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-promotions-weekly-cashback__button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-promotions-weekly-cashback__faq-question {
    padding: 15px 20px;
  }
  .page-promotions-weekly-cashback__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions-weekly-cashback__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-promotions-weekly-cashback__faq-answer {
    padding: 0 20px;
  }
  .page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-answer {
    padding: 15px 20px !important;
  }
  .page-promotions-weekly-cashback__btn-primary--large {
      padding: 15px 25px;
      font-size: 18px;
  }
  /* Mobile image responsiveness */
  .page-promotions-weekly-cashback img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions-weekly-cashback__container,
  .page-promotions-weekly-cashback__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions-weekly-cashback__hero-banner {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions-weekly-cashback__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
    .page-promotions-weekly-cashback__hero-title {
        font-size: 28px;
    }
    .page-promotions-weekly-cashback__hero-description {
        font-size: 14px;
    }
    .page-promotions-weekly-cashback__hero-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .page-promotions-weekly-cashback__section-title {
        font-size: 20px;
    }
    .page-promotions-weekly-cashback__btn-primary--large {
        padding: 12px 20px;
        font-size: 16px;
    }
}