/* style/vip-club.css */
/* BEM Naming: .page-vip-club__element-name */

:root {
    --primary-color: #017439; /* Main brand color */
    --secondary-color: #FFFFFF; /* Auxiliary brand color, also body background */
    --register-login-btn-bg: #C30808; /* Specific for register/login buttons */
    --register-login-btn-text: #FFFF00; /* Specific for register/login button text */
    --text-color-dark: #333333; /* Dark text for light backgrounds */
    --text-color-light: #ffffff; /* Light text for dark backgrounds */
    --border-color: #e0e0e0;
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
}

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

/* Fixed header spacing - applied to main content area or hero section */
.page-vip-club__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

.page-vip-club__section {
    padding: 60px 20px;
    margin-bottom: 20px;
}

.page-vip-club__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for smaller screens */
}

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

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

.page-vip-club__text-block {
    font-size: 17px;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 20px;
}

.page-vip-club__text-block--white {
    color: var(--text-color-light);
}

/* HERO Section */
.page-vip-club__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding-bottom for hero */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background for visual appeal */
}

.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;
}

.page-vip-club__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px; /* Enforce min size for content images */
}

.page-vip-club__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-color-light); /* Text on hero should be light due to potentially dark background areas */
}

.page-vip-club__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color-light); /* Explicitly light for contrast */
}

.page-vip-club__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color-light); /* Explicitly light for contrast */
}

.page-vip-club__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--register-login-btn-bg); /* Use specific register/login color */
    color: var(--register-login-btn-text); /* Use specific register/login font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-vip-club__cta-button:hover {
    background: #A80707; /* Slightly darker red for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-vip-club__introduction {
    background: var(--secondary-color);
    color: var(--text-color-dark);
}

/* VIP Levels Section */
.page-vip-club__levels {
    background: var(--primary-color); /* Dark background for this section */
    color: var(--text-color-light);
    text-align: center;
}

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

.page-vip-club__card {
    background: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark); /* Cards on dark background need dark text */
}

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

.page-vip-club__card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

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

.page-vip-club__card-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
}

/* Privileges Section */
.page-vip-club__privileges {
    background: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-vip-club__grid-container--privileges {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Adjust grid for feature cards */
}

.page-vip-club__feature-card {
    background: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-color-dark);
}

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

.page-vip-club__feature-card img {
    width: 100%;
    height: 280px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

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

.page-vip-club__feature-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

/* How to Join Section */
.page-vip-club__how-to-join {
    background: #f9f9f9; /* Light background for contrast */
    color: var(--text-color-dark);
    text-align: center;
}

.page-vip-club__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-vip-club__list-item {
    background: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    padding: 25px;
    position: relative;
    border-left: 5px solid var(--primary-color);
    color: var(--text-color-dark);
}

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

.page-vip-club__list-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

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

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

.page-vip-club__cta-container {
    margin-top: 50px;
    text-align: center;
}

.page-vip-club__cta-button--join {
    padding: 18px 50px;
    font-size: 20px;
}

/* FAQ Section */
.page-vip-club__faq {
    background: var(--secondary-color);
    color: var(--text-color-dark);
}

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

/* 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

/* Vấn đề kiểu dáng */
.page-vip-club__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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 dáng */
.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 click */
  color: var(--primary-color); /* Màu tiêu đề câu hỏi FAQ */
}

/* 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 click */
  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: var(--primary-color);
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng dấu trừ */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-vip-club__hero-title {
        font-size: 40px;
    }
    .page-vip-club__hero-description {
        font-size: 18px;
    }
    .page-vip-club__section-title {
        font-size: 32px;
    }
    .page-vip-club__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-vip-club__grid-container--privileges {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

    .page-vip-club__section {
        padding: 40px 15px;
    }

    .page-vip-club__hero-image img {
        border-radius: 4px;
    }

    .page-vip-club__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-vip-club__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-vip-club__cta-button {
        padding: 12px 30px;
        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__cta-button--join {
        padding: 15px 40px;
        font-size: 18px;
    }

    .page-vip-club__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-vip-club__text-block {
        font-size: 15px;
        text-align: left;
    }

    /* Image responsiveness for all images in content area */
    .page-vip-club img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      min-width: 200px !important; /* Enforce min size for content images */
      min-height: 200px !important; /* Enforce min size for content images */
    }

    .page-vip-club__section,
    .page-vip-club__card,
    .page-vip-club__container,
    .page-vip-club__feature-card,
    .page-vip-club__list-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-vip-club__card img,
    .page-vip-club__feature-card img {
        height: 200px; /* Adjust height for mobile */
    }

    .page-vip-club__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-vip-club__grid-container--privileges {
        grid-template-columns: 1fr;
    }

    .page-vip-club__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* FAQ Mobile Adaptations */
    .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;
    }
}