/* style/promotions.css */

/* Base styles for the promotions page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
}

/* Ensure padding-top for fixed header offset */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px); /* For desktop */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background: linear-gradient(135deg, #017439, #005f2e); /* Brand color gradient */
    padding: 60px 20px;
}

.page-promotions__dark-bg {
    background: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    z-index: 2;
    margin-bottom: 40px;
}

.page-promotions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for prominence */
    font-weight: bold;
    line-height: 1.2;
}

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

.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; /* Blend with background */
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure responsiveness */
    z-index: 2;
}

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

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

.page-promotions__btn-primary:hover {
    background: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: #FFFF00; /* Register/Login yellow text */
    border: 2px solid #FFFF00;
}

.page-promotions__btn-secondary:hover {
    background: #FFFF00;
    color: #C30808;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__section {
    padding: 60px 20px;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-promotions__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: inherit; /* Inherit color from parent section */
}

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

.page-promotions__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    color: #f0f0f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for card titles */
    font-weight: bold;
}

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

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

.page-promotions__step-item {
    background: #f8f8f8; /* Light background for light section */
    color: #333333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__step-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #017439; /* Brand green for step titles */
    font-weight: bold;
}

.page-promotions__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-promotions__advantage-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly lighter for dark background */
    color: #f0f0f0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-promotions__advantage-title {
    font-size: 1.3em;
    color: #FFFF00; /* Yellow for advantage titles */
    margin-bottom: 10px;
    font-weight: bold;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.page-promotions__faq-item {
    border-bottom: 1px solid #eee;
    background: #ffffff; /* Light background for FAQ items */
    color: #333333;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439; /* Brand green for questions */
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #C30808; /* Red for toggle icon */
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

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

/* IMPORTANT: Ensure max-height is sufficient for content */
.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 20px;
}

/* Bottom CTA section */
.page-promotions__cta-bottom {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #017439, #005f2e); /* Brand color gradient */
}

.page-promotions__cta-content .page-promotions__section-title {
    color: #FFFF00; /* Yellow for title */
}

.page-promotions__cta-content .page-promotions__text-block {
    color: #f0f0f0;
    margin-bottom: 40px;
    font-size: 1.1em;
}

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


/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-section {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific padding-top for fixed header */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px;
    }

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

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

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

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__grid,
    .page-promotions__steps,
    .page-promotions__advantages-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__section,
    .page-promotions__container,
    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__advantage-item,
    .page-promotions__faq-item,
    .page-promotions__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .page-promotions__card-image {
        min-width: unset; /* Allow smaller display if needed, but still >= 200px from general rule */
        min-height: unset;
    }

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

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

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

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__btn-large {
        font-size: 1em;
        padding: 15px 25px;
    }
}