/* style/promotions-vip-program.css */

/* Base Styles for .page-promotions-vip-program */
.page-promotions-vip-program {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds, ensuring WCAG AA contrast */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
    overflow-x: hidden; /* Prevent horizontal scroll on wider elements */
}

/* Fixed Header Offset - applied to the first main content section to prevent content being hidden by a fixed header */
.page-promotions-vip-program__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF; /* High contrast white text on dark hero overlay */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header, uses shared variable */
    overflow: hidden; /* Ensure no overflow of internal elements */
    box-sizing: border-box;
}

.page-promotions-vip-program__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* No CSS filter allowed to change image colors */
}

.page-promotions-vip-program__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability, enhancing contrast */
    z-index: 2;
}

.page-promotions-vip-program__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-promotions-vip-program__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF; /* White text for strong contrast on dark background */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions-vip-program__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #FFFFFF; /* White text for strong contrast on dark background */
}

.page-promotions-vip-program__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* General Section Styling */
.page-promotions-vip-program__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow: hidden; /* Ensure content within container doesn't overflow horizontally */
}

.page-promotions-vip-program__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles, ensuring contrast on light backgrounds */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-promotions-vip-program__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333; /* Default text color for body content, ensuring contrast */
}

/* Specific Section Backgrounds for Contrast */
.page-promotions-vip-program__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-promotions-vip-program__dark-bg {
    background-color: #017439; /* Brand primary color as background */
    color: #FFFFFF; /* White text for high contrast on dark background */
}

.page-promotions-vip-program__dark-bg .page-promotions-vip-program__section-title {
    color: #FFFFFF; /* White title on dark background for contrast */
}

.page-promotions-vip-program__dark-bg .page-promotions-vip-program__section-title::after {
    background-color: #FFFFFF; /* White underline on dark background */
}

.page-promotions-vip-program__dark-bg .page-promotions-vip-program__text-block {
    color: #f0f0f0; /* Slightly off-white for paragraphs on dark background */
}

/* Image Wrapper for responsive images, ensuring no small icons and proper sizing */
.page-promotions-vip-program__image-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions-vip-program__responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    /* No CSS filter allowed to change image colors */
}

/* VIP Levels Section - using CSS Grid for flexible layout */
.page-promotions-vip-program__level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-vip-program__card {
    background-color: #FFFFFF; /* White background for card, ensuring text contrast */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Default text color on white card for contrast */
}

.page-promotions-vip-program__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions-vip-program__card-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for card titles, good contrast on white */
    margin-bottom: 15px;
}

.page-promotions-vip-program__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-promotions-vip-program__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-promotions-vip-program__card-list li {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #444444;
    position: relative;
    padding-left: 25px;
}

.page-promotions-vip-program__card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

/* Benefits Section */
.page-promotions-vip-program__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions-vip-program__benefits-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-promotions-vip-program__benefits-item:hover {
    transform: translateY(-5px);
}

.page-promotions-vip-program__benefits-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-promotions-vip-program__benefits-description {
    font-size: 1em;
    color: #555555;
}

/* How to Join Section */
.page-promotions-vip-program__how-to-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    gap: 25px;
}

.page-promotions-vip-program__how-to-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark section */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #FFFFFF; /* White text for contrast */
}

.page-promotions-vip-program__how-to-title {
    font-size: 1.6em;
    color: #FFFF00; /* Yellow for titles on dark background, as per 'register and login font' */
    margin-bottom: 10px;
}

.page-promotions-vip-program__how-to-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions-vip-program__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens for multiple buttons */
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Button Styles - using specified colors for Register/Login */
.page-promotions-vip-program__btn-primary,
.page-promotions-vip-program__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text to wrap within button */
    word-wrap: break-word; /* Break long words to prevent overflow */
}

.page-promotions-vip-program__btn-primary {
    background-color: #C30808; /* Register/Login button background color */
    color: #FFFF00; /* Register/Login font color, high contrast with red */
    border: 2px solid #C30808;
}

.page-promotions-vip-program__btn-primary:hover {
    background-color: #d82a2a;
    border-color: #d82a2a;
    transform: translateY(-3px);
}

.page-promotions-vip-program__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand color for secondary button text, high contrast with white */
    border: 2px solid #017439;
}

.page-promotions-vip-program__btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #017439;
    transform: translateY(-3px);
}

.page-promotions-vip-program__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* FAQ Section - implementing expand/collapse functionality */
.page-promotions-vip-program__faq-list {
    margin-top: 30px;
}

.page-promotions-vip-program__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Default text color for FAQ item */
}

.page-promotions-vip-program__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF; /* White background for question */
    transition: background-color 0.3s ease;
}

.page-promotions-vip-program__faq-question:hover {
    background-color: #f0f0f0;
}

.page-promotions-vip-program__faq-title {
    font-size: 1.2em;
    color: #017439; /* Brand color for question title */
    margin: 0;
}

.page-promotions-vip-program__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-promotions-vip-program__faq-item.active .page-promotions-vip-program__faq-toggle {
    transform: rotate(45deg); /* Changes '+' to 'x' or similar, indicating open state */
}

.page-promotions-vip-program__faq-answer {
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fefefe;
}

/* IMPORTANT: Ensure FAQ answer expands with sufficient max-height and padding */
.page-promotions-vip-program__faq-item.active .page-promotions-vip-program__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value to accommodate any content */
    padding: 15px 25px 25px 25px;
}

.page-promotions-vip-program__faq-answer p {
    margin: 0;
    color: #555555;
}

/* Final CTA Section */
.page-promotions-vip-program__final-cta-section {
    padding: 80px 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-vip-program__hero-title {
        font-size: 2.8em;
    }
    .page-promotions-vip-program__hero-description {
        font-size: 1.1em;
    }
    .page-promotions-vip-program__section-title {
        font-size: 2em;
    }
    .page-promotions-vip-program__card-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* Mobile Content Area Overflow Prevention - ensuring no horizontal scroll */
    .page-promotions-vip-program {
        overflow-x: hidden !important;
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions-vip-program__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset, uses shared variable */
    }

    .page-promotions-vip-program__hero-title {
        font-size: 2em;
    }
    .page-promotions-vip-program__hero-description {
        font-size: 1em;
    }
    .page-promotions-vip-program__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-promotions-vip-program__container {
        padding: 20px 15px; /* Add padding for mobile to prevent content touching edges */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions-vip-program__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions-vip-program__text-block {
        font-size: 1em;
    }

    /* Mobile Image Responsive Adaption - ensuring images do not overflow */
    .page-promotions-vip-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions-vip-program__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0; /* Simpler look on mobile */
    }
    .page-promotions-vip-program__responsive-image {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Mobile Button Responsive Adaption - ensuring buttons do not overflow */
    .page-promotions-vip-program__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions-vip-program__btn-primary,
    .page-promotions-vip-program__btn-secondary,
    .page-promotions-vip-program a[class*="button"],
    .page-promotions-vip-program a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text to wrap */
        word-wrap: break-word !important; /* Break long words */
        padding-left: 15px; /* Ensure internal padding */
        padding-right: 15px; /* Ensure internal padding */
    }

    .page-promotions-vip-program__level-cards,
    .page-promotions-vip-program__benefits-list,
    .page-promotions-vip-program__how-to-list {
        grid-template-columns: 1fr; /* Single column layout for cards/lists on mobile */
        gap: 20px;
    }

    .page-promotions-vip-program__card,
    .page-promotions-vip-program__benefits-item,
    .page-promotions-vip-program__how-to-item {
        padding: 20px;
    }

    .page-promotions-vip-program__faq-question {
        padding: 15px 20px;
    }
    .page-promotions-vip-program__faq-title {
        font-size: 1.1em;
    }
    .page-promotions-vip-program__faq-answer {
        padding: 0 20px;
    }
    .page-promotions-vip-program__faq-item.active .page-promotions-vip-program__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}