/* style/promotions-weekly-cashback.css */
.page-promotions-weekly-cashback {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: var(--primary-bg-color, #f8f9fa); /* Fallback for body background */
}

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

/* Top padding for fixed header */
.page-promotions-weekly-cashback__hero-banner {
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-promotions-weekly-cashback__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions-weekly-cashback__hero-image {
  width: 100%;
  height: auto;
  max-height: 450px; /* Limit height for aesthetic */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions-weekly-cashback__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
  margin-top: 50px;
  max-width: 800px;
}

.page-promotions-weekly-cashback__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

.page-promotions-weekly-cashback__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.5;
}

.page-promotions-weekly-cashback__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions-weekly-cashback__btn-primary,
.page-promotions-weekly-cashback__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-promotions-weekly-cashback__btn-primary {
  background: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
}

.page-promotions-weekly-cashback__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

.page-promotions-weekly-cashback__btn-secondary {
  background: #1A202C;
  color: #FFD700;
  border-color: #FFD700;
}

.page-promotions-weekly-cashback__btn-secondary:hover {
  background: #333d4f;
  border-color: #FFD700;
  transform: translateY(-3px);
}

.page-promotions-weekly-cashback__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-promotions-weekly-cashback__intro-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: #333333;
}

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

.page-promotions-weekly-cashback__rebate-mechanism,
.page-promotions-weekly-cashback__cashback-benefits {
  padding: 80px 0;
}

.page-promotions-weekly-cashback__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-promotions-weekly-cashback__dark-section .page-promotions-weekly-cashback__section-title {
  color: #FFD700;
}

.page-promotions-weekly-cashback__dark-section .page-promotions-weekly-cashback__sub-title {
  color: #FFD700;
}

.page-promotions-weekly-cashback__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions-weekly-cashback__light-bg .page-promotions-weekly-cashback__section-title {
  color: #1A202C;
}

.page-promotions-weekly-cashback__light-bg .page-promotions-weekly-cashback__sub-title {
  color: #1A202C;
}

.page-promotions-weekly-cashback__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-promotions-weekly-cashback__grid-layout--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-promotions-weekly-cashback__text-content h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-promotions-weekly-cashback__text-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-promotions-weekly-cashback__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-promotions-weekly-cashback__list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

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

.page-promotions-weekly-cashback__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions-weekly-cashback__why-choose {
  padding: 80px 0;
}

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

.page-promotions-weekly-cashback__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-promotions-weekly-cashback__feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.page-promotions-weekly-cashback__feature-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Make icons slightly brighter against dark bg */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions-weekly-cashback__feature-card p {
  color: #f0f0f0;
  font-size: 1em;
}

.page-promotions-weekly-cashback__guide-section {
  padding: 80px 0;
}

.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding-top: 80px; /* Space for step number */
}

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

.page-promotions-weekly-cashback__step-number {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFD700;
  color: #1A202C;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  font-weight: bold;
  border: 4px solid #1A202C;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-weekly-cashback__step-card .page-promotions-weekly-cashback__card-title {
  color: #1A202C;
  font-size: 1.5em;
  margin-top: 15px;
}

.page-promotions-weekly-cashback__step-card p {
  color: #555555;
  font-size: 1em;
}

.page-promotions-weekly-cashback__step-card a {
  color: #1A202C;
  font-weight: bold;
  text-decoration: underline;
}

.page-promotions-weekly-cashback__step-card a:hover {
  color: #FFD700;
}

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

.page-promotions-weekly-cashback__faq-section {
  padding: 80px 0;
}

/* FAQ容器样式 */
.page-promotions-weekly-cashback__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a3447; /* Slightly lighter dark background for FAQ items */
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions-weekly-cashback__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 20px;
  opacity: 0;
  color: #f0f0f0;
  font-size: 1.05em;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__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 !important;
  opacity: 1;
  background: #3a455a;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề FAQ样式 */
.page-promotions-weekly-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A202C;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions-weekly-cashback__faq-question:hover {
  background: #2a3447;
  border-color: #FFD700;
}

.page-promotions-weekly-cashback__faq-question:active {
  background: #3a455a;
}

/* Vấn đề Tiêu đề样式 */
.page-promotions-weekly-cashback__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện nhấp */
  color: #FFD700;
}

/* Chuyển đổi Biểu tượng */
.page-promotions-weekly-cashback__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: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-weekly-cashback__main-title {
    font-size: 2.8em;
  }
  .page-promotions-weekly-cashback__section-title {
    font-size: 2.2em;
  }
  .page-promotions-weekly-cashback__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-promotions-weekly-cashback__grid-layout--reverse {
    grid-template-columns: 1fr;
  }
  .page-promotions-weekly-cashback__grid-layout--reverse .page-promotions-weekly-cashback__image-wrapper {
    order: -1;
  }
  .page-promotions-weekly-cashback__text-content {
    text-align: center;
  }
  .page-promotions-weekly-cashback__list {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
  .page-promotions-weekly-cashback__hero-content {
    padding: 30px 15px;
  }
  .page-promotions-weekly-cashback__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-promotions-weekly-cashback__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions-weekly-cashback {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions-weekly-cashback__hero-banner {
    padding-top: 100px; /* Mobile adjust for fixed header */
    padding-bottom: 40px;
  }
  .page-promotions-weekly-cashback__hero-image {
    max-height: 300px;
  }
  .page-promotions-weekly-cashback__hero-content {
    margin-top: 20px;
    padding: 20px 10px;
  }
  .page-promotions-weekly-cashback__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-promotions-weekly-cashback__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-promotions-weekly-cashback__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions-weekly-cashback__btn-primary,
  .page-promotions-weekly-cashback__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
  }
  .page-promotions-weekly-cashback__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-promotions-weekly-cashback__intro-section,
  .page-promotions-weekly-cashback__rebate-mechanism,
  .page-promotions-weekly-cashback__cashback-benefits,
  .page-promotions-weekly-cashback__why-choose,
  .page-promotions-weekly-cashback__guide-section,
  .page-promotions-weekly-cashback__faq-section {
    padding: 40px 0;
  }
  .page-promotions-weekly-cashback__container {
    padding: 0 15px;
  }
  .page-promotions-weekly-cashback__text-block {
    font-size: 1em;
  }
  .page-promotions-weekly-cashback__text-content h3 {
    font-size: 1.5em;
  }
  .page-promotions-weekly-cashback__list {
    margin-left: 10px;
  }
  .page-promotions-weekly-cashback__image {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  .page-promotions-weekly-cashback__feature-card {
    padding: 25px;
  }
  .page-promotions-weekly-cashback__feature-icon {
    width: 100px;
    height: 100px;
  }
  .page-promotions-weekly-cashback__card-title {
    font-size: 1.4em;
  }
  .page-promotions-weekly-cashback__step-card {
    padding-top: 70px;
  }
  .page-promotions-weekly-cashback__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-promotions-weekly-cashback__step-card .page-promotions-weekly-cashback__card-title {
    font-size: 1.3em;
  }
  .page-promotions-weekly-cashback__cta-bottom {
    margin-top: 40px;
  }
  .page-promotions-weekly-cashback__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-promotions-weekly-cashback__faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-promotions-weekly-cashback__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-promotions-weekly-cashback__faq-answer {
    padding: 0 15px;
  }
  .page-promotions-weekly-cashback__faq-item.active .page-promotions-weekly-cashback__faq-answer {
    padding: 15px !important;
  }

  /* 🚨 Mobile image responsive styles */
  .page-promotions-weekly-cashback img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions-weekly-cashback__section,
  .page-promotions-weekly-cashback__card,
  .page-promotions-weekly-cashback__container,
  .page-promotions-weekly-cashback__hero-banner,
  .page-promotions-weekly-cashback__intro-section,
  .page-promotions-weekly-cashback__rebate-mechanism,
  .page-promotions-weekly-cashback__cashback-benefits,
  .page-promotions-weekly-cashback__why-choose,
  .page-promotions-weekly-cashback__guide-section,
  .page-promotions-weekly-cashback__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}