/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --background-dark: #0a0a0a; /* From body background in shared.css */
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
}

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

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

.page-promotions__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

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

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

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

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-color-dark-bg);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    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;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: var(--register-button-color);
    color: var(--text-color-dark-bg);
}

/* General Sections */
.page-promotions__section {
    padding: 60px 0;
}

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

.page-promotions__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-promotions__text-block {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-promotions__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-promotions__list-item {
    margin-bottom: 10px;
}

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__card-image {
    max-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(--text-color-dark-bg);
}

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

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    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: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* For <details> tag, hide default marker */
.page-promotions__faq-item summary {
    list-style: none;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

/* CTA Section */
.page-promotions__cta-section {
    text-align: center;
    padding: 80px 20px;
}

.page-promotions__cta-content {
    max-width: 800px;
}

.page-promotions__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

.page-promotions__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: var(--text-color-dark-bg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        padding: 60px 20px;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .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;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-promotions__subsection-title {
        font-size: 1.5em;
    }

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

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: auto;
    }

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

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

    .page-promotions__cta-title {
        font-size: 2em;
    }

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

    .page-promotions__btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__cta-section,
    .page-promotions__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

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