/* Specialities page */
.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; }
[id] { scroll-margin-top: 100px; }

.spec-kicker { display: flex; align-items: center; gap: 16px; margin: 0 0 10px; color: var(--navy); font-weight: 800; font-size: 15px; letter-spacing: 4px; text-transform: uppercase; }
.spec-kicker::after { content: ""; width: 60px; height: 2px; background: var(--navy); }

/* ---------- Banner ---------- */
.spec-banner { position: relative; padding: 40px 0 46px; overflow: hidden;
  background: linear-gradient(90deg, #eaf3fc 0%, #eef5fc 42%, rgba(234, 243, 252, .55) 58%, rgba(234, 243, 252, 0) 72%), url("../img/specialities/banner-stethoscope.jpg") right center / auto 100% no-repeat, #e9f2fb; }
.spec-banner h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; color: var(--navy); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.5px; }
.spec-lead { font-size: clamp(17px, 1.8vw, 22px); color: var(--muted); font-weight: 500; margin: 0; }

/* ---------- Finder ---------- */
.spec-finder { padding: 30px 0 72px; }
.spec-search { max-width: 960px; margin: 0 auto 38px; display: flex; align-items: center; gap: 14px; padding: 0 24px; height: 60px; border: 1.5px solid #9dc3e8; border-radius: 999px; background: #fff; box-shadow: 0 4px 16px rgba(11, 79, 163, .06); }
.spec-search:focus-within { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(10, 102, 194, .12); }
.spec-search .ic { font-size: 26px; color: var(--blue); }
.spec-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 18px var(--font); color: var(--text); background: transparent; }
.spec-search input::placeholder { color: #5f6b80; }

.spec-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
.spec-tile { display: flex; align-items: center; gap: 14px; min-height: 100px; padding: 12px; border: 1px solid var(--blue-line); border-radius: 14px; background: linear-gradient(180deg, #f8fbff, #f1f7fd); box-shadow: 0 4px 14px rgba(11, 79, 163, .05); transition: .2s; }
.spec-tile:hover, .spec-tile:focus-visible { border-color: var(--blue-2); box-shadow: 0 10px 26px rgba(11, 79, 163, .14); transform: translateY(-2px); }
.spec-tile:target { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(10, 102, 194, .25); }
.spec-ic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #e6f0fa; color: var(--blue); font-size: 36px; position: relative; margin-right: 6px; }
.spec-ic::after { content: ""; position: absolute; right: -11px; top: 8px; bottom: 8px; width: 1.5px; background: #8fb2d6; }
.spec-ic .ic { stroke-width: 1.4; }
.spec-name { font-weight: 800; font-size: 16.5px; color: var(--navy); line-height: 1.3; letter-spacing: -.2px; }
.spec-tile[hidden] { display: none; }
.spec-empty { text-align: center; color: var(--muted); font-size: 17px; margin: 24px 0 0; }
.spec-empty a { color: var(--blue); font-weight: 700; }

/* ---------- Department ---------- */
.dept { padding-bottom: 80px; }
.dept-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, #eaf3fc 0%, #f4f9fe 50%, #eaf3fc 100%); }
.dept-hero > .container { position: relative; z-index: 1; padding-top: 16px; padding-bottom: 64px; }
.dept-hero .breadcrumb { font-size: 16px; color: var(--navy); margin-bottom: 44px; }
.dept-hero .breadcrumb a { color: var(--navy); font-weight: 500; }
.dept-hero .breadcrumb a:last-of-type, #dept-crumb { color: var(--blue-2); font-weight: 700; }
.dept-hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; }
.dept-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.dept-hero-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #eef5fc 0%, rgba(238, 245, 252, 0) 30%); }
.dept-hero-text { max-width: 640px; }
.dept-hero h2 { font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; color: var(--navy); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.6px; }
.dept-lead { font-size: clamp(17px, 2vw, 26px); color: var(--muted); margin: 0 0 36px; max-width: 600px; line-height: 1.45; }
.dept-actions { display: flex; flex-wrap: wrap; gap: 24px; }
.dept-actions .btn { font-size: 19px; padding: 16px 32px; min-width: 230px; }
.dept-actions .btn .ic { font-size: 26px; }
.dept-actions .btn-primary { background: linear-gradient(180deg, #0b5ab8, #0b3f8f); border-color: #0b4fa3; }
.dept-actions .btn-outline { border-color: var(--navy); border-width: 1.5px; }

/* Tabs */
.dept-tabs { display: flex; border-bottom: 1px solid var(--blue-line); margin: 0 0 40px; background: #fff; }
.dept-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 26px 10px; font-size: 19px; font-weight: 500; color: #3c4658; position: relative; white-space: nowrap; }
.dept-tab + .dept-tab::before { content: ""; position: absolute; left: 0; top: 50%; height: 30px; margin-top: -15px; width: 1px; background: #a9bdd3; }
.dept-tab .ic { font-size: 32px; color: var(--navy); stroke-width: 1.5; }
.dept-tab:hover { color: var(--blue-2); }
.dept-tab.active { color: var(--blue-2); font-weight: 700; }
.dept-tab.active .ic { color: var(--blue-2); }
.dept-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 5px; background: var(--blue); }

.js-tabs .dept-panel { display: none; }
.js-tabs .dept-panel.active { display: block; animation: deptIn .3s ease; }
.dept-panel + .dept-panel { margin-top: 72px; }
.js-tabs .dept-panel + .dept-panel { margin-top: 0; }
@keyframes deptIn { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel-eyebrow { text-align: center; color: var(--navy); font-weight: 800; letter-spacing: 4px; font-size: 16px; text-transform: uppercase; margin: 0 0 8px; }
.panel-title { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; color: var(--navy); line-height: 1.15; margin: 0 0 28px; letter-spacing: -.5px; }
.dept-panel .section-sub { margin: -16px 0 32px; }
.panel-cta { margin-top: 32px; }
.panel-cta .btn { min-width: 380px; padding: 16px 32px; font-size: 21px; background: linear-gradient(180deg, #0b5ab8, #0b3f8f); }
.panel-cta .btn .ic { font-size: 28px; }

/* Overview */
.ov-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ov-grid .eyebrow { color: var(--navy); letter-spacing: 4px; font-weight: 800; }
.ov-grid .eyebrow::after { display: none; }
.ov-text { font-size: 21px; color: var(--muted); line-height: 1.5; margin: 0; }
.ov-img { width: 100%; aspect-ratio: 820 / 242; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.feat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.feat { display: flex; align-items: center; gap: 14px; padding: 20px 16px; border: 1px solid var(--blue-line); border-radius: 14px; background: linear-gradient(180deg, #f8fbff, #f0f6fd); }
.feat-ic { font-size: 46px; color: var(--blue); padding-right: 18px; border-right: 1.5px solid #9fbad6; display: flex; }
.feat-ic .ic { stroke-width: 1.4; }
.feat h4 { margin: 0 0 4px; font-size: 18.5px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Conditions */
.cond-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cond { display: flex; align-items: center; gap: 28px; padding: 12px 24px; min-height: 102px; border: 1px solid var(--blue-line); border-radius: 12px; background: linear-gradient(180deg, #f8fbff, #f0f6fd); }
.cond-ic { width: 94px; height: 76px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #e6f0fa; color: var(--navy); font-size: 52px; }
.cond-ic .ic { stroke-width: 1.4; }
.cond h4 { margin: 0; font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.3; letter-spacing: -.3px; }
.cond h4 small { display: block; font-size: 20px; font-weight: 500; color: var(--text); }

/* Treatments */
.tr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.tr-card { display: flex; gap: 20px; padding: 8px; border: 1px solid var(--blue-line); border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(11, 79, 163, .06); }
.tr-card img { width: 185px; height: 116px; flex: none; object-fit: cover; border-radius: 10px; }
.tr-card > div { border-left: 2.5px solid var(--blue-2); padding: 0 8px 0 16px; margin: 10px 0; align-self: center; }
.tr-card h4 { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; line-height: 1.2; }
.tr-card p { margin: 0; font-size: 16.5px; color: #3c4658; line-height: 1.4; }

/* Doctors */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.doc-card { display: flex; gap: 28px; padding: 16px; border: 1px solid var(--blue-line); border-radius: 16px; background: linear-gradient(180deg, #f9fcff, #f1f7fd); box-shadow: var(--shadow); }
.doc-card > img { width: 230px; flex: none; object-fit: cover; border-radius: 12px; align-self: stretch; min-height: 300px; }
.doc-body { flex: 1; min-width: 0; padding-top: 4px; }
.doc-body h4 { margin: 0; font-size: 27px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; }
.doc-role { margin: 2px 0 2px; color: var(--blue-2); font-weight: 700; font-size: 19px; }
.doc-qual { margin: 0 0 18px; font-size: 16px; color: #3c4658; }
.doc-stats { display: flex; gap: 0; padding-bottom: 16px; border-bottom: 1px solid #c9dbee; margin-bottom: 16px; }
.doc-stats > div { flex: 1; display: flex; align-items: center; gap: 14px; }
.doc-stats > div + div { border-left: 1.5px solid #9fbad6; padding-left: 40px; }
.doc-stats .ic { font-size: 34px; color: var(--blue); stroke-width: 1.5; }
.doc-stats strong { display: block; font-size: 20px; color: var(--navy); font-weight: 800; line-height: 1.15; }
.doc-stats span { font-size: 15px; color: var(--muted); }
.doc-dom-h { margin: 0 0 4px; font-weight: 800; color: var(--blue); font-size: 17px; }
.doc-dom { margin: 0 0 22px; font-size: 15px; color: #2b3445; line-height: 1.7; }
.doc-dom span { white-space: nowrap; }
.doc-dom span + span::before { content: "|"; margin: 0 10px; color: #8a96a8; }
.doc-actions { display: flex; gap: 22px; flex-wrap: wrap; }
.doc-actions .btn { flex: 1; min-width: 170px; font-size: 18px; padding: 12px 18px; border-radius: 9px; }
.doc-actions .btn-primary { flex: 1.3; background: linear-gradient(180deg, #0b5ab8, #0b3f8f); }
.doc-actions .btn-outline { border-width: 1.5px; color: var(--navy); }

/* FAQs */
.faq-wrap { display: grid; grid-template-columns: 1.8fr 1fr; gap: 36px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1.5px solid #c3d8ee; border-radius: 10px; background: #fff; overflow: hidden; transition: .2s; }
.faq-item.open { background: linear-gradient(180deg, #f4f9ff, #edf5fd); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 32px; background: none; border: 0; cursor: pointer; text-align: left; font: 800 21px var(--font); color: var(--navy); letter-spacing: -.3px; }
.faq-q:hover { color: var(--blue-2); }
.faq-q .ic { font-size: 22px; color: var(--navy); stroke-width: 2.4; }
.faq-a { display: none; padding: 0 32px 16px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0; border-left: 3px solid var(--blue-2); padding: 2px 0 2px 28px; font-size: 16.5px; color: #2b3445; line-height: 1.5; }
.faq-a a { color: var(--blue); font-weight: 700; }
.faq-side img { width: 100%; aspect-ratio: 566 / 262; object-fit: cover; border-radius: 18px; }
.faq-help { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px; border: 1px solid var(--blue-line); border-radius: 14px; background: linear-gradient(180deg, #f6faff, #edf5fd); }
.faq-help-ic { font-size: 44px; color: var(--blue); padding-right: 14px; border-right: 1.5px solid #9fbad6; display: flex; }
.faq-help-ic .ic { stroke-width: 1.5; }
.faq-help > div { flex: 1; min-width: 0; }
.faq-help strong { display: block; font-size: 20px; color: var(--navy); font-weight: 800; }
.faq-help span { font-size: 15px; color: var(--muted); line-height: 1.3; display: block; }
.faq-help .btn { background: linear-gradient(180deg, #0b5ab8, #0b3f8f); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .spec-tile { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 16px 8px; min-height: 140px; }
  .spec-ic { margin: 0; }
  .spec-ic::after { display: none; }
}
@media (max-width: 1240px) {
  .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: 1fr; }
  .faq-help { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dept-tab span { display: none; }
  .dept-tab.active span { display: inline; }
  .ov-grid, .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .dept-hero-img { position: relative; width: 100%; height: 300px; }
  .dept-hero-img::before { background: linear-gradient(180deg, rgba(238, 245, 252, 0) 60%, #eef5fc 100%); }
  .dept-hero > .container { padding-bottom: 40px; }
  .dept-hero { display: flex; flex-direction: column-reverse; }
  .dept-hero .breadcrumb { margin-bottom: 20px; }
}
@media (max-width: 760px) {
  .spec-banner { padding: 28px 0 32px; background: linear-gradient(90deg, #eaf3fc 0%, rgba(234, 243, 252, .9) 55%, rgba(234, 243, 252, .55) 100%), url("../img/specialities/banner-stethoscope.jpg") right center / cover no-repeat; }
  .spec-kicker { font-size: 12px; letter-spacing: 2.5px; }
  .spec-kicker::after { width: 36px; }
  .spec-finder { padding: 24px 0 48px; }
  .spec-search { height: 52px; padding: 0 18px; margin-bottom: 24px; }
  .spec-search input { font-size: 16px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .spec-tile { flex-direction: column; text-align: center; min-height: 0; gap: 10px; padding: 14px 8px; }
  .spec-ic { width: 60px; height: 60px; font-size: 32px; margin: 0; }
  .spec-ic::after { display: none; }
  .spec-name { font-size: 15px; }
  .dept { padding-bottom: 56px; }
  .dept-hero-img { height: 220px; }
  .dept-actions { gap: 12px; }
  .dept-actions .btn { flex: 1 1 100%; min-width: 0; font-size: 17px; }
  .dept-tabs { margin-bottom: 28px; }
  .dept-tab { padding: 16px 4px; font-size: 14px; flex-direction: column; gap: 4px; }
  .dept-tab span, .dept-tab.active span { display: block; white-space: normal; text-align: center; line-height: 1.2; }
  .dept-tab .ic { font-size: 24px; }
  .dept-tab.active::after { height: 3px; }
  .dept-tab + .dept-tab::before { display: none; }
  .panel-eyebrow { font-size: 13px; letter-spacing: 2.5px; }
  .ov-text { font-size: 17px; }
  .feat-row, .cond-grid, .tr-grid { grid-template-columns: 1fr; }
  .feat-ic { font-size: 44px; }
  .feat h4, .tr-card h4 { font-size: 18px; }
  .cond { gap: 16px; padding: 12px; min-height: 0; }
  .cond-ic { width: 68px; height: 60px; font-size: 38px; }
  .cond h4 { font-size: 18px; }
  .cond h4 small { font-size: 16px; }
  .tr-card { gap: 12px; }
  .tr-card img { width: 110px; height: auto; min-height: 96px; }
  .tr-card > div { padding: 0 4px 0 12px; margin: 4px 0; }
  .tr-card p { font-size: 15px; }
  .panel-cta .btn { min-width: 0; width: 100%; font-size: 18px; }
  .doc-card { flex-direction: column; gap: 16px; }
  .doc-card > img { width: 100%; height: 320px; min-height: 0; object-position: top; }
  .doc-body h4 { font-size: 23px; }
  .doc-stats > div + div { padding-left: 16px; }
  .doc-stats .ic { font-size: 26px; }
  .doc-stats strong { font-size: 17px; }
  .doc-dom span { white-space: normal; }
  .doc-actions { gap: 10px; }
  .faq-q { padding: 12px 16px; font-size: 17px; }
  .faq-a { padding: 0 16px 14px; }
  .faq-a p { padding-left: 14px; font-size: 15px; }
  .faq-help .btn { width: 100%; }
}
