:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;

    /* For RGB values for box-shadow if needed */
    --main-color-rgb: 17, 168, 78; /* RGB for #11A84E */
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Sử dụng màu chữ chính cho nền tối */
    background-color: var(--background); /* Nền chính của trang */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Hình ảnh trên, nội dung dưới */
    align-items: center;
    justify-content: center;
    padding: 60px 20px; /* Tổng padding */
    padding-top: 10px; /* Chỉ một khoảng đệm nhỏ ở trên, body đã xử lý header offset */
    background-color: var(--card-bg); /* Nền tối cho hero section */
    text-align: center;
    overflow: hidden; /* Đảm bảo không tràn */
}

.page-promotions__hero-image {
    width: 100%;
    max-width: 1200px; /* Kích thước hiển thị */
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
    position: relative; /* Đảm bảo nội dung không bị ảnh hưởng bởi z-index của ảnh */
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Dùng clamp cho H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-promotions__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: var(--button-gradient);
    color: #ffffff; /* Luôn là màu trắng cho nút chính */
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    box-sizing: border-box; /* Quan trọng cho responsive */
    white-space: normal; /* Cho phép xuống dòng */
    word-wrap: break-word; /* Ngắt từ */
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

.page-promotions__section-title--light {
    color: var(--text-main); /* Vẫn dùng text-main vì nền cta-banner là tối */
}

.page-promotions__text-block {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.page-promotions__text-block--light {
    color: var(--text-secondary);
}

.page-promotions__highlight {
    color: var(--text-main); /* Màu chính cho từ khóa nổi bật */
    font-weight: 600;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
    background-color: var(--background);
}
.page-promotions__overview-section .page-promotions__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories Section */
.page-promotions__categories-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Nền tối cho phần này */
}

.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(--card-bg); /* Nền thẻ tối */
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Chiều cao cố định cho hình ảnh thẻ */
    object-fit: cover;
    display: block;
}

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

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

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

.page-promotions__text-link {
    color: var(--main-color); /* Màu chính cho liên kết văn bản */
    text-decoration: underline;
    transition: color 0.3s ease;
}
.page-promotions__text-link:hover {
    color: var(--glow);
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Quan trọng cho responsive */
    white-space: normal; /* Cho phép xuống dòng */
    word-wrap: break-word; /* Ngắt từ */
    text-align: center;
}

.page-promotions__btn-secondary:hover {
    background-color: var(--main-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(var(--main-color-rgb), 0.3);
}

.page-promotions__button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
    margin-top: auto; /* Đẩy xuống cuối thẻ */
}
.page-promotions__button-group .page-promotions__btn-secondary {
    flex: 1; /* Các nút chiếm đều không gian */
    min-width: 120px; /* Đảm bảo nút không quá nhỏ */
}

/* Claim Section */
.page-promotions__claim-section {
    padding: 60px 0;
    background-color: var(--background);
}

.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(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

.page-promotions__cta-wrapper {
    text-align: center;
    margin-top: 60px;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Terms & FAQ Section */
.page-promotions__terms-faq-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-promotions__flex-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Cho phép xuống dòng trên di động */
}

.page-promotions__terms-box,
.page-promotions__faq-box {
    flex: 1;
    min-width: 300px; /* Đảm bảo không quá hẹp */
    background-color: var(--card-bg); /* Nền tối cho box */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.page-promotions__terms-box .page-promotions__section-title,
.page-promotions__faq-box .page-promotions__section-title {
    text-align: left;
    margin-top: 0;
    margin-bottom: 30px;
}
.page-promotions__terms-box .page-promotions__text-block {
    text-align: left;
    margin-bottom: 30px;
}
.page-promotions__terms-box .page-promotions__btn-secondary {
    width: auto; /* Nút không chiếm toàn bộ chiều rộng */
}


/* FAQ List */
.page-promotions__faq-list {
    margin-top: 20px;
}

.page-promotions__faq-item {
    background-color: var(--background); /* Nền tối hơn một chút */
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Ẩn mũi tên mặc định */
    outline: none;
}

.page-promotions__faq-item summary::-webkit-details-marker,
.page-promotions__faq-item summary::marker {
    display: none; /* Ẩn marker mặc định trên Chrome/Safari/Firefox */
}

.page-promotions__faq-question {
    flex-grow: 1;
    display: flex; /* Để highlight và toggle nằm cùng hàng */
    align-items: center;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--main-color);
    margin-left: 15px;
    line-height: 1;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−"; /* Thay đổi dấu khi mở */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider);
    margin-top: -1px; /* Để đường viền khớp */
}

.page-promotions__btn-full-width-mobile {
    width: 100%;
    margin-top: 20px;
}

/* CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    background-color: var(--background);
}

.page-promotions__cta-banner {
    background-color: var(--deep-green); /* Nền tối cho banner CTA */
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
}

.page-promotions__cta-banner .page-promotions__section-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-main);
}
.page-promotions__cta-banner .page-promotions__text-block {
    max-width: 700px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Cho phép xuống dòng trên di động */
}

.page-promotions__btn-transparent {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}
.page-promotions__btn-transparent:hover {
    background-color: var(--text-main);
    color: var(--deep-green);
    border-color: var(--text-main);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-promotions__description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        gap: 20px;
    }
    .page-promotions__flex-wrapper {
        gap: 30px;
    }
    .page-promotions__cta-banner {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    /* Global responsive styles for images, videos, and containers */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video,
    .page-promotions__video {
        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__overview-section,
    .page-promotions__categories-section,
    .page-promotions__claim-section,
    .page-promotions__terms-faq-section,
    .page-promotions__cta-section,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__terms-box,
    .page-promotions__faq-box,
    .page-promotions__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video section top padding */
    .page-promotions__video-section {
        padding-top: 10px !important; /* body đã xử lý --header-offset */
    }

    /* Buttons responsive */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Đảm bảo nút chiếm toàn bộ chiều rộng */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__button-group,
    .page-promotions__cta-buttons {
        flex-direction: column !important; /* Nút xếp chồng lên nhau */
        gap: 15px !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-promotions__hero-section {
        padding: 30px 0;
        padding-top: 10px;
    }
    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-promotions__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .page-promotions__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__flex-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-promotions__terms-box,
    .page-promotions__faq-box {
        min-width: unset;
    }
    .page-promotions__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
    .page-promotions__btn-full-width-mobile {
        width: 100%;
    }
}

/* Ensure minimum image size in content areas */
.page-promotions__card-image,
.page-promotions__cta-image {
    min-width: 200px;
    min-height: 200px;
}