/* style/promotions.css */

/* Custom Colors */
:root {
    --page-promotions-primary-color: #11A84E;
    --page-promotions-secondary-color: #22C768;
    --page-promotions-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-promotions-card-bg: #11271B;
    --page-promotions-bg: #08160F; /* Main page background */
    --page-promotions-text-main: #F2FFF6;
    --page-promotions-text-secondary: #A7D9B8;
    --page-promotions-border-color: #2E7A4E;
    --page-promotions-glow-color: #57E38D;
    --page-promotions-gold-color: #F2C14E;
    --page-promotions-divider-color: #1E3A2A;
    --page-promotions-deep-green: #0A4B2C;
    --page-promotions-dark-text-on-light-bg: #333333;
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--page-promotions-text-main); /* Default text color for the page */
    background-color: var(--page-promotions-bg); /* Page background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-promotions-deep-green); /* A darker background for hero section */
    overflow: hidden; /* Prevent image overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image to make text below stand out */
}

.page-promotions__hero-content {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the image for better flow */
    position: relative;
    z-index: 1;
    color: var(--page-promotions-text-main);
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: var(--page-promotions-gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.15rem;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks within button */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button does not overflow */
}

.page-promotions__btn-primary {
    background: var(--page-promotions-button-gradient);
    color: var(--page-promotions-text-main); /* White text on dark green gradient */
    border: 2px solid var(--page-promotions-primary-color);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-promotions-primary-color);
    border: 2px solid var(--page-promotions-primary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-primary-color);
    color: var(--page-promotions-text-main);
    transform: translateY(-2px);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    background: var(--page-promotions-button-gradient);
    color: var(--page-promotions-text-main);
    border: 1px solid var(--page-promotions-primary-color);
}

.page-promotions__btn-small:hover {
    filter: brightness(1.1);
}

/* Section Styling */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-promotions-gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__section-title--white {
    color: var(--page-promotions-text-main);
}

.page-promotions__section-description {
    font-size: 1.1rem;
    color: var(--page-promotions-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__dark-section,
.page-promotions__dark-bg {
    background-color: var(--page-promotions-card-bg); /* Use card background for dark sections */
    color: var(--page-promotions-text-main);
    padding: 60px 0;
}

.page-promotions__light-bg {
    background-color: #ffffff; /* Explicit white for contrast */
    color: var(--page-promotions-dark-text-on-light-bg); /* Dark text on white background */
}

/* Current Promotions Grid */
.page-promotions__current-promotions {
    padding: 60px 0;
}

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

.page-promotions__promotion-card {
    background-color: #11271B; /* Dark card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--page-promotions-text-main); /* Light text on dark card */
    border: 1px solid var(--page-promotions-border-color);
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__promotion-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no CSS filters are applied */
}

.page-promotions__card-title {
    font-size: 1.4rem;
    margin: 20px 20px 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__card-title a {
    color: var(--page-promotions-gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: var(--page-promotions-glow-color);
}

.page-promotions__card-text {
    font-size: 0.95rem;
    color: var(--page-promotions-text-secondary);
    padding: 0 20px;
    flex-grow: 1; /* Make text take available space */
}

.page-promotions__promotion-card .page-promotions__btn-small {
    margin: 20px;
    align-self: flex-start; /* Align button to the start */
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 60px 0;
    background-color: var(--page-promotions-bg); /* Use main page background */
}

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

.page-promotions__step-item {
    background-color: var(--page-promotions-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-promotions-border-color);
    color: var(--page-promotions-text-main);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background: var(--page-promotions-button-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--page-promotions-text-main);
    margin: 0 auto 20px;
    box-shadow: 0 0 15px var(--page-promotions-glow-color);
}

.page-promotions__step-title {
    font-size: 1.5rem;
    color: var(--page-promotions-gold-color);
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 0.95rem;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Benefits Section */
.page-promotions__benefits-section {
    padding: 60px 0;
}

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

.page-promotions__benefit-item {
    background-color: var(--page-promotions-deep-green);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-promotions-border-color);
    color: var(--page-promotions-text-main);
}

.page-promotions__benefit-icon {
    width: 100px; /* Display size 100x100px */
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: none; /* Ensure no CSS filters are applied */
}

.page-promotions__benefit-title {
    font-size: 1.4rem;
    color: var(--page-promotions-gold-color);
    margin-bottom: 10px;
}

.page-promotions__benefit-text {
    font-size: 0.95rem;
    color: var(--page-promotions-text-secondary);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--page-promotions-bg); /* Use main page background */
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--page-promotions-deep-green);
    color: var(--page-promotions-gold-color);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

/* For <details> tag, hide default marker */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    line-height: 1.8;
}

/* Call to Action Section (Bottom) */
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-promotions-deep-green); /* Dark background for strong CTA */
    color: var(--page-promotions-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -80px;
        padding: 30px 20px 50px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 20px 15px 40px;
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .page-promotions__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-promotions__promotion-grid,
    .page-promotions__steps-grid,
    .page-promotions__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__dark-section,
    .page-promotions__how-to-claim,
    .page-promotions__benefits-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal overflow */
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness (if any, though not in this specific content) */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important; /* desktop width: 100% must be present */
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ specific for mobile */
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }

    /* Content area image CSS size lower bound check */
    .page-promotions__promotion-image, .page-promotions__benefit-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        width: auto !important;
        height: auto !important;
    }
    .page-promotions__benefit-icon {
        width: 100px !important; /* Override min-width for display, but actual image is >200 */
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-promotions__hero-content {
        margin-top: -40px;
        padding: 15px 10px 30px;
    }
    .page-promotions__section-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* Ensure no image filters */
.page-promotions img {
    filter: none;
}