/* style/promotions-daily-rebate-rules.css */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --page-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-promotions-daily-rebate-rules {
  background-color: var(--page-bg);
  color: var(--text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-promotions-daily-rebate-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions-daily-rebate-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-promotions-daily-rebate-rules__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
}

.page-promotions-daily-rebate-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-promotions-daily-rebate-rules__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-promotions-daily-rebate-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--glow-color);
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.6);
}

.page-promotions-daily-rebate-rules__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

/* General Section Styling */
.page-promotions-daily-rebate-rules__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-promotions-daily-rebate-rules__section:last-of-type {
  border-bottom: none;
}

.page-promotions-daily-rebate-rules__section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.4);
}

.page-promotions-daily-rebate-rules__sub-title {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: 600;
}

.page-promotions-daily-rebate-rules__section-sub-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-promotions-daily-rebate-rules__text-block {
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-promotions-daily-rebate-rules__list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-promotions-daily-rebate-rules__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-promotions-daily-rebate-rules__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--glow-color);
  font-weight: bold;
}

.page-promotions-daily-rebate-rules__ordered-list {
  list-style-type: decimal;
  padding-left: 20px;
}

.page-promotions-daily-rebate-rules__ordered-list .page-promotions-daily-rebate-rules__list-item::before {
  content: none;
}

/* Image Styling */
.page-promotions-daily-rebate-rules__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-rebate-rules__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Call to Action Button */
.page-promotions-daily-rebate-rules__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-promotions-daily-rebate-rules__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-promotions-daily-rebate-rules__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main);
  text-align: center;
  padding: 80px 0;
}

.page-promotions-daily-rebate-rules__dark-section .page-promotions-daily-rebate-rules__section-title {
  color: var(--glow-color);
}

.page-promotions-daily-rebate-rules__dark-section .page-promotions-daily-rebate-rules__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-promotions-daily-rebate-rules__faq-list {
  margin-top: 30px;
}

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

.page-promotions-daily-rebate-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary-color);
  background-color: #1a1d25; /* Slightly darker than card-bg for contrast */
}

.page-promotions-daily-rebate-rules__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions-daily-rebate-rules__faq-question::marker {
  display: none;
}

.page-promotions-daily-rebate-rules__faq-qtext {
  color: var(--text-main);
}

.page-promotions-daily-rebate-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow-color);
  transition: transform 0.3s ease;
}

.page-promotions-daily-rebate-rules__faq-item[open] .page-promotions-daily-rebate-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions-daily-rebate-rules__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--text-main);
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-daily-rebate-rules__hero-content {
    max-width: 90%;
  }
  .page-promotions-daily-rebate-rules__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-promotions-daily-rebate-rules__section-title {
    font-size: 2rem;
  }
  .page-promotions-daily-rebate-rules__sub-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-promotions-daily-rebate-rules {
    font-size: 15px;
  }
  .page-promotions-daily-rebate-rules__hero-content {
    position: static;
    transform: none;
    background: none;
    padding: 20px;
    max-width: 100%;
  }
  .page-promotions-daily-rebate-rules__hero-image-wrapper {
    max-height: 300px;
  }
  .page-promotions-daily-rebate-rules__hero-image {
    filter: brightness(0.5);
  }
  .page-promotions-daily-rebate-rules__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-promotions-daily-rebate-rules__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-promotions-daily-rebate-rules__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-promotions-daily-rebate-rules__section {
    padding: 40px 0;
  }
  .page-promotions-daily-rebate-rules__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-promotions-daily-rebate-rules__sub-title {
    font-size: 1.5rem;
  }
  .page-promotions-daily-rebate-rules__section-sub-title {
    font-size: 1.3rem;
  }
  .page-promotions-daily-rebate-rules__list-item {
    padding-left: 25px;
  }
  .page-promotions-daily-rebate-rules__image-wrapper {
    margin: 20px auto;
  }
  .page-promotions-daily-rebate-rules__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions-daily-rebate-rules__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions-daily-rebate-rules__dark-section {
    padding: 50px 0;
  }
  .page-promotions-daily-rebate-rules__faq-question {
    padding: 15px;
    font-size: 1rem;
  }
  .page-promotions-daily-rebate-rules__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions-daily-rebate-rules__hero-content {
    padding: 15px;
  }
  .page-promotions-daily-rebate-rules__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-promotions-daily-rebate-rules__description {
    font-size: 0.95rem;
  }
  .page-promotions-daily-rebate-rules__section-title {
    font-size: 1.5rem;
  }
  .page-promotions-daily-rebate-rules__sub-title {
    font-size: 1.3rem;
  }
}