/* style/promotions.css */

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

/* Base styles for the page content wrapper, assuming body has dark background from shared.css */
.page-promotions {
    background-color: var(--color-background); /* Override if shared.css body background is different, but for safety, ensure this is dark */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__dark-section {
    background-color: var(--color-deep-green); /* A darker shade for contrast sections */
    color: var(--color-text-main);
}

.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--color-gold); /* Use gold for prominent titles */
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-promotions__paragraph {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-deep-green); /* Background for the hero section */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-promotions__hero-content {
    padding: 40px 20px 60px;
    max-width: 900px;
    text-align: center;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-promotions__intro-text {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff; /* White text on dark gradient */
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start); /* Green text on dark background */
    border: 2px solid var(--color-button-gradient-start);
    margin-left: 15px; /* Spacing for multiple buttons */
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Intro Section */
.page-promotions__general-intro .page-promotions__paragraph {
    color: var(--color-text-secondary);
}

.page-promotions__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Main Offers Grid */
.page-promotions__offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__offer-card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have consistent height */
    border: 1px solid var(--color-border);
}

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

.page-promotions__card-title {
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__card-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow */
}

.page-promotions__offer-card .page-promotions__cta-button {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: auto; /* Push button to the bottom */
}

/* VIP Program Section */
.page-promotions__vip-program {
    padding: 80px 0;
}

.page-promotions__vip-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 40px;
}

.page-promotions__vip-text,
.page-promotions__vip-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-promotions__vip-image-wrapper img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    height: auto;
    display: block;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    text-align: left;
    background-color: var(--color-background);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__list-item {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-promotions__list-item::before {
    content: '•';
    color: var(--color-gold);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* How to Claim Section */
.page-promotions__how-to-claim .page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-promotions__how-to-claim .page-promotions__list-item {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.page-promotions__how-to-claim .page-promotions__list-item strong {
    color: var(--color-text-main);
}

.page-promotions__how-to-claim .page-promotions__list-item::before {
    counter-increment: step-counter;
    content: counter(step-counter) ".";
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -5px;
}

/* FAQ Section */
.page-promotions__faq {
    text-align: left;
    background-color: var(--color-card-bg); /* Darker background for FAQ */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-promotions__faq-item {
    background-color: var(--color-deep-green); /* Slightly lighter background for each FAQ item */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question:hover {
    background-color: var(--color-border);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--color-gold);
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-height: 0; /* Hidden by default for JS toggle */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

/* Final CTA Section */
.page-promotions__final-cta {
    padding-bottom: 80px;
}

.page-promotions__cta-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__final-cta .page-promotions__section-title {
    margin-bottom: 25px;
}

.page-promotions__final-cta .page-promotions__paragraph {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-promotions__cta-image {
    margin-top: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}


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

    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-promotions__intro-text,
    .page-promotions__paragraph {
        font-size: 1rem;
    }

    .page-promotions__offer-card {
        min-height: 400px;
    }
}

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

    .page-promotions__container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    .page-promotions__section {
        padding: 40px 0;
    }

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

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

    .page-promotions__hero-content {
        padding: 30px 15px 40px;
    }

    .page-promotions__cta-button {
        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;
        margin-bottom: 15px; /* Add space between stacked buttons */
        margin-left: 0 !important; /* Reset margin for secondary button if it was there */
    }

    .page-promotions__btn-secondary {
        margin-left: 0;
    }

    .page-promotions__offer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__offer-card {
        min-height: auto; /* Allow height to adjust */
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 180px;
    }

    .page-promotions__card-title {
        font-size: 1.4rem;
    }

    .page-promotions__vip-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-promotions__vip-text,
    .page-promotions__vip-image-wrapper {
        min-width: unset;
    }

    .page-promotions__list-item {
        font-size: 1rem;
        padding-left: 25px;
    }

    .page-promotions__list-item::before {
        font-size: 1.3rem;
        top: -2px;
    }

    .page-promotions__how-to-claim .page-promotions__list-item {
        padding-left: 35px;
    }

    .page-promotions__how-to-claim .page-promotions__list-item::before {
        font-size: 1.3rem;
        top: -2px;
    }

    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsive adaptation */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that might hold images or content */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__vip-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow for images/content */
    }

    /* Specific padding for sections/containers to prevent content sticking to edges */
    .page-promotions__section:not(.page-promotions__hero-section) .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons container for multiple buttons (if any) */
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Allow buttons to wrap */
        gap: 10px; /* Space between wrapped buttons */
        display: flex; /* Ensure flex context for wrap */
        flex-direction: column; /* Stack buttons vertically by default */
    }

    /* Video section top padding for mobile, ensuring it's small */
    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Ensure images do not have filter effects */
.page-promotions img {
    filter: none !important;
}

/* Desktop __video-container width */
.page-promotions__video-container {
    width: 100%; /* Explicitly set width for desktop */
    max-width: 1200px; /* Example max-width */
    margin: 0 auto;
    box-sizing: border-box;
}