/* ═══════════════════════════════════════════════
   NSIRH SHARED DESIGN SYSTEM
   Version 2.0 — All pages import this file
═══════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --blue:        #004d99;
  --blue-dark:   #003d7a;
  --blue-mid:    #cce0ff;
  --blue-light:  #e6f0ff;
  --orange:      #f97316;
  --orange-dark: #ea6c0a;
  --orange-light:#fff4ed;
  --red-em:      #dc2626;
  --gray-bg:     #f4f6fa;
  --gray-border: #e8eef6;
  --text-main:   #1a2a3a;
  --text-muted:  #6b7280;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --shadow-sm:   0 2px 8px rgba(0,77,153,0.07);
  --shadow-md:   0 6px 20px rgba(0,77,153,0.11);
  --shadow-lg:   0 12px 36px rgba(0,77,153,0.14);
  --header-h:    108px;
  --transition:  0.22s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.15;
}

a { text-decoration: none; }
img { max-width: 100%; }

/* ── PAGE ENTRY ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* Top bar */
.top-bar {
  background: var(--blue);
  color: white;
  font-size: 0.78rem;
  padding: 0.42rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}
.top-bar-contacts {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
}
.top-bar-contacts span {
  display: flex; align-items: center; gap: 0.3rem;
}
.top-bar-contacts i { width: 13px; height: 13px; }

.emergency-btn {
  background: var(--red-em);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: background var(--transition);
  animation: pulse-em 2.2s infinite;
}
.emergency-btn:hover { background: #b91c1c; }
@keyframes pulse-em {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* Main nav */
.main-nav {
  background: white;
  padding: 0.7rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-border);
}

.nav-logo { display: flex; align-items: center; gap: 0.65rem; }
.nav-logo-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.nav-logo-circle img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.nav-brand  { font-size: 1.2rem; font-weight: 800; color: var(--blue); font-family: 'Plus Jakarta Sans', sans-serif; }
.nav-sub    { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  color: #374151; font-size: 0.875rem; font-weight: 600;
  position: relative; padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }

.nav-book-btn {
  background: var(--orange); color: white;
  font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 1.25rem; border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-book-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--blue); padding: 0.25rem;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--gray-border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.5rem;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  color: var(--text-main); font-size: 0.95rem; font-weight: 600;
  padding: 0.6rem 0; border-bottom: 1px solid var(--gray-border);
  transition: color var(--transition);
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover { color: var(--blue); }
.mobile-drawer .mobile-book-btn {
  background: var(--orange); color: white; text-align: center;
  border-radius: var(--radius-md); padding: 0.7rem; font-weight: 700;
  border-bottom: none; margin-top: 0.5rem;
}
.mobile-drawer .mobile-book-btn:hover { background: var(--orange-dark); }

/* Header spacer */
.header-spacer { height: var(--header-h); }

/* ══════════════════════════════════
   NOTICE BAR
══════════════════════════════════ */
.notice-bar {
  background: var(--orange); color: white;
  padding: 0.6rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.notice-badge {
  background: white; color: var(--orange);
  font-size: 0.68rem; font-weight: 800;
  padding: 0.18rem 0.65rem; border-radius: 999px;
  letter-spacing: 0.06em; white-space: nowrap;
  display: flex; align-items: center; gap: 0.3rem;
}
.notice-badge i { width: 11px; height: 11px; }
.notice-text { font-size: 0.85rem; font-weight: 500; text-align: center; }
.notice-text a { color: white; font-weight: 700; text-decoration: underline; }

/* ══════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════ */
.page-hero {
  background: var(--blue);
  padding: 3.5rem 1.5rem 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -40px; left: 10%;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.65);
  margin-bottom: 1rem; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.page-hero p  { font-size: 1.05rem; color: rgba(255,255,255,0.82); font-weight: 400; max-width: 640px; }

/* ══════════════════════════════════
   SECTION HELPERS
══════════════════════════════════ */
.section { padding: 4.5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-white { background: white; }
.section-gray  { background: var(--gray-bg); }
.section-blue  { background: var(--blue-light); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue); text-align: center; margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center; color: var(--text-muted);
  font-size: 1rem; margin-bottom: 2.75rem;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--orange); text-transform: uppercase;
  background: var(--orange-light); padding: 0.25rem 0.75rem;
  border-radius: 999px; margin-bottom: 0.75rem;
}

/* ══════════════════════════════════
   CARDS
══════════════════════════════════ */
.card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-mid); }

.card-accent-top { border-top: 3px solid var(--blue); }
.card-accent-orange { border-top: 3px solid var(--orange); }

/* Service card */
.service-card {
  padding: 2rem 1.5rem; text-align: center;
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-mid); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 58px; height: 58px; border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--blue);
}

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; border-radius: 999px;
  padding: 0.75rem 1.75rem; font-size: 0.92rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer; border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 6px 18px rgba(249,115,22,0.35); }
.btn-secondary { background: var(--blue); color: white; }
.btn-secondary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(0,77,153,0.3); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; }
.btn-outline-white {
  background: rgba(255,255,255,0.12); color: white;
  border: 2px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.22); }
.btn i { width: 16px; height: 16px; }

/* ══════════════════════════════════
   FORMS
══════════════════════════════════ */
.form-wrapper {
  max-width: 820px; margin: 0 auto;
  background: white; border-radius: var(--radius-xl);
  border: 1px solid var(--gray-border);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}
.form-section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--orange);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 1.25rem; margin-top: 1.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.form-section-title:first-of-type { margin-top: 0; }
.form-section-title i { width: 18px; height: 18px; }

.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.875rem; font-weight: 600; color: #374151;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1.5px solid #d1d5db; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-family: 'Inter', sans-serif;
  background: white; color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(0,77,153,0.1);
}
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  background: var(--blue); color: white;
  padding: 4rem 1.5rem 0;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-size: 0.9rem; font-weight: 700; color: white;
  margin-bottom: 1rem; letter-spacing: 0.02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.62); font-size: 0.83rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--orange); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.55rem;
  color: rgba(255,255,255,0.68); font-size: 0.83rem;
  margin-bottom: 0.6rem; line-height: 1.45;
}
.footer-contact-item i { flex-shrink: 0; margin-top: 2px; color: var(--orange); width: 14px; height: 14px; }
.social-links { display: flex; gap: 0.55rem; margin-top: 1.2rem; flex-wrap: wrap; }
.social-link {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-link:hover { background: var(--orange); color: white; border-color: var(--orange); }
.social-link i { width: 14px; height: 14px; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: 1.75rem 0 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.patient-notice {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.62);
  text-align: center; max-width: 580px;
  margin-bottom: 0.75rem;
}
.patient-notice strong { color: var(--orange); display: block; margin-bottom: 0.25rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.38); }

/* ══════════════════════════════════
   UTILITY
══════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text-muted); }

.check-list { list-style: none; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.4rem 0; font-size: 0.92rem; color: #374151;
}
.check-list li i { color: var(--orange); flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }

/* Page transition overlay */
.page-transition-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--blue);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.77,0,0.175,1);
  pointer-events: none;
}
.page-transition-overlay.entering { transform: translateX(0); }
.page-transition-overlay.exiting  { transform: translateX(100%); }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links, .nav-book-btn { display: none; }
  .mobile-menu-btn { display: block; }
}
@media (max-width: 768px) {
  .top-bar { flex-direction: column; gap: 0.3rem; text-align: center; padding: 0.4rem 1rem; }
  .section { padding: 3rem 1.25rem; }
  .page-hero { padding: 2.5rem 1.25rem 2rem; }
  .form-row { flex-direction: column; gap: 0; }
  .form-wrapper { padding: 1.75rem 1.25rem; }
  :root { --header-h: 118px; }
}
@media (max-width: 540px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}


/* Application Careers Instructions Section */

.apply-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.apply-step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: left;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.apply-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.apply-step-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.apply-step-link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.apply-address-box {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.apply-deadline {
  font-size: 0.9rem;
  color: #dc2626;
  font-weight: 600;
  line-height: 1.7;
}
.apply-step-link {
    text-decoration: underline;
}