/* style/vip-program.css */

/* --- General Styles for VIP Program Page --- */
.page-vip-program {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background */
}

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

.page-vip-program__section-title {
  font-size: 36px;
  color: #26A9E0; /* Primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-vip-program__section-title--white {
  color: #ffffff;
}

.page-vip-program__paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-vip-program__paragraph--white {
  color: #f0f0f0;
}

.page-vip-program__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-vip-program__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

/* --- Hero Section --- */
.page-vip-program__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: linear-gradient(135deg, #26A9E0, #5ac4f8); /* Gradient with primary color */
  overflow: hidden; /* Prevent image overflow */
}

.page-vip-program__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 any background effects */
}

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

.page-vip-program__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.page-vip-program__hero-image img:hover {
  transform: scale(1.02);
}

.page-vip-program__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
}

.page-vip-program__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-vip-program__hero-description {
  font-size: 19px;
  margin-bottom: 40px;
  color: #f0f8ff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-vip-program__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-vip-program__cta-button:hover {
  background: #d46f07;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* --- VIP Tiers Section --- */
.page-vip-program__tiers-section {
  padding: 80px 0;
}

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

.page-vip-program__tier-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-vip-program__tier-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-vip-program__tier-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 400px; /* Set display width */
  height: 300px; /* Set display height */
  object-fit: cover;
}

.page-vip-program__card-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-vip-program__tier-benefits li {
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 16px;
  color: #555555;
}

.page-vip-program__tier-benefits li:last-child {
  border-bottom: none;
}

.page-vip-program__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-vip-program__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

/* --- Benefits Section --- */
.page-vip-program__benefits-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-vip-program__benefit-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-vip-program__benefit-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 600px; /* Set display width */
  height: 400px; /* Set display height */
  object-fit: cover;
}

.page-vip-program__item-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-vip-program__item-description {
  font-size: 16px;
  color: #555555;
  text-align: left;
}

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

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

.page-vip-program__step-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-vip-program__step-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 400px; /* Set display width */
  height: 300px; /* Set display height */
  object-fit: cover;
}

.page-vip-program__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-vip-program__btn-primary:hover {
  background: #1e87c0;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

/* --- Terms & Conditions Section --- */
.page-vip-program__terms-section {
  padding: 80px 0;
}

.page-vip-program__terms-list {
  list-style: disc;
  max-width: 900px;
  margin: 40px auto 30px auto;
  padding-left: 25px;
  text-align: left;
  font-size: 16px;
  color: #555555;
}

.page-vip-program__terms-list li {
  margin-bottom: 10px;
}

/* --- FAQ Section --- */
.page-vip-program__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

/* FAQ容器样式 */
.page-vip-program__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
}

/* FAQ默认状态 - 答案隐藏 */
.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, opacity 0.4s ease;
  padding: 0 20px; /* Adjusted padding */
  opacity: 0;
  color: #555555;
  font-size: 16px;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-vip-program__faq-item.active .page-vip-program__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: #ffffff; /* White background for answer */
  border-radius: 0 0 8px 8px; /* Match item border-radius */
  border-top: 1px solid #e0e0e0;
}

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

.page-vip-program__faq-item.active .page-vip-program__faq-question {
  border-radius: 8px 8px 0 0; /* Rounded top, sharp bottom when active */
  background: #1e87c0; /* Slightly darker primary color */
}

.page-vip-program__faq-question:hover {
  background: #1e87c0;
  border-color: #1e87c0;
}

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

/* 切换图标 */
.page-vip-program__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #ffffff; /* White icon for contrast */
  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: 30px; /* Larger toggle area */
  height: 30px;
}

.page-vip-program__faq-item.active .page-vip-program__faq-toggle {
  transform: rotate(180deg); /* Rotate for minus sign */
  color: #ffffff;
}

/* --- Final CTA Section --- */
.page-vip-program__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-vip-program__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-vip-program {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-vip-program__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-vip-program__paragraph {
    font-size: 15px;
    margin-bottom: 15px;
  }

  /* Hero Section Mobile */
  .page-vip-program__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    padding-bottom: 40px;
  }

  .page-vip-program__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-vip-program__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-vip-program__cta-button {
    padding: 15px 30px;
    font-size: 18px;
    max-width: 100% !important; /* Mobile button full width */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Grids Mobile */
  .page-vip-program__tiers-grid,
  .page-vip-program__benefits-grid,
  .page-vip-program__steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-vip-program__tier-card,
  .page-vip-program__benefit-item,
  .page-vip-program__step-card {
    padding: 20px;
  }

  .page-vip-program__tier-card img,
  .page-vip-program__benefit-item img,
  .page-vip-program__step-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  
  /* Buttons Mobile */
  .page-vip-program__btn-primary,
  .page-vip-program__btn-secondary {
    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;
  }

  .page-vip-program__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }
  
  /* FAQ Mobile */
  .page-vip-program__faq-question {
    padding: 15px;
  }
  
  .page-vip-program__faq-question h3 {
    font-size: 16px;
  }
  
  .page-vip-program__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  
  .page-vip-program__faq-item.active .page-vip-program__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images within .page-vip-program are responsive */
  .page-vip-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure content containers don't overflow */
  .page-vip-program__section,
  .page-vip-program__card,
  .page-vip-program__container,
  .page-vip-program__hero-container,
  .page-vip-program__tiers-grid,
  .page-vip-program__benefits-grid,
  .page-vip-program__steps-container,
  .page-vip-program__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed specific left/right padding here, let .page-vip-program__container handle it */
  }
}