/* style/promotions.css */

/* Custom Properties for Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background-main: #08160F; /* Body background from custom palette */
    --color-text-main: #F2FFF6; /* Light text for dark backgrounds */
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark-grey: #333333;
    --color-light-grey: #f0f0f0;
}

/* Base styles for the page content, assuming dark body background */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Light text for dark background */
    background-color: var(--color-background-main); /* Matches shared.css var(--background) */
    line-height: 1.6;
}

/* Sections */
.page-promotions__hero-section,
.page-promotions__overview-section,
.page-promotions__current-promos,
.page-promotions__claim-guide,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow */
}

/* Specific section backgrounds based on custom palette */
.page-promotions__dark-section {
    background-color: var(--color-background-main);
    color: var(--color-text-main);
}

.page-promotions__light-bg {
    background-color: var(--color-card-bg); /* Using card bg for contrast against main bg */
    color: var(--color-text-main);
}

/* Container for content width */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure it always takes 100% width up to max-width */
    box-sizing: border-box;
}

/* Titles and Descriptions */
.page-promotions__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gold); /* Using gold for main title */
    margin-bottom: 20px;
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-promotions__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.page-promotions__section-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Hero Section Specifics */
.page-promotions__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 30px; /* Separates image from text */
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(17, 39, 27, 0.8); /* Semi-transparent card bg for readability */
    border-radius: 10px;
    margin-top: -80px; /* Overlap slightly with image for visual flow, but not on text */
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container respects width */
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-promotions__btn-primary {
    background: var(--color-button-gradient-start); /* fallback */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

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

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

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

.page-promotions__feature-item {
    background-color: var(--color-background-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-divider);
}

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

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

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

.page-promotions__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.page-promotions__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.3rem;
    color: var(--color-text-main);
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-promotions__card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    background: var(--color-gold);
    color: var(--color-background-main);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start; /* Align button to start */
    border: none;
}

.page-promotions__card-button:hover {
    filter: brightness(1.1);
}

/* Claim Guide Steps */
.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(--color-background-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--color-divider);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-gold);
    color: var(--color-background-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

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

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

/* Terms List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__terms-item {
    background-color: var(--color-card-bg);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    border-left: 4px solid var(--color-primary);
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--color-background-main);
    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: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
    user-select: none;
    position: relative;
    list-style: none; /* For details/summary */
}

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


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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '−' */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    background-color: var(--color-background-main);
    border-top: 1px solid var(--color-divider);
}

.page-promotions__faq-answer p {
    margin-top: 15px;
    margin-bottom: 0;
}

/* Links within content */
.page-promotions a {
    color: var(--color-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

/* Image specific styling for size requirement compliance */
.page-promotions img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Ensure no filter is applied */
    filter: none;
}

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

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

    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__current-promos,
    .page-promotions__claim-guide,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 15px; /* Add padding for mobile content areas */
    }

    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .page-promotions__hero-content {
        margin-top: -30px; /* Reduce overlap on mobile */
        padding: 15px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure text doesn't touch edges */
        padding-right: 15px;
    }

    .page-promotions__promo-grid,
    .page-promotions__features-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-promotions__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }

    /* Mobile image and video responsive adaptation */
    .page-promotions img {
        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;
        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 */
    }

    /* Additional containers that might hold images/videos/buttons */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .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;
        overflow: hidden; /* Ensure content doesn't overflow */
    }

    .page-promotions__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}