/* style/promotions.css */

/* Custom 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;
    --color-light-text: #333333; /* For light backgrounds */
    --color-light-background: #ffffff; /* For contrast on dark sections */
}

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-promotions {
    background-color: var(--color-background); /* Ensure consistency with overall theme */
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 40px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--color-background); /* Ensure consistency */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and text */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none !important; /* Ensure no filter on image */
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* H1 font size clamp */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

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

.page-promotions__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* White-ish text for dark button */
    border: none;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-glow); /* Green-gold text for secondary button */
    border: 2px solid var(--color-glow);
}

.page-promotions__btn-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(87, 227, 141, 0.1); /* Light green tint on hover */
}

/* General Section Styles */
.page-promotions__section {
    padding: 60px 20px;
    background-color: var(--color-background); /* Default dark background */
    color: var(--color-text-main);
}

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

.page-promotions__section-title {
    font-size: clamp(1.8em, 2.8vw, 2.5em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

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

.page-promotions__promo-card {
    background-color: var(--color-card-bg); /* Darker green background for cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
    color: var(--color-text-main); /* Ensure text is visible on card background */
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
}

.page-promotions__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--color-divider);
    filter: none !important; /* Ensure no filter on image */
}

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

.page-promotions__card-description {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

/* Terms & Conditions Section - Light Background for Contrast */
.page-promotions__terms-section {
    background-color: var(--color-light-background); /* White background for contrast */
    color: var(--color-light-text); /* Dark text for light background */
}

.page-promotions__terms-section .page-promotions__section-title {
    color: var(--color-deep-green); /* Dark green title on light background */
}

.page-promotions__terms-section .page-promotions__text-block,
.page-promotions__terms-section .page-promotions__terms-list {
    color: var(--color-light-text);
}

.page-promotions__terms-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 30px;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    color: var(--color-light-text);
}

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

/* How-to-Claim Section */
.page-promotions__how-to-claim-section {
    background-color: var(--color-deep-green); /* Another dark green shade */
}

.page-promotions__how-to-claim-section .page-promotions__section-title {
    color: var(--color-gold);
}

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

.page-promotions__guide-step {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.page-promotions__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-glow);
    color: var(--color-background); /* Dark text on bright green */
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-promotions__step-title {
    font-size: 1.3em;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    color: var(--color-text-secondary);
}

.page-promotions__image-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.page-promotions__guide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    filter: none !important; /* Ensure no filter on image */
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--color-card-bg); /* Darker green background for FAQ */
    color: var(--color-text-main);
}

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--color-gold);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-deep-green); /* Slightly lighter green for summary */
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details/summary */
}

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

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

.page-promotions__faq-qtext {
    font-size: 1.1em;
    color: var(--color-text-main);
}

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

.page-promotions__faq-answer {
    padding: 15px 25px;
    background-color: var(--color-card-bg); /* Content background */
    color: var(--color-text-secondary);
    font-size: 1em;
    line-height: 1.5;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    padding-bottom: 80px;
}

.page-promotions__conclusion-section .page-promotions__section-title {
    color: var(--color-gold);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(2em, 4vw, 2.8em);
    }
    .page-promotions__section-title {
        font-size: clamp(1.8em, 3.2vw, 2.2em);
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Buttons responsiveness */
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Hero section adjustments */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding for hero on mobile */
        padding-bottom: 30px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em); /* Adjust H1 for smaller screens */
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }

    /* Promo grid adjustments */
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }

    /* Guide steps adjustments */
    .page-promotions__guide-steps {
        grid-template-columns: 1fr;
    }

    /* FAQ adjustments */
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-qtext {
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px;
    }
}

/* Ensure no filter on images globally */
.page-promotions img {
    filter: none !important;
}

/* Content area images CSS dimensions lower bound (min 200px) */
.page-promotions img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Text contrast fix for light background sections */
.page-promotions__text-contrast-fix {
  color: var(--color-light-text) !important;
}

/* Ensure video container width for desktop (if video were present) */
.page-promotions__video-container {
  width: 100%; /* Important for flex items with max-width */
}

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