/* style/vip-zone.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --accent-color: #EA7C07; /* For login/register */
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
}

.page-vip-zone {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text on light body background */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

.page-vip-zone__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-vip-zone__section {
  padding: 60px 0;
  text-align: center;
}

.page-vip-zone__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-vip-zone__section-description {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-vip-zone__text-block {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: left;
}

.page-vip-zone__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-vip-zone__text-block a:hover {
  text-decoration: underline;
}

/* HERO Section */
.page-vip-zone__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 header offset is applied */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3aadeb 100%); /* Lighter blue gradient */
  color: var(--text-light);
  overflow: hidden; /* Prevent content overflow */
}

.page-vip-zone__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-vip-zone__hero-image {
  width: 100%;
  max-width: 800px; /* Limit image width */
  margin-bottom: 30px;
}

.page-vip-zone__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-vip-zone__main-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-vip-zone__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color); /* Using accent color for primary CTA */
  color: var(--text-light);
  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-zone__cta-button:hover {
  background: #ff8c1a; /* Slightly darker accent on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-vip-zone__intro-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  text-align: left;
}

/* Tiers Section */
.page-vip-zone__tiers-section {
  background-color: var(--primary-color); /* Darker background for contrast */
  color: var(--text-light);
  padding: 80px 0;
}

.page-vip-zone__tiers-section .page-vip-zone__section-title,
.page-vip-zone__tiers-section .page-vip-zone__section-description {
  color: var(--text-light);
}

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

.page-vip-zone__tier-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
  color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-vip-zone__tier-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-vip-zone__tier-card .page-vip-zone__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-vip-zone__tier-card .page-vip-zone__card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.page-vip-zone__privilege-item {
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-vip-zone__privilege-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-vip-zone__privilege-item img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-vip-zone__privilege-item .page-vip-zone__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-vip-zone__privilege-item .page-vip-zone__card-text {
  font-size: 16px;
  color: var(--text-dark);
}

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

.page-vip-zone__how-to-join-section .page-vip-zone__section-title,
.page-vip-zone__how-to-join-section .page-vip-zone__section-description {
  color: var(--text-light);
}

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

.page-vip-zone__step-item {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-vip-zone__step-item .page-vip-zone__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-vip-zone__step-item .page-vip-zone__card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.page-vip-zone__step-item a {
  color: var(--accent-color);
  font-weight: bold;
  text-decoration: none;
}

.page-vip-zone__step-item a:hover {
  text-decoration: underline;
}

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

.page-vip-zone__btn-primary {
  background: var(--accent-color);
  color: var(--text-light);
}

.page-vip-zone__btn-primary:hover {
  background: #ff8c1a;
}

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

.page-vip-zone__btn-secondary:hover {
  background: #e0f2f7;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

.page-vip-zone__promotion-item {
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-vip-zone__promotion-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-vip-zone__promotion-item img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-vip-zone__promotion-item .page-vip-zone__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-vip-zone__promotion-item .page-vip-zone__card-text {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-vip-zone__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.page-vip-zone__read-more:hover {
  text-decoration: underline;
}

/* Support Section */
.page-vip-zone__support-section {
  background-color: var(--background-light);
  padding: 80px 0;
  text-align: left;
}

.page-vip-zone__support-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-vip-zone__support-text {
  flex: 1;
  min-width: 300px;
}

.page-vip-zone__support-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-vip-zone__support-list li {
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--text-dark);
  position: relative;
  padding-left: 25px;
}

.page-vip-zone__support-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-vip-zone__list-highlight {
  color: var(--primary-color);
}

.page-vip-zone__support-image {
  flex: 1;
  min-width: 300px;
}

.page-vip-zone__support-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-vip-zone__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

/* FAQ容器样式 */
.page-vip-zone__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--secondary-color);
}

/* FAQ默认状态 - 答案隐藏 */
.page-vip-zone__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;
  color: var(--text-dark);
}

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

/* 问题样式 */
.page-vip-zone__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid transparent; /* To prevent double border on active state */
}

.page-vip-zone__faq-item.active .page-vip-zone__faq-question {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--background-light);
}

.page-vip-zone__faq-question:hover {
  background: var(--background-light);
}

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

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

/* 切换图标 */
.page-vip-zone__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 28px;
  height: 28px;
}

.page-vip-zone__faq-item.active .page-vip-zone__faq-toggle {
  color: var(--accent-color);
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

/* Bottom CTA Section */
.page-vip-zone__cta-bottom-section {
  background: linear-gradient(135deg, #3aadeb, var(--primary-color));
  color: var(--text-light);
  padding: 80px 0;
}

.page-vip-zone__cta-bottom-section .page-vip-zone__section-title,
.page-vip-zone__cta-bottom-section .page-vip-zone__section-description {
  color: var(--text-light);
}

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

/* Global image styles for responsiveness and minimum size */
.page-vip-zone img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
}

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