/* style/promotions.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --button-register: #C30808;
    --button-login: #C30808;
    --background-color-white: #FFFFFF;
    --font-color-login-register: #FFFF00;
}

.page-promotions {
    color: var(--text-color-dark-bg); /* Body background is dark (#121212), so use light text */
    background-color: transparent; /* Inherit from body */
    font-family: Arial, sans-serif;
}

.page-promotions__section {
    padding: 60px 0;
    background-color: #121212; /* Ensure sections also have a dark background if they are full width */
}

.page-promotions__dark-bg {
    background-color: #121212;
    color: var(--text-color-dark-bg);
}

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

.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-promotions__hero-image-container {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: 30px; /* Space between image and text */
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-promotions__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-promotions__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

.page-promotions__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.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;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background-color: var(--button-register); /* Custom color for register */
    color: var(--font-color-login-register); /* Custom font color for register */
    border: 2px solid var(--button-register);
}

.page-promotions__btn-primary:hover {
    background-color: darken(var(--button-register), 10%);
    border-color: darken(var(--button-register), 10%);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-promotions__promotions-grid .page-promotions__section-title {
    margin-bottom: 60px;
}

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
}

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

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image display */
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

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

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

.page-promotions__info-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-color-dark-bg);
}

.page-promotions__info-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-promotions__info-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__info-description {
    font-size: 0.95em;
    line-height: 1.6;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.page-promotions__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.05em;
    line-height: 1.6;
}

.page-promotions__list-item strong {
    color: var(--primary-color);
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark-bg);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-dark-bg);
}

.page-promotions__faq-answer p {
    margin-top: 15px;
}

.page-promotions__cta-bottom {
    text-align: center;
    padding: 80px 0;
}

.page-promotions__cta-bottom .page-promotions__section-title {
    margin-bottom: 20px;
}

.page-promotions__cta-bottom .page-promotions__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Media Queries for Responsiveness */

@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 20px;
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }

    .page-promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-promotions__card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__hero-section {
        padding-bottom: 40px;
    }

    .page-promotions__hero-content {
        margin-top: 20px;
    }

    .page-promotions__main-title {
        font-size: clamp(2em, 7vw, 2.8em);
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-bottom: 30px;
    }

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

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

    .page-promotions__card-content {
        padding: 20px;
    }

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

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

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

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

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

    .page-promotions__cta-bottom {
        padding: 60px 0;
    }

    /* --- Mobile Responsive Images --- */
    .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-section,
    .page-promotions__hero-image-container,
    .page-promotions__hero-content,
    .page-promotions__promotions-grid,
    .page-promotions__terms-conditions,
    .page-promotions__info-grid,
    .page-promotions__info-card,
    .page-promotions__faq-section,
    .page-promotions__faq-list,
    .page-promotions__faq-item,
    .page-promotions__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* --- Mobile Responsive Buttons --- */
    .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-left: 15px !important;
        padding-right: 15px !important;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    
    .page-promotions__hero-content .page-promotions__btn-primary {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-promotions__card-content .page-promotions__btn-secondary {
        margin-top: auto; /* Push button to bottom */
    }

    /* If buttons are in a flex container, ensure they wrap or stack */
    .page-promotions__hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-promotions__section-title {
        font-size: clamp(1.4em, 7vw, 2em);
    }

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

    .page-promotions__text-block,
    .page-promotions__list-item,
    .page-promotions__info-description,
    .page-promotions__card-description,
    .page-promotions__faq-answer {
        font-size: 0.9em;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}