/* KHIND RTO SaaS shell: the header and footer around the copied WordPress page bodies. */
:root {
    --kh-yellow: #f2c213;
    --kh-yellow-dark: #d9a800;
    --kh-ink: #111111;
    --kh-ink-soft: #1b1b1b;
    --kh-cream: #faf7ef;
    --kh-line: #e7e2d5;
    --kh-muted: #5f5b52;
}

.kh-wrap {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------------------------------------------------------------- announce bar */
.kh-announce {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 9px;
    padding: 7px 14px;
    background: var(--kh-yellow);
    color: var(--kh-ink);
    font: 600 11px/1.35 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}

.kh-announce span { white-space: nowrap; }
.kh-announce span[aria-hidden] { font-size: 8px; }

.kh-announce span[aria-hidden] { opacity: .45; }


/* ---------------------------------------------------------------- agent card
   Shared by every page that shows the advisor (agent home + categories). */
.kh-public .khind-agent-id {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #14100a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.kh-public .khind-agent-id span { opacity: .55; font-weight: 600; }

.kh-public .khind-agent-socials {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 14px;
}

.kh-public .khind-agent-socials__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kh-public .khind-agent-socials__badge {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    transition: transform .2s ease;
}

.kh-public .khind-agent-socials__badge:hover { transform: translateY(-2px); }
.kh-public .khind-agent-socials__badge svg { width: 18px; height: 18px; }
.kh-public .khind-agent-socials__badge.is-facebook { background: #1877f2; }
.kh-public .khind-agent-socials__badge.is-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7); }
.kh-public .khind-agent-socials__badge.is-tiktok { background: #010101; }
.kh-public .khind-agent-socials__badge.is-threads { background: #101010; }

.kh-public .khind-agent-socials__note {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.kh-public .khind-sales-agent__photo img {
    width: 100% !important;
    max-width: 180px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* ---------------------------------------------------------------- header */
.kh-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #0e0e0e;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px -26px rgba(0, 0, 0, .85);
    font-family: 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
}

.kh-header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 72px;
}

.kh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    text-decoration: none;
    color: #ffffff;
    background: #ffffff;
    padding: 7px 12px;
    border-radius: 12px;
}

.kh-brand img { width: auto; height: 26px; display: block; }
.kh-brand span { display: none; }

.kh-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 8px;
}

.kh-nav > a,
.kh-drop-toggle {
    position: relative;
    border: 0;
    background: none;
    padding: 8px 0;
    color: #f2f0ea;
    font: 600 14px/1 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.kh-nav > a::after,
.kh-drop-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--kh-yellow);
    transform: scaleX(0);
    transition: transform .18s ease;
}

.kh-nav > a:hover::after,
.kh-drop-toggle:hover::after,
.kh-drop.is-open .kh-drop-toggle::after { transform: scaleX(1); }

.kh-drop { position: relative; }
/* The caret inside nav dropdowns is small; the language label is not —
   it must keep the same size as the rest of the header. */
.kh-drop-toggle span:not([data-language-label]) { font-size: 10px; margin-left: 4px; }

.kh-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -14px;
    min-width: 224px;
    padding: 8px;
    border: 1px solid var(--kh-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .45);
    display: none;
}

.kh-drop:hover .kh-drop-menu,
.kh-drop:focus-within .kh-drop-menu,
.kh-drop.is-open .kh-drop-menu { display: block; }

.kh-drop-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--kh-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.kh-drop-menu a:hover { background: #fdf6dd; color: var(--kh-ink); }


/* Share dropdown (same flow as coway-saas: network links + copy link). */
.kh-drop--share .kh-drop-menu {
    left: auto;
    right: 0;
    min-width: 208px;
}

.kh-drop--share .kh-drop-menu a,
.kh-drop--share .kh-share-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--kh-ink);
    font: 600 13.5px/1.2 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.kh-drop--share .kh-drop-menu a:hover,
.kh-drop--share .kh-share-copy:hover { background: #fdf6dd; }

.kh-share-dot {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.kh-share-dot--wa { background: #25d366; }
.kh-share-dot--fb { background: #1877f2; }
.kh-share-dot--tg { background: #229ed9; }
.kh-share-dot--copy { background: #14100a; }


/* Language switcher: a <details> disclosure wearing the pill look. */
.kh-lang > summary {
    list-style: none;
    cursor: pointer;
}

.kh-lang > summary::-webkit-details-marker { display: none; }
.kh-lang > summary::marker { content: ''; }

.kh-lang .kh-lang-menu {
    left: auto;
    right: 0;
    min-width: 190px;
}

/* <details> open state has to show the menu; the hover/is-open rules do not cover it. */
.kh-lang[open] .kh-lang-menu,
details[data-kh-drop][open] > .kh-drop-menu {
    display: block;
}

.kh-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.kh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 700 13.5px/1 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.kh-btn:hover { transform: translateY(-1px); }
.kh-btn-primary { background: var(--kh-yellow); color: var(--kh-ink); }
.kh-btn-primary:hover { background: var(--kh-yellow-dark); }
.kh-btn-ghost { border-color: rgba(255, 255, 255, .28); color: #ffffff; }
.kh-btn-ghost:hover { border-color: var(--kh-yellow); color: var(--kh-yellow); }

.kh-burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.kh-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform .18s ease, opacity .18s ease;
}

.kh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.kh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer: slide-in panel like the reference agent page. */
.kh-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(2px);
}

.kh-drawer-overlay[hidden] { display: none; }

.kh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: min(390px, 88vw);
    background: #141414;
    color: #f2f0ea;
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .8);
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-family: 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
}

.kh-drawer.is-open { transform: translateX(0); }

/* The closed drawer sits just off-screen; its shadow used to bleed onto the
   right edge of every bright page. */
.kh-drawer:not(.is-open) { box-shadow: none; }

.kh-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.kh-drawer-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--kh-yellow);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kh-drawer-head strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #ffffff;
}

.kh-drawer-head small {
    display: block;
    margin-top: 5px;
    color: #9d9a92;
    font-size: 12.5px;
    line-height: 1.4;
}

.kh-drawer-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.kh-drawer-close:hover { border-color: var(--kh-yellow); color: var(--kh-yellow); }
.kh-drawer-close svg { width: 17px; height: 17px; }

.kh-drawer-nav { display: grid; }

.kh-drawer-nav a {
    display: grid;
    grid-template-columns: 30px 1fr 28px;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #f2f0ea;
    text-decoration: none;
}

.kh-drawer-nav a:hover { background: rgba(242, 194, 19, .06); }

.kh-drawer-no {
    color: var(--kh-yellow);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.kh-drawer-text b {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.kh-drawer-text i {
    display: block;
    margin-top: 2px;
    color: #9d9a92;
    font-size: 11.5px;
    font-style: normal;
    line-height: 1.35;
}

.kh-drawer-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: var(--kh-yellow);
    font-size: 13px;
}

.kh-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 20px 6px;
}

.kh-drawer-actions .kh-btn { color: #111111; }
.kh-drawer-actions .kh-btn-ghost { color: #ffffff; }
.kh-drawer-actions .kh-btn-ghost:hover { color: var(--kh-yellow); }

.kh-drawer-foot {
    margin-top: auto;
    padding: 22px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.kh-drawer-foot b {
    display: block;
    color: var(--kh-yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.kh-drawer-foot span {
    display: block;
    margin-top: 4px;
    color: #9d9a92;
    font-size: 11.5px;
}

body.kh-drawer-open { overflow: hidden; }

@media (max-width: 1080px) {
    .kh-nav { display: none; }
    .kh-burger { display: inline-flex; }
}

@media (max-width: 560px) {
    .kh-announce { font-size: 10px; gap: 7px; }
    .kh-actions .kh-btn-ghost { display: none; }
    .kh-header-inner { min-height: 64px; gap: 12px; }
    .kh-brand span { display: none; }
}

/* ---------------------------------------------------------------- footer */
.kh-footer {
    background: var(--kh-ink);
    color: #d8d6cf;
    font-family: 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
    padding: 54px 0 0;
}

.kh-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 40px;
}

.kh-footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
}
.kh-footer-logo img { height: 38px; width: auto; display: block; }

.kh-footer-brand p {
    margin: 0 0 16px;
    max-width: 360px;
    color: #a9a69e;
    font-size: 12.5px;
    line-height: 1.75;
}

.kh-footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #f2c21366;
    border-radius: 999px;
    color: var(--kh-yellow);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.kh-footer-wa:hover { background: #f2c21314; }

.kh-footer-col h4 {
    margin: 6px 0 14px;
    color: var(--kh-yellow);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kh-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.kh-footer-col li { font-size: 12.5px; line-height: 1.45; color: #a9a69e; }
.kh-footer-col strong { color: #fff; font-weight: 700; }

.kh-footer-col a { color: #d8d6cf; text-decoration: none; }
.kh-footer-col a:hover { color: var(--kh-yellow); }

.kh-footer-bottom {
    border-top: 1px solid #ffffff14;
    padding: 16px 0 20px;
}

.kh-footer-bottom .kh-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: #8a877f;
    font-size: 11.5px;
}

@media (max-width: 900px) {
    .kh-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 560px) {
    .kh-footer { padding-top: 40px; }
    .kh-footer-grid { grid-template-columns: 1fr; }
    .kh-footer-bottom .kh-wrap { justify-content: flex-start; }
}

/* Sticky header offset for the in-page anchors of the copied pages. */
[id] { scroll-margin-top: 96px; }


/* ------------------------------------------------------------------
   Header pills: language switcher + share (like the reference site).
   ------------------------------------------------------------------ */
.kh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font: 600 14px/1 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.kh-pill span,
.kh-pill [data-language-label] {
    font-size: 14px;
    margin-left: 0;
}

.kh-pill:hover { border-color: var(--kh-yellow); color: var(--kh-yellow); }
.kh-pill-icon { width: 17px; height: 17px; }

.kh-lang { position: relative; }
.kh-lang .kh-drop-menu { left: auto; right: 0; min-width: 190px; }

.kh-share-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(12px);
    z-index: 1200;
    padding: 10px 16px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font: 600 13px/1.3 'Plus Jakarta Sans', 'Montserrat', Arial, sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.kh-share-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* The Google Translate banner and toolbar would cover the site header. */
.skiptranslate iframe.goog-te-banner-frame,
body > .skiptranslate { display: none !important; }
body { top: 0 !important; }

@media (max-width: 900px) {
    #kh-share span { display: none; }
    .kh-pill { padding: 0 12px; }
}

@media (max-width: 560px) {
    .kh-lang [data-language-label] { display: none; }
    .kh-share-toast { bottom: 18px; }
    .kh-announce { font-size: 9px; gap: 2px 6px; padding: 6px 10px; }
    .kh-announce span[aria-hidden] { display: none; }
}

/* Keep the copied page's floating widgets behind the drawer. */
.kh-drawer { z-index: 3000; }
.kh-drawer-overlay { z-index: 2999; }
body.kh-drawer-open .lg-floating-actions,
body.kh-drawer-open #noti-container,
body.kh-drawer-open .kh-share-toast { display: none !important; }

body.kh-drawer-open #lg-floating-actions { display: none !important; }
