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

/* Custom CSS Variables for the page using the provided color scheme */
:root {
    --xoc88-bg-color: #08160F;
    --xoc88-card-bg: #11271B;
    --xoc88-text-main: #F2FFF6;
    --xoc88-text-secondary: #A7D9B8;
    --xoc88-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --xoc88-border-color: #2E7A4E;
    --xoc88-glow-color: #57E38D;
    --xoc88-gold-color: #F2C14E;
    --xoc88-divider-color: #1E3A2A;
    --xoc88-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-promotions-vip-program {
    background-color: var(--xoc88-bg-color); /* Dark background */
    color: var(--xoc88-text-main); /* Light text for contrast */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 0; /* body padding-top handles header offset */
}

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

/* Section titles */
.page-promotions-vip-program__section-title {
    font-size: 2.5rem;
    color: var(--xoc88-text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

/* General text blocks */
.page-promotions-vip-program__text-block {
    font-size: 1.1rem;
    color: var(--xoc88-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* Links within text */
.page-promotions-vip-program__text-block a,
.page-promotions-vip-program li a {
    color: var(--xoc88-gold-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions-vip-program__text-block a:hover,
.page-promotions-vip-program li a:hover {
    text-decoration: underline;
}

/* Card base style */
.page-promotions-vip-program__card {
    background-color: var(--xoc88-card-bg);
    border: 1px solid var(--xoc88-border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--xoc88-text-main);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Buttons */
.page-promotions-vip-program__btn-primary,
.page-promotions-vip-program__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions-vip-program__btn-primary {
    background: var(--xoc88-btn-gradient);
    color: var(--xoc88-text-main);
    border: none;
}

.page-promotions-vip-program__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions-vip-program__btn-secondary {
    background-color: transparent;
    color: var(--xoc88-gold-color);
    border: 2px solid var(--xoc88-gold-color);
}

.page-promotions-vip-program__btn-secondary:hover {
    background-color: var(--xoc88-gold-color);
    color: var(--xoc88-bg-color); /* Dark text on gold hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Hero Section */
.page-promotions-vip-program__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-promotions-vip-program__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height to prevent overly tall hero */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-promotions-vip-program__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
    border-radius: 10px;
}

.page-promotions-vip-program__hero-content {
    position: relative; /* Ensure content is above image filter */
    z-index: 2;
    max-width: 900px;
    margin-top: -150px; /* Overlap slightly with image for visual appeal */
    background-color: rgba(17, 39, 27, 0.8); /* Semi-transparent card background */
    padding: 30px;
    border-radius: 10px;
}

.page-promotions-vip-program__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Use clamp for H1 */
    color: var(--xoc88-gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-promotions-vip-program__hero-description {
    font-size: 1.2rem;
    color: var(--xoc88-text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Intro Section */
.page-promotions-vip-program__intro-section {
    padding: 60px 0;
    background-color: var(--xoc88-deep-green); /* Darker background */
}

/* Levels Section */
.page-promotions-vip-program__levels-section {
    padding: 60px 0;
}

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

.page-promotions-vip-program__level-card {
    padding: 30px;
    text-align: left;
}

.page-promotions-vip-program__level-title {
    font-size: 1.8rem;
    color: var(--xoc88-gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-vip-program__level-description {
    color: var(--xoc88-text-secondary);
    margin-bottom: 10px;
}

.page-promotions-vip-program__level-requirement {
    font-size: 0.95rem;
    color: var(--xoc88-text-main);
    font-style: italic;
}

/* Benefits Section */
.page-promotions-vip-program__benefits-section {
    padding: 60px 0;
    background-color: var(--xoc88-deep-green);
}

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

.page-promotions-vip-program__benefit-card {
    padding: 30px;
    text-align: left;
}

.page-promotions-vip-program__benefit-title {
    font-size: 1.7rem;
    color: var(--xoc88-gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-vip-program__benefit-description {
    color: var(--xoc88-text-secondary);
}

/* Join Section */
.page-promotions-vip-program__join-section {
    padding: 60px 0;
}

.page-promotions-vip-program__join-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions-vip-program__join-steps li {
    background-color: var(--xoc88-card-bg);
    border: 1px solid var(--xoc88-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions-vip-program__step-title {
    font-size: 1.6rem;
    color: var(--xoc88-gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions-vip-program__step-description {
    color: var(--xoc88-text-secondary);
}

/* Terms Section */
.page-promotions-vip-program__terms-section {
    padding: 60px 0;
    background-color: var(--xoc88-deep-green);
}

.page-promotions-vip-program__terms-list {
    list-style: disc;
    margin-left: 20px;
    color: var(--xoc88-text-secondary);
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-promotions-vip-program__terms-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* FAQ Section */
.page-promotions-vip-program__faq-section {
    padding: 60px 0;
}

.page-promotions-vip-program__faq-list {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-promotions-vip-program__faq-item {
    margin-bottom: 20px;
    text-align: left;
    overflow: hidden; /* Ensure content is hidden when collapsed */
    background-color: var(--xoc88-card-bg); /* Use card background */
    border: 1px solid var(--xoc88-border-color);
    border-radius: 10px;
}

.page-promotions-vip-program__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--xoc88-text-main);
    background-color: var(--xoc88-card-bg);
    border-bottom: 1px solid var(--xoc88-divider-color);
    list-style: none; /* Hide default marker for summary */
    transition: background-color 0.3s ease;
}

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

.page-promotions-vip-program__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Lighter hover for summary */
}

.page-promotions-vip-program__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions-vip-program__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--xoc88-gold-color);
    transition: transform 0.3s ease;
}

.page-promotions-vip-program__faq-item[open] .page-promotions-vip-program__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-promotions-vip-program__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05rem;
    color: var(--xoc88-text-secondary);
    border-top: 1px solid var(--xoc88-divider-color);
    background-color: rgba(17, 39, 27, 0.5); /* Slightly lighter than card bg */
}

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

/* CTA Section */
.page-promotions-vip-program__cta-section {
    padding: 60px 0;
    background-color: var(--xoc88-deep-green);
    text-align: center;
}

.page-promotions-vip-program__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Image styles */
.page-promotions-vip-program__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px;
    object-fit: cover;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

.page-promotions-vip-program__image-center {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    object-fit: cover;
    max-width: 800px; /* Example max-width for centered images */
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions-vip-program__section-title {
        font-size: 2rem;
    }

    .page-promotions-vip-program__hero-title {
        font-size: clamp(2rem, 4.5vw, 3.2rem);
    }
}

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

    .page-promotions-vip-program__container {
        padding: 0 15px;
    }

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

    .page-promotions-vip-program__hero-section {
        padding: 60px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-promotions-vip-program__hero-content {
        margin-top: -100px; /* Adjust overlap */
        padding: 20px;
    }

    .page-promotions-vip-program__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-promotions-vip-program__hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

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

    .page-promotions-vip-program__btn-primary,
    .page-promotions-vip-program__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions-vip-program__cta-buttons,
    .page-promotions-vip-program__button-group,
    .page-promotions-vip-program__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;
    }

    /* Images responsiveness */
    .page-promotions-vip-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions-vip-program__section,
    .page-promotions-vip-program__card,
    .page-promotions-vip-program__container,
    .page-promotions-vip-program__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions-vip-program__levels-grid,
    .page-promotions-vip-program__benefits-grid,
    .page-promotions-vip-program__join-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-vip-program__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-promotions-vip-program__faq-answer {
        padding: 10px 20px 15px;
        font-size: 1rem;
    }

    .page-promotions-vip-program__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Ensure no filter on images */
.page-promotions-vip-program img {
    filter: none; /* Explicitly remove any potential filter */
}

/* Specific filter for hero image for readability */
.page-promotions-vip-program__hero-image {
    filter: brightness(0.7); /* Only this specific image can have a filter for darkening */
}

/* Content area images CSS size lower limit enforcement */
/* This rule targets any img within the main content area of this specific page */
.page-promotions-vip-program__levels-section img,
.page-promotions-vip-program__benefits-section img,
.page-promotions-vip-program__join-section img,
.page-promotions-vip-program__faq-section img {
  min-width: 200px;
  min-height: 200px;
}