/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #121212;
    --light-bg-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --register-login-font: #FFFF00;
}

.page-promotions {
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--dark-bg-color); /* Matches body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-promotions__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--text-on-dark);
}

.page-promotions__light-bg {
    background-color: var(--light-bg-color);
    color: var(--text-on-light);
}

.page-promotions__text-contrast-fix {
    color: var(--text-on-light) !important;
}

.page-promotions__text-center {
    text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    min-height: 500px;
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-on-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-on-dark);
    line-height: 1.6;
}

/* Section Titles and Descriptions */
.page-promotions__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    transform: translateY(-2px);
}

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Promo Grid */
.page-promotions__current-promos {
    padding: 60px 20px;
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-on-dark);
}

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

.page-promotions__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-on-dark);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 60px 20px;
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    color: var(--text-on-light);
}

.page-promotions__step-item {
    background-color: var(--light-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-light);
}

.page-promotions__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__step-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-promotions__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__step-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    padding: 60px 20px;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-on-dark);
}

/* Why Choose Section */
.page-promotions__why-choose {
    padding: 60px 20px;
}

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

.page-promotions__feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-dark);
}

.page-promotions__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__feature-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

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

.page-promotions__faq-item {
    background-color: var(--light-bg-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-on-light);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid #ddd;
}

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

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

.page-promotions__faq-answer {
    padding: 15px 20px;
    line-height: 1.6;
    font-size: 1em;
    color: var(--text-on-light);
    border-top: 1px solid #eee;
}

.page-promotions__faq-answer p {
    margin: 0;
    color: var(--text-on-light);
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 60px 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }

    .page-promotions__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

    .page-promotions__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

    .page-promotions__hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__feature-card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-promotions__promo-image,
    .page-promotions__step-image,
    .page-promotions__feature-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }

    /* Ensure all images and their containers are responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .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;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }

    .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;
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

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

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