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

/* General page styling */
.page-promotions-daily-rebate {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
  padding-top: 120px; /* Spacing for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-promotions-daily-rebate {
    padding-top: 100px; /* Spacing for fixed header on mobile */
  }
}

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

.page-promotions-daily-rebate__section-title {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Gold color for main titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-promotions-daily-rebate__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-promotions-daily-rebate__sub-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 25px;
  color: #FFD700;
}

.page-promotions-daily-rebate__highlight-text {
  color: #FFD700;
}

/* Buttons */
.page-promotions-daily-rebate__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.page-promotions-daily-rebate__btn--primary {
  background: #FFD700;
  color: #1A202C;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-promotions-daily-rebate__btn--primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-promotions-daily-rebate__btn--secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-promotions-daily-rebate__btn--secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Sections */
.page-promotions-daily-rebate__hero-section {
  background: linear-gradient(135deg, #1A202C, #3A3F4C);
  padding: 80px 0;
  text-align: center;
}

.page-promotions-daily-rebate__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions-daily-rebate__main-title {
  font-size: 4.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions-daily-rebate__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-daily-rebate__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-promotions-daily-rebate__info-section {
  padding: 80px 0;
  background: #282f3d; /* Lighter dark background */
  color: #f0f0f0;
}

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

.page-promotions-daily-rebate__info-card {
  background: #1A202C;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions-daily-rebate__info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions-daily-rebate__info-card-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions-daily-rebate__info-card-text {
  font-size: 1em;
  color: #c0c0c0;
}

.page-promotions-daily-rebate__benefits-section {
  padding: 80px 0;
  background: #1A202C;
  color: #f0f0f0;
}

.page-promotions-daily-rebate__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-promotions-daily-rebate__benefits-item {
  background: #282f3d;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions-daily-rebate__benefits-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-daily-rebate__benefits-item-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-promotions-daily-rebate__benefits-item-text {
  font-size: 0.95em;
  color: #c0c0c0;
}

.page-promotions-daily-rebate__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-promotions-daily-rebate__eligibility-section {
  padding: 80px 0;
  background: #282f3d;
  color: #f0f0f0;
}

.page-promotions-daily-rebate__flex-group {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
}

.page-promotions-daily-rebate__text-block {
  flex: 1; /* Allows blocks to grow */
  min-width: 300px;
  background: #1A202C;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions-daily-rebate__list-style {
  list-style: disc;
  margin-left: 20px;
  color: #c0c0c0;
}

.page-promotions-daily-rebate__list-style li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-promotions-daily-rebate__eligibility-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: #FFD700;
}

/* FAQ Section */
.page-promotions-daily-rebate__faq-section {
  padding: 80px 0;
  background: #1A202C;
  color: #f0f0f0;
}

.page-promotions-daily-rebate__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-promotions-daily-rebate__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-promotions-daily-rebate__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-promotions-daily-rebate__faq-item.active .page-promotions-daily-rebate__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #282f3d;
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-promotions-daily-rebate__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2e3644;
  border: 1px solid #3d4654;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions-daily-rebate__faq-question:hover {
  background: #3a4252;
  border-color: #4c576a;
}

.page-promotions-daily-rebate__faq-question:active {
  background: #465063;
}

.page-promotions-daily-rebate__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

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

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

/* Contact Section */
.page-promotions-daily-rebate__contact-section {
  padding: 80px 0;
  background: #2e3644;
  color: #f0f0f0;
}

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

.page-promotions-daily-rebate__contact-item {
  background: #1A202C;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions-daily-rebate__contact-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions-daily-rebate__contact-text {
  font-size: 1em;
  color: #c0c0c0;
  margin-bottom: 25px;
}

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

@media (max-width: 768px) {
  .page-promotions-daily-rebate {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions-daily-rebate__container,
  .page-promotions-daily-rebate__hero-content {
    padding: 0;
  }

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

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

  .page-promotions-daily-rebate__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions-daily-rebate__btn {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
  }

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

  .page-promotions-daily-rebate__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-promotions-daily-rebate__info-section,
  .page-promotions-daily-rebate__benefits-section,
  .page-promotions-daily-rebate__eligibility-section,
  .page-promotions-daily-rebate__faq-section,
  .page-promotions-daily-rebate__contact-section {
    padding: 60px 0;
  }

  .page-promotions-daily-rebate__grid,
  .page-promotions-daily-rebate__benefits-list,
  .page-promotions-daily-rebate__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-daily-rebate__sub-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  
  .page-promotions-daily-rebate__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-promotions-daily-rebate__faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-promotions-daily-rebate__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-promotions-daily-rebate__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions-daily-rebate__faq-item.active .page-promotions-daily-rebate__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image handling */
  .page-promotions-daily-rebate img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions-daily-rebate__section,
  .page-promotions-daily-rebate__card,
  .page-promotions-daily-rebate__container,
  .page-promotions-daily-rebate__info-card,
  .page-promotions-daily-rebate__benefits-item,
  .page-promotions-daily-rebate__text-block,
  .page-promotions-daily-rebate__contact-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Contrast Safety */
.page-promotions-daily-rebate__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-promotions-daily-rebate__light-bg {
  color: #f0f0f0; /* Lighter dark background with light text */
}

.page-promotions-daily-rebate__card {
  background: #1A202C;
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions-daily-rebate p,
.page-promotions-daily-rebate li {
  color: #c0c0c0;
}

.page-promotions-daily-rebate__btn-primary {
  background: #FFD700;
  color: #1A202C;
}

.page-promotions-daily-rebate__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}