/* style/promotions.css */

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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-promotions {
    background-color: var(--bk8za-background); /* Matches body background from shared.css */
    color: var(--bk8za-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--bk8za-deep-green);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-promotions__hero-content {
    position: relative; /* Ensure content is above image but not overlapping */
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Adjust to place content slightly over the bottom of the image for better flow */
    background: rgba(8, 22, 15, 0.85); /* Semi-transparent background matching --bk8za-background */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2; /* Ensure content is above the image layer */
}

.page-promotions__main-title {
    color: var(--bk8za-gold);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-promotions__hero-description {
    color: var(--bk8za-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

/* General Section Styles */
.page-promotions__section {
    padding: 60px 0;
    background-color: var(--bk8za-background);
    border-bottom: 1px solid var(--bk8za-divider);
}

.page-promotions__section:last-of-type {
    border-bottom: none;
}

.page-promotions__section-title {
    color: var(--bk8za-gold);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-promotions__section-description {
    color: var(--bk8za-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1rem;
}

/* Feature Grid */
.page-promotions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-promotions__feature-item {
    background-color: var(--bk8za-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--bk8za-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--bk8za-glow);
}

.page-promotions__feature-title {
    color: var(--bk8za-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__feature-text {
    color: var(--bk8za-text-secondary);
    font-size: 0.95rem;
}

/* Promo Categories Grid */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: var(--bk8za-card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--bk8za-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    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.3), 0 0 15px var(--bk8za-glow);
}

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

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

.page-promotions__card-title {
    color: var(--bk8za-primary);
    font-size: 1.35rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__card-text {
    color: var(--bk8za-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--bk8za-button-gradient);
    color: var(--bk8za-text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-btn:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* How To Claim Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: var(--bk8za-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--bk8za-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--bk8za-glow);
}

.page-promotions__step-image {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__step-title {
    color: var(--bk8za-primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__step-text {
    color: var(--bk8za-text-secondary);
    font-size: 0.95rem;
}

.page-promotions__how-to-claim-cta {
    text-align: center;
    margin-top: 50px;
}

/* Terms & Conditions */
.page-promotions__tc-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
}

.page-promotions__tc-item {
    background-color: var(--bk8za-card-bg);
    border: 1px solid var(--bk8za-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--bk8za-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__tc-note {
    color: var(--bk8za-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 30px auto 0 auto;
    font-style: italic;
    font-size: 0.9rem;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--bk8za-text-main);
    font-size: 1.1rem;
    background-color: var(--bk8za-deep-green);
    border-bottom: 1px solid var(--bk8za-divider);
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
    background-color: var(--bk8za-primary);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--bk8za-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

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

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

.page-promotions__final-cta .page-promotions__section-title {
    color: var(--bk8za-gold);
    text-shadow: 0 0 10px var(--bk8za-glow);
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background: var(--bk8za-button-gradient);
    color: var(--bk8za-text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--bk8za-glow);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--bk8za-gold);
    border: 2px solid var(--bk8za-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px var(--bk8za-gold);
}

/* Global image rules for content area - min size 200x200px */
.page-promotions img {
    min-width: 200px;
    min-height: 200px;
    /* Other responsive rules are in media queries */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -50px;
        padding: 30px;
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }

    .page-promotions__promo-grid,
    .page-promotions__features-grid,
    .page-promotions__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }

    .page-promotions__hero-image-wrapper {
        max-height: 400px;
    }

    .page-promotions__hero-content {
        margin-top: -30px; /* Less overlap on smaller screens */
        padding: 25px 15px;
        max-width: calc(100% - 30px); /* Account for padding */
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-promotions__hero-description {
        font-size: 1rem;
    }

    .page-promotions__hero-cta-buttons,
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-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__section,
    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .page-promotions__promo-image {
        height: 180px;
    }

    .page-promotions__promo-card {
        margin: 0 auto;
        max-width: 350px;
    }

    .page-promotions__step-image {
        width: 150px;
        height: auto;
    }

    /* Mobile image force-fit */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-promotions__video-section { /* Added for safety, though no video on this page */
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        margin-top: -10px;
        padding: 20px 10px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-promotions__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

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

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

    .page-promotions__promo-grid,
    .page-promotions__features-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }
}