/* style/vip-club.css */

/* Variables for consistency */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-login-color: #EA7C07;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9; /* Slightly off-white for sections */
}

.page-vip-club {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light background */
  background: var(--secondary-color); /* Default background color */
}

/* Container for page content */
.page-vip-club__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-vip-club__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-vip-club__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

/* HERO Section */
.page-vip-club__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%); /* Adjusted gradient for visual appeal */
  color: var(--text-color-light);
  overflow: hidden; /* Prevent image overflow */
}

.page-vip-club__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-vip-club__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-vip-club__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-vip-club__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-vip-club__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-vip-club__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-vip-club__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login-color); /* Use login color for primary CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-vip-club__cta-button:hover {
  background: #c26506; /* Darken on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-vip-club__introduction-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Light background */
}

/* Benefits Section */
.page-vip-club__benefits-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-color-light);
}

.page-vip-club__benefits-section .page-vip-club__section-title {
  color: var(--text-color-light);
}

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

.page-vip-club__benefit-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  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: center;
}

.page-vip-club__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-vip-club__benefit-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

.page-vip-club__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-vip-club__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color-light);
  text-align: justify;
}

/* Tiers Section */
.page-vip-club__tiers-section {
  padding: 80px 0;
  background-color: var(--background-light); /* Light background */
}

.page-vip-club__tiers-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-vip-club__tiers-overview img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

.page-vip-club__tier-description {
  width: 100%;
  max-width: 800px;
  text-align: justify;
}

.page-vip-club__tier-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 10px;
}

/* How To Join Section */
.page-vip-club__how-to-join-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-color-light);
}

.page-vip-club__how-to-join-section .page-vip-club__section-title {
  color: var(--text-color-light);
}

.page-vip-club__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-vip-club__list-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-vip-club__list-item h3 {
  font-size: 24px;
  color: var(--text-color-light);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-vip-club__list-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color-light);
}

.page-vip-club__link-text {
  color: var(--secondary-color); /* White for links on dark background */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-vip-club__link-text:hover {
  color: #e0e0e0;
}

.page-vip-club__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-vip-club__btn-primary {
  background: var(--button-login-color);
  color: var(--text-color-light);
  border: 2px solid transparent;
}

.page-vip-club__btn-primary:hover {
  background: #c26506;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-vip-club__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-vip-club__btn-secondary:hover {
  background: #e0f2fa; /* Lighter primary color */
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* Security & Support Section */
.page-vip-club__security-support-section {
  padding: 80px 0;
  background-color: var(--background-light); /* Light background */
}

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

.page-vip-club__security-card,
.page-vip-club__support-card,
.page-vip-club__responsible-gaming-card {
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: justify;
}

/* FAQ Section */
.page-vip-club__faq-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.page-vip-club__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-vip-club__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-vip-club__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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-vip-club__faq-item.active .page-vip-club__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: var(--background-light);
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu */
.page-vip-club__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-vip-club__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-vip-club__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề kiểu */
.page-vip-club__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: var(--text-color-dark);
}

/* Chuyển đổi biểu tượng */
.page-vip-club__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-vip-club__faq-item.active .page-vip-club__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Xoay cho hiệu ứng 'x' */
}


/* --- Thiết kế đáp ứng --- */
/* Phương pháp ưu tiên di động, sau đó ghi đè cho màn hình lớn hơn */
@media (max-width: 768px) {
  .page-vip-club__container {
    padding: 20px 15px;
  }

  .page-vip-club__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
  }

  .page-vip-club__hero-title {
    font-size: 32px;
  }

  .page-vip-club__hero-description {
    font-size: 16px;
  }

  .page-vip-club__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-vip-club__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-vip-club__text-block {
    font-size: 15px;
  }

  .page-vip-club__benefits-grid,
  .page-vip-club__content-grid {
    grid-template-columns: 1fr;
  }

  .page-vip-club__benefit-card,
  .page-vip-club__security-card,
  .page-vip-club__support-card,
  .page-vip-club__responsible-gaming-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-vip-club__card-title {
    font-size: 20px;
  }

  .page-vip-club__card-description {
    font-size: 15px;
  }

  .page-vip-club__tiers-overview {
    flex-direction: column;
  }

  .page-vip-club__tier-title {
    font-size: 20px;
  }

  .page-vip-club__list-item {
    padding: 20px;
  }

  .page-vip-club__list-item h3 {
    font-size: 20px;
  }

  .page-vip-club__list-item p {
    font-size: 15px;
  }

  .page-vip-club__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Thêm padding để ngăn tràn */
    box-sizing: border-box;
    width: 100%;
  }

  .page-vip-club__btn-primary,
  .page-vip-club__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Khả năng đáp ứng hình ảnh */
  .page-vip-club img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-vip-club__section,
  .page-vip-club__card,
  .page-vip-club__container,
  .page-vip-club__hero-section,
  .page-vip-club__introduction-section,
  .page-vip-club__benefits-section,
  .page-vip-club__tiers-section,
  .page-vip-club__how-to-join-section,
  .page-vip-club__security-support-section,
  .page-vip-club__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ di động */
  .page-vip-club__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-vip-club__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-vip-club__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-vip-club__faq-answer {
    padding: 0 15px;
  }
  
  .page-vip-club__faq-item.active .page-vip-club__faq-answer {
    padding: 15px !important;
  }
}

/* Đảm bảo hình ảnh khu vực nội dung không quá nhỏ */
.page-vip-club img:not(.shared-header__logo img, .shared-footer__payment-icon img, .shared-footer__social-icon img, .shared-footer__game-provider-icon img) {
  min-width: 200px;
  min-height: 200px;
}
/* Ghi đè cho các hình ảnh nhỏ hơn không phải biểu tượng, nhưng vẫn cần đáp ứng kích thước hiển thị tối thiểu */
.page-vip-club__benefit-card img,
.page-vip-club__tiers-overview img {
  min-width: 200px; /* Đảm bảo các hình ảnh cụ thể này đáp ứng kích thước tối thiểu */
  min-height: 200px;
  width: auto; /* Cho phép chiều rộng tự nhiên */
  max-width: 100%; /* Đáp ứng */
}

/* Sửa lỗi tương phản màu cho các phần tử cụ thể nếu cần - dựa trên phân tích thông minh */
.page-vip-club__dark-bg {
  color: var(--text-color-light); /* Nền tối với văn bản sáng */
}

.page-vip-club__light-bg {
  color: var(--text-color-dark); /* Nền sáng với văn bản tối */
}