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

/* Custom Color Variables */
:root {
  --kv888-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --kv888-card-bg: #11271B;
  --kv888-bg: #08160F;
  --kv888-text-main: #F2FFF6;
  --kv888-text-secondary: #A7D9B8;
  --kv888-border: #2E7A4E;
  --kv888-glow: #57E38D;
  --kv888-gold: #F2C14E;
  --kv888-divider: #1E3A2A;
  --kv888-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-promotions-weekly-cashback {
  background-color: var(--kv888-bg);
  color: var(--kv888-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

.page-promotions-weekly-cashback__section {
  padding: 60px 20px;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.page-promotions-weekly-cashback__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px; /* Default horizontal padding */
}

.page-promotions-weekly-cashback__container--center {
  text-align: center;
}

.page-promotions-weekly-cashback__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--kv888-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions-weekly-cashback__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--kv888-gold);
  border-radius: 2px;
}

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

.page-promotions-weekly-cashback__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--kv888-text-secondary);
}

.page-promotions-weekly-cashback__text-block--light {
  color: var(--kv888-text-main);
}

/* Hero Section */
.page-promotions-weekly-cashback__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--kv888-deep-green); /* A slightly different green for the hero background */
}

.page-promotions-weekly-cashback__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-promotions-weekly-cashback__hero-content {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions-weekly-cashback__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 900;
  color: var(--kv888-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

/* Buttons */
.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;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions-weekly-cashback__btn-primary {
  background: var(--kv888-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions-weekly-cashback__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions-weekly-cashback__btn-primary--gold {
  background: var(--kv888-gold);
  color: var(--kv888-deep-green);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}
.page-promotions-weekly-cashback__btn-primary--gold:hover {
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}


.page-promotions-weekly-cashback__btn-secondary {
  background: transparent;
  color: var(--kv888-gold);
  border: 2px solid var(--kv888-gold);
}

.page-promotions-weekly-cashback__btn-secondary:hover {
  background: var(--kv888-gold);
  color: var(--kv888-deep-green);
}

.page-promotions-weekly-cashback__btn-secondary--light {
  color: var(--kv888-text-main);
  border-color: var(--kv888-text-main);
}
.page-promotions-weekly-cashback__btn-secondary--light:hover {
  background: var(--kv888-text-main);
  color: var(--kv888-deep-green);
}

/* Card styles */
.page-promotions-weekly-cashback__card {
  background-color: var(--kv888-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--kv888-border);
}

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

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

.page-promotions-weekly-cashback__card-text {
  color: var(--kv888-text-secondary);
}

/* Benefits Section */
.page-promotions-weekly-cashback__benefits-section {
  background-color: var(--kv888-bg);
}

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

/* How-to Section */
.page-promotions-weekly-cashback__how-to-section {
  background-color: var(--kv888-deep-green);
}

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

.page-promotions-weekly-cashback__step-card {
  background-color: var(--kv888-card-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--kv888-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-promotions-weekly-cashback__step-title {
  font-size: 1.3rem;
  color: var(--kv888-gold);
  margin-bottom: 10px;
}

.page-promotions-weekly-cashback__step-text {
  color: var(--kv888-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Terms Section */
.page-promotions-weekly-cashback__terms-section {
  background-color: var(--kv888-bg);
}

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

.page-promotions-weekly-cashback__terms-item {
  background-color: var(--kv888-card-bg);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: var(--kv888-text-secondary);
  position: relative;
  padding-left: 40px;
  border: 1px solid var(--kv888-divider);
}

.page-promotions-weekly-cashback__terms-item::before {
  content: '✓';
  color: var(--kv888-gold);
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* FAQ Section */
.page-promotions-weekly-cashback__faq-section {
  background-color: var(--kv888-deep-green);
}

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

.page-promotions-weekly-cashback__faq-item {
  background-color: var(--kv888-card-bg);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--kv888-border);
  overflow: hidden;
}

.page-promotions-weekly-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--kv888-text-main);
  cursor: pointer;
  background-color: var(--kv888-deep-green); /* Darker green for question background */
  transition: background-color 0.3s ease;
}

.page-promotions-weekly-cashback__faq-question:hover {
  background-color: var(--kv888-divider);
}

.page-promotions-weekly-cashback__faq-item[open] > .page-promotions-weekly-cashback__faq-question {
  background-color: var(--kv888-divider);
}

.page-promotions-weekly-cashback__faq-qtext {
  flex-grow: 1;
}

.page-promotions-weekly-cashback__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--kv888-gold);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-promotions-weekly-cashback__faq-item[open] .page-promotions-weekly-cashback__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes an X or similar */
}

.page-promotions-weekly-cashback__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: var(--kv888-text-secondary);
  background-color: var(--kv888-card-bg);
}

.page-promotions-weekly-cashback__faq-answer p {
  margin-bottom: 0;
}

/* CTA Section */
.page-promotions-weekly-cashback__cta-section {
  background-color: var(--kv888-deep-green);
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-promotions-weekly-cashback__cta-section .page-promotions-weekly-cashback__text-block {
  color: var(--kv888-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-weekly-cashback__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 40px;
}

.page-promotions-weekly-cashback__image-wrapper--how-to {
  margin-top: 60px;
  margin-bottom: 20px;
  text-align: center;
}

.page-promotions-weekly-cashback__image-wrapper--terms {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-promotions-weekly-cashback__image-wrapper--cta-banner {
  margin-top: 60px;
  text-align: center;
}

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

/* Responsive Images */
.page-promotions-weekly-cashback img {
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter property */
}

/* Responsive Videos (if any, though not explicitly requested for this page) */
.page-promotions-weekly-cashback video,
.page-promotions-weekly-cashback__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-promotions-weekly-cashback__video-section,
.page-promotions-weekly-cashback__video-container,
.page-promotions-weekly-cashback__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-promotions-weekly-cashback__section {
    padding: 40px 0;
  }

  .page-promotions-weekly-cashback__container {
    padding: 0 15px;
  }

  .page-promotions-weekly-cashback__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-promotions-weekly-cashback__hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

  .page-promotions-weekly-cashback__hero-content {
    margin: 20px auto;
    padding: 0 15px;
  }

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

  /* Mobile button adaptation */
  .page-promotions-weekly-cashback__btn-primary,
  .page-promotions-weekly-cashback__btn-secondary,
  .page-promotions-weekly-cashback a[class*="button"],
  .page-promotions-weekly-cashback a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-weekly-cashback__cta-buttons,
  .page-promotions-weekly-cashback__button-group,
  .page-promotions-weekly-cashback__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions-weekly-cashback__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Mobile image adaptation */
  .page-promotions-weekly-cashback img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions-weekly-cashback__section,
  .page-promotions-weekly-cashback__card,
  .page-promotions-weekly-cashback__container,
  .page-promotions-weekly-cashback__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions-weekly-cashback__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Mobile video adaptation */
  .page-promotions-weekly-cashback video,
  .page-promotions-weekly-cashback__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions-weekly-cashback__video-section,
  .page-promotions-weekly-cashback__video-container,
  .page-promotions-weekly-cashback__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-promotions-weekly-cashback__faq-answer {
    padding: 10px 20px 15px;
  }
}