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

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-background: #0a0a0a;
  --light-text: #ffffff;
  --dark-text: #333333;
  --register-login-bg: #C30808;
  --register-login-text: #FFFF00;
}

.page-promotions-weekly-cashback {
  background-color: var(--dark-background); /* Body background from shared.css is #0a0a0a, so content areas will adapt */
  color: var(--light-text); /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions-weekly-cashback__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: var(--header-offset, 120px) 20px 60px; /* Ensure space for fixed header */
  text-align: center;
  overflow: hidden;
}

.page-promotions-weekly-cashback__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4; /* Slightly dim image for text readability */
}

.page-promotions-weekly-cashback__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-promotions-weekly-cashback__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--light-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions-weekly-cashback__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--light-text);
}

.page-promotions-weekly-cashback__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promotions-weekly-cashback__btn-primary,
.page-promotions-weekly-cashback__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions-weekly-cashback__btn-primary {
  background-color: var(--register-login-bg); /* #C30808 */
  color: var(--register-login-text); /* #FFFF00 */
  border: 2px solid var(--register-login-text);
}

.page-promotions-weekly-cashback__btn-primary:hover {
  background-color: darken(var(--register-login-bg), 10%); /* Placeholder for darken */
  transform: translateY(-3px);
}

.page-promotions-weekly-cashback__btn-secondary {
  background-color: var(--primary-color); /* #017439 */
  color: var(--secondary-color); /* #FFFFFF */
  border: 2px solid var(--secondary-color);
}

.page-promotions-weekly-cashback__btn-secondary:hover {
  background-color: darken(var(--primary-color), 10%); /* Placeholder for darken */
  transform: translateY(-3px);
}

.page-promotions-weekly-cashback__content-area {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions-weekly-cashback__dark-bg {
  background-color: var(--dark-background);
  color: var(--light-text);
}

.page-promotions-weekly-cashback__light-bg {
  background-color: var(--secondary-color); /* #FFFFFF */
  color: var(--dark-text);
}

.page-promotions-weekly-cashback__section-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions-weekly-cashback__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

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

.page-promotions-weekly-cashback__content-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-promotions-weekly-cashback__steps-list,
.page-promotions-weekly-cashback__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-promotions-weekly-cashback__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--light-text);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-promotions-weekly-cashback__light-bg .page-promotions-weekly-cashback__list-item {
  background-color: #f9f9f9;
  color: var(--dark-text);
}

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

.page-promotions-weekly-cashback__card {
  background-color: var(--secondary-color); /* #FFFFFF */
  color: var(--dark-text); /* #333333 */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 200px;
  min-height: 200px;
}

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

.page-promotions-weekly-cashback__card-text {
  font-size: 1em;
  line-height: 1.5;
}

.page-promotions-weekly-cashback__faq-list {
  margin-top: 40px;
}

.page-promotions-weekly-cashback__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--dark-text);
}

.page-promotions-weekly-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
  color: var(--dark-text);
}

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

.page-promotions-weekly-cashback__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions-weekly-cashback__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-promotions-weekly-cashback__faq-answer p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--dark-text);
}

.page-promotions-weekly-cashback__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color); /* Use primary color for CTA background */
  color: var(--light-text);
}

.page-promotions-weekly-cashback__cta-section .page-promotions-weekly-cashback__section-title {
  color: var(--light-text);
}

.page-promotions-weekly-cashback__cta-section .page-promotions-weekly-cashback__text-block {
  color: var(--light-text);
  margin-bottom: 40px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions-weekly-cashback__hero-title {
    font-size: 2.8em;
  }
  .page-promotions-weekly-cashback__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions-weekly-cashback {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions-weekly-cashback__hero-section {
    padding: var(--header-offset, 120px) 15px 40px;
  }

  .page-promotions-weekly-cashback__hero-title {
    font-size: 2.2em;
  }

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

  .page-promotions-weekly-cashback__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions-weekly-cashback__btn-primary,
  .page-promotions-weekly-cashback__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions-weekly-cashback__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions-weekly-cashback__section-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions-weekly-cashback__section-title {
    font-size: 1.8em;
  }

  .page-promotions-weekly-cashback__text-block {
    font-size: 0.95em;
  }

  .page-promotions-weekly-cashback__list-item {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-promotions-weekly-cashback__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-weekly-cashback__card {
    padding: 25px;
  }

  .page-promotions-weekly-cashback__card-title {
    font-size: 1.3em;
  }

  .page-promotions-weekly-cashback__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .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;
  }

  .page-promotions-weekly-cashback__cta-section {
    padding: 60px 15px;
  }

  /* Images and Videos responsiveness */
  .page-promotions-weekly-cashback img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions-weekly-cashback__hero-image {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Ensure images within content areas are at least 200px and responsive */
.page-promotions-weekly-cashback__content-image {
  min-width: 200px;
  min-height: 200px;
}

/* Contrast fix classes (if needed) */
.page-promotions-weekly-cashback__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions-weekly-cashback__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}