/* style/promotions.css */

/* --- Base Styles --- */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Light text on dark background */
    background-color: var(--background-color); /* Body background is #08160F */
}

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

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added for mobile responsiveness */
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

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

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-main-color);
    text-align: justify;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
    position: relative; 
    width: 100%;
    display: flex;
    flex-direction: column; /* Image then content */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 50px;
    overflow: hidden;
    background-color: var(--background-color); /* Ensure consistent background */
}

.page-promotions__hero-image-container {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 250px; /* Ensure a minimum height */
}

.page-promotions__hero-content {
    position: relative; /* No longer absolute */
    width: 100%;
    max-width: 1200px; /* Constrain content width */
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
    color: var(--text-main-color);
    background-color: var(--deep-green-color); /* Use a solid background for content */
    margin-top: -5px; /* Slight overlap to make it visually cohesive */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none; /* No text shadow as it's not over image */
}

.page-promotions__description {
    font-size: clamp(1.1em, 2vw, 1.3em);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
    text-shadow: none; /* No text shadow as it's not over image */
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Buttons --- */
.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;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

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

.page-promotions__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--background-color); /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    min-width: 280px; /* Ensure larger size for main CTA */
}

/* --- Intro Section --- */
.page-promotions__intro-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

/* --- Promotion Categories --- */
.page-promotions__promotion-categories {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__promotion-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main-color); /* Ensure card text is light */
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

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

.page-promotions__promotion-card h3 {
    font-size: 1.5em;
    color: var(--gold-color);
    padding: 20px 20px 10px;
    margin: 0;
}

.page-promotions__promotion-card p {
    font-size: 1em;
    color: var(--text-secondary-color);
    padding: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-promotions__card-btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px); /* Adjust width to match padding */
    font-size: 0.95em;
    padding: 12px 20px;
}

/* For cards with multiple buttons */
.page-promotions__promotion-card .page-promotions__card-btn + .page-promotions__card-btn {
    margin-top: 10px;
}


/* --- Terms & Conditions --- */
.page-promotions__terms-conditions {
    padding: 60px 0;
    background-color: var(--deep-green-color); /* Slightly different background */
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

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

.page-promotions__terms-item strong {
    color: var(--gold-color);
    font-size: 1.1em;
}

/* --- How To Claim --- */
.page-promotions__how-to-claim {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-promotions__step-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    color: var(--text-main-color); /* Ensure step card text is light */
}

.page-promotions__step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
}

.page-promotions__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

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

.page-promotions__step-description {
    color: var(--text-secondary-color);
    font-size: 1em;
}

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

/* --- FAQ Section --- */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--deep-green-color);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--divider-color);
    user-select: none; /* Prevent text selection on click */
    list-style: none; /* Remove default marker for details summary */
}

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

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

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

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

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-secondary-color);
    background-color: rgba(17, 39, 27, 0.7); /* Slightly lighter than card-bg */
}

/* --- Final CTA --- */
.page-promotions__final-cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background-color);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-promotions__description {
        font-size: clamp(1em, 1.8vw, 1.2em);
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__hero-section {
        margin-bottom: 30px;
    }
    .page-promotions__hero-image {
        max-height: 350px;
    }
    .page-promotions__hero-content {
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-promotions__description {
        font-size: clamp(0.9em, 3.5vw, 1.1em);
        margin-bottom: 20px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack vertically on small screens */
        gap: 15px; /* Adjust gap for vertical stacking */
        width: 100%; /* Ensure buttons take full width */
        padding: 0 20px;
        box-sizing: border-box;
        flex-wrap: wrap !important; /* As per strict rule, for the container */
    }
    .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;
        padding-right: 15px;
    }
    .page-promotions__btn-large {
        min-width: unset; /* Remove min-width for mobile */
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__card-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__promotion-card {
        margin-bottom: 20px;
    }
    .page-promotions__terms-item,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        padding: 15px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    /* For multiple buttons in card grid, allow wrapping */
    .page-promotions__promotion-card .page-promotions__card-btn {
        width: calc(100% - 40px) !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-promotions__description {
        font-size: clamp(0.85em, 4vw, 1em);
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__cta-buttons {
        gap: 10px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}