/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-btn-bg: #C30808;
    --register-login-btn-text: #FFFF00;
    --body-bg-color: #1a1a1a; /* From shared.css */
    --text-color-on-dark: #ffffff;
    --text-color-on-light: #333333;
}

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

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-promotions__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-color-on-dark);
    font-weight: bold;
}

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

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.8);
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-on-dark);
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    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;
    max-width: 900px;
    padding: 20px;
}

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

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__hero-cta,
.page-promotions__card-button,
.page-promotions__exclusive-cta {
    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, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__hero-cta {
    background-color: var(--register-login-btn-bg);
    color: var(--register-login-btn-text);
    border: 2px solid var(--register-login-btn-bg);
}

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

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

.page-promotions__btn-secondary:hover,
.page-promotions__card-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

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

.page-promotions__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-color-on-dark);
}

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

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    color: var(--text-color-on-dark);
}

.page-promotions__card-title a {
    color: var(--text-color-on-dark);
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    color: var(--register-login-btn-text);
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 1em;
    margin: 0 20px 20px;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.7);
}

.page-promotions__card-button {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-promotions__exclusive-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-promotions__exclusive-text {
    flex: 1;
}

.page-promotions__exclusive-subtitle {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--register-login-btn-text);
}

.page-promotions__exclusive-paragraph {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.85);
}

.page-promotions__exclusive-image-wrapper {
    flex: 1;
    min-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__exclusive-image {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: var(--text-color-on-dark);
    transition: background-color 0.3s ease;
}

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

.page-promotions__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--register-login-btn-text);
    margin-bottom: 15px;
    border: 3px solid var(--register-login-btn-text);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.page-promotions__step-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--text-color-on-dark);
}

.page-promotions__step-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}

.page-promotions__image-centered {
    margin-top: 50px;
    text-align: center;
}

.page-promotions__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__why-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-promotions__why-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    color: var(--text-color-on-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__why-subtitle {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--register-login-btn-text);
}

.page-promotions__why-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-on-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    color: var(--text-color-on-dark);
}

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

.page-promotions__faq-heading {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-color-on-dark);
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--register-login-btn-text);
}

.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: rgba(255, 255, 255, 0.7);
}

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

.page-promotions__final-cta {
    padding: 80px 0;
}

.page-promotions__final-cta .page-promotions__section-title {
    color: var(--text-color-on-dark);
}

.page-promotions__final-cta .page-promotions__section-description {
    color: rgba(255, 255, 255, 0.9);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-promotions__exclusive-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__exclusive-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-promotions__exclusive-text {
        order: 2;
    }
    .page-promotions__exclusive-image-wrapper {
        order: 1;
    }
}

@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__section-title {
        font-size: 2em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
    }
    .page-promotions__promotions-grid,
    .page-promotions__steps-grid,
    .page-promotions__why-list {
        grid-template-columns: 1fr;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__hero-cta,
    .page-promotions__card-button,
    .page-promotions__exclusive-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* 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__exclusive-image-wrapper,
    .page-promotions__image-centered {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Content area images should not be smaller than 200px */
    .page-promotions__card-image,
    .page-promotions__exclusive-image,
    .page-promotions__guide-image {
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__exclusive-subtitle,
    .page-promotions__step-title,
    .page-promotions__why-subtitle,
    .page-promotions__faq-heading {
        font-size: 1.3em;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px 20px;
    }
}