/* ================================================================
   DR. LOCHAN KARKI — SHARED CSS v6.0
   Medical Blue + Teal palette | Merriweather + Inter
   Clean, no-animation professional design
   ================================================================ */

:root {
  --primary:       #2563EB;
  --primary-dark:  #1d4ed8;
  --primary-light: #3b82f6;
  --primary-pale:  #eff6ff;
  --secondary:     #60A5FA;
  --accent:        #14B8A6;
  --accent-dark:   #0f9688;
  --accent-pale:   #f0fdfa;

  --text-dark:     #1E293B;
  --text-mid:      #475569;
  --text-light:    #94a3b8;

  --bg:            #F8FAFC;
  --bg-white:      #ffffff;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e1;

  --shadow-xs:  0 1px 3px rgba(15,23,42,0.06);
  --shadow-sm:  0 2px 8px  rgba(15,23,42,0.08);
  --shadow-md:  0 6px 24px rgba(15,23,42,0.10);
  --shadow-lg:  0 16px 48px rgba(15,23,42,0.13);

  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  22px;
  --transition: all 0.22s ease;

  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:      68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body  { font-family: var(--font-sans); color: var(--text-dark); background: var(--bg); line-height: 1.7; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
button{ cursor: pointer; border: none; background: none; font-family: inherit; }
ul    { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text-dark);
  font-weight: 700;
}
p { color: var(--text-mid); line-height: 1.8; }

/* ---- Layout ---- */
.container       { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section-padding { padding: 88px 0; }
.bg-light        { background: var(--bg); }
.bg-white        { background: var(--bg-white); }
.hidden          { display: none !important; }
.text-center     { text-align: center; }

/* ---- Section Headers ---- */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-pale);
  color: var(--primary);
  padding: 4px 14px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-sans);
}
.section-tag.light {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
}

.section-header        { text-align: center; margin-bottom: 52px; }
.section-title         { font-size: clamp(1.65rem, 2.8vw, 2.4rem); color: var(--text-dark); margin-bottom: 12px; }
.section-title.light   { color: #fff; }
.section-subtitle      { color: var(--text-mid); font-size: 1rem; max-width: 580px; margin: 0 auto; }
.section-subtitle.light{ color: rgba(255,255,255,0.70); }

.section-rule {
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin: 14px auto 0;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 12px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.7); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--primary); color: var(--primary);
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.88rem;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  border: 2px solid var(--accent);
  transition: var(--transition);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-submit {
  width: 100%; padding: 13px 28px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700;
  font-size: 0.95rem; border: none;
  transition: var(--transition); cursor: pointer;
}
.btn-submit:hover    { background: var(--primary-dark); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* ---- Tags ---- */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; }
.tag-blue   { background: var(--primary-pale);  color: var(--primary); }
.tag-teal   { background: var(--accent-pale);   color: var(--accent-dark); }
.tag-red    { background: #fff1f1; color: #b91c1c; }
.tag-gold   { background: #fffbeb; color: #92400e; }

/* ================================================================
   PRELOADER — minimal, no animation beyond fade
   ================================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#preloader.fade-out { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--text-dark); font-weight: 700;
}
.preloader-logo span { color: var(--primary); }
.preloader-bar {
  width: 100px; height: 2px;
  background: var(--border); border-radius: 2px;
  margin: 14px auto 0; overflow: hidden;
}
.preloader-bar::after {
  content: ''; display: block; height: 100%;
  width: 0; background: var(--primary); border-radius: 2px;
  animation: loadBar 0.8s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-h);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled,
#navbar.solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
#navbar.scrolled .nav-link,
#navbar.solid   .nav-link   { color: var(--text-mid); }
#navbar.scrolled .logo-name,
#navbar.solid   .logo-name  { color: var(--text-dark); }
#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active,
#navbar.solid   .nav-link:hover,
#navbar.solid   .nav-link.active { color: var(--primary); background: var(--primary-pale); }
#navbar.scrolled .hamburger span,
#navbar.solid   .hamburger span { background: var(--text-dark); }

.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px; height: 100%;
  display: flex; align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center;
  margin-right: 32px;
}
.logo-dr   { color: var(--primary); }
.logo-name { color: #fff; transition: color 0.3s ease; }

.nav-links {
  display: flex; align-items: center;
  gap: 2px; flex: 1;
}
.nav-link {
  color: rgba(255,255,255,0.80);
  font-size: 0.84rem; font-weight: 500;
  padding: 7px 11px; border-radius: 6px;
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: #fff; background: rgba(255,255,255,0.14); }



.hamburger {
  display: none; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px; padding: 9px; border-radius: 6px;
  margin-left: auto;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
}
.hamburger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
/* Solid/scrolled navbar — dark hamburger bars */
#navbar.solid .hamburger,
#navbar.scrolled .hamburger {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.20);
}
#navbar.solid .hamburger span,
#navbar.scrolled .hamburger span { background: var(--text-dark); }

/* Desktop nav hidden below 1025px — mobile nav handled by separate overlay */
@media (max-width: 1024px) {
  .nav-links    { display: none; }
  .hamburger    { display: flex; }
}
@media (min-width: 1025px) {
  .hamburger    { display: none; }
  #mobileNav    { display: none !important; }
  #mobileBackdrop { display: none !important; }
}
@media (max-width: 480px) {
  .nav-container { padding: 0 16px; }
  .nav-logo { font-size: 1.05rem; margin-right: 0; }
}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, #1e40af 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 134px 0 68px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 40%, rgba(20,184,166,0.12) 0%, transparent 55%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1  { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; margin-bottom: 10px; }
.page-hero p   { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 560px; margin: 0 auto 18px; }

.breadcrumb { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.breadcrumb a       { color: var(--secondary); }
.breadcrumb a:hover { color: #fff; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 500;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover   { background: var(--primary-dark); }

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,0.90);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.95rem;
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); }
.lightbox-content img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: #0f172a; }

.footer-top { padding: 68px 0 52px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
  display: inline-flex; gap: 2px; margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.86rem; color: rgba(255,255,255,0.50);
  line-height: 1.72; margin-bottom: 20px; max-width: 270px;
}

.footer-socials { display: flex; gap: 9px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.footer-col h4 {
  font-family: var(--font-sans); font-size: 0.70rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.86rem; color: rgba(255,255,255,0.52); transition: var(--transition);
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }

.footer-col p {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.86rem; color: rgba(255,255,255,0.50);
  margin-bottom: 10px; line-height: 1.55;
}
.footer-col p i { color: var(--accent); font-size: 0.80rem; margin-top: 3px; flex-shrink: 0; }

.footer-avail {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(20,184,166,0.12); border: 1px solid rgba(20,184,166,0.25);
  color: #2dd4bf; padding: 5px 12px; border-radius: 50px;
  font-size: 0.76rem; font-weight: 600; margin-top: 6px;
}
.avail-dot { width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.80rem; color: rgba(255,255,255,0.32); line-height: 1.5; }
.footer-bottom p i { color: #f87171; margin: 0 3px; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px)  {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-top  { padding: 44px 0 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 6px; }
}

/* ================================================================
   INNER PAGE HERO (used by templates/*.php)
   ================================================================ */
.inner-page-hero {
  padding: 130px 0 64px;
  background: linear-gradient(145deg, #1e3a8a 0%, var(--primary) 55%, #1d4ed8 100%);
  position: relative; overflow: hidden;
}
.inner-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 45%, rgba(20,184,166,0.10) 0%, transparent 50%);
}
.inner-page-hero .container { position: relative; z-index: 1; }

.inner-breadcrumb {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; color: rgba(255,255,255,0.52);
  margin-bottom: 18px; font-family: var(--font-sans);
}
.inner-breadcrumb a       { color: var(--secondary); transition: var(--transition); }
.inner-breadcrumb a:hover { color: #fff; }
.inner-breadcrumb i       { font-size: 0.58rem; color: rgba(255,255,255,0.30); }

.inner-page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  color: #fff; margin-bottom: 12px; line-height: 1.2;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.inner-page-title i { color: var(--accent); font-size: 0.85em; }

.inner-page-sub {
  color: rgba(255,255,255,0.68); font-size: 1rem;
  max-width: 640px; line-height: 1.72; font-family: var(--font-sans);
}

/* ================================================================
   MOBILE NAV OVERLAY (separate from #navbar stacking context)
   ================================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9997;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-nav-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.mobile-nav-logo {
  font-family: var(--font-serif); font-size: 1.1rem; color: #fff; font-weight: 700;
}
.mobile-nav-logo span { color: rgba(255,255,255,0.7); }

.mobile-nav-close {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.22); }

.mobile-nav-links {
  display: flex; flex-direction: column;
  padding: 16px 20px; gap: 4px; flex: 1;
}
.m-nav-link {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.80);
  font-size: 1.05rem; font-weight: 500;
  padding: 14px 18px; border-radius: 8px;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.m-nav-link i { width: 20px; text-align: center; font-size: 0.95rem; color: rgba(255,255,255,0.55); }
.m-nav-link:hover,
.m-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.m-nav-link.active i { color: var(--secondary); }

.mobile-nav-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 16px 20px 28px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.95rem; font-weight: 700;
  padding: 15px; border-radius: 8px;
  transition: var(--transition);
  font-family: var(--font-sans);
  text-align: center;
  flex-shrink: 0;
}
.mobile-nav-cta:hover { background: rgba(255,255,255,0.25); }

/* Lock body scroll when mobile menu open */
body.mobile-open { overflow: hidden; }

/* ================================================================
   PAGE TITLE BAR (replaces inner-page-hero — clean, minimal)
   ================================================================ */
.page-title-bar {
  padding: calc(var(--nav-h) + 28px) 0 28px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.page-title-bar .container { display: flex; flex-direction: column; gap: 6px; }

.ptb-breadcrumb {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; color: var(--text-light);
  font-family: var(--font-sans);
}
.ptb-breadcrumb a       { color: var(--primary); transition: var(--transition); }
.ptb-breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }
.ptb-breadcrumb i       { font-size: 0.55rem; color: var(--border-dark); }

.ptb-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-dark); margin: 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ptb-title i { color: var(--primary); font-size: 0.82em; }

.ptb-sub {
  color: var(--text-light); font-size: 0.96rem;
  max-width: 620px; line-height: 1.65;
  font-family: var(--font-sans); margin-top: 2px;
}
