/* style/vip-club.css */

/* Variables from shared.css: --primary-color (#002060), --secondary-color (#FFD700) */
/* Body background is #f4f4f4 (light), so default text color should be dark (#333333) */

.page-vip-club {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #f4f4f4; /* Explicitly setting for clarity, though shared.css might handle body */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* --- 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;
    background-color: var(--primary-color); /* Dark background for hero */
    color: #ffffff; /* Light text on dark background */
}

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

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

.page-vip-club__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Gold color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-vip-club__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-vip-club__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color); /* Gold button */
    color: var(--primary-color); /* Dark text on gold button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-vip-club__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styles --- */
.page-vip-club__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-vip-club__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-vip-club__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-vip-club__section-title--light {
    color: #ffffff;
}
.page-vip-club__section-title--light::after {
    background-color: #ffffff;
}

.page-vip-club__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-vip-club__text-block--light {
    color: #f0f0f0;
}

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

/* --- Privileges Section --- */
.page-vip-club__privileges-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: #ffffff;
}

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

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

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

.page-vip-club__card-image {
    width: 100%;
    max-width: 300px; /* Example max-width for images within cards */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-vip-club__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-vip-club__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

/* --- 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(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-vip-club__step-card .page-vip-club__card-title {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 20px;
}

.page-vip-club__step-card .page-vip-club__card-text {
    color: #555555;
    margin-bottom: 30px;
}

.page-vip-club__btn-primary,
.page-vip-club__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    margin-top: auto; /* Push buttons to bottom if cards have varying content */
}

.page-vip-club__btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.page-vip-club__btn-primary:hover {
    background: #001a4d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-vip-club__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-vip-club__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- VIP Levels Section --- */
.page-vip-club__levels-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: #ffffff;
}

.page-vip-club__levels-table {
    margin-top: 40px;
    overflow-x: auto; /* Enable horizontal scroll for table on small screens */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-vip-club__levels-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table doesn't get too narrow */
}

.page-vip-club__levels-table th,
.page-vip-club__levels-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
}

.page-vip-club__levels-table th {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1em;
}

.page-vip-club__levels-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-vip-club__levels-table tr:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.page-vip-club__support-contact {
    margin-top: 30px;
    text-align: center;
    font-size: 1.1em;
}

.page-vip-club__support-contact p {
    margin-bottom: 15px;
}

.page-vip-club__support-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-vip-club__support-contact li {
    margin-bottom: 10px;
}

.page-vip-club__support-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-vip-club__support-contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* --- FAQ Section --- */
.page-vip-club__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Slightly different light background */
}

.page-vip-club__faq-list {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-vip-club__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px 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; /* Use 20px to match question padding */
    opacity: 0;
    color: #555555;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.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; /* Use 20px to match question padding */
    opacity: 1;
    background: #ffffff; /* White background for answer */
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #e0e0e0;
}

/* Vấn đề phong cách */
.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: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--primary-color);
}

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

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

/* Vấn đề tiêu đề phong cách */
.page-vip-club__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
    color: var(--primary-color);
}

/* Chuyển đổi biểu tượng */
.page-vip-club__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color); /* Gold color for toggle */
    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); /* Màu tối hơn khi hoạt động */
    transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-vip-club__hero-title {
        font-size: 2.8em;
    }
    .page-vip-club__hero-description {
        font-size: 1.2em;
    }
    .page-vip-club__section-title {
        font-size: 2em;
    }
    .page-vip-club__text-block {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-vip-club {
        padding-top: var(--header-offset, 120px) !important; /* Áp dụng lại cho thiết bị di động */
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-vip-club__hero-section {
        padding: 40px 15px;
    }
    .page-vip-club__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-vip-club__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-vip-club__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section Styles */
    .page-vip-club__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-vip-club__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-vip-club__text-block {
        font-size: 0.95em;
    }

    /* Privileges Grid */
    .page-vip-club__privileges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-vip-club__privilege-card {
        padding: 20px;
    }
    .page-vip-club__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-vip-club__card-title {
        font-size: 1.3em;
    }

    /* Steps Grid */
    .page-vip-club__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-vip-club__step-card {
        padding: 25px;
    }
    .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;
    }

    /* Levels Table */
    .page-vip-club__levels-table {
        margin-top: 30px;
    }
    .page-vip-club__levels-table th,
    .page-vip-club__levels-table td {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    /* Support Section */
    .page-vip-club__support-contact {
        font-size: 1em;
    }

    /* FAQ Section */
    .page-vip-club__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-vip-club__faq-question h3 {
        font-size: 1em;
        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;
    }

    /* Image responsiveness */
    .page-vip-club img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Đảm bảo tất cả các phần nội dung và thẻ có box-sizing phù hợp cho thiết bị di động */
.page-vip-club__intro-section,
.page-vip-club__privileges-section,
.page-vip-club__how-to-join-section,
.page-vip-club__levels-section,
.page-vip-club__support-section,
.page-vip-club__faq-section,
.page-vip-club__privilege-card,
.page-vip-club__step-card {
    box-sizing: border-box;
    width: 100%;
}