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

/* --- General Styles --- */
.page-promotions-daily-cashback {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-promotions-daily-cashback__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-promotions-daily-cashback__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* --- Hero Section --- */
.page-promotions-daily-cashback__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Increased height for better visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000000; /* Fallback dark background */
}

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

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

.page-promotions-daily-cashback__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions-daily-cashback__hero-description {
  font-size: 1.5em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* --- CTA Buttons --- */
.page-promotions-daily-cashback__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-promotions-daily-cashback__btn-primary {
  background-color: #FFD700;
  color: #000000; /* Dark text on gold button for contrast */
  border: 2px solid #FFD700;
}

.page-promotions-daily-cashback__btn-primary:hover {
  background-color: #e0b000;
  border-color: #e0b000;
  color: #000000;
}

.page-promotions-daily-cashback__btn-secondary {
  background-color: #8B0000;
  color: #ffffff; /* White text on dark red button */
  border: 2px solid #8B0000;
}

.page-promotions-daily-cashback__btn-secondary:hover {
  background-color: #6a0000;
  border-color: #6a0000;
  color: #ffffff;
}

.page-promotions-daily-cashback__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  margin-top: 40px;
}

/* --- Feature Grid --- */
.page-promotions-daily-cashback__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-promotions-daily-cashback__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly visible light background on dark body */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* Light text for dark card background */
}

.page-promotions-daily-cashback__card:hover {
  transform: translateY(-5px);
}

.page-promotions-daily-cashback__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size for images */
  min-height: 200px; /* Min size for images */
}

.page-promotions-daily-cashback__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions-daily-cashback__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* --- Rules List --- */
.page-promotions-daily-cashback__rules-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-promotions-daily-cashback__list-item {
  margin-bottom: 10px;
  padding-left: 10px;
}

.page-promotions-daily-cashback__list-item strong {
  color: #FFD700;
}

.page-promotions-daily-cashback a {
  color: #FFD700;
  text-decoration: none;
}

.page-promotions-daily-cashback a:hover {
  text-decoration: underline;
}

/* --- FAQ Section --- */
.page-promotions-daily-cashback__faq-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ */
  border-radius: 10px;
  margin-top: 60px;
}

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

.page-promotions-daily-cashback__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.page-promotions-daily-cashback__faq-item:last-child {
  border-bottom: none;
}

.page-promotions-daily-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  transition: color 0.3s ease;
}

.page-promotions-daily-cashback__faq-question:hover {
  color: #e0b000;
}

.page-promotions-daily-cashback__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-promotions-daily-cashback__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

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

.page-promotions-daily-cashback__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

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

  .page-promotions-daily-cashback__hero-description {
    font-size: 1.3em;
  }

  .page-promotions-daily-cashback__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions-daily-cashback {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-promotions-daily-cashback__hero-section {
    height: 450px; /* Adjust hero height for mobile */
  }

  .page-promotions-daily-cashback__hero-content {
    padding: 15px;
    max-width: 95%;
  }

  .page-promotions-daily-cashback__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-promotions-daily-cashback__hero-description {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  .page-promotions-daily-cashback__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 5px 0 !important; /* Adjust margins for stacked buttons */
  }

  .page-promotions-daily-cashback__button-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button group */
  }

  .page-promotions-daily-cashback__section {
    padding: 40px 15px;
  }

  .page-promotions-daily-cashback__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions-daily-cashback__text-block {
    font-size: 1em;
  }

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

  .page-promotions-daily-cashback__card {
    padding: 20px;
  }

  .page-promotions-daily-cashback__feature-title {
    font-size: 1.5em;
  }

  .page-promotions-daily-cashback__rules-list {
    font-size: 1em;
    margin-left: 15px;
  }

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

  /* Ensure all images are responsive on mobile */
  .page-promotions-daily-cashback img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% */
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Maintain min size */
    min-height: 200px; /* Maintain min size */
  }

  /* Ensure video responsiveness (if any) */
  .page-promotions-daily-cashback video,
  .page-promotions-daily-cashback__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions-daily-cashback__video-section,
  .page-promotions-daily-cashback__video-container,
  .page-promotions-daily-cashback__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Ensure content areas also adapt for mobile */
  .page-promotions-daily-cashback__content-area,
  .page-promotions-daily-cashback__faq-section,
  .page-promotions-daily-cashback__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}