/* style/promotions.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-login-color: #EA7C07;
}

.page-promotions {
    color: var(--text-color-dark-bg); /* Body background is dark (#000000), so main text is light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #0056b3);
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-color-dark-bg);
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__intro-section,
.page-promotions__how-to-join,
.page-promotions__faq-section {
    background: var(--secondary-color);
    color: var(--text-color-light-bg);
    padding: 60px 0;
}

.page-promotions__promo-types,
.page-promotions__why-choose,
.page-promotions__cta-section {
    background: #0d0d0d; /* Slightly lighter than body for contrast, but still dark */
    color: var(--text-color-dark-bg);
    padding: 60px 0;
}

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

.page-promotions__intro-section .page-promotions__section-title,
.page-promotions__how-to-join .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
    color: var(--primary-color);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    border: 2px solid var(--primary-color);
}

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

.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(--text-color-dark-bg);
}

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

.page-promotions__promo-card {
    background: var(--secondary-color);
    color: var(--text-color-light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-promotions__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0 20px;
    color: var(--primary-color);
}

.page-promotions__card-text {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 20px;
    text-align: justify;
}

.page-promotions__steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 40px 0;
}

.page-promotions__list-item {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    font-size: 1.1rem;
}

.page-promotions__list-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

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

.page-promotions__benefits-list .page-promotions__list-item {
    padding-left: 30px;
    margin-bottom: 15px;
}

.page-promotions__benefits-list .page-promotions__list-item::before {
    content: '✓';
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1.2rem;
    left: 0;
}

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

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

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px; /* Arbitrarily large value for smooth transition */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color-dark-bg);
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* Details tag specific styling for FAQ */
.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 2000px; /* Allows content to expand */
}

.page-promotions__faq-item summary {
    list-style: none;
}

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

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

.page-promotions__cta-section .page-promotions__section-title {
    color: var(--text-color-dark-bg);
}

.page-promotions__cta-section .page-promotions__text-block {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        min-height: 400px;
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

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

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

    .page-promotions__intro-section,
    .page-promotions__promo-types,
    .page-promotions__how-to-join,
    .page-promotions__why-choose,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }

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

    .page-promotions__promo-card {
        padding-bottom: 15px;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important;
    }

    .page-promotions__hero-content .page-promotions__btn-primary {
      padding-left: 15px;
      padding-right: 15px;
    }

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

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

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

    .page-promotions__hero-image-wrapper,
    .page-promotions__promo-card,
    .page-promotions__container,
    .page-promotions__intro-section,
    .page-promotions__promo-types,
    .page-promotions__how-to-join,
    .page-promotions__why-choose,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
}

/* Ensure details summary toggle works on all browsers */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}