/* ── SHARED.CSS — Hameeda Tajamal Trust Hospital ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:       #0f2137;
  --teal:       #0e7c7b;
  --teal-light: #12a09f;
  --gold:       #c9a84c;
  --red:        #dc2626;
  --gray:       #6b7280;
  --light:      #f8f9fb;
}

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

body { font-family: 'DM Sans', sans-serif; color: var(--navy); background: #fff; }

/* ── TOP INFO BAR ── */
.top-info-bar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 40px;
  font-size: 12px;
  gap: 12px;
}
.tib-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tib-left a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.tib-left a:hover { color: #fff; }
.tib-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tib-link { color: rgba(255,255,255,.75); text-decoration: none; font-size: 12px; transition: color .2s; cursor:pointer; }
.tib-link:hover { color: #fff; }
.tib-sep { color: rgba(255,255,255,.2); }
.tib-complaint { color: #fca5a5; font-size: 12px; text-decoration: none; transition: color .2s; }
.tib-complaint:hover { color: #fff; }

/* ── MAIN NAV ── */
nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 48px; object-fit: contain; }
.nav-brand-text h1 { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--navy); font-weight: 600; line-height: 1.2; }
.nav-brand-text p { font-size: 10px; letter-spacing: 2px; color: var(--teal); text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--navy); background: #f3f4f6; }
.nav-links > li > a.active { color: var(--teal); background: #f0fafa; }

/* dropdown arrow */
.nav-links > li > a .arrow {
  font-size: 10px;
  transition: transform .2s;
  display: inline-block;
}
.nav-links > li:hover > a .arrow { transform: rotate(180deg); }

/* ── DROPDOWN ── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  min-width: 210px;
  padding: 8px;
  z-index: 300;
  animation: dropIn .18s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.nav-links > li:hover .nav-dropdown { display: block; }

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.nav-dropdown a:hover { background: #f0fafa; color: var(--teal); }
.nav-dropdown a .dd-icon { font-size: 16px; width: 24px; text-align: center; }
.nav-dropdown .dd-sep { height: 1px; background: #f3f4f6; margin: 4px 0; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 36px 40px;
  font-size: 13px;
}
footer img { height: 48px; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; }
.f-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.f-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; transition: color .2s; }
.f-links a:hover { color: #fff; }
.f-contact { text-align: right; font-size: 13px; line-height: 1.8; }

@media (max-width: 768px) {
  .top-info-bar { padding: 8px 16px; font-size: 11px; }
  nav { padding: 0 16px; height: 60px; }
  .nav-links { display: none; }
  footer { padding: 24px 16px; flex-direction: column; align-items: flex-start; }
  .f-contact { text-align: left; }
}