/* style/promotions.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-btn-color: #C30808;
    --register-login-text-color: #FFFF00;
    --body-bg-color: #1a1a2e; /* From shared.css body background */
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --card-bg-dark-section: rgba(255, 255, 255, 0.1);
    --card-bg-light-section: #ffffff;
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for the page content, contrasting with body-bg-color */
    background-color: var(--body-bg-color);
}

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

.page-promotions__hero-section {
    position: relative;
    padding: 100px 0 60px; /* Adjusted padding to account for header offset, then add specific top padding */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: var(--register-login-btn-color);
    color: var(--register-login-text-color);
    border: 2px solid var(--register-login-btn-color);
}

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

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-promotions__introduction-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-promotions__introduction-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__types-section,
.page-promotions__guide-section,
.page-promotions__conclusion-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-promotions__types-section .page-promotions__section-title,
.page-promotions__guide-section .page-promotions__section-title,
.page-promotions__conclusion-section .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__highlight-text {
    color: var(--register-login-text-color);
    font-weight: bold;
}

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

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

.page-promotions__card {
    background-color: var(--card-bg-light-section);
    color: var(--text-on-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
}

.page-promotions__dark-section .page-promotions__card {
    background-color: var(--card-bg-dark-section);
    color: var(--text-on-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__dark-section .page-promotions__card-title {
    color: var(--secondary-color);
}

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

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

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

.page-promotions__card .page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-promotions__card .page-promotions__btn-primary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

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

.page-promotions__step-card {
    background-color: var(--card-bg-light-section);
    color: var(--text-on-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-promotions__step-card .page-promotions__card-title {
    font-size: 1.3em;
    color: var(--primary-color);
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg-light-section);
    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;
    cursor: pointer;
    background-color: #f9f9f9;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
    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);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-on-light);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 25px;
}

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

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

.page-promotions__conclusion-section .page-promotions__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Mobile responsiveness for images, videos, buttons, and containers */
@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

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

    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__terms-section,
    .page-promotions__guide-section,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__card {
        padding: 20px;
    }

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

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

    /* Image specific rules for mobile */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all content sections/divs containing images are constrained */
    .page-promotions__hero-section,
    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__terms-section,
    .page-promotions__guide-section,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section,
    .page-promotions__grid,
    .page-promotions__card,
    .page-promotions__steps-grid,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}