/* style/promotions.css */

/* --- General Styles --- */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Body background is white */
}

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

.page-promotions__section {
    padding: 60px 0;
}

.page-promotions__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

.page-promotions__section-title {
    font-size: 32px;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions__section-title--light {
    color: #FFFFFF;
}

.page-promotions__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__text-block--light {
    color: #f0f0f0;
}

.page-promotions__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    font-size: 16px;
    color: #333333;
}

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

/* --- Buttons --- */
.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid transparent;
    margin-top: 30px;
}

.page-promotions__cta-button:hover {
    background: #a30707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button--inverted {
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #FFFFFF;
}

.page-promotions__cta-button--inverted:hover {
    background: #f0f0f0;
    color: #017439;
}

.page-promotions__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    background: #a30707;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary {
    background: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
    background: #005a2e;
    border-color: #005a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- 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); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #005a2e); /* Darker gradient for text contrast */
    color: #FFFFFF;
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__main-title {
    font-size: 44px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color for main title */
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

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

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

.page-promotions__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min size for card images */
    min-
}

.page-promotions__card-title {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

.page-promotions__card-text {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text block grow to align buttons */
}

.page-promotions__card .page-promotions__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
}

/* --- How-To-Claim Steps --- */
.page-promotions__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__step-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-item img {
     /* Display size for steps, requested size is larger for quality */
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%; /* Make step images round */
    object-fit: cover;
    border: 3px solid #017439;
}

.page-promotions__step-title {
    font-size: 20px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 15px;
    color: #555555;
}

/* --- Terms & Conditions --- */
.page-promotions__terms-conditions {
    background-color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-promotions__faq-list {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và max-height đủ lớn để đảm bảo có thể mở rộng */
.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo mức ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Câu hỏi kiểu */
.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
}

.page-promotions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
    background: #eeeeee;
}

/* Tiêu đề câu hỏi kiểu */
.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp chuột */
}

/* Chuyển đổi biểu tượng */
.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Sử dụng màu chính cho biểu tượng chuyển đổi */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp chuột */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x', hoặc chỉ thay đổi văn bản thành '-' */
    color: #C30808; /* Sử dụng màu nhấn cho biểu tượng chuyển đổi đang hoạt động */
}

/* --- Phần CTA cuối cùng --- */
.page-promotions__cta-final {
    background: #017439;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.page-promotions__cta-final .page-promotions__container {
    background: none; /* Ghi đè nền tối cho vùng chứa nếu đã được đặt */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Thiết kế đáp ứng (Di động) --- */
@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Phần Hero trên thiết bị di động */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__main-title {
        font-size: 32px;
    }

    .page-promotions__hero-description {
        font-size: 18px;
    }

    /* Nút trên thiết bị di động */
    .page-promotions__cta-button,
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Thêm phần đệm để ngăn văn bản chạm các cạnh */
        padding-right: 15px; /* Thêm phần đệm để ngăn văn bản chạm các cạnh */
    }

    .page-promotions__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Đảm bảo nhóm nút cũng có phần đệm */
    }
    
    .page-promotions__button-group .page-promotions__btn-primary,
    .page-promotions__button-group .page-promotions__btn-secondary {
        margin: 0; /* Xóa các lề riêng lẻ nếu có */
    }


    /* Lưới trên thiết bị di động */
    .page-promotions__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__card img {
        min-width: 200px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Các bước trên thiết bị di động */
    .page-promotions__steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__step-item img {
         /* Điều chỉnh kích thước cho thiết bị di động nếu cần, vẫn > 200px được yêu cầu */
        height: auto;
    }

    /* Câu hỏi thường gặp trên thiết bị di động */
    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-promotions__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }
    
    /* Quy tắc phản hồi hình ảnh cho tất cả hình ảnh */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__grid,
    .page-promotions__steps,
    .page-promotions__faq-list,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Đệm được xử lý bởi .page-promotions__container cho nội dung chính */
    }
    
    /* Đảm bảo vùng nội dung không bị tràn */
    .page-promotions {
        overflow-x: hidden;
    }
}

/* Sửa lỗi tương phản nếu cần, mặc dù màu mặc định sẽ ổn */
.page-promotions__dark-bg {
    background: #017439; /* Màu chính */
    color: #ffffff; /* Văn bản trắng để tương phản */
}