/* style/vip-privileges.css */

/* Custom Colors */
:root {
    --f8best-main-green: #11A84E;
    --f8best-accent-green: #22C768;
    --f8best-button-gradient-start: #2AD16F;
    --f8best-button-gradient-end: #13994A;
    --f8best-card-bg: #11271B;
    --f8best-background: #08160F;
    --f8best-text-main: #F2FFF6;
    --f8best-text-secondary: #A7D9B8;
    --f8best-border: #2E7A4E;
    --f8best-glow: #57E38D;
    --f8best-gold: #F2C14E;
    --f8best-divider: #1E3A2A;
    --f8best-deep-green: #0A4B2C;
}

/* Base Styles for the page content */
.page-vip-privileges {
    background-color: var(--f8best-background);
    color: var(--f8best-text-main); /* Default text color for the page */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-vip-privileges__dark-section {
    background-color: var(--f8best-deep-green);
    color: var(--f8best-text-main);
}

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

/* Typography */
.page-vip-privileges__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size with clamp */
    font-weight: 700;
    color: var(--f8best-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.05em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-vip-privileges__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--f8best-text-main);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.3); /* Glow effect */
}

.page-vip-privileges__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--f8best-accent-green);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-vip-privileges__card-title,
.page-vip-privileges__step-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    color: var(--f8best-text-main);
    margin-bottom: 10px;
}

.page-vip-privileges__intro-text,
.page-vip-privileges__paragraph,
.page-vip-privileges__card-description,
.page-vip-privileges__step-description {
    font-size: 1rem;
    color: var(--f8best-text-secondary);
    margin-bottom: 20px;
}

/* Hero Section */
.page-vip-privileges__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: hidden;
    min-height: 600px;
    text-align: center;
    background-color: var(--f8best-deep-green); /* Fallback background */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-vip-privileges__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-vip-privileges__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: none; /* Ensure no filter */
}

.page-vip-privileges__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* CTA Buttons */
.page-vip-privileges__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-vip-privileges__btn-primary,
.page-vip-privileges__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-vip-privileges__btn-primary {
    background: linear-gradient(180deg, var(--f8best-button-gradient-start) 0%, var(--f8best-button-gradient-end) 100%);
    color: var(--f8best-text-main);
    border: 2px solid var(--f8best-button-gradient-start);
}

.page-vip-privileges__btn-primary:hover {
    background: linear-gradient(180deg, var(--f8best-button-gradient-end) 0%, var(--f8best-button-gradient-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-vip-privileges__btn-secondary {
    background-color: transparent;
    color: var(--f8best-accent-green);
    border: 2px solid var(--f8best-accent-green);
}

.page-vip-privileges__btn-secondary:hover {
    background-color: var(--f8best-accent-green);
    color: var(--f8best-text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Features Grid */
.page-vip-privileges__features-grid,
.page-vip-privileges__promo-cards-grid,
.page-vip-privileges__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-vip-privileges__feature-card,
.page-vip-privileges__promo-card,
.page-vip-privileges__step-card {
    background-color: var(--f8best-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--f8best-border);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-vip-privileges__feature-card:hover,
.page-vip-privileges__promo-card:hover,
.page-vip-privileges__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

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

/* Image Content Block (for VIP Tiers section) */
.page-vip-privileges__image-content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-vip-privileges__content-image {
    flex: 1;
    min-width: 400px; /* Ensure image is large enough */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    filter: none; /* Ensure no filter */
    min-height: 200px; /* Min size requirement */
}

.page-vip-privileges__text-block {
    flex: 1;
}

/* CTA Section */
.page-vip-privileges__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--f8best-deep-green);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-vip-privileges__cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 40px; /* Space between content and image */
}

.page-vip-privileges__cta-image-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align image to bottom */
}

.page-vip-privileges__cta-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.2; /* Subtle overlay */
    filter: none; /* Ensure no filter */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}


/* FAQ Section */
.page-vip-privileges__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-vip-privileges__faq-item {
    background-color: var(--f8best-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--f8best-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-vip-privileges__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--f8best-text-main);
    cursor: pointer;
    background-color: var(--f8best-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--f8best-divider);
    list-style: none; /* Remove default marker for details/summary */
}

.page-vip-privileges__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-vip-privileges__faq-qtext {
    flex-grow: 1;
}

.page-vip-privileges__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--f8best-gold);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-vip-privileges__faq-item[open] .page-vip-privileges__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-vip-privileges__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--f8best-text-secondary);
    background-color: var(--f8best-card-bg);
    border-top: 1px solid var(--f8best-divider); /* Separator for answer */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-vip-privileges__image-content-block {
        flex-direction: column;
        text-align: center;
    }

    .page-vip-privileges__content-image {
        min-width: 100%;
        max-width: 800px; /* Constrain max width for larger tablets */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-vip-privileges {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-vip-privileges__hero-section {
        padding: 60px 15px;
    }

    .page-vip-privileges__hero-content {
        padding: 20px;
    }

    .page-vip-privileges__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-vip-privileges__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-vip-privileges__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
        max-width: 100%; /* Ensure container respects max-width */
        width: 100%;
        box-sizing: border-box;
    }

    .page-vip-privileges__btn-primary,
    .page-vip-privileges__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-vip-privileges__section,
.page-vip-privileges__card,
.page-vip-privileges__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-vip-privileges__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Images responsiveness */
    .page-vip-privileges img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none; /* Ensure no filter */
    }
    .page-vip-privileges__hero-image-wrapper,
    .page-vip-privileges__cta-image-wrapper,
    .page-vip-privileges__image-content-block,
    .page-vip-privileges__promo-card,
    .page-vip-privileges__step-card,
    .page-vip-privileges__feature-card,
    .page-vip-privileges__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
    
    .page-vip-privileges__content-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-vip-privileges__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
        height: auto !important; /* Allow height to adjust */
    }
}