/* style/promotions.css */
/* 
 * Màu sắc chính: #26A9E0 (Xanh lam nhạt)
 * Màu sắc phụ: #FFFFFF (Trắng)
 * Màu nền Body: #000 (Đen - từ shared.css, nên text chính phải là màu sáng)
 */

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Mặc định chữ trắng trên nền đen của body */
    background-color: transparent; /* Body đã có nền đen từ shared.css */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Chiều cao cố định cho desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
    background-color: #26A9E0; /* Màu nền chính nếu ảnh chưa load */
    color: #ffffff;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Không sử dụng filter để thay đổi màu ảnh */
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Lớp phủ tối để chữ dễ đọc */
    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;
    color: #ffffff;
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-promotions__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Section Styles */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-promotions__section-description,
.page-promotions__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.page-promotions__content-section {
    padding: 80px 0;
}

/* Color schemes for sections */
.page-promotions__dark-bg {
    background-color: #000000; /* Nền đen để chữ trắng nổi bật */
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-promotions__light-bg .page-promotions__section-title {
    color: #26A9E0; /* Tiêu đề màu thương hiệu trên nền sáng */
}
.page-promotions__light-bg .page-promotions__card-title a {
    color: #26A9E0;
}


/* Video Section */
.page-promotions__video-section {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1000px; /* Max width for video */
    background-color: #000; /* Fallback background */
    box-sizing: border-box;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer; /* Cho biết video có thể nhấp */
    /* Không sử dụng filter để thay đổi màu ảnh */
}

.page-promotions__video-cta {
    margin-top: 30px;
}


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

.page-promotions__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-promotions__card--inverted {
    background-color: rgba(255, 255, 255, 0.1); /* Hơi trong suốt trên nền tối */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.page-promotions__card--inverted .page-promotions__card-title a {
    color: #ffffff;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    /* Không sử dụng filter để thay đổi màu ảnh */
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Màu thương hiệu */
}
.page-promotions__card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
.page-promotions__card-title a:hover {
    color: #1a7bbd; /* Màu xanh đậm hơn khi hover */
}

.page-promotions__card-description {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Cho phép chữ xuống dòng */
    word-wrap: break-word; /* Ngắt từ */
}

.page-promotions__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Màu thương hiệu */
    color: #ffffff;
}

.page-promotions__cta-section .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__cta-section .page-promotions__section-description {
    color: #f0f0f0;
}

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


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

.page-promotions__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff; /* Nền trắng cho FAQ */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-item:last-child {
    border-bottom: none;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    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 30px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #ffffff;
    color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Đủ lớn để chứa mọi nội dung */
    padding: 20px 30px;
}

.page-promotions__faq-answer p {
    margin: 0;
    text-align: left;
    font-size: 1em;
}

/* Global image styles (ensure no small icons, no filters) */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none; /* No borders by default */
    /* Không sử dụng filter để thay đổi màu ảnh */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        height: 450px; /* Giảm chiều cao trên mobile */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description,
    .page-promotions__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-promotions__content-section,
    .page-promotions__video-section,
    .page-promotions__cta-section,
    .page-promotions__faq-section {
        padding: 50px 0;
    }
    
    .page-promotions__container {
        padding: 0 15px; /* Thêm padding ngang cho container trên mobile */
    }

    /* Force responsive for all images */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsive */
    .page-promotions__video-wrapper {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Card grid responsive */
    .page-promotions__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* FAQ responsive */
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }
    .page-promotions__faq-toggle {
        font-size: 1.2em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px;
    }

    /* Ensure no horizontal scroll */
    .page-promotions__hero-section,
    .page-promotions__video-section,
    .page-promotions__content-section,
    .page-promotions__cta-section,
    .page-promotions__faq-section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
    }
    .page-promotions__video-section,
    .page-promotions__content-section,
    .page-promotions__cta-section,
    .page-promotions__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-promotions__cta-buttons .page-promotions__btn-primary,
    .page-promotions__cta-buttons .page-promotions__btn-secondary {
        width: 100% !important;
    }
}

@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.5em;
    }
}