/* ==========================================================================
   CSS CHO TRANG CHÍNH SÁCH (assets/policy-style.css)
   ========================================================================== */

/* Reset cần thiết cho template này (có thể trùng với style.css nhưng để đây cho độc lập) */
.page-id-CCC *,
/* Thay CCC bằng ID trang Chính sách */
.page-id-CCC *::before,
.page-id-CCC *::after {
    box-sizing: border-box;
}

.page-id-CCC ul,
.page-id-CCC ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-id-CCC a {
    text-decoration: none;
    color: var(--t-primary-color);
    /* Màu link mặc định trong nội dung */
    transition: var(--t-transition);
}

.page-id-CCC a:hover,
.page-id-CCC a:focus {
    color: var(--t-primary-dark);
    text-decoration: underline;
}

/* Header Section */
.t-faq-header {
    background: var(--t-light-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin: 32px auto 14px auto;
    max-width: var(--t-container-max);
    padding: 30px 20px 20px 20px;
    /* Chỉnh padding */
    text-align: center;
    border-top: 4px solid var(--t-primary-color);
    /* Thêm border top */
}

.t-faq-header h1 {
    color: var(--t-primary-color);
    font-size: 2rem;
    /* Chỉnh size */
    margin-bottom: 8px;
    letter-spacing: .03em;
    font-weight: 700;
    /* Giảm weight */
}

.t-faq-header h1 i {
    /* Icon trong H1 */
    margin-right: 8px;
    font-size: 0.9em;
    /* Icon nhỏ hơn chữ */
    vertical-align: middle;
    /* Căn giữa icon */
}

.t-faq-header p {
    color: var(--t-secondary-color);
    font-size: 1.1rem;
    /* Chỉnh size */
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.5;
}

.t-faq-header p b {
    font-weight: 500;
    /* Phân biệt chữ đậm */
    color: var(--t-text-color);
}

.t-faq-header p a {
    /* Link website */
    font-weight: 500;
}

.t-faq-contact {
    margin-top: 15px;
    /* Tăng margin */
    color: var(--t-text-color);
    font-size: 0.95rem;
    /* Chỉnh size */
    line-height: 1.6;
}

.t-faq-contact span {
    /* Cho các mục xuống dòng nếu cần */
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

.t-faq-contact .bi {
    color: var(--t-primary-color);
    margin-right: 4px;
    vertical-align: -1px;
    /* Căn icon */
}

.t-faq-contact a {
    color: var(--t-secondary-color);
    /* Màu link contact */
}

.t-faq-contact a:hover {
    color: var(--t-primary-dark);
}

/* Nav Tabs */
.t-faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--t-container-max);
    margin: 0 auto 0 auto;
    /* Bỏ margin bottom */
    gap: 5px;
    /* Giảm gap */
    background: none;
    padding: 0 10px;
    /* Thêm padding ngang để tab không sát viền */
    border-bottom: 1px solid var(--t-grey-dark);
    /* Thêm đường kẻ dưới tab */
    position: relative;
    top: 1px;
    /* Đẩy lên che đường kẻ dưới của header */
}

.t-faq-tab {
    background: var(--t-light-color);
    color: var(--t-secondary-color);
    border: 1px solid var(--t-grey-dark);
    /* Thêm viền */
    border-bottom: none;
    /* Bỏ viền dưới */
    outline: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 12px 20px 10px 20px;
    /* Chỉnh padding */
    font-size: 0.95rem;
    /* Chỉnh font size */
    cursor: pointer;
    font-weight: 600;
    box-shadow: none;
    /* Bỏ shadow mặc định */
    transition: var(--t-transition);
    margin-bottom: -1px;
    /* Che đường kẻ dưới của container */
    border-bottom: 3px solid var(--t-grey-color);
    /* Border ẩn để giữ chiều cao */
    display: inline-flex;
    /* Để icon và text thẳng hàng */
    align-items: center;
    gap: 6px;
    /* Khoảng cách icon và text */
}

.t-faq-tab:hover {
    color: var(--t-primary-color);
    background: var(--t-grey-color);
    border-color: var(--t-grey-dark);
    /* Giữ màu viền khi hover */
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.t-faq-tab.active,
.t-faq-tab:focus {
    /* :focus thêm để accessibility */
    color: var(--t-primary-color);
    font-weight: 700;
    background: var(--t-light-color);
    /* Nền trắng khi active */
    border-color: var(--t-grey-dark) var(--t-grey-dark) var(--t-light-color) var(--t-grey-dark);
    /* Che viền dưới */
    border-bottom: 3px solid var(--t-primary-color);
    /* Hiện border màu */
    z-index: 2;
    position: relative;
    transform: scale(1.07);
    box-shadow: var(--box-shadow);
}

.t-faq-tab i {
    /* Style icon trong tab */
    font-size: 1.1em;
    position: relative;
    top: 1px;
}

/* Panel container */
.t-faq-panel-group {
    background: var(--t-light-color);
    max-width: var(--t-container-max);
    margin: 0 auto 36px auto;
    /* Căn giữa và thêm margin bottom */
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    /* Bo góc dưới */
    padding: 30px 25px 30px 25px;
    /* Chỉnh padding */
    min-height: 340px;
    /* Chiều cao tối thiểu */
    border: 1px solid var(--t-grey-dark);
    /* Thêm viền */
    border-top: none;
    /* Bỏ viền trên */
}

.t-faq-panel {
    display: none;
    animation: t-fadein .4s ease-out;
    /* Chỉnh animation */
}

.t-faq-panel[hidden] {
    /* Dùng thuộc tính hidden thay vì class */
    display: none;
}

.t-faq-panel:not([hidden]) {
    /* Chỉ áp dụng display block cho panel active */
    display: block;
}

@keyframes t-fadein {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    /* Hiệu ứng nhẹ hơn */
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Content Styling */
.t-faq-panel h2 {
    font-size: 1.4rem;
    /* Chỉnh size */
    font-weight: 700;
    color: var(--t-primary-dark);
    margin-bottom: 20px;
    /* Tăng margin */
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--t-grey-color);
    /* Kẻ dưới H2 */
}

.t-faq-panel h2 i {
    /* Icon trong H2 */
    margin-right: 8px;
    color: var(--t-primary-color);
}

.t-faq-panel h3 {
    font-size: 1.1rem;
    /* Chỉnh size */
    font-weight: 600;
    color: var(--t-secondary-color);
    margin-top: 25px;
    /* Tăng margin */
    margin-bottom: 10px;
}

.t-faq-panel ul,
.t-faq-panel ol {
    list-style-position: outside;
    /* Đưa dấu ra ngoài */
    margin-bottom: 1em;
    /* Khoảng cách dưới list */
    padding-left: 1.5em;
    /* Thụt đầu dòng */
}

.t-faq-panel ul li::marker {
    /* Style dấu tròn mặc định nếu cần */
    color: var(--t-primary-color);
}

.t-faq-panel ol {
    list-style-type: decimal;
}

/* Kiểu số */

.t-faq-panel p,
.t-faq-panel li {
    margin-bottom: 0.6em;
    /* Khoảng cách dòng */
    color: var(--t-text-color);
}

.t-faq-panel li ul,
.t-faq-panel li ol {
    /* Style list con */
    margin-top: 0.5em;
    margin-bottom: 0.8em;
}

.t-faq-panel p b,
.t-faq-panel li b {
    /* Chữ đậm */
    font-weight: 600;
    color: var(--t-secondary-color);
}

.t-faq-divider {
    /* Dấu gạch ngang */
    border: none;
    border-top: 1px dashed var(--t-grey-dark);
    /* Kiểu gạch đứt */
    margin: 25px 0;
    height: 0;
}

.t-faq-panel p i {
    /* Icon cuối mỗi panel */
    color: var(--t-primary-color);
    margin-right: 5px;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 992px) {

    /* Tablet ngang và nhỏ hơn */
    .t-faq-header,
    .t-faq-panel-group,
    .t-faq-tabs {
        max-width: 95%;
        /* Giảm max-width */
    }
}

@media (max-width: 768px) {

    /* Tablet đứng */
    body {
        font-size: 16px;
    }

    .t-faq-header {
        padding: 25px 15px 15px 15px;
    }

    .t-faq-panel-group {
        padding: 25px 15px 30px 15px;
    }

    .t-faq-header h1 {
        font-size: 1.8rem;
    }

    .t-faq-header p {
        font-size: 1.05rem;
    }

    .t-faq-contact {
        font-size: 0.9rem;
    }

    .t-faq-tab {
        padding: 10px 15px 8px 15px;
        font-size: 0.9rem;
    }

    .t-faq-panel h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .t-faq-panel h3 {
        font-size: 1.05rem;
        margin-top: 20px;
    }
}

@media (max-width: 630px) {

    /* Mobile lớn */
    .t-faq-header,
    .t-faq-panel-group {
        border-radius: 0;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .t-faq-header {
        margin-bottom: 0;
    }

    .t-faq-tabs {
        padding: 0 5px;
        gap: 3px;
    }

    /* Giảm padding, gap */
    .t-faq-tab {
        padding: 9px 10px;
        font-size: 0.85rem;
    }

    /* Giảm padding, font */
    .t-faq-panel-group {
        padding: 20px 10px 25px 10px;
        min-height: unset;
    }

    .t-faq-panel h2 {
        font-size: 1.2rem;
    }

    .t-faq-panel h3 {
        font-size: 1rem;
    }

    .t-faq-panel p,
    .t-faq-panel li {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Kết thúc CSS cho Trang Chính Sách
   ========================================================================== */