/* style/promotions.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được viết lại */
/* Các phần tử đầu tiên của trang chỉ nên có padding-top nhỏ */

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
    position: relative; /* Ensure content is above any potential background elements */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.page-promotions__intro-text {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: #F2FFF6; /* Text Main */
    border: 2px solid #2E7A4E; /* Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2); /* Border color with opacity */
    color: #57E38D; /* Glow */
    border-color: #57E38D; /* Glow */
}

.page-promotions__section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-promotions__text-block {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-promotions__text-block p {
    margin-bottom: 1em;
}

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

.page-promotions__promo-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images are not too small */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__card-description {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-promotions__card-button {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    max-width: 250px; /* Limit card button width */
}

.page-promotions__card-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-promotions__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-promotions__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-promotions__content-grid--reverse .page-promotions__image-wrapper {
    order: 2; /* Reverse order on desktop */
}

.page-promotions__content-grid--reverse .page-promotions__text-block {
    order: 1; /* Reverse order on desktop */
}


.page-promotions__image-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.page-promotions__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__sub-title {
    font-size: 1.8rem;
    color: #57E38D; /* Glow */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__text-block ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-promotions__text-block ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #A7D9B8; /* Text Secondary */
}

.page-promotions__text-block ul li:before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #2AD16F; /* Bright green checkmark */
}

.page-promotions__text-block strong {
    color: #F2FFF6; /* Text Main */
}

.page-promotions__special-event-promo {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed #1E3A2A; /* Divider */
}

/* FAQ Section */
.page-promotions__faq-section {
    padding-bottom: 80px;
}

.page-promotions__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-promotions__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 10px;
    overflow: hidden;
}

.page-promotions__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #F2FFF6; /* Text Main */
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary:hover {
    background-color: #1E3A2A; /* Divider */
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 20px;
    color: #57E38D; /* Glow */
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-promotions__content-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__content-grid--reverse .page-promotions__image-wrapper,
    .page-promotions__content-grid--reverse .page-promotions__text-block {
        order: unset; /* Reset order for mobile */
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }
    .page-promotions__sub-title {
        font-size: 1.6rem;
    }
}

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

    /* Images */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image-wrapper,
    .page-promotions__image-wrapper,
    .page-promotions__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        /* padding-left: 15px; */ /* Removed as container already has padding */
        /* padding-right: 15px; */
    }
    .page-promotions__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-promotions__hero-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-promotions__container {
        padding: 0 15px !important;
    }

    /* Buttons */
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
    }

    /* Card Layout */
    .page-promotions__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promo-card {
        padding: 25px;
    }

    /* FAQ */
    .page-promotions__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        margin-bottom: 30px;
    }
}

/* Ensure content area images are not too small */
.page-promotions__section img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure image covers the area without distortion */
}

/* Specific content area image size enforcement */
.page-promotions__content-area img,
.page-promotions__latest-promos img,
.page-promotions__new-member-offers img,
.page-promotions__existing-member-offers img,
.page-promotions__vip-program img,
.page-promotions__terms-conditions img {
    /* These selectors target images within content sections. */
    /* They should not be smaller than 200px. The max-width: 100% and height: auto will handle scaling down. */
    /* The min-width/height is for cases where the container might be very small. */
    /* Given the design, images are generally large, so this is a safeguard. */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Text color contrast safety */
/* Body background is #08160F (dark), so text must be light. */
/* Text Main: #F2FFF6 (light) */
/* Text Secondary: #A7D9B8 (light) */
/* Card BG: #11271B (dark) */
/* All text colors are light on dark backgrounds, ensuring good contrast. */