/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default background for the main content area */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Adjust top padding for header offset */
    text-align: center;
    color: #FFFFFF; /* White text on dark background */
    background-color: #017439; /* Brand primary color */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.page-promotions__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-promotions__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-promotions__btn-primary:hover {
    background-color: #005a2e; /* Slightly darker green */
    border-color: #f0f0f0;
}

.page-promotions__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Register/Login buttons (special colors) */
.page-promotions__btn-register {
    background-color: #C30808; /* Red for register */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #C30808;
}

.page-promotions__btn-register:hover {
    background-color: #a00606; /* Darker red */
    border-color: #a00606;
}

.page-promotions__btn-login {
    background-color: #C30808; /* Red for login */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #C30808;
}

.page-promotions__btn-login:hover {
    background-color: #a00606; /* Darker red */
    border-color: #a00606;
}


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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the image to keep text readable */
    display: block;
}

/* General Section Styles */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #017439; /* Brand primary color for titles on light background */
}

.page-promotions__section-title--white {
    color: #FFFFFF; /* White titles on dark background */
}

.page-promotions__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: left;
}

.page-promotions__text-block--white {
    color: #FFFFFF;
}

.page-promotions__highlight {
    font-weight: bold;
    color: #017439; /* Highlight color for text on light background */
}

.page-promotions__text-block--white .page-promotions__highlight {
    color: #FFFFFF; /* White highlight on dark background */
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: left;
}

.page-promotions__numbered-list {
    list-style: decimal;
    padding-left: 20px;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: left;
}

.page-promotions__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.5;
}

.page-promotions__list-item--white {
    color: #FFFFFF;
}

.page-promotions__list-item a {
    color: #FFFFFF; /* Link color on dark background */
    text-decoration: underline;
}

.page-promotions__list-item a:hover {
    color: #f0f0f0;
}

/* Card Grid for Promotions */
.page-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.page-promotions__card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-promotions__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color */
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
    color: #555555;
    text-align: left;
}

.page-promotions__card .page-promotions__cta-button {
    margin-top: auto; /* Push button to the bottom */
    width: 100%;
}

/* Button Group */
.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

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

.page-promotions__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 15px 25px 25px;
}

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-promotions__final-cta {
    padding: 80px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

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

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

    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-promotions__button-group {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container to prevent overflow */
    }
    
    /* Ensure all content containers have proper mobile padding */
    .page-promotions__container,
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__faq-list,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__section {
        padding: 40px 0; /* Adjust section padding */
    }

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

    .page-promotions__text-block,
    .page-promotions__list-item {
        font-size: 0.95em;
    }

    .page-promotions__card-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        padding: 20px 0;
    }

    .page-promotions__card {
        padding: 25px;
    }
    
    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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: 10px 20px 20px;
    }

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

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
}