:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-page-color: #F5F7FA;
  --border-color: #E0E0E0;
  --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.page-promotions-weekly-cashback {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default to dark text for light body background */
  background-color: var(--background-page-color); /* Page specific background */
}

/* HERO Section */
.page-promotions-weekly-cashback__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body in shared.css */
  background-color: var(--background-page-color);
}

.page-promotions-weekly-cashback__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-promotions-weekly-cashback__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-promotions-weekly-cashback__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-promotions-weekly-cashback__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-promotions-weekly-cashback__hero-content h1 {
  font-size: clamp(2em, 4vw, 3.2em); /* H1 font size with clamp */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions-weekly-cashback__hero-content p {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-promotions-weekly-cashback__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions-weekly-cashback__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-promotions-weekly-cashback__section {
  padding: 60px 20px;
  background-color: var(--card-bg-color); /* Default light background for content sections */
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions-weekly-cashback__section:last-of-type {
  margin-bottom: 0;
}

.page-promotions-weekly-cashback__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px; /* Inner padding for containers */
  box-sizing: border-box;
}

.page-promotions-weekly-cashback__title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-promotions-weekly-cashback__title--white {
  color: #ffffff;
}

.page-promotions-weekly-cashback__intro p {
  font-size: 1.05em;
  margin-bottom: 15px;
  text-align: justify;
}

/* Benefits Section */
.page-promotions-weekly-cashback__dark-section {
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 0;
  box-shadow: none;
}

.page-promotions-weekly-cashback__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-promotions-weekly-cashback__card {
  background: var(--card-bg-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

.page-promotions-weekly-cashback__card--dark-bg {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark background */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-promotions-weekly-cashback__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions-weekly-cashback__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  max-width: 100%; /* Responsive image */
  display: block;
}

.page-promotions-weekly-cashback__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions-weekly-cashback__card--dark-bg .page-promotions-weekly-cashback__card-title {
  color: var(--secondary-color); /* Use secondary for titles on dark background */
}

/* Lists */
.page-promotions-weekly-cashback__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-promotions-weekly-cashback__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  text-align: justify;
}

.page-promotions-weekly-cashback__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions-weekly-cashback__list--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Steps Section */
.page-promotions-weekly-cashback__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions-weekly-cashback__step-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.page-promotions-weekly-cashback__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-promotions-weekly-cashback__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--button-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions-weekly-cashback__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions-weekly-cashback__step-card p {
  font-size: 1em;
  color: var(--text-main-color);
}

.page-promotions-weekly-cashback__step-card a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions-weekly-cashback__step-card a:hover {
  color: var(--secondary-color);
}

.page-promotions-weekly-cashback__cta-group {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions-weekly-cashback__cta-button--primary {
  background: var(--button-gradient);
  color: #ffffff;
}

.page-promotions-weekly-cashback__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.page-promotions-weekly-cashback__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

details.page-promotions-weekly-cashback__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-promotions-weekly-cashback__faq-item summary.page-promotions-weekly-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
  font-weight: 600;
}
details.page-promotions-weekly-cashback__faq-item summary.page-promotions-weekly-cashback__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions-weekly-cashback__faq-item summary.page-promotions-weekly-cashback__faq-question:hover {
  background: var(--background-page-color);
}
.page-promotions-weekly-cashback__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-promotions-weekly-cashback__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions-weekly-cashback__faq-item .page-promotions-weekly-cashback__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-page-color);
  border-radius: 0 0 8px 8px;
  color: var(--text-main-color);
}
.page-promotions-weekly-cashback__faq-answer p {
  margin: 0;
  padding-top: 10px;
  font-size: 1em;
}

/* Why Choose Section */
.page-promotions-weekly-cashback__why-choose p {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions-weekly-cashback__cta-final {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-weekly-cashback__container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions-weekly-cashback__hero-section {
    padding-top: 10px !important; /* Keep small top padding for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-weekly-cashback__hero-content h1 {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
  }

  .page-promotions-weekly-cashback__hero-content p {
    font-size: 1em;
  }

  .page-promotions-weekly-cashback__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Ensure button containers also adapt */
  .page-promotions-weekly-cashback__cta-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions-weekly-cashback__section {
    padding: 40px 15px;
    margin-bottom: 15px;
  }

  .page-promotions-weekly-cashback__container {
    padding: 0; /* Remove inner padding as section already has it */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions-weekly-cashback__title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions-weekly-cashback__card img {
    height: 200px; /* Adjust card image height for mobile */
  }

  .page-promotions-weekly-cashback__list-item {
    font-size: 1em;
  }

  .page-promotions-weekly-cashback__list--columns {
    grid-template-columns: 1fr;
  }

  .page-promotions-weekly-cashback__steps-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile image responsiveness for all images */
  .page-promotions-weekly-cashback img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Containers holding images or content that might overflow */
  .page-promotions-weekly-cashback__section,
  .page-promotions-weekly-cashback__card,
  .page-promotions-weekly-cashback__container,
  .page-promotions-weekly-cashback__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  details.page-promotions-weekly-cashback__faq-item summary.page-promotions-weekly-cashback__faq-question {
    padding: 15px;
  }
  .page-promotions-weekly-cashback__faq-qtext {
    font-size: 1em;
  }
  details.page-promotions-weekly-cashback__faq-item .page-promotions-weekly-cashback__faq-answer {
    padding: 0 15px 15px;
  }
}