@font-face {
  font-family: 'Noto Sans Georgian';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/noto-georgian-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Georgian';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/noto-georgian-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Georgian';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/noto-georgian-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Georgian';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/noto-georgian-700.woff2') format('woff2');
}

/* ქართული ფონტი — embedded, no external dependencies */





/* ================================================
   style.css — კლინიკის მთავარი CSS
   ================================================ */


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1B4E8B;
  --primary-d: #0d3366;
  --accent: #00A878;
  --accent-d: #007f5c;
  --bg: #F7F9FC;
  --bg-alt: #EEF4FF;
  --card: #ffffff;
  --text: #1a2332;
  --muted: #6b7a8d;
  --border: rgba(0,0,0,0.09);
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 2px 16px rgba(27,78,139,0.08);
  --shadow-hover: 0 6px 28px rgba(27,78,139,0.15);
  --font: 'Noto Sans Georgian', 'BPG Mrgvlovani', 'BPG Arial', 'Sylfaen', 'DejaVu Sans', Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; }

/* ---- LAYOUT ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.section-head h2 { font-size: 26px; font-weight: 600; color: var(--primary); }
.section-head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.see-all { font-size: 14px; color: var(--primary); text-decoration: none; font-weight: 500; white-space: nowrap; }

/* ---- HEADER ---- */
.site-header { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-name { font-size: 15px; font-weight: 600; color: var(--primary); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--muted); }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { padding: 8px 13px; font-size: 13px; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); transition: background .2s; }
.main-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.lang-btn { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); }
.lang-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.phone-btn { font-size: 13px; font-weight: 500; color: var(--primary); text-decoration: none; white-space: nowrap; }
.burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%); padding: 72px 0 60px; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); color: white; font-size: 12px; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: 36px; font-weight: 700; color: white; max-width: 600px; line-height: 1.3; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.78); font-size: 16px; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 36px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }
.stat-n { font-size: 26px; font-weight: 700; color: white; }
.stat-l { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ---- BUTTONS ---- */
.btn { display: inline-block; padding: 11px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: none; transition: all .2s; font-family: var(--font); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-d); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-d); }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: white; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-white { background: white; color: var(--primary); }
.btn-full { width: 100%; text-align: center; }
.btn-danger { background: #fee; color: #c33; border: 1px solid #fcc; }
.btn-success { background: var(--accent); color: white; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ---- BANNER ---- */
.promo-banner { padding: 16px 0; }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.banner-inner strong { font-size: 16px; font-weight: 600; margin-right: 10px; }
.banner-inner span { font-size: 14px; opacity: .85; }

/* ---- SERVICES ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.service-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; transition: box-shadow .25s, transform .25s; }
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.service-icon { width: 46px; height: 46px; background: var(--bg-alt); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 14px; }
.service-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.service-link { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 500; }

/* ---- DOCTORS ---- */
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.doctor-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.doctor-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-alt); color: var(--primary); font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.doctor-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.doctor-card p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.exp-badge { display: inline-block; background: var(--bg-alt); color: var(--primary); font-size: 12px; padding: 3px 10px; border-radius: 20px; }

/* ---- NEWS ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s; }
.news-card:hover { box-shadow: var(--shadow-hover); }
.news-thumb { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 42px; background: var(--bg-alt); }
.news-body { padding: 16px; flex: 1; }
.news-cat { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.news-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.5; }
.news-body p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.news-date { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---- APPOINTMENT ---- */
.appt-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.appt-info h2 { font-size: 26px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.appt-info p { color: var(--muted); margin-bottom: 24px; }
.contact-info-list { display: flex; flex-direction: column; gap: 10px; }
.contact-info-list div, .contact-info-list span { font-size: 14px; color: var(--text); }
.contact-info-list a { color: var(--primary); text-decoration: none; }
.appt-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font); color: var(--text); background: white; transition: border .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,78,139,.1); }

/* ---- ALERTS ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.alert-success { background: #e8f8ef; color: #1a7a45; border: 1px solid #b2e6cc; }
.alert-danger { background: #fee; color: #c33; border: 1px solid #fcc; }

/* ---- FOOTER ---- */
.site-footer { background: #111B2B; color: rgba(255,255,255,.65); padding: 48px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { font-size: 18px; font-weight: 600; color: white; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: white; margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; display: flex; justify-content: space-between; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }

/* ---- ADMIN ---- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--primary); flex-shrink: 0; }
.admin-sidebar .sb-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .sb-logo { font-size: 15px; font-weight: 600; color: white; }
.admin-sidebar .sb-sub { font-size: 11px; color: rgba(255,255,255,.5); }
.sb-nav { padding: 10px 0; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 13px; color: rgba(255,255,255,.7); text-decoration: none; transition: all .2s; }
.sb-item:hover, .sb-item.active { background: rgba(255,255,255,.12); color: white; }
.sb-divider { height: 1px; background: rgba(255,255,255,.1); margin: 8px 0; }
.admin-main { flex: 1; display: flex; flex-direction: column; }
.admin-topbar { background: white; border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 16px; font-weight: 600; }
.admin-content { flex: 1; padding: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-box { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; }
.stat-box .sb-lbl { font-size: 12px; color: var(--muted); }
.stat-box .sb-val { font-size: 28px; font-weight: 600; margin-top: 4px; }
.stat-box .sb-chg { font-size: 12px; color: var(--accent); margin-top: 2px; }
.data-table-wrap { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.dt-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dt-header h3 { font-size: 14px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px; text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; background: #fafafa; border-bottom: 1px solid var(--border); }
td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbff; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge-pub, .badge-confirmed, .badge-active { background: #e8f8ef; color: #1a7a45; }
.badge-draft { background: #fef3e0; color: #9a5f00; }
.badge-new { background: #e8f0fe; color: #1a56b0; }
.badge-cancelled { background: #fee; color: #c33; }
.badge-completed { background: #f0f4ff; color: #4a5568; }
.admin-form { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; margin-bottom: 16px; }
.admin-form h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.form-tab { padding: 8px 18px; cursor: pointer; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); background: none; border-top: none; border-left: none; border-right: none; }
.form-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.lang-fields { display: none; }
.lang-fields.active { display: block; }
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { width: 40px; height: 22px; background: #ccc; border-radius: 11px; cursor: pointer; position: relative; transition: background .2s; flex-shrink: 0; }
.toggle.on { background: var(--accent); }
.toggle::after { content: ''; position: absolute; width: 18px; height: 18px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: left .2s; }
.toggle.on::after { left: 20px; }
.page-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-actions h2 { font-size: 18px; font-weight: 600; }
.btn-group { display: flex; gap: 8px; }

/* ---- LOGIN ---- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.login-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; width: 360px; }
.login-card .logo { justify-content: center; margin-bottom: 28px; }
.login-card h2 { text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 24px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: white; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .burger { display: block; }
  .hero h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .appt-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar .sb-item span, .admin-sidebar .sb-header .sb-logo, .admin-sidebar .sb-header .sb-sub { display: none; }
  .sb-item { justify-content: center; padding: 14px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ================================================
   GALLERY & IMAGES — სურათების სექცია
   ================================================ */

/* Hero with background image support */
.hero-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  background-color: var(--primary);
}
.hero-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,78,139,0.75) 0%, rgba(13,51,102,0.65) 100%);
}
.hero-bg-image .container { position: relative; z-index: 1; }

/* Gallery grid */
.gallery-section { padding: 64px 0; background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,78,139,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  color: white;
  font-size: 28px;
}
.gallery-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Service card with image */
.service-card-img {
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -24px -20px 16px;
  background: var(--bg-alt);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About section with image */
.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  background: var(--bg-alt);
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Doctor photo */
.doctor-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-alt);
}

/* News card with real image */
.news-thumb-img {
  height: 160px;
  overflow: hidden;
}
.news-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.news-card:hover .news-thumb-img img { transform: scale(1.04); }

/* Placeholder when no image */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 32px;
}

/* Upload preview in admin */
.img-upload-wrap { position: relative; display: inline-block; }
.img-preview {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 6px;
}

/* Responsive gallery */
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.doctor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-alt);
  margin: 0 auto 12px;
  display: block;
}
.service-card-img {
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -24px -20px 16px;
  background: var(--bg-alt);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

/* ================================================
   DIRECTIONS — მიმართულებები
   ================================================ */

/* Listing grid */
.dir-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.dir-block {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: box-shadow .25s, transform .25s;
}
.dir-block:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.dir-block-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.dir-block-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.dir-block:hover .dir-block-img img { transform: scale(1.06); }
.dir-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(27,78,139,0.7) 100%);
}

.dir-block-body {
  padding: 20px;
  position: relative;
}
.dir-block-icon { font-size: 28px; margin-bottom: 8px; }
.dir-block-body h3 { font-size: 17px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.dir-block-body p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.dir-block-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 14px;
}

/* Single direction hero */
.dir-hero {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
  padding-top: 80px;
}
.dir-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,78,139,0.88) 0%, rgba(13,51,102,0.75) 100%);
}

/* Direction page layout */
.dir-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.dir-sidebar-nav .dir-sidebar-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.dir-sidebar-box h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.dir-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background .2s;
  margin-bottom: 2px;
}
.dir-nav-item:hover { background: var(--bg-alt); color: var(--primary); }
.dir-nav-item.active { background: var(--primary); color: white; font-weight: 500; }

/* Main content */
.dir-main-content {}
.dir-content-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.dir-content-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Service blocks inside direction (like kwclinic) */
.dir-services-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.dir-svc-block {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.dir-svc-block:hover { box-shadow: var(--shadow-hover); }
.dir-svc-img {
  height: 150px;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.dir-svc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.dir-svc-block:hover .dir-svc-img img { transform: scale(1.05); }
.dir-svc-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(27,78,139,0.85));
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 20px 12px 10px;
}
.dir-svc-desc {
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Nav active state */
.main-nav a.active { color: var(--primary); font-weight: 600; }

/* Directions on homepage */
.directions-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .dir-layout { grid-template-columns: 1fr; }
  .dir-sidebar-nav { order: 2; }
  .dir-main-content { order: 1; }
}
@media (max-width: 600px) {
  .dir-blocks-grid { grid-template-columns: 1fr; }
  .dir-services-blocks { grid-template-columns: 1fr 1fr; }
}
