/* style/vip-program.css */

/* Căn chỉnh khoảng cách cho nội dung đầu tiên dưới header cố định */
.page-vip-program {
  padding-top: 120px; /* Khoảng cách cho desktop */
  color: #ffffff; /* Mặc định chữ trắng trên nền đen của body */
  background-color: #000000; /* Đảm bảo nền body là đen */
}

@media (max-width: 768px) {
  .page-vip-program {
    padding-top: 100px; /* Khoảng cách cho mobile */
  }
}

/* Các phần nền màu */
.page-vip-program__dark-section {
  background-color: #0d0d0d; /* Nền tối hơn để nổi bật trên nền đen body */
  color: #ffffff; /* Chữ trắng */
}

.page-vip-program__light-bg {
  background-color: #1a1a1a; /* Nền xám đậm, vẫn là nền tối nhưng sáng hơn dark-section */
  color: #ffffff; /* Chữ trắng */
}

.page-vip-program__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-vip-program__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffc107; /* Màu vàng phụ đạo */
  line-height: 1.3;
}

.page-vip-program__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #f0f0f0;
}

/* HERO Section */
.page-vip-program__hero-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0056b3, #0d0d0d);
  border-bottom: 5px solid #ffc107;
}

.page-vip-program__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-vip-program__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffc107;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-vip-program__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.7;
}

.page-vip-program__btn-primary,
.page-vip-program__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
}

.page-vip-program__btn-primary {
  background-color: #ffc107;
  color: #000000; /* Đảm bảo độ tương phản */
  border: 2px solid #ffc107;
}

.page-vip-program__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.page-vip-program__btn-secondary {
  background-color: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.page-vip-program__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000; /* Đảm bảo độ tương phản */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Benefits Section */
.page-vip-program__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-vip-program__benefit-card {
  background-color: #1a1a1a; /* Nền tối cho card */
  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, 193, 7, 0.3);
  color: #ffffff; /* Chữ trắng */
}

.page-vip-program__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-vip-program__benefit-icon {
  width: 120px; /* Tăng kích thước icon */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-vip-program__benefit-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffc107;
}

.page-vip-program__benefit-text {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Levels Section */
.page-vip-program__levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-vip-program__level-card {
  background-color: #1a1a1a; /* Nền tối cho card */
  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(0, 86, 179, 0.3);
  color: #ffffff; /* Chữ trắng */
}

.page-vip-program__level-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-vip-program__level-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0056b3; /* Màu xanh chủ đạo */
}

.page-vip-program__level-condition {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-vip-program__level-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.page-vip-program__level-benefits li {
  font-size: 15px;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-vip-program__level-benefits li::before {
  content: '✓';
  color: #ffc107;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-vip-program__note-text {
  font-size: 14px;
  text-align: center;
  margin-top: 40px;
  color: #cccccc;
  line-height: 1.5;
}

/* Join Section */
.page-vip-program__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-vip-program__step-card {
  background-color: #1a1a1a; /* Nền tối cho card */
  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, 193, 7, 0.3);
  color: #ffffff; /* Chữ trắng */
}

.page-vip-program__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-vip-program__step-icon {
  width: 120px; /* Tăng kích thước icon */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-vip-program__step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffc107;
}

.page-vip-program__step-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-vip-program__faq-list {
  margin-top: 50px;
}

/* FAQ container style */
.page-vip-program__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

/* FAQ default state - answer hidden */
.page-vip-program__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 20px;
  opacity: 0;
  background: #1a1a1a; /* Nền tối cho câu trả lời */
  color: #f0f0f0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure it expands */
.page-vip-program__faq-item.active .page-vip-program__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important for priority, value large enough for any content */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-vip-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0d0d0d; /* Nền tối cho câu hỏi */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffc107; /* Chữ vàng cho câu hỏi */
}

.page-vip-program__faq-question:hover {
  background: #1a1a1a; /* Hơi sáng hơn khi hover */
  border-color: #ffc107;
}

.page-vip-program__faq-question:active {
  background: #2a2a2a;
}

/* Question title style */
.page-vip-program__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #ffc107;
}

/* Toggle icon */
.page-vip-program__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-vip-program__faq-item.active .page-vip-program__faq-toggle {
  color: #0056b3;
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu + */
}

/* CTA Section */
.page-vip-program__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #0056b3; /* Màu xanh chủ đạo */
  color: #ffffff;
}

.page-vip-program__cta-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffc107;
  line-height: 1.2;
}

.page-vip-program__cta-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-vip-program__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-vip-program__container {
    padding: 50px 20px;
  }
  .page-vip-program__section-title {
    font-size: 32px;
  }
  .page-vip-program__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-vip-program__hero-title {
    font-size: 40px;
  }
  .page-vip-program__hero-description {
    font-size: 18px;
  }
  .page-vip-program__benefit-title,
  .page-vip-program__level-title,
  .page-vip-program__step-title {
    font-size: 22px;
  }
  .page-vip-program__cta-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .page-vip-program__container {
    padding: 40px 15px;
  }
  .page-vip-program__section-title {
    font-size: 28px;
  }
  .page-vip-program__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-vip-program__hero-section {
    padding: 60px 15px;
  }
  .page-vip-program__hero-title {
    font-size: 32px;
  }
  .page-vip-program__hero-description {
    font-size: 16px;
  }
  .page-vip-program__btn-primary,
  .page-vip-program__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    margin: 8px;
  }
  .page-vip-program__benefits-grid,
  .page-vip-program__levels-grid,
  .page-vip-program__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-vip-program__benefit-icon,
  .page-vip-program__step-icon {
    width: 100px;
    height: 100px;
  }
  .page-vip-program__benefit-title,
  .page-vip-program__level-title,
  .page-vip-program__step-title {
    font-size: 20px;
  }
  .page-vip-program__benefit-text,
  .page-vip-program__level-condition,
  .page-vip-program__level-benefits li,
  .page-vip-program__step-text {
    font-size: 15px;
  }
  .page-vip-program__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-vip-program__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-vip-program__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-vip-program__faq-answer {
    padding: 0 15px;
  }
  .page-vip-program__faq-item.active .page-vip-program__faq-answer {
    padding: 15px !important;
  }
  .page-vip-program__cta-section {
    padding: 60px 15px;
  }
  .page-vip-program__cta-title {
    font-size: 30px;
  }
  .page-vip-program__cta-description {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-vip-program__hero-title {
    font-size: 28px;
  }
  .page-vip-program__hero-description {
    font-size: 15px;
  }
  .page-vip-program__section-title {
    font-size: 24px;
  }
  .page-vip-program__cta-title {
    font-size: 26px;
  }
  .page-vip-program__btn-primary,
  .page-vip-program__btn-secondary {
    width: 100%;
    margin: 8px 0;
  }
}

/* Responsive images */
.page-vip-program img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-vip-program__section,
.page-vip-program__card,
.page-vip-program__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-vip-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-vip-program__section,
  .page-vip-program__card,
  .page-vip-program__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}