/* style/vip-club.css */

/* Base Styles */
.page-vip-club {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* A very light grey for subtle contrast */
}

.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: #2C3E50; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-vip-club__section-title--light {
  color: #ffffff; /* White text for dark backgrounds */
}

.page-vip-club__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-vip-club__section-description--light {
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-vip-club__text-center {
  text-align: center;
}

/* Links */
.page-vip-club a {
  color: #2C3E50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-vip-club a:hover {
  color: #E6B800;
}

.page-vip-club__link-light {
  color: #E6B800; /* Gold link on dark background */
  text-decoration: underline;
}

.page-vip-club__link-light:hover {
  color: #ffffff;
}

/* Buttons */
.page-vip-club__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-vip-club__cta-button--primary {
  background: #E6B800; /* Gold background */
  color: #2C3E50; /* Dark blue text */
  border: 2px solid #E6B800;
}

.page-vip-club__cta-button--primary:hover {
  background: #f0c83a;
  border-color: #f0c83a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-vip-club__cta-button--secondary {
  background: transparent;
  color: #E6B800; /* Gold text */
  border: 2px solid #E6B800;
  margin-left: 20px;
}

.page-vip-club__cta-button--secondary:hover {
  background: #E6B800;
  color: #2C3E50;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Section Backgrounds */
.page-vip-club__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-vip-club__dark-bg {
  background-color: #2C3E50; /* Dark blue brand color */
  color: #ffffff;
}

/* 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); /* Ensure space for fixed header */
  background-color: #2C3E50; /* Dark background for hero */
  overflow: hidden;
}

.page-vip-club__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above image */
}

.page-vip-club__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: absolute; /* Position absolutely to allow content to overlay */
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0; /* Behind content */
}

.page-vip-club__hero-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover; /* Cover the entire area */
  opacity: 0.3; /* Make it subtle */
  filter: brightness(0.6); /* Darken the image further */
}

.page-vip-club__hero-content {
  position: relative;
  z-index: 2; /* Ensure content is on top */
  text-align: center;
  width: 100%;
  color: #ffffff;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 12px;
}

.page-vip-club__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #E6B800; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-vip-club__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-vip-club__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Introduction Section */
.page-vip-club__introduction-section {
  padding: 80px 0;
}

/* Levels Section */
.page-vip-club__levels-section {
  padding: 80px 0;
}

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

.page-vip-club__level-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-vip-club__level-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsive */
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-vip-club__level-title {
  font-size: 24px;
  font-weight: bold;
  color: #E6B800;
  margin-bottom: 10px;
}

.page-vip-club__level-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Benefits Section */
.page-vip-club__benefits-section {
  padding: 80px 0;
}

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

.page-vip-club__benefit-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-vip-club__benefit-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsive */
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-vip-club__benefit-title {
  font-size: 22px;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 10px;
}

.page-vip-club__benefit-text {
  font-size: 16px;
  color: #555555;
}

/* How to Join Section */
.page-vip-club__how-to-join-section {
  padding: 80px 0;
}

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

.page-vip-club__step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-vip-club__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #E6B800;
  color: #2C3E50;
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-vip-club__step-title {
  font-size: 24px;
  font-weight: bold;
  color: #E6B800;
  margin-bottom: 10px;
}

.page-vip-club__step-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-vip-club__cta-area {
  margin-top: 60px;
}

/* FAQ Section */
.page-vip-club__faq-section {
  padding: 80px 0;
}

.page-vip-club__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-vip-club__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 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 20px;
  opacity: 0;
  background: #f9f9f9;
}

/* 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 !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-vip-club__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease;
  position: relative;
}

.page-vip-club__faq-item.active .page-vip-club__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

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

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

/* 问题标题样式 */
.page-vip-club__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #2C3E50;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-vip-club__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E6B800; /* Gold for toggle icon */
  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: 32px;
  height: 32px;
}

.page-vip-club__faq-item.active .page-vip-club__faq-toggle {
  color: #2C3E50; /* Dark blue when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-vip-club__hero-title {
    font-size: 40px;
  }
  .page-vip-club__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-vip-club__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-vip-club__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-vip-club__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-vip-club__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-vip-club__cta-button--secondary {
    margin-left: 0; /* Remove margin for stacked buttons */
  }

  .page-vip-club__container {
    padding: 30px 15px;
  }

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

  .page-vip-club__levels-grid,
  .page-vip-club__benefits-grid,
  .page-vip-club__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-vip-club__level-card,
  .page-vip-club__benefit-card,
  .page-vip-club__step-card {
    padding: 20px;
  }

  .page-vip-club__level-title,
  .page-vip-club__benefit-title,
  .page-vip-club__step-title {
    font-size: 20px;
  }

  .page-vip-club__level-card img,
  .page-vip-club__benefit-card img {
     /* Adjust height for mobile */
  }

  /* All images in content area must be responsive */
  .page-vip-club img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  
  /* All containers with images or content */
  .page-vip-club__section,
  .page-vip-club__card,
  .page-vip-club__container,
  .page-vip-club__levels-grid,
  .page-vip-club__benefits-grid,
  .page-vip-club__steps-grid,
  .page-vip-club__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All buttons must be responsive */
  .page-vip-club__cta-button,
  .page-vip-club__btn-primary,
  .page-vip-club__btn-secondary,
  .page-vip-club a[class*="button"],
  .page-vip-club a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .page-vip-club__hero-buttons,
  .page-vip-club__cta-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* FAQ Mobile */
  .page-vip-club__faq-question {
    padding: 15px;
  }
  
  .page-vip-club__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  
  .page-vip-club__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-vip-club__faq-item.active .page-vip-club__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure images do not have filters */
.page-vip-club img {
  filter: none; /* No CSS filters to change image color */
}

/* Content area images CSS dimensions lower bound */
.page-vip-club__hero-image img,
.page-vip-club__level-card img,
.page-vip-club__benefit-card img {
  min-width: 200px;
  min-height: 200px;
}