/* ===================================================
   CSS cho những gì Tailwind không làm được:
   wp_nav_menu output, ::after pseudo-elements, style output shortcode plugin
   Màu lấy từ biến @theme (tailwind.src.css) — luôn kèm fallback hex.
   =================================================== */

html { scroll-behavior: smooth; }

/* Tailwind v4 preflight KHÔNG còn tự set cursor:pointer cho button (khác v1-v3.2) —
   trình duyệt mặc định vẽ con trỏ mũi tên trên <button>, chỉ <a> mới tự có tay trỏ.
   Đặt một lần ở đây thay vì thêm cursor-pointer thủ công cho từng nút trong template. */
button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[role="button"],
[role="tab"],
[role="switch"],
summary,
label[for] { cursor: pointer; }
button:disabled,
[type="button"]:disabled,
[type="submit"]:disabled { cursor: not-allowed; }

/* --- Alpine: ẩn phần tử x-show trước khi Alpine khởi tạo --- */
[x-cloak] { display: none !important; }

/* --- Header ---
   KHÔNG đặt backdrop-filter/transform lên .lq-header — nó là cha của drawer
   mobile (position:fixed). Nền + blur đặt ở .lq-header__bar. */
.lq-header__bar {
    background: rgba(249, 244, 236, 0.92);
    border-bottom: 1px solid rgba(230, 217, 196, 0.7);
}
@supports (backdrop-filter: blur(8px)) {
    .lq-header__bar {
        background: rgba(249, 244, 236, 0.8);
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
    }
}

/* WP custom logo */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { height: 44px; width: auto; }
@media (min-width: 1024px) { .custom-logo-link img { height: 56px; } }

/* --- Desktop nav (wp_nav_menu output) --- */
.lq-nav-list {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 6 mục + 2 dropdown: khe hẹp ở 1024–1279px để nút Đăng nhập không bị đẩy xuống dòng */
@media (min-width: 1280px) { .lq-nav-list { gap: 2.25rem; } }
.lq-nav-list > li { position: relative; }
.lq-nav-list > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-ink, #14284a);
    white-space: nowrap;
    transition: color 0.2s;
}
/* Chevron báo hiệu có menu con (xem filter nav_menu_item_title trong functions.php) */
.lq-nav-caret {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.lq-nav-list > li.menu-item-has-children:hover > a > .lq-nav-caret,
.lq-nav-list > li.menu-item-has-children:focus-within > a > .lq-nav-caret { transform: rotate(180deg); }
.lq-nav-list > li > a::after {
    content: '';
    position: absolute;
    left: -0.5rem;
    right: -0.5rem;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--color-brand, #a9752d);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.lq-nav-list > li > a:hover,
.lq-nav-list > li.current-menu-item > a,
.lq-nav-list > li.current-menu-ancestor > a { color: var(--color-brand, #a9752d); }
.lq-nav-list > li > a:hover::after,
.lq-nav-list > li.current-menu-item > a::after,
.lq-nav-list > li.current-menu-ancestor > a::after { transform: scaleX(1); }

/* Dropdown */
.lq-nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 50;
    min-width: 210px;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 18px 40px -18px rgba(20, 40, 74, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.lq-nav-list > li:hover > .sub-menu,
.lq-nav-list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
/* Menu dồn sát mép phải: trừ mục đầu, dropdown mở ngược sang trái (neo mép phải),
   nếu không submenu tràn ra ngoài viewport — dù ẩn (visibility:hidden) vẫn tính vào
   scrollWidth của trang, gây thanh cuộn ngang trên toàn bộ site. */
.lq-nav-list > li:not(:first-child) > .sub-menu { left: auto; right: -1rem; }
.lq-nav-list .sub-menu a {
    display: block;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    color: var(--color-ink, #14284a);
}
.lq-nav-list .sub-menu a:hover { color: var(--color-brand, #a9752d); background: var(--color-paper, #f9f4ec); }
.lq-nav-list .sub-menu .current-menu-item > a { color: var(--color-brand, #a9752d); font-weight: 600; }
/* Dropdown nhiều mục (Theo việc): 2 cột */
.lq-nav-list .sub-menu.lq-sub-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 440px; padding: 0.5rem; }
.lq-nav-list .sub-menu.lq-sub-cols a { border-radius: 0.5rem; padding-inline: 0.8rem; }

/* --- Mobile nav: accordion drawer ---
   Mục cha: hàng link + nút chevron tròn. Đang mở → link cam, chevron nền cam nhạt xoay lên,
   submenu là khối bo góc nền giấy ấm. Trang hiện tại (mục hoặc mục cha của nó) tô nền cam nhạt + vạch cam trái. */
.lq-mobile-nav-list,
.lq-mobile-nav-list .sub-menu { margin: 0; padding: 0; list-style: none; }
.lq-mobile-nav-list > li + li { margin-top: 2px; }

.lq-m-row {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 0.75rem;
    transition: background-color 0.15s;
}
.lq-m-row:hover,
.lq-m-row:active { background: rgba(247, 228, 214, 0.55); }
.lq-m-link {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-ink, #14284a);
    transition: color 0.15s;
}
.lq-m-link:hover { color: var(--color-brand, #a9752d); }

/* Đang ở trang này */
.lq-mobile-nav-list li.current-menu-item > .lq-m-row,
.lq-mobile-nav-list li.current-menu-ancestor > .lq-m-row,
.lq-mobile-nav-list li.current-menu-parent > .lq-m-row { background: var(--color-brand-soft, #f3e7d0); }
.lq-mobile-nav-list li.current-menu-item > .lq-m-row::before,
.lq-mobile-nav-list li.current-menu-ancestor > .lq-m-row::before,
.lq-mobile-nav-list li.current-menu-parent > .lq-m-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--color-brand, #a9752d);
}
.lq-mobile-nav-list li.current-menu-item > .lq-m-row > .lq-m-link,
.lq-mobile-nav-list li.current-menu-ancestor > .lq-m-row > .lq-m-link,
.lq-mobile-nav-list li.current-menu-parent > .lq-m-row > .lq-m-link,
.lq-mobile-nav-list li.is-open > .lq-m-row > .lq-m-link { color: var(--color-brand, #a9752d); }

/* Nút chevron: chip tròn, đủ 44px vùng bấm */
.lq-m-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: 0.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 9999px;
    color: var(--color-ink-soft, #4b5563);
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}
.lq-m-toggle:hover { color: var(--color-brand, #a9752d); }
.lq-m-toggle:focus-visible,
.lq-m-link:focus-visible { outline: 2px solid var(--color-brand, #a9752d); outline-offset: -2px; border-radius: 0.75rem; }
.lq-mobile-nav-list li.is-open > .lq-m-row > .lq-m-toggle { background: var(--color-brand-soft, #f3e7d0); color: var(--color-brand, #a9752d); }
.lq-m-chevron { width: 1.1rem; height: 1.1rem; transition: transform 0.2s; }
.lq-m-chevron.is-open { transform: rotate(180deg); }

/* Submenu: khối bo góc, mỗi mục có chấm cam nhỏ; không kẻ ngang */
.lq-mobile-nav-list .sub-menu {
    margin: 0.25rem 0 0.5rem 0.75rem;
    padding: 0.375rem;
    border-radius: 0.75rem;
    background: var(--color-paper-warm, #f3eadc);
    box-shadow: inset 0 0 0 1px rgba(230, 217, 196, 0.7);
}
.lq-mobile-nav-list .sub-menu .lq-m-row { border-radius: 0.5rem; }
.lq-mobile-nav-list .sub-menu .lq-m-row:hover,
.lq-mobile-nav-list .sub-menu .lq-m-row:active { background: rgba(255, 255, 255, 0.7); }
.lq-mobile-nav-list .sub-menu .lq-m-link { min-height: 44px; padding-left: 1.5rem; font-size: 0.9rem; font-weight: 400; }
.lq-mobile-nav-list .sub-menu .lq-m-link::before {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 9999px;
    background: var(--color-brand-light, #cfa565);
    opacity: 0.55;
}
.lq-mobile-nav-list .sub-menu li.current-menu-item > .lq-m-row { background: #fff; }
.lq-mobile-nav-list .sub-menu li.current-menu-item > .lq-m-row::before { display: none; }
.lq-mobile-nav-list .sub-menu li.current-menu-item > .lq-m-row > .lq-m-link { font-weight: 500; }
.lq-mobile-nav-list .sub-menu li.current-menu-item > .lq-m-row > .lq-m-link::before { opacity: 1; }

/* --- Hero ---
   Ảnh hero-que.webp (1962×801): chủ thể (chùa, cây thông, bàn Kinh Dịch) dồn bên phải.
   Neo ảnh góc phải-dưới; phủ giấy kem bên trái cho cột chữ, mờ đáy để nối vào section dưới. */
.lq-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% bottom;
}
.lq-hero__veil {
    background: linear-gradient(to bottom, rgba(249, 244, 236, 0.92) 0%, rgba(249, 244, 236, 0.8) 55%, rgba(249, 244, 236, 0.9) 85%, #f9f4ec 100%);
}
@media (min-width: 1024px) {
    .lq-hero { min-height: 640px; }
    .lq-hero__img { object-position: right bottom; }
    .lq-hero__veil {
        background:
            linear-gradient(to right, rgba(249, 244, 236, 0.95) 0%, rgba(249, 244, 236, 0.85) 30%, rgba(249, 244, 236, 0.3) 48%, rgba(249, 244, 236, 0) 60%),
            linear-gradient(to bottom, rgba(249, 244, 236, 0) 0%, rgba(249, 244, 236, 0) 70%, rgba(249, 244, 236, 0.75) 88%, #f9f4ec 100%);
    }
}

/* Nét cọ cam dưới tiêu đề hero */
.lq-swash::after {
    content: '';
    position: absolute;
    left: 2%;
    right: -2%;
    bottom: -0.22em;
    height: 0.28em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14C60 6 150 3 298 8c-90 1-170 4-240 10' fill='none' stroke='%23a9752d' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    opacity: 0.85;
}

/* Con dấu đỏ nhỏ */
.lq-seal {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.9rem;
    border: 1.5px solid #b8412a;
    border-radius: 3px;
    color: #b8412a;
    font-family: var(--font-serif, serif);
    font-size: 0.85rem;
    line-height: 1;
    transform: rotate(0deg);
}

/* --- Select: mũi tên tuỳ chỉnh --- */
.lq-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 1rem;
    padding-right: 2rem;
}
input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.45; cursor: pointer; }

/* --- Hero trang danh sách (nền tối, xem .lq-on-dark) --- */
@media (min-width: 1024px) {
    .lq-archive-hero { min-height: 470px; }
}

/* Breadcrumb Rank Math */
.lq-breadcrumb a { transition: color 0.2s; }
.lq-breadcrumb a:hover { color: var(--color-brand, #a9752d); }
.lq-breadcrumb .separator { margin-inline: 0.4rem; opacity: 0.5; }

/* --- Phân trang (the_posts_pagination) --- */
.lq-pagination { margin-top: 2.25rem; }
.lq-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.lq-pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-ink, #14284a);
    transition: background 0.2s, color 0.2s;
}
.lq-pagination a.page-numbers:hover { background: var(--color-brand-soft, #f3e7d0); color: var(--color-brand, #a9752d); }
.lq-pagination .page-numbers.current { background: var(--color-brand, #a9752d); color: #fff; box-shadow: 0 8px 18px -10px rgba(169, 117, 45, 0.9); }
.lq-pagination .page-numbers.dots { min-width: 1.5rem; }
.lq-pagination .prev,
.lq-pagination .next { background: #fff; box-shadow: 0 0 0 1px var(--color-line, #e6d9c4); }

/* ===================================================
   THÂN BÀI VIẾT — .lq-prose (the_content, block editor)
   Soạn trong editor bằng block chuẩn để ra đúng thiết kế:
   - Trích dẫn (Quote)      → hộp kem, dấu “ cam
   - Heading H2              → vạch cam bên trái
   - Danh sách (List)        → dấu tích tròn cam
   - Columns (ảnh/icon + tiêu đề + mô tả) → lưới có vạch ngăn
   - Buttons                 → nút cam; style "Outline" → link gạch chân
   =================================================== */
.lq-prose {
    color: rgba(20, 40, 74, 0.86);
    font-size: 0.975rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}
.lq-prose > :first-child { margin-top: 0; }
.lq-prose > :last-child { margin-bottom: 0; }
.lq-prose p { margin: 0 0 1.1em; }
.lq-prose strong { font-weight: 600; color: var(--color-ink, #14284a); }
.lq-prose a:not(.wp-block-button__link) {
    color: var(--color-brand, #a9752d);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lq-prose a:not(.wp-block-button__link):hover { color: var(--color-brand-dark, #8c5f22); }

.lq-prose h2,
.lq-prose h3,
.lq-prose h4 {
    font-family: var(--font-serif, Georgia, serif);
    font-weight: 600;
    color: var(--color-ink, #14284a);
    line-height: 1.3;
    scroll-margin-top: 6rem;
}
.lq-prose h2 {
    position: relative;
    margin: 2em 0 0.7em;
    padding-left: 1.1rem;
    font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.65rem);
}
.lq-prose h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 4px;
    border-radius: 2px;
    background: var(--color-brand, #a9752d);
}
.lq-prose h3 { margin: 1.6em 0 0.5em; font-size: 1.25rem; }
.lq-prose h4 { margin: 1.4em 0 0.4em; font-size: 1.08rem; }

/* Trích dẫn */
.lq-prose blockquote {
    position: relative;
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem 1.1rem 4.2rem;
    border-radius: 0.9rem;
    background: #fbf1e6;
    box-shadow: inset 0 0 0 1px rgba(230, 217, 196, 0.8);
    color: var(--color-ink, #14284a);
    font-size: 0.95rem;
    line-height: 1.7;
}
.lq-prose blockquote::before {
    content: '\201C';
    position: absolute;
    left: 1.2rem;
    top: 0.35rem;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-brand, #a9752d);
}
.lq-prose blockquote p { margin: 0; }
.lq-prose blockquote p + p { margin-top: 0.4em; }
.lq-prose blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--color-ink-soft, #4b5563);
}

/* Danh sách */
.lq-prose ul,
.lq-prose ol { margin: 0 0 1.2em; padding: 0; }
.lq-prose ul { list-style: none; }
.lq-prose ul li {
    position: relative;
    margin: 0.45em 0;
    padding-left: 2rem;
}
/* Nội dung dán/nhập lỗi: <li> rỗng (chỉ còn icon) hoặc <p> lọt thẳng trong <ul> — không để icon đè lên chữ. */
.lq-prose ul li:empty { display: none; }
.lq-prose ul > :not(li) { margin: 0.45em 0; padding-left: 2rem; }
.lq-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--color-brand, #a9752d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 70%;
}
.lq-prose ol { padding-left: 1.4rem; list-style: decimal; }
.lq-prose ol li { margin: 0.35em 0; padding-left: 0.3rem; }
.lq-prose ol li::marker { color: var(--color-brand, #a9752d); font-weight: 600; }

/* Ảnh */
.lq-prose figure { margin: 1.6em 0; }
.lq-prose img { max-width: 100%; height: auto; border-radius: 0.9rem; }
.lq-prose figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-ink-soft, #4b5563);
}

/* Bảng */
.lq-prose .wp-block-table,
.lq-prose table { margin: 1.6em 0; overflow-x: auto; }
.lq-prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    border: 1px solid var(--color-line, #e6d9c4);
    border-radius: 0.75rem;
    overflow: hidden;
}
.lq-prose th,
.lq-prose td {
    padding: 0.65em 0.9em;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-line, #e6d9c4);
}
.lq-prose tr:last-child td { border-bottom: 0; }
.lq-prose th,
.lq-prose thead td { background: var(--color-paper-warm, #f3eadc); font-weight: 600; color: var(--color-ink, #14284a); }
.lq-prose td:first-child { font-weight: 500; color: var(--color-ink, #14284a); }

/* Columns → lưới điểm nổi bật */
.lq-prose .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 1.25rem 0;
    margin: 1.6em 0;
    text-align: center;
}
.lq-prose .wp-block-column { padding: 0.25rem 1rem; }
.lq-prose .wp-block-column + .wp-block-column { border-left: 1px solid var(--color-line, #e6d9c4); }
.lq-prose .wp-block-column img { width: 3.25rem; height: 3.25rem; margin: 0 auto 0.6rem; border-radius: 999px; object-fit: contain; }
.lq-prose .wp-block-column figure { margin: 0; }
.lq-prose .wp-block-column h3,
.lq-prose .wp-block-column h4 { margin: 0 0 0.3rem; font-family: var(--font-sans, sans-serif); font-size: 0.9rem; }
.lq-prose .wp-block-column p { margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--color-ink-soft, #4b5563); }

/* Nút */
.lq-prose .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 1.6em 0; }
.lq-prose .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 2.25rem;
    border-radius: 999px;
    background: var(--color-brand, #a9752d);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 24px -12px rgba(169, 117, 45, 0.8);
    transition: background 0.2s;
}
.lq-prose .wp-block-button__link:hover { background: var(--color-brand-dark, #8c5f22); }
.lq-prose .wp-block-button__link::after { content: '\2192'; }
.lq-prose .is-style-outline .wp-block-button__link {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--color-brand, #a9752d);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.lq-prose .is-style-outline .wp-block-button__link::after { content: none; }

.lq-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--color-line, #e6d9c4); }
.lq-prose code { padding: 0.1em 0.35em; border-radius: 0.3rem; background: var(--color-paper-warm, #f3eadc); font-size: 0.88em; }
.lq-prose pre { margin: 1.5em 0; padding: 1rem 1.2rem; border-radius: 0.75rem; background: var(--color-night, #061c2e); color: #f3e7d0; overflow-x: auto; }
.lq-prose pre code { padding: 0; background: none; }

.lq-page-links { margin-top: 1.5rem; display: flex; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; }

/* Hero trang (page.php): thấp hơn hero danh sách */
@media (min-width: 1024px) {
    .lq-single-hero { min-height: 420px; }
}


/* ===================================================
   FAQ Rank Math → accordion
   Không có JS: hiện đủ câu hỏi + trả lời. Có JS: thêm .lq-faq-js, câu trả lời thu gọn, bấm câu hỏi để mở.
   =================================================== */
.lq-prose .rank-math-block { margin: 1.8em 0; }
.lq-prose .rank-math-list { display: grid; gap: 0.75rem; }
.lq-prose .rank-math-list-item {
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(230, 217, 196, 0.9);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.lq-prose .rank-math-question {
    position: relative;
    margin: 0;
    padding: 1rem 3rem 1rem 1.25rem;
    font-family: var(--font-serif, inherit);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-ink, #14284a);
}
.lq-prose .rank-math-answer { padding: 0 1.25rem 1.1rem; }
.lq-prose .rank-math-answer > :last-child { margin-bottom: 0; }

.lq-faq-js .rank-math-question { cursor: pointer; user-select: none; transition: color 0.2s ease; }
.lq-faq-js .rank-math-question:hover,
.lq-faq-js .rank-math-question:focus-visible { color: var(--color-brand, #a9752d); outline: none; }
.lq-faq-js .rank-math-question::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}
.lq-faq-js .rank-math-list-item.is-open { background: var(--color-paper, #f9f4ec); box-shadow: 0 0 0 1px var(--color-brand, #a9752d); }
.lq-faq-js .rank-math-list-item.is-open .rank-math-question { color: var(--color-brand, #a9752d); }
.lq-faq-js .rank-math-list-item.is-open .rank-math-question::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.lq-faq-js .rank-math-list-item:not(.is-open) .rank-math-answer { display: none; }

/* ===================================================
   LẬP QUẺ (page-lap-que.php, page-lap-que-viec.php) — hero dùng tranh trang chủ, phủ giấy đậm hơn
   vì chữ dài và thẻ công cụ chồng lên phần đáy.
   =================================================== */
.lq-page-hero__img { object-position: right 70%; }
.lq-page-hero__veil {
    background: linear-gradient(to bottom, rgba(249, 244, 236, 0.93) 0%, rgba(249, 244, 236, 0.86) 70%, #f9f4ec 100%);
}
@media (min-width: 1024px) {
    .lq-page-hero__veil {
        background:
            linear-gradient(to right, rgba(249, 244, 236, 0.97) 0%, rgba(249, 244, 236, 0.9) 38%, rgba(249, 244, 236, 0.35) 62%, rgba(249, 244, 236, 0.15) 100%),
            linear-gradient(to bottom, rgba(249, 244, 236, 0) 55%, #f9f4ec 100%);
    }
}

/* ===================================================
   KINH DỊCH — hero nền tối (.lq-on-dark): breadcrumb chữ sáng
   =================================================== */
.lq-on-dark nav[aria-label="Breadcrumb"],
.lq-on-dark nav[aria-label="Breadcrumb"] a { color: rgba(255, 255, 255, 0.7); }
.lq-on-dark nav[aria-label="Breadcrumb"] a:hover { color: var(--color-brand-light, #cfa565); }
.lq-on-dark nav[aria-label="Breadcrumb"] [aria-hidden="true"] { color: rgba(255, 255, 255, 0.35); }
