/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-register-color: #C30808;
    --button-login-color: #C30808;
    --button-text-color: #FFFF00;
    --background-color: #FFFFFF;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-border-color: #e0e0e0;
}

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

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
    box-sizing: border-box;
}

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

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    color: var(--secondary-color);
    max-width: 900px;
    padding: 20px;
}

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

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

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

.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, transform 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-promotions__section-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-color-dark-bg);
}

/* Introduction Section */
.page-promotions__introduction-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

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

.page-promotions__feature-item {
    background: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-color-dark-bg);
}

.page-promotions__feature-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__feature-description {
    font-size: 1em;
    color: var(--text-color-dark-bg);
}

/* Promotion Types Section */
.page-promotions__types-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

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

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

.page-promotions__promotion-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-color-light-bg);
}

.page-promotions__promotion-card:hover {
    transform: translateY(-10px);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1em;
    color: var(--text-color-light-bg);
    padding: 0 20px 20px;
}

.page-promotions__card-link {
    display: block;
    text-align: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.page-promotions__card-link:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-promotions__guide-step {
    background: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-color-dark-bg);
}

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

.page-promotions__guide-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__guide-description {
    font-size: 1em;
    color: var(--text-color-dark-bg);
}

.page-promotions__cta-buttons--center {
    margin-top: 50px;
}

/* Benefits Section */
.page-promotions__benefits-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.page-promotions__benefits-section .page-promotions__section-title,
.page-promotions__benefits-section .page-promotions__text-block {
    color: var(--secondary-color);
}

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

.page-promotions__benefit-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-color-light-bg);
}

.page-promotions__benefit-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-promotions__benefit-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__benefit-description {
    font-size: 1em;
    color: var(--text-color-light-bg);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-promotions__faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.page-promotions__faq-item {
    background: var(--card-bg-dark-mode);
    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: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

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

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-color-dark-bg);
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
    .page-promotions__text-block {
        font-size: 1em;
    }
    .page-promotions__feature-grid, .page-promotions__promotion-grid, .page-promotions__guide-grid, .page-promotions__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary, .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        padding-top: 40px;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    
    /* Images responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-buttons,
    .page-promotions__feature-item,
    .page-promotions__promotion-card,
    .page-promotions__guide-step,
    .page-promotions__benefit-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-buttons {
      padding-left: 0;
      padding-right: 0;
    }
    .page-promotions__feature-grid, .page-promotions__promotion-grid, .page-promotions__guide-grid, .page-promotions__benefits-grid {
        gap: 20px;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px 20px;
    }
}

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