/*
 * Limia Dental — Custom Navigation / Header Styles
 * Reset Astra's default header; fully custom sticky 1-row header
 * Includes: Trust bar · Desktop nav · Mega dropdown · Mobile off-canvas
 */

/* ============================================================
   0. RESET ASTRA HEADER (hide original, show ours)
   ============================================================ */
#masthead,
.ast-header-wrap,
.site-header,
.ast-primary-header-bar,
.ast-above-header,
.ast-below-header {
    display: none !important;
}

/* ============================================================
   1. SKIP NAVIGATION (accessibility)
   ============================================================ */
.limia-skip-nav {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100001;
    background: #00A859;
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 0 0 8px 8px;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: top .2s;
}
.limia-skip-nav:focus {
    top: 0;
}

/* ============================================================
   2. HEADER SHELL
   ============================================================ */
.limia-header {
    width: 100%;
    z-index: 9000;
    background: #fff;
    font-family: 'Inter', 'Roboto', -apple-system, sans-serif;
}

/* Sticky state (class toggled by JS) */
.limia-header--sticky .limia-trustbar {
    display: none; /* hide trust bar when sticky to save height */
}
.limia-header--sticky .limia-header__row {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    box-shadow: 0 2px 24px rgba(0, 0, 0, .12);
    animation: lhdr-fadein .25s ease;
}
@keyframes lhdr-fadein {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Admin bar offset */
.admin-bar .limia-header--sticky .limia-header__row {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .limia-header--sticky .limia-header__row {
        top: 46px;
    }
}

/* Lock body scroll when mobile menu open */
body.limia-mob-open {
    overflow: hidden;
}

/* ============================================================
   3. TRUST BAR
   ============================================================ */
.limia-trustbar {
    background: #002a16;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    line-height: 1;
    padding: 0;
}
.limia-trustbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    gap: 8px;
}
.limia-trustbar__items {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.limia-trustbar__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.limia-trustbar__item svg {
    flex-shrink: 0;
    opacity: .7;
}
.limia-trustbar__sep {
    color: rgba(255, 255, 255, .3);
    flex-shrink: 0;
}
.limia-trustbar__right {
    flex-shrink: 0;
}
.limia-trustbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7fffc4;
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: none;
    letter-spacing: .3px;
    transition: color .15s;
}
.limia-trustbar__phone:hover {
    color: #fff;
}
.limia-trustbar__phone svg {
    flex-shrink: 0;
}

/* ============================================================
   4. MAIN NAV ROW
   ============================================================ */
.limia-header__row {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.limia-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
    position: relative; /* cho dropdown neo theo toàn bộ hàng header */
}

/* ============================================================
   5. LOGO
   ============================================================ */
.limia-header__logo {
    flex-shrink: 0;
    margin-right: 8px;
    display: flex;
    align-items: center;
}
.limia-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.limia-logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}
.limia-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.limia-logo-text strong {
    font-size: 18px;
    font-weight: 900;
    color: #00A859;
    letter-spacing: .5px;
}
.limia-logo-text span {
    font-size: 10.5px;
    color: #888;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: uppercase;
}
/* If user sets a real logo via Customizer */
.limia-header__logo .custom-logo-link {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}
.limia-header__logo .custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain;
    transform: translateY(-2px);
}

/* ============================================================
   6. DESKTOP NAV
   ============================================================ */
.limia-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.limia-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.limia-nav__item {
    position: relative;
    overflow: visible; /* ensure dropdown is never clipped by the <li> */
}
.limia-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: .55rem .9rem;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s, background .15s;
    position: relative;
}
.limia-nav__link:hover,
.limia-nav__link.active {
    color: #00A859;
    background: #f0fdf4;
}
/* Active underline accent */
.limia-nav__link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: .9rem;
    right: .9rem;
    height: 2px;
    background: #00A859;
    border-radius: 2px;
}

/* Chevron in dropdown trigger */
.limia-nav__chevron {
    flex-shrink: 0;
    transition: transform .2s;
}
.limia-nav__item--has-drop:hover .limia-nav__chevron,
.limia-nav__item--has-drop:focus-within .limia-nav__chevron,
.limia-nav__item--has-drop.is-open .limia-nav__chevron {
    transform: rotate(180deg);
}

/* ============================================================
   7. MEGA DROPDOWN
   Dropdown neo theo .limia-header__inner (position: relative).
   Hover ổn định nhờ align-self:stretch (li phủ toàn chiều cao header)
   + ::before bridge (transparent, extends pointer area 14px above dropdown).
   overflow:visible trên outer shell để bridge KHÔNG bị clip.
   Toàn bộ visual (bg, shadow, radius, overflow) đặt trên __wrap.
   ============================================================ */

/* position:static  → dropdown bắc neo theo .limia-header__inner
   align-self:stretch → <li> phủ hết chiều cao header row
   display:flex / align-items:center → nav link vẫn căn giữa dọc */
.limia-nav__item--has-drop {
    position: static;
    align-self: stretch;
    display: flex;
    align-items: center;
}

/* Outer transparent shell — overflow:visible BẮT BUỘC để ::before bridge thoát ra ngoài */
.limia-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: clamp(620px, 64vw, 700px);
    max-width: calc(100vw - 32px);
    background: transparent;   /* visual styling chuyển xuống __wrap */
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;          /* PHẢI visible — cho ::before bridge vượt lên trên */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
    z-index: 9100;
}

/* ── Hover bridge ────────────────────────────────────────────
   Vùng transparent cao 14px, nằm TRÊN dropdown (top: -14px).
   Khi chuột di chuyển từ nav link xuống dropdown, nó đi qua
   khu vực này — bridge giữ CSS :hover active trên <li>,
   ngăn mouseleave kích hoạt sớm.
   Hoạt động vì outer dropdown có overflow:visible. */
.limia-dropdown::before {
    content: '';
    display: block;
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

/* ::after không dùng */
.limia-dropdown::after {
    display: none;
}

/* Bridge trên <li> — không cần */
.limia-nav__item--has-drop::after {
    display: none;
}

/* Show on hover + keyboard focus */
.limia-nav__item--has-drop:hover .limia-dropdown,
.limia-nav__item--has-drop:focus-within .limia-dropdown,
.limia-nav__item--has-drop.is-open .limia-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity .2s ease, transform .2s ease;
}

/* ── Inner wrap: TẤT CẢ visual ở đây ──────────────────────── */
.limia-dropdown__wrap {
    padding: 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .06);
    overflow: hidden;   /* clip card backgrounds vừa khít border-radius */
}
.limia-dropdown__heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #aaa;
    margin: 0 0 14px 4px;
}
.limia-dropdown__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 8px;
}

/* Each service card in dropdown */
.limia-drop-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    min-height: 74px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s, transform .1s;
    border: 1.5px solid transparent;
}
.limia-drop-card:hover {
    background: #f0fdf4;
    border-color: #b7e4c7;
    /* Không dịch sang phải để tránh cảm giác nền trắng bị \"thiếu\" ở mép phải */
    transform: none;
}
.limia-drop-card--cta {
    background: #f0fdf4;
    border-color: #b7e4c7;
}
.limia-drop-card--cta:hover {
    background: #e8f5ee;
    border-color: #00A859;
}

.limia-drop-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ic, #f0fdf4);
    color: var(--sc, #00A859);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.limia-drop-card__icon svg {
    stroke: var(--sc, #00A859);
}
.limia-drop-card__body {
    flex: 1;
    min-width: 0;
}
.limia-drop-card__body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.limia-drop-card__body span {
    font-size: 11.5px;
    color: #888;
    white-space: normal;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.limia-drop-card__arr {
    flex-shrink: 0;
    color: #ccc;
    transition: color .15s, transform .15s;
}
.limia-drop-card:hover .limia-drop-card__arr {
    color: #00A859;
    transform: none;
}

/* Dropdown footer */
.limia-dropdown__foot {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}
.limia-dropdown__foot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #00A859;
    text-decoration: none;
    transition: gap .15s;
}
.limia-dropdown__foot-link:hover {
    gap: 10px;
}
.limia-dropdown__foot-.limia-hdr-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 800;
    color: #00A859;
    text-decoration: none;
    transition: color .2s;
    background: #e8f5ee;
    padding: 6px 14px;
    border-radius: 40px;
}
.limia-hdr-phone:hover {
    color: #007d42;
    background: #dcfce7;
}

/* HEADER SEARCH (TOP BAR - WIDE PILL) */
.limia-hdr-search--top { position: relative; }
.limia-hdr-search--top form { display: flex; align-items: center; background: rgba(255,255,255,0.15); border-radius: 30px; padding: 0 14px; transition: 0.3s; width: 280px; border: 1px solid rgba(255,255,255,0.1); height: 26px; }
.limia-hdr-search--top form:focus-within { background: #fff; width: 340px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); border-color: #fff; }
.limia-hdr-search--top input { border: none; background: transparent; flex: 1; font-size: 13.5px; outline: none; transition: 0.3s; color: #fff; padding: 4px 0; }
.limia-hdr-search--top input:focus { color: #1a1a2e; }
.limia-hdr-search--top input::placeholder { color: rgba(255,255,255,0.85); font-weight: 500;}
.limia-hdr-search--top form:focus-within input::placeholder { color: #888; }
.limia-hdr-search--top button { background: none; border: none; padding: 0 0 0 8px; color: rgba(255,255,255,0.9); cursor: pointer; display: flex; align-items: center; justify-content: center; transform: translateY(1px); transition: color 0.2s; }
.limia-hdr-search--top form:focus-within button { color: #00A859; }

/* Ajax Live Search Results */
.limia-search-results { position: absolute; top: calc(100% + 12px); right: 0; width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.15); border: 1px solid #eaeaea; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.2s; z-index: 9999; overflow: hidden; }
.limia-search-results--active { opacity: 1; visibility: visible; transform: translateY(0); }
.limia-search-results ul { list-style: none; margin: 0; padding: 8px 0; }
.limia-search-results li a { display: block; padding: 12px 20px; font-size: 14px; color: #2d3748; text-decoration: none; border-bottom: 1px solid #f5f5f5; line-height: 1.4; font-weight: 500; transition: background 0.2s; }
.limia-search-results li a:hover { background: #fdfdfd; color: #00A859; }
.limia-search-results li:last-child a { border-bottom: none; }
.ls-loading, .ls-no-results { padding: 20px; font-size: 14px; color: #666; font-style: italic; text-align: center; }
.ls-view-all { display: block; padding: 14px; text-align: center; background: #fafafa; color: #00A859; font-size: 13.5px; font-weight: 700; text-decoration: none; border-top: 1px solid #eaeaea; }
.ls-view-all:hover { background: #e8f5ee; }

/* GLOBAL READING PROGRESS BAR */
#limia-global-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, #00A859, #EF6C00); /* Green to Orange */
    z-index: 999999;
    box-shadow: 0 0 8px rgba(239, 108, 0, 0.4);
    transition: width 0.1s linear;
}
/* When header is sticky, adjust top if necessary, but Ast theme usually overrides */

@media (max-width: 768px) {
    /* Hide wide search on mobile trustbar */
    .limia-hdr-search--top { display: none; }
    .limia-dropdown {
        width: min(96vw, 560px);
    }
    .limia-dropdown__wrap {
        padding: 16px;
    }
    .limia-dropdown__grid {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }
    .limia-drop-card {
        min-height: 68px;
    }
}

/* ============================================================
   8. HEADER ACTIONS (phone + CTA)
   ============================================================ */
.limia-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 8px;
}
.limia-hdr-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    white-space: nowrap;
    padding: .45rem .9rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    transition: all .15s;
}
.limia-hdr-phone:hover {
    border-color: #00A859;
    color: #00A859;
    background: #f0fdf4;
}
.limia-hdr-phone svg {
    flex-shrink: 0;
    color: #00A859;
}
/* CTA button */
.limia-hdr-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00A859;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 800;
    padding: .55rem 1.2rem;
    border-radius: 50px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 168, 89, .3);
    transition: all .2s;
    flex-direction: column;
    padding: .45rem 1.1rem;
    line-height: 1.2;
    align-items: flex-start;
    gap: 0;
    position: relative;
}
.limia-hdr-cta:hover {
    background: #007d42;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 168, 89, .4);
}
.limia-hdr-cta svg {
    display: none; /* hide icon in stacked layout */
}
.limia-hdr-cta__sub {
    font-size: 10px;
    font-weight: 500;
    opacity: .85;
    letter-spacing: .3px;
}

/* ============================================================
   9. HAMBURGER BUTTON
   ============================================================ */
.limia-mob-toggle {
    display: none; /* shown at mobile breakpoint */
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: .5rem;
    cursor: pointer;
    color: #2d3748;
    margin-left: 4px;
    transition: border-color .15s, background .15s;
    flex-shrink: 0;
}
.limia-mob-toggle:hover {
    border-color: #00A859;
    background: #f0fdf4;
}
.limia-burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}
.limia-burger b {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s;
}
.limia-burger b:nth-child(2) { width: 75%; }
/* Animate to X when open */
[aria-expanded="true"] .limia-burger b:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .limia-burger b:nth-child(2) { opacity: 0; width: 0; }
[aria-expanded="true"] .limia-burger b:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   10. MOBILE MENU — Off-canvas
   ============================================================ */
.limia-mob-menu {
    position: fixed;
    inset: 0;
    z-index: 99000;
}
.limia-mob-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .3s;
}
.limia-mob-menu--open .limia-mob-backdrop {
    opacity: 1;
}

/* Sliding panel */
.limia-mob-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 100vw);
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, .15);
}
.limia-mob-menu--open .limia-mob-panel {
    transform: translateX(0);
}

/* Panel header */
.limia-mob-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.limia-mob-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.limia-mob-brand .custom-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    transform: translateY(-4px);
}
.limia-mob-close {
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: .4rem;
    cursor: pointer;
    color: #666;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.limia-mob-close:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fff0f0;
}

/* Quick CTAs */
.limia-mob-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.limia-mob-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: .75rem .5rem;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.limia-mob-cta--call {
    background: #f0fdf4;
    color: #00A859;
    border: 1.5px solid #b7e4c7;
}
.limia-mob-cta--call:hover {
    background: #00A859;
    color: #fff;
}
.limia-mob-cta--book {
    background: #00A859;
    color: #fff;
}
.limia-mob-cta--book:hover {
    background: #007d42;
}

/* Nav links */
.limia-mob-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}
.limia-mob-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.limia-mob-link:hover,
.limia-mob-link.active {
    color: #00A859;
    background: #f0fdf4;
    border-left-color: #00A859;
}

/* Accordion */
.limia-mob-acc__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all .15s;
    gap: 10px;
}
.limia-mob-acc__btn:hover,
.limia-mob-acc__btn[aria-expanded="true"] {
    color: #00A859;
    background: #f0fdf4;
    border-left-color: #00A859;
}
.limia-mob-acc__icon {
    flex-shrink: 0;
    transition: transform .25s;
}
.limia-mob-acc__btn[aria-expanded="true"] .limia-mob-acc__icon {
    transform: rotate(180deg);
}
.limia-mob-acc__panel {
    background: #f8f9fa;
    border-left: 3px solid #00A859;
    margin-left: 20px;
    margin-right: 16px;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    margin-bottom: 4px;
}

/* ============================================================
   MOBILE SEARCH & WIDGETS
   ============================================================ */
.limia-mob-search-form {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    display: flex;
    align-items: center;
}
.limia-mob-search-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 40px 12px 14px;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}
.limia-mob-search-input:focus {
    border-color: #00A859;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}
.limia-mob-search-btn {
    position: absolute;
    right: 28px;
    background: none;
    border: none;
    color: #00A859;
    padding: 0;
    display: flex;
}

.ls-mobile-widgets { display: none; } /* Default Hidden on Desktop */
@media (max-width: 1024px) {
    .ls-mobile-widgets { display: block; margin-bottom: 30px; }
}

/* Sub links */
.limia-mob-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: all .15s;
}
.limia-mob-sub:hover {
    color: #00A859;
    background: #e8f5ee;
}
.limia-mob-sub__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.limia-mob-sub--all {
    font-weight: 700;
    color: #00A859;
    border-top: 1px solid #e9ecef;
    margin-top: 2px;
}

/* Mobile menu footer */
.limia-mob-foot {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}
.limia-mob-foot p {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12.5px;
    color: #666;
    margin: 0 0 7px;
    line-height: 1.45;
}
.limia-mob-foot p:last-child { margin-bottom: 0; }
.limia-mob-foot svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #00A859;
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */

/* Hide desktop nav + phone on small screens */
@media (max-width: 1100px) {
    .limia-header__inner { height: 60px; }
    .limia-hdr-search { display: none; } /* Drop search to avoid crowding mobile */
    .limia-hdr-phone { display: none; }
}

@media (max-width: 960px) {
    .limia-nav          { display: none; }
    .limia-header__actions { display: none; }
    .limia-mob-toggle   { display: flex; margin-left: auto; }
    .limia-header__inner { height: 64px; }
    .limia-trustbar { display: none; } /* hide trust bar on mobile */
}

@media (min-width: 961px) {
    .limia-mob-toggle { display: none; }
    .limia-mob-menu   { display: none !important; }
}

/* Very large screens: increase spacing */
@media (min-width: 1280px) {
    .limia-nav__list   { gap: 4px; }
    .limia-nav__link   { padding: .55rem 1.1rem; font-size: 15px; }
    .limia-hdr-cta     { padding: .55rem 1.4rem; }
}

/* ============================================================
   12. CONTENT AREA TOP PADDING ADJUSTMENT
   When header is 1-row (no Astra masthead), remove extra padding
   that Astra adds via its layout classes
   ============================================================ */
#content.site-content,
.site-content .ast-container,
#content .ast-container {
    padding-top: 0 !important;
}

/* Prevent content flash when sticky kicks in */
#limia-hdr-spacer {
    flex-shrink: 0;
}

/* ============================================================
   ARCHIVE / CATEGORY PREMIUM GRID STYLING
   ============================================================ */
/* Đầu trang Archive (Banner Hero) */
.archive .ast-archive-description {
    background: linear-gradient(135deg, #00A859, #02894b);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    margin: 40px auto 60px;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(0, 168, 89, 0.2);
    position: relative;
    overflow: hidden;
}
.archive .ast-archive-description h1 {
    color: white;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}
.archive .ast-archive-description p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Khối Card Bài Viết */
.ast-article-post {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f2f2f2;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}
.ast-article-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 168, 89, 0.1);
    border-color: rgba(0, 168, 89, 0.2);
}

/* Bọc ảnh đại diện */
.ast-blog-featured-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.ast-blog-featured-section img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.ast-article-post:hover .ast-blog-featured-section img {
    transform: scale(1.05);
}

/* Badge Phân Loại */
.ast-article-post .ast-terms-link {
    background: rgba(255, 255, 255, 0.95);
    color: #00A859;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Tiêu đề & Nội dung Card */
.ast-article-post .entry-header,
.ast-article-post .entry-content {
    padding: 0 24px;
}
.ast-article-post .entry-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 12px;
}
.ast-article-post .entry-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: 0.2s;
}
.ast-article-post .entry-title a:hover {
    color: #00A859;
}
.ast-article-post .entry-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}
.ast-article-post .entry-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nút Đọc chuyên sâu (Read More) */
.ast-article-post .ast-button {
    color: #00A859;
    background: transparent;
    font-weight: 700;
    font-size: 14px;
    padding: 0;
    border: none;
    display: inline-flex;
    align-items: center;
}
.ast-article-post .ast-button::after {
    content: " \2192";
    margin-left: 6px;
    transition: margin-left 0.2s;
}
.ast-article-post .ast-button:hover {
    background: transparent;
    color: #02894b;
}
.ast-article-post .ast-button:hover::after {
    margin-left: 10px;
}
