/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --background-dark: #1a1a2e; /* From shared.css body background */
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-color: #FFFF00;
    --card-background-dark-alpha: rgba(255, 255, 255, 0.1);
    --card-border-color: rgba(255, 255, 255, 0.2);
}

.page-promotions {
    color: var(--text-on-dark);
    background-color: var(--background-dark);
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d2b 100%);
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

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

.page-promotions__hero-title {
    font-size: 3.2em;
    color: var(--text-on-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--text-on-dark);
    margin-bottom: 40px;
    max-width: 800px;
    opacity: 0.9;
}

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

/* Section General */
.page-promotions__section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit;
}

.page-promotions__section-intro {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 60px auto;
    color: inherit;
    opacity: 0.9;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
}

.page-promotions__btn-primary:hover {
    background-color: #005c2f;
    border-color: #005c2f;
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    transform: translateY(-2px);
}

.page-promotions__card-button {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
    width: fit-content;
    margin-top: 20px;
}

.page-promotions__card-button:hover {
    background-color: #005c2f;
    border-color: #005c2f;
    transform: translateY(-2px);
}

/* Card Grid */
.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: var(--card-background-dark-alpha);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: var(--text-on-dark);
}

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

.page-promotions__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-on-dark);
}

.page-promotions__card-description {
    font-size: 1em;
    color: var(--text-on-dark);
    opacity: 0.8;
    flex-grow: 1;
}

/* Steps Container */
.page-promotions__steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.page-promotions__step-item {
    text-align: center;
    background-color: var(--card-background-dark-alpha);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
}

.page-promotions__step-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-promotions__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-on-dark);
}

.page-promotions__step-description {
    font-size: 1em;
    color: var(--text-on-dark);
    opacity: 0.8;
}

/* Info Grid */
.page-promotions__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    text-align: left;
}

.page-promotions__info-block {
    background-color: var(--card-background-dark-alpha);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
    height: 100%;
}

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

.page-promotions__info-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-on-dark);
}

.page-promotions__info-list {
    list-style: disc inside;
    font-size: 1em;
    color: var(--text-on-dark);
    opacity: 0.8;
    padding-left: 0;
}

.page-promotions__info-list li {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-container {
    max-width: 900px;
    margin: 60px auto 0 auto;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--card-background-dark-alpha);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-on-dark);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--card-border-color);
    color: var(--text-on-dark);
}

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

.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;
    font-size: 1em;
    color: var(--text-on-dark);
    opacity: 0.8;
}

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

/* CTA Section */
.page-promotions__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-promotions__cta-image-wrapper {
    margin-top: 40px;
    max-width: 1000px;
    width: 100%;
}

.page-promotions__cta-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

    .page-promotions__hero-section {
        padding: 40px 15px;
        min-height: 450px;
    }

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

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

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

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

    .page-promotions__card-button {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

    .page-promotions__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .page-promotions__card-grid,
    .page-promotions__steps-container,
    .page-promotions__info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__info-block {
        padding: 25px;
    }

    .page-promotions__card-image,
    .page-promotions__step-image,
    .page-promotions__info-image,
    .page-promotions__hero-image,
    .page-promotions__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

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

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