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

/* --- General Styles --- */
.page-promotions-daily-rewards {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background #1a1a2e */
  background-color: #1a1a2e; /* Inherited from body, but explicitly set for clarity */
}

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

.page-promotions-daily-rewards__section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions-daily-rewards__section:nth-of-type(odd) {
  background-color: #1A202C; /* Main brand dark color */
}

.page-promotions-daily-rewards__section:nth-of-type(even) {
  background-color: #12121e; /* Slightly different dark background */
}

.page-promotions-daily-rewards__heading {
  font-size: 38px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for headings */
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-promotions-daily-rewards__sub-heading {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions-daily-rewards__btn-primary,
.page-promotions-daily-rewards__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt on mobile */
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promotions-daily-rewards__btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #1A202C; /* Dark text for bright background */
  border: 2px solid #FFD700;
}

.page-promotions-daily-rewards__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-rewards__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Auxiliary color */
  border: 2px solid #FFD700;
}

.page-promotions-daily-rewards__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-rewards__btn-primary--large,
.page-promotions-daily-rewards__btn-secondary--large {
  padding: 18px 35px;
  font-size: 20px;
}

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

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

/* Images responsive default */
.page-promotions-daily-rewards img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Hero Promo Section --- */
.page-promotions-daily-rewards__hero-promo {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding for fixed header */
  padding-bottom: 80px; /* Add some padding below content */
  background-color: #1a1a2e;
}

.page-promotions-daily-rewards__hero-promo-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-promotions-daily-rewards__hero-promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Make background image subtle */
}

.page-promotions-daily-rewards__hero-promo-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 0;
  text-align: center;
  color: #ffffff;
}

.page-promotions-daily-rewards__hero-promo-title {
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #FFD700;
}

.page-promotions-daily-rewards__hero-promo-description {
  font-size: 22px;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

/* --- Daily Rewards & Rebates Sections (Grid Layout) --- */
.page-promotions-daily-rewards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions-daily-rewards__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions-daily-rewards__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.page-promotions-daily-rewards__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions-daily-rewards__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 15px;
  flex-grow: 0;
}

.page-promotions-daily-rewards__card-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
  flex-grow: 1; /* Allow description to take available space */
}

/* --- How To Claim Section --- */
.page-promotions-daily-rewards__how-to-claim {
  background-color: #1A202C;
}

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

.page-promotions-daily-rewards__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.page-promotions-daily-rewards__step-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.page-promotions-daily-rewards__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: #FFD700;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-daily-rewards__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions-daily-rewards__step-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
  flex-grow: 1;
}

/* --- Terms and Conditions Section --- */
.page-promotions-daily-rewards__terms {
  background-color: #12121e;
}

.page-promotions-daily-rewards__terms-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-promotions-daily-rewards__terms-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #FFD700;
  font-size: 17px;
  color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- FAQ Section --- */
.page-promotions-daily-rewards__faq {
  background-color: #1A202C;
}

.page-promotions-daily-rewards__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

/* FAQ容器样式 */
.page-promotions-daily-rewards__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions-daily-rewards__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-promotions-daily-rewards__faq-item.active .page-promotions-daily-rewards__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #2a2a3e; /* Slightly lighter dark background for answer */
  border-radius: 0 0 8px 8px;
  color: #e0e0e0;
}

/* Question Style */
.page-promotions-daily-rewards__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #1A202C;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #FFD700;
}

.page-promotions-daily-rewards__faq-question:hover {
  background: #252b3a;
}

.page-promotions-daily-rewards__faq-question:active {
  background: #1A202C;
}

/* Question Title Style */
.page-promotions-daily-rewards__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

/* Toggle Icon */
.page-promotions-daily-rewards__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions-daily-rewards__faq-item.active .page-promotions-daily-rewards__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* --- Final CTA Section --- */
.page-promotions-daily-rewards__cta-final {
  background-color: #12121e;
  padding: 100px 0;
}

.page-promotions-daily-rewards__cta-container {
  max-width: 900px;
}

.page-promotions-daily-rewards__heading--white,
.page-promotions-daily-rewards__sub-heading--white {
  color: #ffffff;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 1024px) {
  .page-promotions-daily-rewards__hero-promo-content {
    padding-top: 80px;
  }
  .page-promotions-daily-rewards__hero-promo-title {
    font-size: 44px;
  }
  .page-promotions-daily-rewards__hero-promo-description {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-promotions-daily-rewards__section {
    padding: 60px 0;
  }

  .page-promotions-daily-rewards__container {
    padding: 0 15px;
  }

  .page-promotions-daily-rewards__heading {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-promotions-daily-rewards__sub-heading {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Buttons mobile adaptation */
  .page-promotions-daily-rewards__button-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions-daily-rewards__btn-primary,
  .page-promotions-daily-rewards__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important; /* Ensure full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions-daily-rewards__btn-primary--large,
  .page-promotions-daily-rewards__btn-secondary--large {
    padding: 15px 25px;
    font-size: 18px;
  }

  /* Images responsive adaptation */
  .page-promotions-daily-rewards img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Hero Promo Section mobile */
  .page-promotions-daily-rewards__hero-promo {
    padding-bottom: 60px;
  }

  .page-promotions-daily-rewards__hero-promo-content {
    padding: 60px 15px 0;
  }

  .page-promotions-daily-rewards__hero-promo-title {
    font-size: 36px;
  }

  .page-promotions-daily-rewards__hero-promo-description {
    font-size: 18px;
  }

  /* Grid Layout mobile */
  .page-promotions-daily-rewards__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions-daily-rewards__card-image {
    height: 180px;
  }

  .page-promotions-daily-rewards__card-title {
    font-size: 20px;
  }

  .page-promotions-daily-rewards__card-description {
    font-size: 15px;
  }

  /* How To Claim Section mobile */
  .page-promotions-daily-rewards__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-daily-rewards__step-item {
    padding: 25px;
  }

  .page-promotions-daily-rewards__step-icon {
    width: 100px;
    height: 100px;
    padding: 12px;
  }

  .page-promotions-daily-rewards__step-title {
    font-size: 20px;
  }

  .page-promotions-daily-rewards__step-description {
    font-size: 15px;
  }

  /* Terms and Conditions Section mobile */
  .page-promotions-daily-rewards__terms-list {
    margin-top: 30px;
  }

  .page-promotions-daily-rewards__terms-list li {
    padding: 15px;
    font-size: 15px;
  }

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

  .page-promotions-daily-rewards__faq-item {
    margin-bottom: 10px;
  }

  .page-promotions-daily-rewards__faq-question {
    padding: 15px 20px;
  }

  .page-promotions-daily-rewards__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions-daily-rewards__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

  .page-promotions-daily-rewards__faq-item.active .page-promotions-daily-rewards__faq-answer {
    padding: 15px 20px !important;
  }

  /* Final CTA Section mobile */
  .page-promotions-daily-rewards__cta-final {
    padding: 80px 0;
  }
}

/* --- Fixed Header Spacing --- */
/* Assuming shared.css handles body padding, so keeping padding-top: 0 for hero */
.page-promotions-daily-rewards__hero-promo {
  padding-top: 0;
}
@media (max-width: 768px) {
  .page-promotions-daily-rewards__hero-promo {
    padding-top: 0 !important;
  }
}