/* style/promotions.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 80px;
    background-color: #017439; /* Primary brand color for hero background */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-promotions__main-title {
    font-size: 3.2em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

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

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

/* General Sections */
.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #FFFFFF; /* Default for dark background sections */
    line-height: 1.3;
}

.page-promotions__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Default for dark background sections */
}

.page-promotions__overview-section,
.page-promotions__how-to-claim,
.page-promotions__why-choose,
.page-promotions__cta-final {
    padding: 80px 0;
    background-color: #1a1a2e; /* Matches body background, ensuring text contrast */
    color: #ffffff; /* Explicitly set light text */
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-promotions__types-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-promotions__types-section .page-promotions__text-content,
.page-promotions__terms-section .page-promotions__text-content,
.page-promotions__faq-section .page-promotions__text-content {
    color: #333333; /* Dark text for light background */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #e02a2a;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #C30808; /* Register/Login color for outline */
    border: 2px solid #C30808;
}

.page-promotions__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
    transform: translateY(-2px);
}

/* Image wrappers and content images */
.page-promotions__image-wrapper {
    text-align: center;
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__promo-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333; /* Dark text for light card background */
}

.page-promotions__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-promotions__promo-card .page-promotions__btn-primary,
.page-promotions__promo-card .page-promotions__btn-secondary {
    margin-top: 15px;
    width: auto;
    align-self: flex-start;
}

/* Steps List */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #017439;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #ffffff;
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Terms List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background-color: #f8f8f8;
    border-left: 5px solid #C30808;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #333333;
}

.page-promotions__terms-subtitle {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-promotions__terms-description {
    font-size: 1em;
    color: #555555;
}

/* Reasons List */
.page-promotions__reasons-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__reason-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-promotions__reason-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-promotions__reason-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-promotions__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #e6ffe6;
}

.page-promotions__faq-question h3 {
    margin: 0;
    color: #017439;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #C30808;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f0f0f0;
    color: #333333;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555555;
}

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

.page-promotions__cta-final .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__cta-final .page-promotions__text-content {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

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

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

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 auto;
    }

    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim,
    .page-promotions__terms-section,
    .page-promotions__why-choose,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        padding: 40px 0;
    }

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

    .page-promotions__text-content {
        font-size: 0.95em;
    }

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

    .page-promotions__promo-card {
        padding: 25px;
    }

    .page-promotions__card-title {
        font-size: 1.5em;
    }

    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__reason-item {
        padding: 20px;
    }

    .page-promotions__step-title,
    .page-promotions__terms-subtitle,
    .page-promotions__reason-title {
        font-size: 1.4em;
    }

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

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

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

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

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__image-wrapper,
    .page-promotions__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Ensure content area images are not too small */
.page-promotions__content-area img,
.page-promotions__promo-card img {
    min-width: 200px;
    min-height: 200px;
}