/* style/promotions.css */

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

/* Base styles for the page content */
.page-promotions {
    background-color: var(--color-background);
    color: var(--color-text-main); /* Ensure light text on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Headings */
.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gold); /* Use gold for main title */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

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

.page-promotions__card-title,
.page-promotions__feature-title {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

/* Paragraphs and lists */
.page-promotions__description,
.page-promotions__text-block,
.page-promotions__card-description,
.page-promotions__feature-description,
.page-promotions p,
.page-promotions li {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-promotions__text-block strong {
    color: var(--color-text-main);
}

/* 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;
    overflow: hidden;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--color-text-main); /* Light text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

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

.page-promotions__card-button {
    background: var(--button-gradient);
    color: var(--color-text-main);
    border: none;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(42, 209, 111, 0.3);
}

.page-promotions__card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 209, 111, 0.5);
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding */
    overflow: hidden;
    background-color: var(--color-background); /* Fallback */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    position: relative;
}


/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
    text-align: center;
}

.page-promotions__image-content {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 800px; /* Constrain size */
    min-height: 200px; /* Min size */
}

/* Hot Promotions Section */
.page-promotions__hot-promotions-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

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

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

.page-promotions__card-content .page-promotions__card-description {
    flex-grow: 1;
    margin-bottom: 20px;
}


/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__steps-list li {
    background-color: var(--color-card-bg);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__steps-list li strong {
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.page-promotions__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-gold);
    color: var(--color-background);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.page-promotions__steps-list {
    counter-reset: step-counter;
}


/* Terms Section & Dark Section */
.page-promotions__terms-section,
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--color-background); /* Use background color for dark sections */
}

.page-promotions__dark-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    color: var(--color-text-secondary);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}


/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
    text-align: center;
}

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

.page-promotions__feature-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
}

.page-promotions__feature-icon {
    width: 200px; /* Min size */
    height: 200px; /* Min size */
    object-fit: contain;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px 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: 600;
    color: var(--color-text-main);
    font-size: 1.15rem;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

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

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


/* --- Responsive Design --- */

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

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

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

    .page-promotions__main-title {
        font-size: 2rem;
    }

    .page-promotions__section-title {
        font-size: 1.5rem;
    }

    /* Images */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__hero-image-wrapper,
    .page-promotions__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons */
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 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;
        padding-right: 15px;
    }

    .page-promotions__promotion-card-grid,
    .page-promotions__features-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__promotion-card,
    .page-promotions__feature-item {
        margin-bottom: 20px;
    }

    .page-promotions__steps-list li {
        padding-left: 50px;
    }

    .page-promotions__steps-list li::before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

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

    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }

    .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;
    }
}

/* Tablet (max-width: 1024px) - Adjustments */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 0 30px;
    }
    .page-promotions__hero-section {
        padding: 50px 30px;
        padding-top: 10px;
    }
    .page-promotions__promotion-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}