/* style/promotions.css */
/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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 */
.page-promotions {
    background: var(--color-background);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-promotions__hero-section {
    background: linear-gradient(180deg, var(--color-deep-green) 0%, var(--color-background) 100%);
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    max-width: 1200px; /* Ensure image doesn't stretch too wide on huge screens */
    height: auto;
    display: block;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2; /* Ensure content is above any background elements */
}

.page-promotions__hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 size */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__hero-section p {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__btn-primary {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    opacity: 0.9;
}

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-gold);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.page-promotions__section p {
    font-size: 1.1rem;
    color: var(--color-text-main);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__list li {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--color-text-main);
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-promotions__list li::before {
    content: '✅';
    margin-right: 15px;
    font-size: 1.2em;
    color: var(--color-primary);
}

.page-promotions__promo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for cards, ensuring consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure min size for content images */
    min-height: 200px;
}

.page-promotions__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-card-content h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promo-card-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__btn-primary {
    width: auto; /* Adjust width for card buttons */
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.page-promotions__how-to-claim-section .page-promotions__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-promotions__how-to-claim-steps {
    flex: 1;
    min-width: 300px;
    text-align: left;
    max-width: 600px;
}

.page-promotions__how-to-claim-steps ol {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-promotions__how-to-claim-steps li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    position: relative;
    padding-left: 60px;
}

.page-promotions__how-to-claim-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--color-primary);
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.page-promotions__how-to-claim-steps li h3 {
    color: var(--color-gold);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 5px;
}

.page-promotions__how-to-claim-steps li p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 10px;
}

.page-promotions__how-to-claim-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    height: auto;
    display: block;
    min-width: 200px; /* Ensure min size for content images */
    min-height: 200px;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-promotions__faq-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-gold);
    list-style: none; /* Remove default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

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

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    background: linear-gradient(90deg, var(--color-deep-green) 0%, var(--color-primary) 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--color-text-main);
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-promotions__cta-bottom-section h2 {
    color: var(--color-gold);
    margin-bottom: 25px;
}

.page-promotions__cta-bottom-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 15px;
    }
    .page-promotions__hero-section {
        padding: 40px 15px;
    }
    .page-promotions__hero-section h1 {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__promo-card-grid {
        gap: 20px;
    }
}

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

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

    .page-promotions__hero-section h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-promotions__hero-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__section h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 30px;
    }

    /* Images */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Image containers */
    .page-promotions__hero-image,
    .page-promotions__promo-card-image,
    .page-promotions__how-to-claim-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Override fixed height for cards on mobile */
        box-sizing: border-box !important;
    }

    /* Buttons */
    .page-promotions__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
    }
    
    /* Button containers */
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important;
    }
    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }

    /* Card grid */
    .page-promotions__promo-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promo-card-content {
        padding: 20px;
    }
    .page-promotions__promo-card-content h3 {
        font-size: 1.3rem;
    }
    .page-promotions__promo-card-content p {
        font-size: 0.95rem;
    }

    /* How to claim */
    .page-promotions__how-to-claim-section .page-promotions__container {
        flex-direction: column;
    }
    .page-promotions__how-to-claim-steps,
    .page-promotions__how-to-claim-image {
        max-width: 100%;
        width: 100%;
    }
    .page-promotions__how-to-claim-steps li {
        padding-left: 50px;
    }
    .page-promotions__how-to-claim-steps li::before {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    .page-promotions__how-to-claim-steps li h3 {
        font-size: 1.2rem;
    }

    /* FAQ */
    .page-promotions__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    /* CTA Bottom */
    .page-promotions__cta-bottom-section {
        padding: 50px 15px;
        margin: 30px auto;
    }
    .page-promotions__cta-bottom-section h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-promotions__cta-bottom-section p {
        font-size: 1rem;
    }

    /* Ensure all content containers are responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card-grid,
    .page-promotions__faq-list,
    .page-promotions__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}

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

/* Content area images minimum size on desktop */
.page-promotions__promo-card-image,
.page-promotions__how-to-claim-image {
    min-width: 200px;
    min-height: 200px;
}