/* =========================
   Base + Variables
   ========================= */
:root{
  --theme: #007BBF;
  --text: #1a1a1a;
  --muted: #5c6470;
  --bg: #ffffff;
  --bg-soft:#f6f8fb;
  --maxw: 1200px;
  --header-h: 64px;
  --bottom-nav-height: 64px;
  --nav-height: 64px;
   
  --primary: #007BBF;
  --primary-dark: #005a99;
  --primary-600: #2f5fb7;
  --primary-100: rgba(0, 123, 191, 0.08);
  --primary-150: rgba(0, 123, 191, 0.15);

  --secondary: #c82333;
  --secondary-dark: #a71d2a;
  --secondary-light: #f8d7da;
  
  --bottom-nav-start: #007BBF;
  --bottom-nav-end: #004F85;   
}

.sticky-gap {
  height: 20px;
  width: 100%;
  display: block;
}

*{ box-sizing: border-box; }
html, body { margin:0; padding:0; scroll-behavior:smooth; overflow-x:hidden; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; color:var(--text); background:var(--bg); -webkit-text-size-adjust:100%; padding-top: var(--header-h);}
img, video { max-width:100%;display:block; }
a{ color:var(--theme); text-decoration:none; }
a:hover{ text-decoration:underline; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
button, input, select { font: inherit; }

/* =========================
   Header (sticky)
   ========================= */
.as-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #e9eef6;
  transition: box-shadow 0.2s ease;
}
.as-header-inner{ height: var(--header-h); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:18px; min-width:0; }
.brand img{ height:32px; width:32px; border-radius:6px; object-fit:cover; }
.brand-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Desktop Nav */
.nav-desktop{ display:none; gap:16px; align-items:center; flex-wrap:wrap; }
.nav-desktop a{ color:#2d3748; font-weight:500; }
.cta{ padding:10px 14px; border-radius:10px; background:var(--theme); color:#fff; font-weight:600; }
.cta:hover{ opacity:.9; text-decoration:none; }

/* Mobile header controls */
.controls{ display:flex; align-items:center; gap:10px; }
.icon-btn{ height:36px; width:36px; display:grid; place-items:center; border-radius:10px; border:1px solid #e7edf5; background:#fff; }
/* Instagram-style icon button */
.icon-btn.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  border: none;
  color: #fff;              /* makes the SVG/icon white */
  transition: transform .2s ease, box-shadow .3s ease;
}

.icon-btn.instagram svg {
  width: 20px;
  height: 20px;
  fill: currentColor;       /* ensures SVG inherits the white color */
}

.icon-btn.instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(221, 42, 123, 0.35);
}

.icon-btn.instagram:active {
  transform: scale(0.96);
  box-shadow: 0 3px 10px rgba(221, 42, 123, 0.25);
}


/* Drawer */
#as-overlay{ position: fixed; inset:0; background: rgba(0,0,0,.35); opacity:0; pointer-events:none; transition:.2s; z-index: 999; }
#as-overlay.show{ opacity:1; pointer-events:auto; }
#as-drawer{ position: fixed; inset:0 auto 0 0; width: 78%; max-width: 320px; background:#fff; border-right:1px solid #e7edf5; transform: translateX(-100%); transition: transform .25s ease-out; z-index: 1000; display:flex; flex-direction:column; }
#as-drawer.open{ transform: translateX(0); }
.drawer-head{ padding:16px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #eef2f7; }
.drawer-nav{ list-style:none; margin:0; padding: 8px 0; }
.drawer-nav li a{ display:block; padding:12px 16px; color:#2d3748; font-weight:600; }
.no-scroll{ overflow:hidden; }

/* =========================
   Banner (parallax feel)
   ========================= */
.as-banner{
  position: relative;
  height: 48vh; min-height: 320px; max-height: 520px;
  background: url('/assets/images/site-images/as-banner.webp') center/cover no-repeat fixed;
  display:flex; align-items:center;
  will-change: transform;
}
.as-banner .shade{ position:absolute; inset:0; background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.25)); }
.as-banner .content{ position:relative; color:#fff; z-index:1; }
.as-banner h1{ font-size: clamp(24px, 6vw, 48px); margin:0 0 10px; line-height:1.1; }
.as-banner p{ font-size: clamp(13px, 3.6vw, 18px); margin:0; opacity:.95; }

/* =========================
   Main Content
   ========================= */
.section{ padding:40px 0; }
.section h2{ font-size: clamp(20px, 5vw, 32px); margin:0 0 20px; }
.grid{
  display:grid; gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card{
  background:#fff; border:1px solid #e9eef6; border-radius:16px; padding:18px; box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.card h3{ margin:0 0 8px; font-size:18px; }
.card p{ margin:0; color:var(--muted); word-wrap:break-word; overflow-wrap:anywhere; }

/* =========================
   Footer
   ========================= */
footer{ background: #0f172a; color: #e2e8f0; border-top: 1px solid #0b1222; }
.footer-inner{ padding: 28px 0; }
.footer-grid{ display:grid; gap:20px; grid-template-columns: 1fr; } /* mobile: 1 col */
.footer h4{ margin:0 0 10px; font-size:18px; }
.footer a {
  color: #dbeafe;
  display: block;          /* Makes each link take full line width */
  margin-bottom: 6px;      /* Adds space between links */
  margin-left: 1rem;
  text-decoration: none;   /* Optional: cleaner look */
  padding: 4px 0;          /* Slim vertical padding */
}

.footer a:hover {
  color: #fff;             /* Optional hover effect */
}

.footer .muted {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;        /* Adds breathing space for contact lines */
   margin-left: 1rem;
}

/* ───────────────────────────────────────
   Doctor Auto-scroll Strip (Option C)
   ─────────────────────────────────────── */
#as-docs-scroller{
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  touch-action: pan-y;     /* allow vertical page scroll, we handle horizontal drag */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#as-docs-scroller.dragging{ cursor: grabbing; }

#as-docs-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  will-change: transform;
}

/* Base structure (common to both) */

.doc-card {
  flex: 0 0 auto;
  width: 260px;
  min-width: 220px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.doc-card img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.doc-card .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.doc-card .name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-card .qual,
.doc-card .dept {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 🌙 Dark version */
.doc-card.dark {
  background: #0b1222;
  border: 1px solid #12223d;
  color: #cbd5e1;
}
.doc-card.dark img {
  background: #0e1a30;
}
.doc-card.dark .name { color: #f1f5f9; }
.doc-card.dark .qual,
.doc-card.dark .dept { color: #9fb3cc; }

/* ☀️ Light version */
.doc-card.light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.doc-card.light:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.doc-card.light img { background: #f1f5f9; }
.doc-card.light .name { color: #0f172a; }
.doc-card.light .qual,
.doc-card.light .dept { color: #475569; }


/* Optional: fade on edges to hint scrollable */
#as-docs-scroller {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 24px,
    #000 calc(100% - 24px),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 24px,
    #000 calc(100% - 24px),
    transparent
  );
}


/* ========= BOTTOM NAV ========= */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:var(--bottom-nav-height);background:linear-gradient(90deg,var(--bottom-nav-start),var(--bottom-nav-end));display:flex;justify-content:space-around;align-items:center;z-index:9999;box-shadow:0 -6px 20px rgba(0,0,0,.12);border-top:1px solid rgba(0,0,0,.08);padding-top:6px;padding-bottom:calc(env(safe-area-inset-bottom,0px)+6px)}
.bottom-nav a{flex:1 1 0;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;text-decoration:none;font-size:.78rem;padding-top:5px;padding-left:6px;padding-right:6px;transition:background .2s ease}
.bottom-nav a svg{width:22px;height:22px;margin-bottom:4px;fill:#fff;display:block}
.bottom-nav a.whatsapp-big svg{width:32px;height:32px;margin-bottom:2px}
.bottom-nav a.active{font-weight:600;background:rgba(255,255,255,0.15);border-radius:6px}
.bottom-nav a:active{transform:translateY(1px)}
@media (min-width:992px){.bottom-nav{display:none}}

/* =========================
   Base Pill-Style Button
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 1.4rem;
  border-radius: 999px !important;

  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  cursor: pointer;

  box-shadow: 0 4px 14px rgba(51, 104, 198, 0.18);
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Text wrapping support */
.btn.allow-wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Hover */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 104, 198, 0.25);
}

/* Active */
.btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(51, 104, 198, 0.2);
}

/* Disabled */
.btn.disabled,
.btn:disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================
   Button Variants
   ========================= */

/* Outline */
.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--primary-100);
}
.btn.white {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: none;
}

.btn.white:hover {
  background: var(--primary-100);
}

/* Danger */
.btn.danger {
  background: #dc3545;
  color: #fff;
  border: none;
}

.btn.danger:hover {
  background: #c82333;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.25);
}

/* Outline Danger */
.btn.outline-danger {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  box-shadow: none;
}

.btn.outline-danger:hover {
  background: rgba(220, 53, 69, 0.1);
}

/* Gradient */
.btn.gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  border: none;
}

.btn.gradient:hover {
  box-shadow: 0 6px 22px rgba(51, 104, 198, 0.35);
}

/* Muted / Neutral */
.btn.muted {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: none;
}

.btn.muted:hover {
  background: #e5e7eb;
}

/* Ghost (transparent text button) */
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: none;
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--primary-100);
}

/* =========================
   Doctor Page Header + Sections
   ========================= */
.doc-hero{
  background: var(--bg-soft);
  border-bottom: 1px solid #eef2f7;
  padding: 18px 0;
}
.doc-hero__inner{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.doc-avatar{
  width: 88px; height: 88px;
  border-radius: 16px; object-fit: cover; background:#fff;
  border: 1px solid #e6edf6; box-shadow: 0 4px 16px rgba(16,24,40,.08);
}
.doc-meta{ min-width: 0; }
.doc-title{ margin:0 0 4px; font-size: clamp(18px, 3.6vw, 28px); line-height:1.2; }
.doc-sub{ color: var(--muted); display:flex; align-items:center; gap:8px; font-size:14px; flex-wrap:wrap; }
.doc-dot{ opacity:.5; }
.doc-actions{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; }

/* Detail sections */
.doc-sections{ display:grid; gap: 16px; }
.doc-section{
  background:#fff; border:1px solid #e9eef6; border-radius:16px; padding:16px 16px 14px;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.doc-section__head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.doc-section__head h2{ margin:0; font-size:18px; }
.doc-section__head svg{ color: var(--primary); }
.doc-section__body{ color:#334155; }
.doc-section__body ul{ margin:0; padding-left:18px; }

/* Inline icon helper */
.icon-inline{
  display:inline-flex; vertical-align:middle; line-height:0; margin-right:6px;
}
.icon-inline svg{ width:1em; height:1em; }

/* Responsive refinements for doctor header */
@media (min-width: 768px){
  .doc-avatar{ width: 96px; height: 96px; border-radius: 18px; }
  .doc-title{ font-size: 30px; }
}

/* =========================
   Bottom-nav safe area padding (mobile)
   ========================= */
@media (max-width: 991.98px){
  body{ padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px)); }
}

/* =========================
   Optional: make .cta look like your pill button
   (replace your existing .cta block with this if you want)
   ========================= */

/* If you place SVG inside .btn or .cta */
.btn svg, .cta svg{ margin-right:8px; }


/* =========================
   Breakpoints
   ========================= */

/* ≥360px: tighten header, ensure no overflow */
@media (min-width: 360px){
  .as-header-inner{ gap:14px; }
}

/* ≥480px: slightly larger banner text, cards */
@media (min-width: 480px){
  .as-banner h1{ font-size: clamp(28px, 6vw, 44px); }
  .doc-card img{ width:68px; height:68px; }
}

/* ≥640px (sm): Footer layout changes */
@media (min-width: 640px){
  .footer-grid {
    grid-template-columns: 1fr 1fr;   /* 2 columns for Contact + Links */
    align-items: start;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;              /* Make scroller full width */
  }

  .doc-card {
    width: 260px;
    min-width: 240px;
  }
}


/* ≥768px (md): adjust section padding; grid denser */
@media (min-width: 768px){
  .section{ padding:52px 0; }
  .grid{ gap:18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ≥1024px (lg): show desktop nav; enable fixed banner; 3-col footer */
@media (min-width: 1024px){
  .nav-desktop{ display:flex; }
  .controls .mobile-only{ display:none; }
  .as-header-inner{ gap:24px; }
  .as-banner{ background-attachment: fixed; }
  .footer-grid{ grid-template-columns: 1.2fr 1fr 1fr; }
  .doc-card{ width: 280px; min-width: 280px; }
  .doc-card img{ width:72px; height:72px; }
     .footer-grid{
    grid-template-columns: 1fr 1fr;    /* 2 cols below */
    align-items: start;
  }
  .footer-grid > :first-child{
    grid-column: 1 / -1;               /* scroller full width */
  }
}

/* ≥1280px (xl): loosen container padding slightly */
@media (min-width: 1280px){
  .container{ padding: 0 20px; }

}
