/* style/promotions.css */

/* Ensure global variables for colors are defined if not from shared.css */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for dark background */
    background-color: var(--background-color, #08160F); /* Ensure consistency with body background */
}

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

/* Contrast Fixes - Ensure text is always readable on dark backgrounds */
.page-promotions__dark-bg {
    color: var(--text-main, #F2FFF6);
}
.page-promotions__dark-section {
    color: var(--text-main, #F2FFF6);
}
.page-promotions__light-bg {
    color: #333333;
}
.page-promotions__promo-card {
    color: var(--text-main, #F2FFF6);
}
.page-promotions__step-card {
    color: var(--text-main, #F2FFF6);
}
.page-promotions__faq-item {
    color: var(--text-main, #F2FFF6);
}
.page-promotions__faq-answer {
    color: var(--text-secondary, #A7D9B8);
}
.page-promotions p, .page-promotions li {
    color: var(--text-secondary, #A7D9B8);
}
.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
    color: var(--text-main, #F2FFF6);
}
/* Specific link color on dark background */
.page-promotions__how-to-claim-section .page-promotions__step-card.page-promotions__light-bg a {
    color: var(--main-color, #11A84E);
}

/* Hero Section */
.page-promotions__hero-section {
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    background-color: var(--background-color, #08160F);
    position: relative;
    overflow: hidden;
}

.page-promotions__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Constrain content width */
    margin: 0 auto;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1200px; /* Match container width for consistent display */
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and text */
}

.page-promotions__hero-text-container {
    text-align: center;
    padding: 0 20px 40px;
    max-width: 800px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
}

/* Section Titles */
.page-promotions__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Text Blocks */
.page-promotions__text-block {
    font-size: 1.05em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--main-color, #11A84E); /* Main color for text */
    border: 2px solid var(--border-color, #2E7A4E);
    box-shadow: 0 4px 10px rgba(46, 122, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
    background: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    border-color: var(--deep-green, #0A4B2C);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 122, 78, 0.4);
}

/* Dark background sections */
.page-promotions__dark-section {
    background-color: var(--background-color, #08160F);
    padding: 60px 0;
}

/* Light background for steps */
.page-promotions__light-bg {
    background-color: #ffffff; /* White background for light contrast */
    color: #333333; /* Dark text for contrast */
    border: 1px solid #e0e0e0;
}

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

.page-promotions__promo-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure consistent card height */
}

.page-promotions__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
}

.page-promotions__card-description {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

/* How-To-Claim Steps */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.page-promotions__step-card {
    background-color: var(--card-bg, #11271B); /* Default to dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Override for light background steps */
.page-promotions__how-to-claim-section .page-promotions__step-card.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__how-to-claim-section .page-promotions__step-card.page-promotions__light-bg .page-promotions__step-title {
    color: #11A84E; /* Brand color for titles on light background */
}

.page-promotions__how-to-claim-section .page-promotions__step-card.page-promotions__light-bg .page-promotions__step-description {
    color: #555555;
}

.page-promotions__step-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
}

.page-promotions__link-text {
    color: var(--main-color, #11A84E);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-promotions__link-text:hover {
    color: var(--glow, #57E38D);
}


/* Terms and Conditions */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 40px;
    color: var(--text-secondary, #A7D9B8);
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-main, #F2FFF6);
    background-color: var(--card-bg, #11271B);
    border-bottom: 1px solid var(--divider, #1E3A2A);
    list-style: none; /* Hide default marker for details summary */
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--main-color, #11A84E);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
    color: var(--glow, #57E38D);
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
    background-color: var(--deep-green, #0A4B2C); /* Slightly different background for answer */
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}
.page-promotions__faq-answer p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.page-promotions__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--card-bg, #11271B); /* Use a slightly different dark background */
}


/* --- Responsive Styles --- */

/* General image responsive styles (must be present) */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px; /* Add side padding for mobile */
    }

    /* HERO Section */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-promotions__hero-image {
        margin-bottom: 15px;
    }

    .page-promotions__hero-text-container {
        padding: 0 15px 30px;
    }

    .page-promotions__main-title {
        font-size: 2em; /* Adjust font size for mobile */
        margin-bottom: 10px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Section Titles */
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    /* Text Blocks */
    .page-promotions__text-block {
        font-size: 0.95em;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    /* Buttons (Must be explicitly defined for mobile) */
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add side padding to container */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Product/Promo Card Grid (Must be explicitly defined for mobile) */
    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 20px 15px;
    }

    .page-promotions__promo-card {
        padding: 20px;
        min-height: auto; /* Remove fixed height for mobile */
    }

    .page-promotions__card-image {
        height: 180px; /* Adjust image height for mobile cards */
        margin-bottom: 15px;
    }

    .page-promotions__card-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .page-promotions__card-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    /* How-To-Claim Steps Grid (Must be explicitly defined for mobile) */
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 20px 15px;
    }

    .page-promotions__step-card {
        padding: 20px;
    }

    .page-promotions__step-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .page-promotions__step-description {
        font-size: 0.9em;
    }

    /* Universal image and container responsive styles (Must be explicitly defined for mobile) */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section */
    .page-promotions__faq-list {
        margin: 30px auto 0;
        padding: 0 15px;
    }

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

    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.9em;
    }

    .page-promotions__terms-list {
        padding-left: 30px;
        font-size: 0.95em;
        margin-top: 20px;
        padding-left: 35px; /* Adjust for mobile list item bullets */
        padding-right: 15px;
    }
}