/* style/promotions.css */

/* Custom Properties for Colors */
:root {
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --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 promotions page */
.page-promotions {
    background-color: var(--color-background); /* Dark background from custom colors */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: clamp(2em, 5vw, 2.8em);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-text-secondary);
}

.page-promotions__sub-title {
    font-size: clamp(1.5em, 4vw, 2em);
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.page-promotions__paragraph {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-promotions__list,
.page-promotions__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.page-promotions__list li,
.page-promotions__ordered-list li {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles padding-top, this is decorative */
    overflow: hidden;
    background-color: var(--color-deep-green);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-promotions__hero-content {
    text-align: center;
    padding: 40px 20px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly over the image for visual flow, not overlap */
    position: relative; /* Ensure z-index works if needed */
    z-index: 10;
    background-color: transparent; /* Ensure no opaque background */
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 6vw, 3.5em); /* H1 font size clamp */
    font-weight: 900;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

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

.page-promotions__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background: var(--color-background);
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-border);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-promotions__btn-tertiary {
    background: var(--color-deep-green);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.page-promotions__btn-tertiary:hover {
    background-color: var(--color-border);
}

/* Promotions List Section */
.page-promotions__promotions-list {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for this section */
    color: #333333; /* Dark text for light background */
}

.page-promotions__promotions-list .page-promotions__section-title,
.page-promotions__promotions-list .page-promotions__section-description,
.page-promotions__promotions-list .page-promotions__sub-title,
.page-promotions__promotions-list .page-promotions__paragraph,
.page-promotions__promotions-list .page-promotions__list li,
.page-promotions__promotions-list .page-promotions__ordered-list li,
.page-promotions__promotions-list .page-promotions__card-title,
.page-promotions__promotions-list .page-promotions__card-text {
    color: #333333; /* Ensure dark text on light background */
}

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

.page-promotions__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions__promotion-card,
.page-promotions__benefit-card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    color: var(--color-text-main); /* Light text on dark card */
}

.page-promotions__promotion-card .page-promotions__card-image,
.page-promotions__benefit-card .page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Ensure minimum size */
}

.page-promotions__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 15px 10px;
    color: var(--color-text-main);
}

.page-promotions__card-text {
    font-size: 0.95em;
    margin: 0 15px 20px;
    color: var(--color-text-secondary);
}

/* Featured Promotions Section */
.page-promotions__featured-promos {
    padding: 60px 0;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-promotions__promo-category {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__category-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-gold);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-description,
.page-promotions__how-to-claim .page-promotions__sub-title,
.page-promotions__how-to-claim .page-promotions__paragraph,
.page-promotions__how-to-claim .page-promotions__list li,
.page-promotions__how-to-claim .page-promotions__ordered-list li {
    color: #333333; /* Ensure dark text on light background */
}

.page-promotions__step-by-step {
    margin-top: 40px;
}

.page-promotions__ordered-list {
    list-style-type: decimal;
    margin-left: 25px;
}

.page-promotions__ordered-list strong {
    color: var(--color-deep-green);
}

/* Why Choose Us Section */
.page-promotions__why-choose-us {
    padding: 60px 0;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-promotions__benefit-card {
    padding: 30px 20px;
}

.page-promotions__benefit-card .page-promotions__card-title {
    color: var(--color-gold);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-promotions__faq-section .page-promotions__section-title {
    color: #333333;
}

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

.page-promotions__faq-item {
    background-color: var(--color-card-bg); /* Dark card background */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main);
}

.page-promotions__faq-item[open] {
    background-color: var(--color-deep-green);
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--color-deep-green);
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
}

.page-promotions__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    background-color: var(--color-deep-green);
}

/* Call to Action Section */
.page-promotions__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    
    .page-promotions__hero-content {
        margin-top: -40px; /* Adjust for smaller screens */
        padding: 30px 15px 15px;
    }

    .page-promotions__main-title {
        font-size: 2.2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        padding: 0 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-tertiary {
        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__container {
        padding: 0 15px;
    }

    .page-promotions__section-title {
        font-size: 2em;
    }

    .page-promotions__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-promotions__sub-title {
        font-size: 1.3em;
    }

    .page-promotions__grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__promotions-list,
    .page-promotions__featured-promos,
    .page-promotions__how-to-claim,
    .page-promotions__why-choose-us,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Video section top padding */
    .page-promotions__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
}