/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-register: #C30808;
    --button-login: #C30808;
    --background-color: #FFFFFF;
    --font-color-register-login: #FFFF00;
    --body-bg: #121212; /* From shared.css */
}

.page-promotions {
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--body-bg);
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-promotions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
}

.page-promotions__hero-content {
    z-index: 1;
    max-width: 800px;
}

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

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

.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;
    margin: 10px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: var(--font-color-register-login);
    color: var(--button-login);
}

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

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

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

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

.page-promotions__current-promos-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
    padding: 60px 0;
}

.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: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
}

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

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

.page-promotions__promo-card-content {
    padding: 25px;
}

.page-promotions__promo-card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promo-card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__promo-card-title a:hover {
    color: var(--primary-color);
}

.page-promotions__promo-card-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

.page-promotions__btn-small {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-small:hover {
    background-color: #005a2a;
}

.page-promotions__vip-program-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0;
}

.page-promotions__vip-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.page-promotions__vip-benefits {
    flex: 1;
}

.page-promotions__vip-subtitle {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

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

.page-promotions__vip-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.page-promotions__list-icon {
    color: var(--font-color-register-login);
    font-size: 1.2em;
    margin-right: 10px;
}

.page-promotions__vip-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-promotions__vip-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-promotions__claim-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-promotions__claim-steps li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-color-dark-bg);
}

.page-promotions__claim-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-promotions__claim-steps li a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    max-width: 900px;
    margin: 40px auto;
    color: var(--text-color-dark-bg);
    font-size: 1em;
    line-height: 1.7;
}

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

.page-promotions__text-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 1.1em;
    font-weight: bold;
}

.page-promotions__why-choose-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0;
}

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

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1.2em;
}

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

.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);
    font-size: 1em;
    line-height: 1.6;
}

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

.page-promotions__cta-section {
    background-color: var(--primary-color);
    text-align: center;
    padding: 80px 20px;
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2.5em;
    }
    .page-promotions__vip-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-promotions__vip-benefits,
    .page-promotions__vip-image-wrapper {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
    }

    .page-promotions__hero-section {
        padding: 60px 15px;
        margin: 10px;
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 1em;
        padding: 12px 25px;
        margin: 8px 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-promotions__hero-content .page-promotions__btn-primary,
    .page-promotions__hero-content .page-promotions__btn-secondary {
        display: block;
    }

    .page-promotions__section-title {
        font-size: 2em;
        margin-top: 40px;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__current-promos-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }

    .page-promotions__promo-grid {
        gap: 20px;
    }

    .page-promotions__promo-card-image {
        height: 200px;
    }

    .page-promotions__promo-card-title {
        font-size: 1.4em;
    }

    .page-promotions__vip-program-section,
    .page-promotions__why-choose-section {
        padding: 60px 0;
    }

    .page-promotions__vip-subtitle {
        font-size: 1.8em;
    }

    .page-promotions__claim-steps li {
        font-size: 1em;
        padding-left: 40px;
    }

    .page-promotions__claim-steps li::before {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .page-promotions__terms-list {
        font-size: 0.95em;
    }

    .page-promotions__feature-title {
        font-size: 1.6em;
    }

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

    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }

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

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

    /* Mobile container responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__current-promos-section,
    .page-promotions__vip-program-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .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__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;
    }

    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__promo-card-title {
        font-size: 1.2em;
    }
    .page-promotions__vip-subtitle {
        font-size: 1.5em;
    }
    .page-promotions__feature-title {
        font-size: 1.4em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
    }
    .page-promotions__faq-question h3 {
        font-size: 1em;
    }
}