/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    color: var(--text-on-dark);
    background-color: var(--primary-color);
    overflow: hidden;
}

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

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

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

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

.page-promotions__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: var(--register-button-color); /* Sử dụng màu đỏ cho đăng ký */
    color: var(--register-login-font-color); /* Màu vàng cho chữ */
    border: 2px solid var(--register-button-color);
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.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: #f0f0f0;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-promotions__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than body for contrast */
    color: var(--text-on-dark);
    padding: 60px 20px;
}

.page-promotions__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
    padding: 60px 20px;
}

/* Current Promotions Grid */
.page-promotions__current-promotions {
    padding: 60px 20px;
}

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

.page-promotions__promotion-card {
    background-color: #2a2a2a; /* Dark card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--text-on-dark);
}

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

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color); /* Brand color for titles */
}

.page-promotions__card-text {
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    background-color: var(--login-button-color); /* Màu đỏ cho nút */
    color: var(--register-login-font-color); /* Màu vàng cho chữ */
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

/* Bonus Types */
.page-promotions__bonus-types .page-promotions__section-title,
.page-promotions__bonus-types .page-promotions__section-description {
    color: var(--text-on-dark);
}

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

.page-promotions__feature-item {
    background-color: #2a2a2a; /* Dark card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
}

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

.page-promotions__feature-text {
    line-height: 1.5;
}

/* How to Claim */
.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-description {
    color: var(--text-on-light);
}

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

.page-promotions__step-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-on-light);
}

.page-promotions__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-promotions__step-text {
    line-height: 1.5;
}

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

/* Terms & Conditions */
.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__section-description {
    color: var(--text-on-dark);
}

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

.page-promotions__terms-list li {
    background-color: #2a2a2a; /* Dark card background */
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
}

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

.page-promotions__list-title + p {
    line-height: 1.5;
}

.page-promotions__additional-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--text-on-dark);
}

.page-promotions__additional-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__additional-info a:hover {
    text-decoration: underline;
}

/* VIP Program */
.page-promotions__vip-program .page-promotions__section-title,
.page-promotions__vip-program .page-promotions__section-description {
    color: var(--text-on-light);
}

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

.page-promotions__vip-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-on-light);
}

.page-promotions__vip-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__vip-item-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-promotions__vip-item-text {
    line-height: 1.5;
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-description {
    color: var(--text-on-dark);
}

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

.page-promotions__faq-item {
    background-color: #2a2a2a; /* Dark card background */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
}

.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;
    color: var(--primary-color);
    background-color: #3a3a3a;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #4a4a4a;
}

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

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

.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;
    background-color: #2a2a2a;
    color: var(--text-on-dark);
}

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

.page-promotions__faq-answer p {
    margin: 0;
    line-height: 1.5;
}

/* Why Choose Section */
.page-promotions__why-choose .page-promotions__section-title,
.page-promotions__why-choose .page-promotions__section-description {
    color: var(--text-on-light);
}

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

.page-promotions__advantage-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-on-light);
}

.page-promotions__advantage-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__advantage-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-promotions__advantage-text {
    line-height: 1.5;
}

/* Final CTA */
.page-promotions__cta-final .page-promotions__section-title,
.page-promotions__cta-final .page-promotions__section-description {
    color: var(--text-on-dark);
}

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

/* Floating Buttons */
.page-promotions__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-promotions__floating-btn {
    display: block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-promotions__floating-btn:hover {
    transform: translateY(-3px);
}

.page-promotions__floating-btn--register {
    background-color: var(--register-button-color);
    color: var(--register-login-font-color);
}

.page-promotions__floating-btn--login {
    background-color: var(--login-button-color);
    color: var(--register-login-font-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__intro-text,
    .page-promotions__section-description,
    .page-promotions__card-text {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
    }

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

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__hero-image-wrapper {
        opacity: 0.1;
    }

    .page-promotions__promotion-grid,
    .page-promotions__feature-list,
    .page-promotions__steps-grid,
    .page-promotions__vip-features,
    .page-promotions__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__cta-button,
    .page-promotions__card-button,
    .page-promotions__floating-btn,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        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 {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__floating-buttons {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .page-promotions__floating-btn {
        padding: 10px 20px;
        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__current-promotions,
    .page-promotions__bonus-types,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__vip-program,
    .page-promotions__faq-section,
    .page-promotions__why-choose,
    .page-promotions__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-promotions__card-image {
        height: 200px;
    }

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

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

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

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

    .page-promotions__list-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__hero-content {
        padding: 0 10px;
    }
    .page-promotions__intro-text {
        font-size: 0.9em;
    }
    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .page-promotions__card-title {
        font-size: 1.4em;
    }
    .page-promotions__feature-title,
    .page-promotions__step-title,
    .page-promotions__vip-item-title,
    .page-promotions__advantage-title {
        font-size: 1.4em;
    }
    .page-promotions__faq-question h3 {
        font-size: 1em;
    }
}