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

/* Cần thêm padding-top cho main để tránh header cố định che mất nội dung */
.page-promotions-daily-cashback {
  padding-top: 100px; /* Giá trị này có thể điều chỉnh tùy theo chiều cao của header */
  color: #ffffff; /* Màu chữ mặc định cho nền đen của body */
  background-color: #000; /* Đảm bảo nền khớp với body nếu có thể */
}

@media (min-width: 769px) {
  .page-promotions-daily-cashback {
    padding-top: 120px; /* Điều chỉnh cho desktop */
  }
}

/* Hero Banner Section */
.page-promotions-daily-cashback__hero-banner {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1A1A1A, #000000);
  overflow: hidden;
}

.page-promotions-daily-cashback__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

.page-promotions-daily-cashback__hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-promotions-daily-cashback__hero-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

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

.page-promotions-daily-cashback__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
  z-index: 1;
}

.page-promotions-daily-cashback__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%); /* Làm mờ ảnh nền */
}

/* General Section Styles */
.page-promotions-daily-cashback__section {
  padding: 80px 20px;
  background-color: #0d0d0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.page-promotions-daily-cashback__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions-daily-cashback__text-block {
  font-size: 17px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions-daily-cashback__text-block a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-promotions-daily-cashback__btn--primary {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-promotions-daily-cashback__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

.page-promotions-daily-cashback__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

/* Mechanism Section Grid */
.page-promotions-daily-cashback__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions-daily-cashback__card {
  background-color: #1A1A1A;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 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-cashback__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions-daily-cashback__card-image {
  width: 100%;
  max-width: 250px; /* Đảm bảo hình ảnh không quá lớn */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions-daily-cashback__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
  text-align: justify;
}

/* Guide Section Steps */
.page-promotions-daily-cashback__steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions-daily-cashback__step-item {
  background-color: #1A1A1A;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-promotions-daily-cashback__step-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background-color: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.2);
}

.page-promotions-daily-cashback__step-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

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

.page-promotions-daily-cashback__step-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  text-align: justify;
}

.page-promotions-daily-cashback__step-item p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-promotions-daily-cashback__step-item p a:hover {
  text-decoration: underline;
}

/* Advantages Section */
.page-promotions-daily-cashback__advantage-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-promotions-daily-cashback__advantage-list li {
  background-color: #1A1A1A;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
  font-size: 17px;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-promotions-daily-cashback__advantage-list li img {
  width: 48px;
  height: 48px;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: contain;
}

.page-promotions-daily-cashback__advantage-list li strong {
  color: #FFD700;
}

.page-promotions-daily-cashback__advantage-list li a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-promotions-daily-cashback__advantage-list li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-promotions-daily-cashback__faq-list {
  margin-top: 40px;
}

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

.page-promotions-daily-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;
  padding: 0 15px;
  opacity: 0;
}

.page-promotions-daily-cashback__faq-item.active .page-promotions-daily-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 15px !important;
  opacity: 1;
  background: #1A1A1A;
  border-radius: 0 0 5px 5px;
  color: #cccccc;
  text-align: justify;
}

.page-promotions-daily-cashback__faq-answer p {
    margin: 0;
    color: #cccccc;
}

.page-promotions-daily-cashback__faq-answer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

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

.page-promotions-daily-cashback__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions-daily-cashback__faq-question:hover {
  background: #1A1A1A;
  border-color: #FFD700;
}

.page-promotions-daily-cashback__faq-question:active {
  background: #2a2a2a;
}

.page-promotions-daily-cashback__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
  color: #f0f0f0;
}

.page-promotions-daily-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 click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

/* CTA Section */
.page-promotions-daily-cashback__section--cta {
  text-align: center;
  padding-bottom: 100px;
}

.page-promotions-daily-cashback__section--cta .page-promotions-daily-cashback__section-title {
  margin-bottom: 20px;
}

.page-promotions-daily-cashback__section--cta .page-promotions-daily-cashback__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-daily-cashback__main-title {
    font-size: 40px;
  }
  .page-promotions-daily-cashback__section-title {
    font-size: 32px;
  }
  .page-promotions-daily-cashback__hero-banner {
    padding: 50px 15px;
  }
  .page-promotions-daily-cashback__section {
    padding: 60px 15px;
  }
  .page-promotions-daily-cashback__grid {
    gap: 20px;
  }
  .page-promotions-daily-cashback__steps {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions-daily-cashback {
    padding-top: 80px;
  }
  .page-promotions-daily-cashback__main-title {
    font-size: 32px;
  }
  .page-promotions-daily-cashback__hero-description {
    font-size: 16px;
  }
  .page-promotions-daily-cashback__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-promotions-daily-cashback__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-promotions-daily-cashback__text-block {
    font-size: 15px;
  }
  .page-promotions-daily-cashback__grid {
    grid-template-columns: 1fr;
  }
  .page-promotions-daily-cashback__card {
    padding: 25px;
  }
  .page-promotions-daily-cashback__card-title {
    font-size: 20px;
  }
  .page-promotions-daily-cashback__steps {
    grid-template-columns: 1fr;
  }
  .page-promotions-daily-cashback__step-icon {
    width: 100px;
    height: 100px;
  }
  .page-promotions-daily-cashback__step-icon img {
    width: 70px;
    height: 70px;
  }
  .page-promotions-daily-cashback__step-title {
    font-size: 20px;
  }
  .page-promotions-daily-cashback__advantage-list li {
    font-size: 15px;
    padding: 15px;
  }
  .page-promotions-daily-cashback__advantage-list li img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  .page-promotions-daily-cashback__faq-question {
    padding: 15px;
  }
  .page-promotions-daily-cashback__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions-daily-cashback__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-promotions-daily-cashback__faq-item.active .page-promotions-daily-cashback__faq-answer {
    padding: 15px !important;
  }

  /* 🚨 Mobile image responsive adaptation (mandatory) */
  .page-promotions-daily-cashback img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions-daily-cashback__section,
  .page-promotions-daily-cashback__card,
  .page-promotions-daily-cashback__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}