/* style/promotions.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #FFFFFF;
    --bg-dark: #017439;
    --btn-register-bg: #C30808;
    --btn-register-text: #FFFFFF; /* Adjusted for WCAG AA contrast */
}

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

.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    text-align: center;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 8px;
}

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

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

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

.page-promotions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.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-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    color: var(--text-dark);
}

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

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

.page-promotions__card-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-list {
    list-style: disc inside;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-dark);
}

.page-promotions__card-list li {
    margin-bottom: 8px;
}

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

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

.page-promotions__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    color: var(--text-light);
}

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

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

.page-promotions__guide-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__guide-section .page-promotions__section-title {
    color: var(--text-light);
}

.page-promotions__guide-section .page-promotions__section-intro {
    color: var(--text-light);
}

.page-promotions__guide-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    max-width: 350px;
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__step-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.page-promotions__step-title {
    font-size: 1.8em;
    color: var(--text-light);
    margin-bottom: 15px;
}

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

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

.page-promotions__terms-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-promotions__terms-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__terms-subtitle {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.page-promotions__why-choose-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.page-promotions__why-choose-section .page-promotions__section-title {
    color: var(--text-light);
    width: 100%;
}

.page-promotions__why-choose-section .page-promotions__section-intro {
    color: var(--text-light);
    width: 100%;
}

.page-promotions__why-choose-content {
    flex: 1 1 500px;
    max-width: 700px;
    text-align: left;
}

.page-promotions__why-choose-image {
    flex: 1 1 400px;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-promotions__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.page-promotions__advantage-title {
    font-size: 1.4em;
    color: var(--text-light);
    margin-bottom: 5px;
}

.page-promotions__advantage-text {
    font-size: 0.95em;
    color: var(--text-light);
}

.page-promotions__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-promotions__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

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

.page-promotions__faq-question::marker {
    display: none;
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-dark);
}

.page-promotions__cta-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

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

.page-promotions__cta-section .page-promotions__cta-description {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-image {
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__cta-section .page-promotions__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions__hero-content {
        padding: 15px;
    }
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .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;
        padding: 12px 20px;
    }
    .page-promotions__promo-grid,
    .page-promotions__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promo-card,
    .page-promotions__step-item {
        padding: 20px;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-promotions__card-image {
        height: auto;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-promotions__why-choose-section {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__why-choose-content {
        max-width: 100%;
        text-align: center;
    }
    .page-promotions__why-choose-image {
        max-width: 100%;
    }
    .page-promotions__advantage-item {
        text-align: left;
    }
    .page-promotions__cta-section {
        flex-direction: column;
    }
    .page-promotions__cta-section .page-promotions__cta-title {
        font-size: 1.8em;
    }
    .page-promotions__cta-section .page-promotions__cta-description {
        font-size: 1em;
    }
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__content-area,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__why-choose-content,
    .page-promotions__faq-item,
    .page-promotions__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__btn-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__step-title {
        font-size: 1.5em;
    }
    .page-promotions__terms-subtitle {
        font-size: 1.3em;
    }
    .page-promotions__advantage-title {
        font-size: 1.2em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
    }
    .page-promotions__cta-section .page-promotions__cta-title {
        font-size: 1.6em;
    }
}