/* =========================================================
   Static pages (FAQ / About / content) — TH Kids theme
   --mainColor #c8103d | --subColor #ea6182 | --hover #f4b631
   ========================================================= */

   .page {
    padding-bottom: 48px;
}

.page .content-page.rte,
.page .pg_page .content-page {
    background: #fff;
    border: 1px solid #ffe9fd;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 1px 6px rgba(200, 16, 61, 0.06);
    font-size: 1.45rem;
    line-height: 1.75;
    color: #444;
}

.page .content-page.rte img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page .content-page.rte h1,
.page .content-page.rte h2,
.page .content-page.rte h3,
.page .content-page.rte h4 {
    color: var(--mainColor);
    font-family: "Coiny", system-ui, sans-serif;
    font-weight: 400;
    /* margin-top: 0.8em; */
}

.page .content-page.rte a {
    color: var(--mainColor);
}

.page .content-page.rte a:hover {
    color: var(--hover);
}

.page .title-head,
.page .category-title .title-head {
    font-family: "Coiny", system-ui, sans-serif;
    font-size: 2.4rem;
    color: var(--mainColor);
    margin-bottom: 16px;
}

.page .title-head a {
    color: inherit;
    text-decoration: none;
}

/* ---------- FAQ accordion ---------- */
.page-faq .panel-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-faq .faq {
    border: 1px solid #f0c9d6;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-faq .faq:hover {
    border-color: var(--subColor);
}

.page-faq .faq.active {
    border-color: var(--mainColor);
    box-shadow: 0 2px 10px rgba(200, 16, 61, 0.1);
}

.page-faq .faq h4 {
    position: relative;
    margin: 0;
    padding: 14px 44px 14px 16px;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    cursor: pointer;
    background: #fff7fa;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}

.page-faq .faq.active h4 {
    color: var(--mainColor);
    background: #ffe9fd;
}

.page-faq .faq h4:hover {
    color: var(--mainColor);
}

.page-faq .faq h4::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--mainColor);
    border-bottom: 2px solid var(--mainColor);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.25s ease;
}

.page-faq .faq.active h4::after {
    transform: translateY(-25%) rotate(-135deg);
}

.page-faq .faq .content {
    padding: 0 16px;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #555;
    border-top: 1px solid transparent;
}

.page-faq .faq.active .content {
    padding: 14px 16px 16px;
    border-top-color: #f5e6ec;
}

.page-faq .faq .content p {
    margin-bottom: 8px;
}

.page-faq .faq .content p:last-child {
    margin-bottom: 0;
}

.page-faq .faq .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---------- FAQ sidebar contact form ---------- */
.page-faq .box_right_faq {
    position: sticky;
    top: 90px;
}

.page-faq .box_hoi_dap,
.page-faq .form-contact {
    background: #fff;
    border: 1px solid #ffe9fd;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(200, 16, 61, 0.06);
}

.page-faq .box_muc_luc {
    font-family: "Coiny", system-ui, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--mainColor);
    margin: 0 0 10px;
    line-height: 1.3;
}

.page-faq .content-form {
    display: block;
    font-size: 1.35rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 14px;
}

.page-faq .group_contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-faq .group_contact .form-control {
    height: 44px;
    border: 1px solid #f0c9d6;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 1.35rem;
    color: #333;
    background: #fff;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-faq .group_contact textarea.form-control,
.page-faq .group_contact .content-area {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.page-faq .group_contact .form-control:focus {
    outline: 0;
    border-color: var(--subColor);
    box-shadow: 0 0 0 3px rgba(234, 97, 130, 0.15);
}

.page-faq .group_contact .form-control::placeholder {
    color: #aaa;
}

.page-faq .group_contact .btn-lienhe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--mainColor);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.page-faq .group_contact .btn-lienhe:hover {
    background: var(--subColor);
    color: #fff;
}

#js-global-alert {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .page-faq .box_right_faq {
        position: static;
        margin-bottom: 16px;
    }

    .page .content-page.rte,
    .page .pg_page .content-page {
        padding: 16px;
    }
}

@media (max-width: 575px) {
    .page-faq .faq h4 {
        font-size: 1.35rem;
        padding-right: 40px;
    }
}
