.kb-page {
    --kb-navy: #0d4070;
    --kb-blue: #14538e;
    --kb-gold: #b8935a;
    --kb-gold-light: #e8cfa4;
    --kb-line: #e3eaf2;
    width: 100%;
    max-width: 1180px;
    padding: 0 20px 72px;
}
.kb-page section { max-width: none; margin-top: 0; padding: 0; }
.kb-page p, .kb-page h1, .kb-page h2 { text-align: left; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.kb-eyebrow {
    color: var(--kb-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.kb-page a:focus-visible { outline: 3px solid var(--kb-gold); outline-offset: 3px; }

/* Hero */
.kb-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
    align-items: center;
    margin-top: 28px;
    padding: 48px 48px 56px;
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #082544 0%, #0f467c 55%, #1a68a6 100%);
    box-shadow: 0 30px 70px rgba(13, 64, 112, .25);
}
.kb-hero::before, .kb-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(10px);
    animation: kb-drift 14s ease-in-out infinite alternate;
}
.kb-hero::before {
    top: -140px;
    right: 26%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(232, 207, 164, .3), transparent 65%);
}
.kb-hero::after {
    bottom: -170px;
    left: -90px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(94, 170, 235, .3), transparent 65%);
    animation-delay: -7s;
}
@keyframes kb-drift { to { transform: translate(40px, 24px) scale(1.08); } }
.kb-hero-text * { color: #fff; }
.kb-hero .kb-eyebrow { margin-top: 22px; color: var(--kb-gold-light); }
.kb-breadcrumb { display: flex; gap: 8px; font-size: 14px; opacity: .8; }
.kb-breadcrumb a:hover { text-decoration: underline; }
.kb-hero h1 { margin-top: 8px; font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.15; }
.kb-hero h1 span {
    display: block;
    margin-top: 8px;
    background: linear-gradient(90deg, #f3dfba, #c9a46c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 600;
}
.kb-lead { max-width: 620px; margin-top: 16px; font-size: 16px; line-height: 1.8; opacity: .88; }
.kb-stats { display: flex; gap: 12px; margin-top: 28px; }
.kb-stats div {
    min-width: 104px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
}
.kb-stats dt { font-size: 13px; opacity: .78; }
.kb-stats dd { font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--kb-gold-light); }

.kb-hero-visual { position: relative; height: 330px; }
.kb-hero-visual img {
    position: absolute;
    width: 78%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, .32);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.kb-hero-visual img:nth-child(1) { z-index: 3; left: 0; bottom: 0; transform: rotate(-4deg); }
.kb-hero-visual img:nth-child(2) { z-index: 2; right: 0; top: 50%; transform: translateY(-60%) rotate(5deg); }
.kb-hero-visual img:nth-child(3) { z-index: 1; left: 12%; top: 0; transform: rotate(-1deg); opacity: .9; }
.kb-hero:hover .kb-hero-visual img:nth-child(1) { transform: rotate(-6deg) translate(-8px, 6px); }
.kb-hero:hover .kb-hero-visual img:nth-child(2) { transform: translateY(-64%) rotate(7deg) translateX(8px); }

/* Filters */
.kb-filters {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin: -28px 32px 0;
    padding: 16px 20px;
    border: 1px solid var(--kb-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 40px rgba(13, 64, 112, .12);
}
.kb-types { display: inline-flex; padding: 4px; border-radius: 999px; background: #eef4fa; }
.kb-types a { padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--kb-navy); transition: background .2s, color .2s; }
.kb-types a:hover { background: #fff; }
.kb-types a[aria-current] { background: var(--kb-blue); color: #fff; box-shadow: 0 6px 14px rgba(20, 83, 142, .3); }
.kb-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-topics a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--kb-line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--kb-navy);
    transition: border-color .2s, background .2s;
}
.kb-topics a:hover { border-color: var(--kb-gold); }
.kb-topics a span { min-width: 22px; padding: 0 6px; border-radius: 999px; background: #eef4fa; font-size: 12px; text-align: center; }
.kb-topics a[aria-current] { border-color: var(--kb-gold); background: #fbf6ee; font-weight: 600; }
.kb-topics a[aria-current] span { background: var(--kb-gold); color: #fff; }

.kb-page .kb-count { margin: 32px 0 16px; color: #5f7489; font-size: 14px; }

/* Cards */
.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--kb-line);
    border-radius: 22px;
    background: #fff;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.kb-card:hover { transform: translateY(-4px); border-color: #cfdcea; box-shadow: 0 22px 44px rgba(13, 64, 112, .13); }
.kb-cover { position: relative; display: block; overflow: hidden; background: #eaf1f7; }
.kb-cover > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.kb-card:hover .kb-cover > img { transform: scale(1.05); }
.kb-card.is-video .kb-cover { background: linear-gradient(135deg, #0b3156, #1a5a8f); }
.kb-card.is-video .kb-cover > img { object-fit: contain; }
.kb-card.is-video:hover .kb-cover > img { transform: scale(1.02); }
.kb-tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(8, 37, 68, .82);
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(6px);
}
.kb-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--kb-blue);
    font-size: 22px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
    animation: kb-pulse 2.4s ease-out infinite;
}
@keyframes kb-pulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.kb-brand {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 52px;
    padding: 4px;
    border-radius: 10px;
    background: #faf6ea;
    box-shadow: 0 3px 12px rgba(21, 63, 99, .15);
}
.kb-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kb-copy { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.kb-page .kb-type { color: var(--kb-gold); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.kb-card h2 { margin-top: 8px; font-size: 19px; font-weight: 600; line-height: 1.5; }
.kb-card h2 a { color: var(--kb-navy); }
.kb-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kb-page .kb-excerpt {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    color: #4f667c;
    font-size: 14px;
    line-height: 1.75;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.kb-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    color: var(--kb-blue);
    font-size: 14px;
    font-weight: 600;
}
.kb-copy > .kb-more { border-top: 1px solid #edf2f7; margin-top: 18px; }
.kb-more b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eef4fa; transition: background .25s, color .25s, transform .25s; }
.kb-card:hover .kb-more b { background: var(--kb-blue); color: #fff; transform: translateX(3px); }

.kb-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.kb-card.is-featured .kb-cover > img { height: 100%; min-height: 320px; }
.kb-card.is-featured .kb-copy { justify-content: center; padding: 40px; }
.kb-card.is-featured .kb-type::before { content: "แนะนำ · "; }
.kb-card.is-featured h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; }
.kb-card.is-featured .kb-excerpt { font-size: 16px; -webkit-line-clamp: 4; }
.kb-card.is-featured .kb-more { margin-top: 24px; border-top: 0; justify-content: flex-start; gap: 12px; }

.kb-empty { grid-column: 1 / -1; padding: 40px; border: 1px dashed #cbd9e7; border-radius: 22px; background: #f7fafd; }
.kb-empty a { display: inline-block; margin-top: 8px; color: var(--kb-blue); font-weight: 600; }
.kb-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; color: #5f7489; font-size: 14px; }
.kb-pagination a { padding: 10px 20px; border: 1px solid var(--kb-line); border-radius: 999px; color: var(--kb-blue); font-weight: 600; }
.kb-pagination a:hover { border-color: var(--kb-blue); background: #eef4fa; }

/* Symptom finder */
.kb-page .kb-symptoms { margin-top: 64px; }
.kb-symptoms h2 { margin-top: 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.kb-page .kb-section-lead { max-width: 720px; margin-top: 8px; color: #4f667c; line-height: 1.8; }
.kb-symptoms ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; padding: 0; list-style: none; }
.kb-symptoms li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--kb-line);
    border-radius: 20px;
    background: linear-gradient(160deg, #fff 40%, #f3f8fc);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.kb-symptoms li:hover { border-color: var(--kb-gold-light); box-shadow: 0 16px 34px rgba(13, 64, 112, .1); transform: translateY(-3px); }
.kb-symptoms strong { color: var(--kb-navy); font-size: 17px; line-height: 1.5; }
.kb-symptoms a { color: var(--kb-blue); font-weight: 600; font-size: 15px; }
.kb-symptoms a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kb-symptoms a span { display: inline-block; transition: transform .2s; }
.kb-symptoms a:hover span { transform: translateX(3px); }
.kb-symptoms a.is-faq { margin-top: auto; color: #6b7f93; font-size: 13px; font-weight: 500; }

/* CTA */
.kb-page .kb-cta {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-top: 48px;
    padding: 36px 40px;
    border-radius: 28px;
    background: linear-gradient(120deg, #0b2f55, #14538e);
    box-shadow: 0 24px 50px rgba(13, 64, 112, .22);
}
.kb-cta > img { width: 180px; height: 180px; border: 4px solid var(--kb-gold-light); border-radius: 50%; object-fit: cover; object-position: top; }
.kb-cta .kb-eyebrow { color: var(--kb-gold-light); }
.kb-cta h2 { margin-top: 6px; color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.4; }
.kb-page .kb-cta p:not(.kb-eyebrow) { margin-top: 10px; color: rgba(255, 255, 255, .86); line-height: 1.8; }
.kb-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.kb-cta-actions a { padding: 12px 22px; border-radius: 999px; font-weight: 600; transition: transform .2s, background .2s; }
.kb-cta-actions a:hover { transform: translateY(-2px); }
.kb-cta-actions .is-line { background: #06c755; color: #fff; }
.kb-cta-actions .is-ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.kb-cta-actions .is-ghost:hover { background: rgba(255, 255, 255, .12); }
.kb-cta-actions .is-text { color: var(--kb-gold-light); }

.kb-page .kb-footnote { margin-top: 24px; color: #6b7f93; font-size: 12px; line-height: 1.8; }
.kb-page .related-faq { margin-top: 56px; padding-left: 0; padding-right: 0; }

/* Reveal */
.kb-animate .kb-card, .kb-animate .kb-symptoms li { opacity: 0; transform: translateY(18px); }
.kb-animate .kb-card.is-visible, .kb-animate .kb-symptoms li.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.kb-animate .kb-card.is-visible:hover { transform: translateY(-4px); }
.kb-animate .kb-symptoms li.is-visible:hover { transform: translateY(-3px); }
.kb-grid .kb-card:nth-child(3n+2), .kb-symptoms li:nth-child(3n+2) { transition-delay: .08s; }
.kb-grid .kb-card:nth-child(3n), .kb-symptoms li:nth-child(3n) { transition-delay: .16s; }

@media (max-width: 1000px) {
    .kb-hero { grid-template-columns: minmax(0, 1fr); padding: 36px 28px 56px; }
    .kb-hero-visual { height: 260px; max-width: 460px; }
    .kb-grid, .kb-symptoms ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kb-filters { margin: -28px 16px 0; }
}
@media (max-width: 700px) {
    .kb-page { padding: 0 14px 56px; }
    .kb-hero { margin-top: 16px; padding: 28px 20px 52px; border-radius: 24px; }
    .kb-lead { font-size: 15px; }
    .kb-stats div { min-width: 0; flex: 1; padding: 10px 12px; }
    .kb-stats dd { font-size: 24px; }
    .kb-hero-visual { display: none; }
    .kb-filters { margin: -24px 8px 0; padding: 14px; }
    .kb-types { width: 100%; }
    .kb-types a { flex: 1; text-align: center; padding: 9px 10px; }
    .kb-grid, .kb-symptoms ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .kb-card.is-featured { display: flex; }
    .kb-card.is-featured .kb-cover > img { min-height: 0; }
    .kb-card.is-featured .kb-copy { padding: 22px; }
    .kb-page .kb-cta { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 22px; text-align: left; }
    .kb-cta > img { width: 120px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    .kb-hero::before, .kb-hero::after, .kb-play { animation: none; }
    .kb-page *, .kb-page *::before { transition: none !important; }
}
