/* style/terms-conditions.css */
/* 
 * Màu sắc chính: #26A9E0 (Xanh lam)
 * Màu phụ: #FFFFFF (Trắng)
 * Màu nền body (từ shared.css): #000000 (Đen) -> Sử dụng màu chữ #FFFFFF cho nội dung chính
 */

.page-terms-conditions {
    color: #ffffff; /* Mặc định chữ trắng trên nền đen của body */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000000; /* Đảm bảo nền chính của trang là đen */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: calc(var(--header-offset, 120px) + 60px); /* Đảm bảo không bị header che */
    background: #000000;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-terms-conditions__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)); /* Overlay để chữ dễ đọc */
    z-index: 1;
}

.page-terms-conditions__hero-section .page-terms-conditions__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6; /* Làm mờ ảnh nền */
}

.page-terms-conditions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-terms-conditions__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* CTA Button */
.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #26A9E0; /* Màu chủ đạo */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
    background-color: #1a8cc2; /* Màu đậm hơn khi hover */
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1a1a1a; /* Nền tối nhẹ cho khu vực nội dung */
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Màu chủ đạo cho tiêu đề chính */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(38, 169, 224, 0.5);
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-terms-conditions a {
    color: #26A9E0; /* Màu link chủ đạo */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    background-color: #0d0d0d; /* Nền tối hơn cho FAQ */
    color: #ffffff;
    padding: 60px 20px;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
}

.page-terms-conditions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    color: #ffffff; /* Ensure FAQ question text is white */
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Đảm bảo đủ cao để chứa nội dung */
    padding: 15px 25px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
}

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

    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Adjust for mobile header */
    }

    .page-terms-conditions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section {
        padding: 30px 15px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 20px auto;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Ensure all content containers are responsive */
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__cta-buttons,
    .page-terms-conditions__button-group,
    .page-terms-conditions__btn-container,
    .page-terms-conditions__video-section,
    .page-terms-conditions__video-container,
    .page-terms-conditions__video-wrapper {
        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 */
    }
    .page-terms-conditions__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Ensure no filter is used on images */
.page-terms-conditions img {
    filter: none;
}