/* style/promotions.css */

/* Base styles for the page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--bg-color, #ffffff); /* Default background, assuming light */
}

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

/* Section styling */
.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-promotions__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

/* Titles */
.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #017439; /* Brand green for main title */
}

.page-promotions__hero-section .page-promotions__main-title {
    color: #ffffff; /* White for hero section title */
}

.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: inherit; /* Inherit from section background */
}

.page-promotions__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section background */
}

/* Hero section */
.page-promotions__hero-section {
    position: relative;
    padding-top: 0; /* Important: Rely on body padding for header offset */
    background-color: #017439; /* Dark background for hero */
    color: #ffffff;
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure no overflow */
}

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

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

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 20px; /* Space between content and image */
    position: relative;
    z-index: 1;
}

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

/* Call to action 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;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small,
.page-promotions__btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #017439;
    border-color: #017439;
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 20px;
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-promotions__btn-small:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-promotions__btn-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    max-width: 400px;
    width: 100%;
}

/* Text blocks */
.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: left;
}

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

.page-promotions__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: #017439;
}

.page-promotions__card-text {
    font-size: 1em;
    padding: 0 20px 15px;
    flex-grow: 1;
}

/* Content wrapper for image + text sections */
.page-promotions__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
}

.page-promotions__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-promotions__text-content {
    flex: 1;
    min-width: 300px;
}

.page-promotions__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-promotions__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* FAQ section */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    text-align: left;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05em;
    color: #f0f0f0;
    max-height: 0; /* For custom JS collapse */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth expansion */
    padding-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 20px 30px;
    }

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

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

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

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

    .page-promotions__grid-layout {
        grid-template-columns: 1fr;
    }

    .page-promotions__content-wrapper {
        flex-direction: column;
    }

    .page-promotions__content-wrapper--reverse {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    /* LOGO Carousel Section (placeholder for required output, not strictly on this page) */
    .page-promotions__logo-carousel-section {
        padding: 10px 15px 20px;
    }
    .page-promotions__logo-item {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        box-sizing: border-box;
    }

    /* HERO Main Image Area */
    .page-promotions__hero-section {
        padding-top: 0 !important;
    }
    .page-promotions__hero-content {
        padding: 30px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-image {
        height: 250px;
    }

    /* General Images and Containers */
    .page-promotions img:not(.page-promotions__logo-item) {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__content-wrapper,
    .page-promotions__text-content,
    .page-promotions__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons and Button Containers */
    .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-direction: column !important;
        gap: 15px !important;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small,
    .page-promotions__btn-block,
    .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;
    }

    /* Other content modules */
    .page-promotions__section {
        padding: 30px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-promotions__sub-title {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .page-promotions__text-block,
    .page-promotions__card-text,
    .page-promotions__faq-question,
    .page-promotions__faq-answer p {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }
}