/* style/promotions.css */

/* --- Base Styles & Typography (using BEM) --- */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming default light background, will adjust if shared.css overrides body */
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__text-block a {
    color: #017439;
    text-decoration: underline;
}

/* Ensure strong tags are readable on light backgrounds */
.page-promotions__text-block strong {
    color: #017439;
}

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

.page-promotions__list-item {
    background-color: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #333333;
    font-size: 1.05em;
}

.page-promotions__list-item strong {
    color: #017439;
}

/* --- Color Contrast Classes (BEM) --- */
.page-promotions__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__text-block,
.page-promotions__dark-bg .page-promotions__list-item {
    color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__text-block a,
.page-promotions__dark-bg .page-promotions__list-item strong {
    color: #FFFF00; /* Yellow for links/strong text on dark background for visibility */
}

.page-promotions__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

/* --- Hero Section (BEM) --- */
.page-promotions__hero-section {
    position: relative;
    padding: 100px 20px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    min-height: 600px;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

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

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

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

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

/* --- Buttons (BEM) --- */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.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: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
}

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

.page-promotions__hero-section .page-promotions__btn-secondary {
    color: #FFFF00; /* Yellow text for secondary on dark hero */
    border-color: #FFFF00;
}

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

/* Specific secondary button for light background sections */
.page-promotions__light-bg .page-promotions__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}
.page-promotions__light-bg .page-promotions__btn-secondary:hover {
    background-color: #025a2e;
    border-color: #025a2e;
    color: #ffffff;
}

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

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

.page-promotions__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #333333; /* Dark text for light card background */
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-promotions__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text block take available space */
}

.page-promotions__card .page-promotions__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}
.page-promotions__card .page-promotions__btn-secondary:hover {
    background-color: #025a2e;
    border-color: #025a2e;
    color: #ffffff;
}

/* --- Steps List (BEM) --- */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__steps-item {
    background-color: #f0f8f0; /* Light green background */
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 1.1em;
    line-height: 1.8;
    color: #333333;
    border-left: 5px solid #017439;
}

.page-promotions__steps-item strong {
    color: #017439;
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    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;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus to Minus effect */
}

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

/* Crucial for FAQ expand functionality */
.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px !important; /* Add padding when active */
}

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

/* --- Image specific styles (BEM) --- */
.page-promotions__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* --- Responsive Design (BEM) --- */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .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 {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__container {
        padding: 0 15px; /* Add padding to prevent content from touching edges */
    }

    /* Fixed header offset on mobile for hero section */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure it applies */
        padding-left: 15px;
        padding-right: 15px;
        min-height: 450px;
    }

    .page-promotions__hero-title {
        font-size: 2.5em;
    }

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

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

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

    .page-promotions__text-block {
        font-size: 1em;
    }

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

    /* Mobile button responsive adaptation */
    .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: 12px 20px !important;
        font-size: 1em !important;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 200px;
        min-width: 200px;
        min-height: 150px;
    }

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

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

    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px !important;
    }

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

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Ensure content area images maintain minimum size if not directly scaled by max-width: 100% */
    .page-promotions__image-content {
        min-width: unset; /* Allow to scale down if needed */
        min-height: unset;
        width: 100%;
        height: auto;
    }
    /* Specific check for content images to ensure they are not too small */
    .page-promotions__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Any specific img that could be affected by general rules but needs to be larger */
    .page-promotions__card-image {
        min-width: 200px;
        min-
        width: 100%;
        height: auto;
    }
}