:root {
    --teal: #0e7c86;
    --teal-dark: #0a5a62;
    --teal-light: #e6f4f5;
    --accent: #1d9bf0;
    --gold: #f5a623;
    --ink: #16323a;
    --slate: #5b6b72;
    --line: #eaeff0;
    --bg: #f5f8f9;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 4px 24px rgba(16, 50, 58, 0.05);
    --shadow-hover: 0 18px 46px rgba(16, 50, 58, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.muted { color: var(--slate); font-size: 0.92rem; }

/* ---------- Icons (Tabler line-icons) ---------- */
.ti { vertical-align: -0.125em; line-height: 1; }
.brand-mark .ti { font-size: 1.15rem; }
.eyebrow .ti { font-size: .95em; vertical-align: -1px; }
.page-head h1 .ti, .section-head h2 .ti { color: var(--teal); vertical-align: -2px; }
.tag .ti, .overseas-badge .ti, .article-tag .ti, .community-meta .ti, .cv-title .ti { vertical-align: -1px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 1px 3px rgba(14, 124, 134, .05);
}
.header-inner { display: flex; align-items: stretch; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.brand-mark {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(14, 124, 134, .28);
}
.brand-name strong { color: var(--teal); }
.nav-group { display: flex; align-items: stretch; gap: 24px; margin-left: auto; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.main-nav { display: flex; align-items: stretch; gap: 2px; }
.main-nav a {
    display: inline-flex; align-items: center; padding: 0 13px; white-space: nowrap;
    color: var(--slate); font-weight: 500; font-size: .94rem;
    border-bottom: 2.5px solid transparent; transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--teal); font-weight: 600; border-bottom-color: var(--teal); }
.nav-login { display: inline-flex; align-items: center; gap: 5px; align-self: center; white-space: nowrap; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 9px 6px; transition: color .15s; }
.nav-login:hover { color: var(--teal); }
.nav-actions .btn { white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; align-self: center; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 12px 22px; border-radius: 12px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn-sm { padding: 9px 17px; font-size: .9rem; border-radius: 11px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(14, 124, 134, .22); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(14, 124, 134, .3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Thanh thông báo (cập nhật hồ sơ + KYC) ---------- */
.notice-bar { background: linear-gradient(90deg, var(--teal), var(--teal-dark)); color: #fff; }
.notice-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; flex-wrap: wrap; font-size: .9rem; }
.notice-bar-inner strong { color: #fff; }
.notice-bar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.notice-bar-btn { background: #fff; color: var(--teal-dark); font-weight: 700; padding: 5px 14px; border-radius: 8px; white-space: nowrap; }
.notice-bar-btn:hover { background: var(--teal-light); color: var(--teal-dark); }
.notice-bar-close { background: transparent; border: none; color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; opacity: .75; padding: 4px; }
.notice-bar-close:hover { opacity: 1; }

/* Hộp "Đây là hồ sơ của bạn?" trên trang CV */
.claim-box { background: #fff7e6; border: 1px solid #ffe0a3; border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.claim-box strong { color: #b8791a; font-size: .98rem; }
.claim-box p { font-size: .85rem; color: var(--slate); margin: 8px 0 12px; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff; padding: 88px 0 100px; position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: 3.1rem; font-weight: 800; line-height: 1.12; max-width: 760px; letter-spacing: -.025em; }
.hero p { font-size: 1.18rem; opacity: .9; max-width: 640px; margin-top: 18px; line-height: 1.6; }
.hero-search {
    margin-top: 28px;
    max-width: 760px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}
.hero-search input {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: .98rem;
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
}
.hero-search input:focus {
    outline: 2px solid rgba(255, 255, 255, .7);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
.hero-search .btn {
    min-width: 138px;
    justify-content: center;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--teal-dark); }
.hero .btn-primary:hover { background: var(--teal-light); }
.hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Stats ---------- */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: -42px; position: relative; z-index: 5;
}
.stat-card {
    background: var(--white); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow); text-align: center;
}
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--teal); }
.stat-card .label { color: var(--slate); font-size: .9rem; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 2.05rem; font-weight: 700; letter-spacing: -.02em; }
.section-head p { color: var(--slate); }
.eyebrow { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

/* ---------- Specialty grid ---------- */
.specialty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.specialty-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; transition: box-shadow .2s, transform .2s; display: block; box-shadow: var(--shadow);
}
.specialty-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.specialty-card .ic {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--teal-light); margin-bottom: 14px;
}
.specialty-card .ic { font-size: 1.7rem; color: var(--teal); line-height: 1; }
.specialty-card h3 { margin: 12px 0 6px; font-size: 1.15rem; color: var(--ink); }
.specialty-card .count { color: var(--teal); font-weight: 600; font-size: .88rem; }
.specialty-card .desc { color: var(--slate); font-size: .9rem; margin-top: 6px; }

/* ---------- Doctor cards ---------- */
.doctor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.doctor-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}
.doctor-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

/* Chuyên gia đầu ngành (PGS/GS/TS+) — điểm nhấn vàng */
.doctor-card.expert {
    border: 2px solid var(--gold);
    box-shadow: 0 8px 28px rgba(245, 166, 35, 0.22);
    position: relative;
}
.doctor-card.expert:hover { box-shadow: 0 14px 40px rgba(245, 166, 35, 0.32); }
.doctor-card.expert .doctor-photo {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe9c2 100%);
}
.doctor-card.expert .doctor-body { background: linear-gradient(180deg, #fffdf8 0%, #fff 60%); }
.doctor-card.expert .doctor-body h3 { font-size: 1.22rem; }
.doctor-card.expert .title { color: #b8791a; }
.expert-ribbon {
    position: absolute; top: 12px; left: 0; z-index: 3;
    background: linear-gradient(90deg, #f5a623, #f78c1f); color: #fff;
    font-size: .72rem; font-weight: 700; padding: 5px 14px 5px 12px;
    border-radius: 0 20px 20px 0; box-shadow: 0 2px 8px rgba(245,166,35,.4);
}
.doctor-photo {
    height: 220px; background: var(--teal-light); display: grid; place-items: center;
    overflow: hidden; position: relative;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo .placeholder { font-size: 3.6rem; color: var(--teal); opacity: .55; }
/* Avatar chữ cái khi bác sĩ chưa có ảnh — trông chỉn chu hơn emoji */
.placeholder.initials {
    width: 96px; height: 96px; border-radius: 50%; opacity: 1;
    background: var(--teal); color: #fff; font-size: 2.1rem; font-weight: 700;
    letter-spacing: .02em; display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(14, 124, 134, .25);
}
.doctor-card.expert .placeholder.initials {
    background: linear-gradient(135deg, #f5a623, #f78c1f); color: #fff;
    box-shadow: 0 4px 14px rgba(245, 166, 35, .3);
}
.cv-photo .placeholder.initials { width: 132px; height: 132px; font-size: 3rem; color: #fff; opacity: 1; }
.cv-hero-expert .cv-photo .placeholder.initials { background: linear-gradient(135deg, #f5a623, #f78c1f); }
/* Cụm badge (học hàm + nước ngoài) xếp dọc ở góc dưới-phải ảnh, tách khỏi ribbon trên-trái */
.photo-badges {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    max-width: calc(100% - 24px);
}
.rank-badge {
    background: var(--gold); color: #5b3a00;
    font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
}
.overseas-badge {
    background: rgba(0,0,0,.62); color: #fff;
    font-weight: 600; font-size: .72rem; padding: 4px 10px; border-radius: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
}
.doctor-body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.doctor-body .title { font-size: .78rem; color: var(--teal); font-weight: 700; letter-spacing: .03em; }
.doctor-body h3 { font-size: 1.15rem; }
.doctor-body .spec { color: var(--slate); font-size: .9rem; }
.doctor-body .place { color: var(--slate); font-size: .84rem; }
.doctor-meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }

/* ---------- Stars ---------- */
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
.stars .empty { color: #d9e0e2; }
.score-pill { background: var(--teal-light); color: var(--teal-dark); font-weight: 700; font-size: .8rem; padding: 3px 9px; border-radius: 8px; }

/* ---------- Filters ---------- */
.filter-bar {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr) auto; gap: 12px;
    align-items: end; box-shadow: var(--shadow); margin-bottom: 28px;
}
.filter-bar .btn { height: 42px; }

/* Tabs trong nước / nước ngoài */
.loc-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.loc-tab {
    padding: 10px 18px; border-radius: 24px; border: 1px solid var(--line);
    background: var(--white); color: var(--slate); font-weight: 600; font-size: .92rem;
}
.loc-tab:hover { border-color: var(--teal); color: var(--teal); }
.loc-tab.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.field label { display: block; font-size: .78rem; color: var(--slate); font-weight: 600; margin-bottom: 4px; }
.field input, .field select {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
    font-family: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--teal-light); border-color: var(--teal); }

/* ---------- CV / doctor detail ---------- */
.cv-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 40px 0; }
.cv-hero-expert { background: linear-gradient(180deg, #fffaf0 0%, #fff 70%); border-top: 4px solid var(--gold); }
.expert-strip {
    background: linear-gradient(90deg, #f5a623, #f78c1f); color: #fff; text-align: center;
    font-weight: 700; letter-spacing: .02em; padding: 9px; font-size: .92rem;
}
.cv-hero-expert .cv-photo { box-shadow: 0 8px 30px rgba(245,166,35,.35); border: 3px solid var(--gold); }
.cv-hero-inner { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.cv-photo { width: 220px; height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--teal-light); display: grid; place-items: center; box-shadow: var(--shadow); }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; }
.cv-photo .placeholder { font-size: 5rem; color: var(--teal); opacity: .5; }
.cv-title { font-size: .85rem; color: var(--teal); font-weight: 700; letter-spacing: .04em; }
.cv-hero h1 { font-size: 2.1rem; margin: 4px 0 8px; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { background: var(--teal-light); color: var(--teal-dark); font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.tag.alt { background: #fff4e0; color: #8a5a00; }
.cv-quickfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.qf { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.qf .k { font-size: .76rem; color: var(--slate); }
.qf .v { font-weight: 700; color: var(--ink); }

.cv-body { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 44px 0; align-items: start; }
.cv-section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.cv-section h2 { font-size: 1.25rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--teal-light); }
.timeline { list-style: none; }
.timeline li { padding: 0 0 18px 22px; border-left: 2px solid var(--line); position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); position: absolute; left: -6.5px; top: 4px; }
.timeline .yr { font-size: .82rem; color: var(--teal); font-weight: 700; }
.timeline .ti { font-weight: 600; }
.timeline .or { color: var(--slate); font-size: .9rem; }

.cv-aside .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; position: sticky; top: 84px; }
.rating-big { text-align: center; }
.rating-big .num { font-size: 3rem; font-weight: 800; color: var(--teal); line-height: 1; }
.rating-big .of { color: var(--slate); }

/* ---------- Leading doctors ---------- */
.leading-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leading-card { position: relative; }
.leading-card .crown { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #5b3a00; font-weight: 700; font-size: .72rem; padding: 4px 14px; border-radius: 20px; z-index: 2; }

/* ---------- Page header ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 48px 0 44px; }
.page-head h1 { font-size: 2.35rem; letter-spacing: -.02em; }
.page-head p { color: var(--slate); margin-top: 6px; max-width: 720px; }
.breadcrumb { font-size: .85rem; color: var(--slate); margin-bottom: 10px; }

/* ---------- Tables (about) ---------- */
.criteria-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.criteria-table th, .criteria-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.criteria-table th { background: var(--teal); color: #fff; font-weight: 600; }
.criteria-table tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d3d6; margin-top: 40px; padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 36px; padding-bottom: 32px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { display: block; color: #c7d3d6; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-grid .muted { color: #91a3a8; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; color: #91a3a8; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--slate); }

/* ---------- KYC / score breakdown ---------- */
.kyc-chip { background: #e6f7ee; color: #138a52; font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; vertical-align: middle; }
.tag.verified { background: #e6f7ee; color: #138a52; }
.score-breakdown { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.sb-title { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.sb-title a { text-decoration: none; color: var(--teal); }
.sb-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; padding: 4px 0; border-bottom: 1px solid #f0f4f5; }
.sb-row em { color: var(--slate); font-style: normal; margin-left: 6px; font-size: .8rem; }
.sb-row b { color: var(--teal-dark); }
.sb-note { font-size: .8rem; color: #b8791a; background: #fff7e6; padding: 8px 10px; border-radius: 8px; margin-top: 10px; }

/* ---------- Submit form ---------- */
.submit-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=url],
.form-row input[type=password], .form-row input[type=tel],
.form-row input[type=number], .form-row select, .form-row textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
    font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light);
}
.form-row textarea { resize: vertical; }
.form-row-check { display: flex; align-items: center; gap: 10px; }
.form-row-check label { margin: 0; order: 2; font-weight: 500; }
.form-row-check input { order: 1; width: 18px; height: 18px; }
.field-err { color: #d33; font-size: .82rem; }
.form-error { background: #fde8e8; color: #b91c1c; padding: 10px 14px; border-radius: 9px; margin-bottom: 16px; }

/* ---------- Articles (Y học thường thức) ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.article-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.article-cover { height: 170px; background: var(--teal-light); display: grid; place-items: center; position: relative; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover .ph { font-size: 3rem; opacity: .5; }
.article-tag { position: absolute; bottom: 10px; left: 10px; background: rgba(255,255,255,.92); color: var(--teal-dark); font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 16px; }
.article-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-body h3 { font-size: 1.1rem; color: var(--ink); line-height: 1.35; }
.article-meta { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--slate); }
.article-content { line-height: 1.85; color: #2a3f46; }
.article-content p { margin-bottom: 16px; }

/* ---------- Community list ---------- */
.community-list { display: flex; flex-direction: column; gap: 12px; }
.community-row {
    display: flex; align-items: center; gap: 16px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
    transition: box-shadow .2s, transform .2s; box-shadow: var(--shadow);
}
.community-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: transparent; }
.community-row .ic { font-size: 1.8rem; }
.community-row .grow { flex: 1; }
.community-row h3 { font-size: 1.05rem; color: var(--ink); }
.community-meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: .85rem; color: var(--slate); }
.community-link { color: var(--teal); font-weight: 600; white-space: nowrap; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.page-link {
    min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px;
    display: inline-grid; place-items: center; border: 1px solid var(--line);
    background: var(--white); color: var(--ink); font-weight: 600; transition: .15s;
}
.page-link:hover { border-color: var(--teal); color: var(--teal); }
.page-link.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.page-link.disabled { color: #b7c2c5; cursor: not-allowed; background: var(--bg); }

/* ---------- Responsive ---------- */
/* Tablet & nhỏ hơn: menu thu gọn thành hamburger */
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav-group {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); padding: 8px 0; margin: 0; z-index: 60;
    }
    .header-inner.open .nav-group { display: flex; }
    .header-inner { position: relative; }
    .main-nav { flex-direction: column; gap: 0; }
    .main-nav a { padding: 12px 24px; border-bottom: 1px solid var(--bg); }
    .nav-actions { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 24px; }
    .nav-actions .btn { justify-content: center; }

    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .cv-hero-inner { grid-template-columns: 1fr; }
    .cv-photo { width: 160px; height: 190px; }
    .cv-body { grid-template-columns: 1fr; }
    .cv-aside .panel { position: static; }
    .leading-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero { padding: 52px 0 64px; }
    .hero h1 { font-size: 2rem; }
    .section-head h2 { font-size: 1.5rem; }
}

/* Điện thoại */
@media (max-width: 560px) {
    .container { width: 92%; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .num { font-size: 1.5rem; }
    .filter-bar { grid-template-columns: 1fr; padding: 14px; }
    .hero-search { grid-template-columns: 1fr; }
    .hero-search .btn { width: 100%; }
    .doctor-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .specialty-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .article-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.65rem; }
    .hero p { font-size: 1rem; }
    .cv-hero h1 { font-size: 1.55rem; }
    .community-row { flex-wrap: wrap; }
    .loc-tabs { gap: 6px; }
    .loc-tab { padding: 8px 12px; font-size: .82rem; }
    .doctor-photo { height: 170px; }
}

/* Màn rất nhỏ: thẻ bác sĩ 1 cột */
@media (max-width: 380px) {
    .doctor-grid, .specialty-grid { grid-template-columns: 1fr; }
}
