.public-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(210, 225, 224, .78); background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); }
.public-nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.public-brand { display: flex; align-items: center; gap: 12px; color: var(--ink-950); }
.public-brand > span:last-child, .public-brand b, .public-brand small { display: block; }
.public-brand b { font-size: 16px; line-height: 1.2; }
.public-brand small { margin-top: 2px; font-size: 11px; }
.public-nav nav { display: flex; align-items: center; gap: 24px; }
.public-nav nav > a:not(.btn) { color: var(--ink-800); font-size: 13px; font-weight: 700; }
.public-nav nav > a:not(.btn):hover { color: var(--brand-700); }
.mobile-nav-toggle { display: none; border: 0; color: var(--brand-900); background: transparent; font-size: 26px; cursor: pointer; }

.hero { position: relative; overflow: hidden; padding: 75px 0 120px; color: #fff; background: var(--brand-950); }
.hero::before { position: absolute; width: 520px; height: 520px; top: -260px; right: -80px; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(53, 205, 196, .34), transparent 68%); }
.hero::after { position: absolute; width: 300px; height: 300px; bottom: -180px; left: 34%; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; content: ""; box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 70px; }
.hero .eyebrow { color: #5dd8ce; }
.hero h1 { max-width: 700px; margin-bottom: 19px; font-size: clamp(37px, 5vw, 64px); line-height: 1.1; letter-spacing: -.045em; }
.hero h1 em { color: #70ded4; font-style: normal; }
.hero p { max-width: 630px; color: #c0d6d5; font-size: 17px; }
.hero-art { position: relative; display: grid; min-height: 250px; padding: 28px; align-content: end; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: 0 26px 60px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.hero-art > span { position: absolute; top: 12px; right: 30px; color: rgba(111, 224, 214, .8); font-size: 130px; font-weight: 200; line-height: 1; }
.hero-art b, .hero-art small { position: relative; z-index: 1; display: block; }
.hero-art b { font-size: 23px; }
.hero-art small { color: #a9c5c3; }

.search-panel { position: relative; z-index: 2; margin-top: -62px; }
.doctor-search { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: end; gap: 14px; padding: 24px; border: 1px solid rgba(205, 220, 219, .8); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.doctor-search .btn { min-height: 46px; }
.directory { padding-block: 62px 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 30px; }
.section-head > span { color: var(--ink-600); }
.doctor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doctor-grid > .empty-state { grid-column: 1 / -1; border: 1px dashed #c8d8d7; border-radius: var(--radius); background: #fff; }
.doctor-card { overflow: hidden; border: 1px solid rgba(205, 220, 219, .9); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.doctor-card:hover { transform: translateY(-4px); border-color: #b5d4d1; box-shadow: var(--shadow); }
.doctor-photo { width: 100%; height: 226px; object-fit: cover; background: linear-gradient(145deg, #e4f4f1, #f8fbfb); }
.doctor-card-body { padding: 20px; }
.doctor-card h2 { margin: 12px 0 1px; font-size: 21px; }
.english-name { margin-bottom: 13px; color: var(--ink-600); font-size: 13px; }
.specialty { margin-bottom: 5px; color: var(--brand-800); font-weight: 800; }
.qualifications { min-height: 46px; margin-bottom: 13px; color: var(--ink-600); font-size: 13px; }
.doctor-meta { display: grid; gap: 5px; padding: 12px 0; border-top: 1px solid #ebf0f0; border-bottom: 1px solid #ebf0f0; color: var(--ink-600); font-size: 12px; }
.doctor-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.card-actions .btn { padding-inline: 10px; font-size: 12px; }

.page-banner, .profile-hero { padding: 55px 0; color: #fff; background: linear-gradient(125deg, var(--brand-950), var(--brand-700)); }
.page-banner h1 { margin-bottom: 6px; font-size: clamp(30px, 4vw, 46px); }
.page-banner p { margin: 0; color: #c9dedc; }
.profile-intro { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 30px; }
.profile-intro > img { width: 180px; height: 180px; border: 5px solid rgba(255,255,255,.22); border-radius: 28px; object-fit: cover; background: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.16); }
.profile-intro h1 { margin: 13px 0 2px; font-size: clamp(32px, 4vw, 48px); }
.profile-intro p { margin-bottom: 8px; color: #c9dedc; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tag-list span { padding: 5px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #e1f5f2; background: rgba(255,255,255,.08); font-size: 12px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr); gap: 24px; padding-block: 40px 75px; }
.profile-layout > div { display: grid; align-content: start; gap: 20px; }
.profile-layout > aside > h2 { font-size: 22px; }
.content-card { padding: 25px; }
.content-card h2 { margin-bottom: 17px; font-size: 21px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid #d9e6e5; }
.timeline li::before { position: absolute; width: 10px; height: 10px; left: -6px; top: 4px; border-radius: 50%; content: ""; background: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.timeline li:last-child { padding-bottom: 0; }
.timeline b, .timeline span { display: block; }
.timeline span { color: var(--ink-600); font-size: 13px; }
.chamber-card { margin-bottom: 16px; padding: 20px; border: 1px solid #d8e4e3; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.chamber-card h3 { margin-bottom: 5px; }
.chamber-card p { margin-bottom: 6px; color: var(--ink-600); font-size: 13px; }
.chamber-card .fee { margin: 12px 0; color: var(--brand-800); font-weight: 800; }
.schedule-list { display: grid; gap: 6px; margin: 12px 0 16px; }
.schedule-list span { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; background: #f3f8f7; font-size: 12px; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; padding-block: 40px 75px; align-items: start; }
.booking-layout .content-card { min-height: 320px; }
.selected-doctor { margin: -5px -5px 22px; padding: 18px; border-radius: 13px; color: #fff; background: linear-gradient(120deg, var(--brand-800), var(--brand-600)); }
.selected-doctor h2, .selected-doctor p { margin: 0; }
.selected-doctor p { color: #cfe8e6; }
.availability-box { grid-column: 1 / -1; padding: 13px 15px; border: 1px dashed #a7c9c6; border-radius: 10px; color: var(--brand-800); background: var(--brand-50); }
.availability-box.loading { opacity: .6; }
.availability-box strong { font-size: 18px; }
.booking-help { position: sticky; top: 100px; padding: 23px; border: 1px solid #dbe5e5; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.booking-help h3 { margin-bottom: 16px; }
.booking-help ol { padding-left: 22px; }
.booking-help li { margin: 9px 0; }
.booking-help p { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink-600); font-size: 12px; }
.booking-success { padding: 16px; text-align: center; }
.booking-success > span { display: grid; width: 68px; height: 68px; margin: 0 auto 15px; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 30px; box-shadow: 0 12px 28px rgba(24,134,91,.24); }
.serial-display { width: min(260px, 100%); margin: 22px auto; padding: 18px; border: 2px dashed var(--brand-500); border-radius: 16px; background: var(--brand-50); }
.serial-display small, .serial-display b { display: block; }
.serial-display b { color: var(--brand-900); font-size: 42px; line-height: 1.1; }
.status-result { margin-top: 24px; padding: 20px; border-radius: 14px; background: var(--brand-50); text-align: center; }

.public-footer { padding: 30px 0; color: #c1d5d4; background: var(--brand-950); }
.public-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-footer b { color: #fff; }
.public-footer p { margin: 3px 0 0; font-size: 12px; }

@media (max-width: 980px) {
  .doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctor-search { grid-template-columns: repeat(2, 1fr); }
  .doctor-search .search-main { grid-column: 1 / -1; }
  .doctor-search .btn { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 760px) {
  .public-nav { min-height: 68px; }
  .public-brand .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .public-brand b { font-size: 14px; }
  .mobile-nav-toggle { display: block; }
  .public-nav nav { position: absolute; display: none; top: 68px; left: 0; right: 0; padding: 15px; align-items: stretch; flex-direction: column; gap: 5px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
  .public-nav nav.is-open { display: flex; }
  .public-nav nav a { padding: 10px 12px; }
  .hero { padding: 55px 0 100px; }
  .hero h1 { font-size: 39px; }
  .doctor-grid { grid-template-columns: 1fr; }
  .profile-layout, .booking-layout { grid-template-columns: 1fr; }
  .booking-help { position: static; }
  .profile-intro { grid-template-columns: 110px 1fr; gap: 18px; }
  .profile-intro > img { width: 110px; height: 110px; border-radius: 20px; }
  .public-footer .container { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .doctor-search { grid-template-columns: 1fr; padding: 16px; }
  .doctor-search .search-main { grid-column: auto; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .profile-intro { grid-template-columns: 1fr; text-align: center; }
  .profile-intro > img { margin-inline: auto; }
  .tag-list { justify-content: center; }
  .card-actions { grid-template-columns: 1fr; }
}
