/* style/promotions.css */

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

/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--page-promotions-text-main); /* Default text color for the page */
    background-color: var(--page-promotions-background); /* Overall page background */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

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

.page-promotions__section {
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size for h2 */
    color: var(--page-promotions-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-promotions__text-block {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--page-promotions-text-secondary);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure nothing spills out */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-promotions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(32px, 5vw, 54px); /* H1 responsive font size, avoiding fixed large values */
    color: var(--page-promotions-gold); /* Using gold for prominence */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-promotions__description {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--page-promotions-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
}

.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;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--page-promotions-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    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(--page-promotions-gold);
    border: 2px solid var(--page-promotions-gold);
}

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

.page-promotions__card-button {
    background: var(--page-promotions-deep-green);
    color: var(--page-promotions-text-main);
    border: 1px solid var(--page-promotions-border);
    font-size: 16px;
    padding: 10px 20px;
    margin-top: auto; /* Push button to bottom of card */
}

.page-promotions__card-button:hover {
    background: var(--page-promotions-primary-color);
    border-color: var(--page-promotions-primary-color);
    color: #ffffff;
}

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

.page-promotions__intro-section .page-promotions__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-promotions__intro-section .page-promotions__image {
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Types Section (Grid) */
.page-promotions__types-section {
    background-color: var(--page-promotions-background);
}

.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.page-promotions__card {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__card-title {
    font-size: 24px;
    color: var(--page-promotions-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions__card-text {
    font-size: 16px;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

/* Claim Guide Section */
.page-promotions__claim-guide-section {
    background-color: var(--page-promotions-deep-green);
    padding: 80px 0;
}

.page-promotions__numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: promotion-step;
    max-width: 800px;
    margin: 40px auto;
}

.page-promotions__list-item {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-promotions__list-item::before {
    counter-increment: promotion-step;
    content: counter(promotion-step);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--page-promotions-gold);
    color: var(--page-promotions-background);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.page-promotions__list-title {
    font-size: 22px;
    color: var(--page-promotions-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__list-text {
    font-size: 16px;
    color: var(--page-promotions-text-secondary);
}

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

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

.page-promotions__claim-guide-section .page-promotions__image {
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Terms Section */
.page-promotions__terms-section {
    background-color: var(--page-promotions-background);
    text-align: center;
}

.page-promotions__terms-section .page-promotions__text-block {
    margin-bottom: 30px;
}

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

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

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

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker for details tag */
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--page-promotions-text-main);
    cursor: pointer;
    background-color: var(--page-promotions-card-bg);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: var(--page-promotions-deep-green);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--page-promotions-text-main);
}

.page-promotions__faq-toggle {
    font-size: 24px;
    margin-left: 20px;
    color: var(--page-promotions-gold);
    font-weight: 700;
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--page-promotions-text-secondary);
    line-height: 1.7;
    /* For details tag, the browser handles expand/collapse naturally.
       For div-based accordion, this would be animated with max-height. */
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-bottom-section .page-promotions__container {
    background-color: var(--page-promotions-card-bg);
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--page-promotions-border);
}

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

.page-promotions__cta-bottom-section .page-promotions__text-block {
    margin-bottom: 40px;
    color: var(--page-promotions-text-secondary);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions__hero-image-wrapper {
        max-height: 450px;
    }
    .page-promotions__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-promotions__description {
        font-size: clamp(16px, 2.2vw, 20px);
    }
    .page-promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 16px;
    }

    /* Hero Section Mobile */
    .page-promotions__hero-section {
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 30px;
    }
    .page-promotions__main-title {
        font-size: clamp(26px, 7vw, 40px);
    }
    .page-promotions__description {
        font-size: clamp(15px, 3.5vw, 18px);
        margin-bottom: 25px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 400px; /* Limit stacked button width */
        margin: 0 auto;
    }
    .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__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;
    }

    /* Images Mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure image takes full width of container */
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is maintained */
        min-height: 200px !important; /* Ensure min size is maintained */
    }
    .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__card-image {
        height: auto; /* Allow height to adjust */
    }

    /* List Item Mobile */
    .page-promotions__list-item {
        padding: 20px 20px 20px 70px;
    }
    .page-promotions__list-item::before {
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .page-promotions__list-title {
        font-size: 20px;
    }
    .page-promotions__list-text {
        font-size: 15px;
    }

    /* FAQ Mobile */
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 15px;
    }

    /* Bottom CTA Mobile */
    .page-promotions__cta-bottom-section .page-promotions__container {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions__section {
        padding: 30px 0;
    }
    .page-promotions__section-title {
        font-size: clamp(22px, 8vw, 30px);
    }
    .page-promotions__text-block {
        font-size: 15px;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 250px;
    }
    .page-promotions__main-title {
        font-size: clamp(24px, 8vw, 36px);
    }
    .page-promotions__description {
        font-size: clamp(14px, 4vw, 16px);
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-text {
        font-size: 14px;
    }
}

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