/* style/vip-club.css */

/* Custom Colors from provided palette */
:root {
    --page-vip-club-primary-color: #11A84E; /* Main */
    --page-vip-club-secondary-color: #22C768; /* Auxiliary */
    --page-vip-club-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-vip-club-card-bg: #11271B;
    --page-vip-club-background: #08160F;
    --page-vip-club-text-main: #F2FFF6;
    --page-vip-club-text-secondary: #A7D9B8;
    --page-vip-club-border: #2E7A4E;
    --page-vip-club-glow: #57E38D;
    --page-vip-club-gold: #F2C14E;
    --page-vip-club-divider: #1E3A2A;
    --page-vip-club-deep-green: #0A4B2C;
}

/* Base styles for the VIP Club page */
.page-vip-club {
    background-color: var(--page-vip-club-background); /* Dark background */
    color: var(--page-vip-club-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Ensure all text elements inherit light color for dark background */
.page-vip-club h1,
.page-vip-club h2,
.page-vip-club h3,
.page-vip-club h4,
.page-vip-club h5,
.page-vip-club h6 {
    color: var(--page-vip-club-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-vip-club p,
.page-vip-club li {
    color: var(--page-vip-club-text-secondary); /* Secondary text for general paragraphs */
    margin-bottom: 10px;
}

.page-vip-club a {
    color: var(--page-vip-club-secondary-color);
    text-decoration: none;
}

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

/* Image base styles - ensure no small icons and responsive */
.page-vip-club img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent styling */
    object-fit: cover; /* Ensure images fill their space nicely */
}

/* Container for main content width */
.page-vip-club__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles and descriptions */
.page-vip-club__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Clamp for H1, H2. For H1, specific rules apply. This is for H2. */
    text-align: center;
    margin-bottom: 20px;
    color: var(--page-vip-club-text-main);
    font-weight: 700;
}

.page-vip-club__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--page-vip-club-text-secondary);
    font-size: 18px;
}

/* Hero Section */
.page-vip-club__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure content does not overflow */
    box-sizing: border-box;
}

.page-vip-club__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 600px; /* Limit height for hero image */
    object-fit: cover;
    border-radius: 0; /* Hero image usually full width, no border-radius */
}

.page-vip-club__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly over image for visual appeal, but not *on* the image */
    background: var(--page-vip-club-background); /* Provide a clear background for text */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1; /* Ensure content is above image if any overlap */
}

.page-vip-club__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 specific clamp, not too large */
    margin-bottom: 15px;
    color: var(--page-vip-club-text-main);
    font-weight: 800;
}

.page-vip-club__hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: var(--page-vip-club-text-secondary);
}

.page-vip-club__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-vip-club__btn-primary,
.page-vip-club__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    font-size: 16px;
}

.page-vip-club__btn-primary {
    background: var(--page-vip-club-button-gradient);
    color: #ffffff; /* White text on dark button */
    border: 2px solid transparent;
}

.page-vip-club__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-vip-club__btn-secondary {
    background: transparent;
    color: var(--page-vip-club-secondary-color); /* Green text on transparent background */
    border: 2px solid var(--page-vip-club-secondary-color);
}

.page-vip-club__btn-secondary:hover {
    background: var(--page-vip-club-secondary-color);
    color: var(--page-vip-club-background); /* Dark text on green background */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-vip-club__btn-small {
    padding: 10px 20px;
    min-width: 120px;
    font-size: 14px;
}

/* Dark section for contrast */
.page-vip-club__dark-section {
    background-color: var(--page-vip-club-deep-green); /* A slightly different dark green for sections */
    padding: 60px 0;
}

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

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

.page-vip-club__card {
    background-color: var(--page-vip-club-card-bg); /* Card background */
    border-radius: 12px;
    padding: 30px;
    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;
    color: var(--page-vip-club-text-secondary); /* Default text for cards */
    border: 1px solid var(--page-vip-club-border);
}

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

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

.page-vip-club__card-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--page-vip-club-text-main); /* Main text for titles */
    font-weight: 600;
}

.page-vip-club__card-text {
    font-size: 16px;
    flex-grow: 1; /* Make text fill available space */
}

/* Tier System Section */
.page-vip-club__tier-system-section {
    padding: 60px 0;
    background-color: var(--page-vip-club-background);
}

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

.page-vip-club__tier-card {
    padding: 30px;
    background-color: var(--page-vip-club-card-bg);
    border: 1px solid var(--page-vip-club-border);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-vip-club__tier-title {
    font-size: 24px;
    color: var(--page-vip-club-gold); /* Gold color for tier titles */
    margin-bottom: 10px;
    font-weight: 700;
}

.page-vip-club__tier-description {
    font-size: 15px;
    color: var(--page-vip-club-text-secondary);
    margin-bottom: 20px;
    min-height: 80px; /* Ensure consistent height */
}

.page-vip-club__tier-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    color: var(--page-vip-club-text-secondary);
}

.page-vip-club__tier-features li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
}

.page-vip-club__tier-features li::before {
    content: '✔';
    color: var(--page-vip-club-primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

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

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

.page-vip-club__step-card {
    padding: 30px;
    background-color: var(--page-vip-club-card-bg);
    border: 1px solid var(--page-vip-club-border);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-vip-club__step-image {
    width: 150px; /* Adjust size for process images */
    height: 150px;
    object-fit: contain; /* Contain to show full image */
    margin-bottom: 20px;
    border-radius: 50%; /* Make them round */
    background-color: var(--page-vip-club-deep-green); /* Light background for round icons */
    padding: 10px;
}

.page-vip-club__step-title {
    font-size: 22px;
    color: var(--page-vip-club-text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-vip-club__step-text {
    font-size: 16px;
    color: var(--page-vip-club-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-vip-club__faq-section {
    padding: 60px 0;
    background-color: var(--page-vip-club-background);
}

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

.page-vip-club__faq-item {
    background-color: var(--page-vip-club-card-bg);
    border: 1px solid var(--page-vip-club-border);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-vip-club-text-secondary); /* Text for FAQ items */
}

.page-vip-club__faq-item summary {
    list-style: none; /* Remove default marker */
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--page-vip-club-text-main); /* Main text for question */
}

.page-vip-club__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-vip-club__faq-qtext {
    flex-grow: 1;
    color: var(--page-vip-club-text-main);
}

.page-vip-club__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-vip-club-primary-color); /* Plus/minus icon color */
}

.page-vip-club__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--page-vip-club-text-secondary);
}

.page-vip-club__faq-answer p {
    margin-bottom: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-vip-club__hero-content {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .page-vip-club__container {
        padding: 0 15px;
    }

    .page-vip-club__hero-section {
        padding-bottom: 40px;
    }

    .page-vip-club__hero-image {
        max-height: 400px;
    }

    .page-vip-club__hero-content {
        padding: 30px 15px;
        margin-top: -40px;
    }

    .page-vip-club__main-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .page-vip-club__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-vip-club__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-vip-club__btn-primary,
    .page-vip-club__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-vip-club__section-title {
        font-size: clamp(24px, 7vw, 36px);
    }

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

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

    .page-vip-club__card {
        padding: 25px;
    }

    .page-vip-club__card-image {
        height: 180px;
    }

    .page-vip-club__card-title {
        font-size: 20px;
    }

    .page-vip-club__tier-description {
        min-height: auto; /* Remove fixed height for mobile */
    }

    .page-vip-club__step-image {
        width: 120px;
        height: 120px;
    }

    .page-vip-club__faq-item summary {
        font-size: 16px;
        padding: 15px 20px;
    }

    .page-vip-club__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 15px;
    }

    /* Mobile specific image and container rules */
    .page-vip-club img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images fill containers */
        height: auto !important;
        display: block !important;
    }
    
    .page-vip-club__section,
    .page-vip-club__card,
    .page-vip-club__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure video sections are padded correctly, not with header-offset */
    .page-vip-club__video-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }

    /* Button specific mobile adaptations */
    .page-vip-club__cta-buttons,
    .page-vip-club__button-group,
    .page-vip-club__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-vip-club__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* Ensure desktop video container width */
.page-vip-club__video-container {
    width: 100%; /* Important for flex items with max-width */
}