/* ============================================================
   iMedical Pharmacy — Main Theme Stylesheet
   Colors: Primary #4361ee (blue) | Secondary #22c55e (green)
   Fonts: Quicksand
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --primary:        #4361ee;
  --primary-dark:   #3451d1;
  --primary-light:  #eff2ff;
  --secondary:      #22c55e;
  --secondary-dark: #16a34a;
  --secondary-light:#f0fdf4;
  --foreground:     #1e1b4b;
  --muted:          #6b7280;
  --border:         #e5e7eb;
  --background:     #ffffff;
  --radius:         0.75rem;
  --shadow:         0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);

  /* Motion system — snappy, restrained easing (no bounce), short durations */
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:  150ms;
  --duration-base:  250ms;
  --duration-slow:  450ms;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Quicksand', sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
p { margin: 0; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-padding { padding: 4rem 0; }
@media (min-width: 768px) { .section-padding { padding: 6rem 0; } }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-base), border-color var(--duration-base), color var(--duration-base), transform var(--duration-fast);
  border: 2px solid transparent;
  font-family: 'Quicksand', sans-serif;
  line-height: 1;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card:active { transform: translateY(0) scale(.99); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-green   { background: #dcfce7; color: #166534; }
.badge-yellow  { background: #fef9c3; color: #854d0e; }

/* ============================================================
   MOTION SYSTEM
   Shared easing curve, entrance keyframes, and a scroll-reveal
   utility used sitewide. Everything here respects
   prefers-reduced-motion at the bottom of this block.
   ============================================================ */

/* Apply the shared easing curve to every element that already
   declares a transition elsewhere in this file. */
a, button, input, select, textarea,
.btn, .card, .menu-toggle, .hero-arrow, .hero-dot,
.nav-desktop a, .nav-mobile a, .footer-social a, .footer-col a,
.footer-contact-item a, .search-input, .gallery-filter-btn,
.qac-card, .qac-btn, .value-card, .branch-card, .news-card,
.event-card, .team-card, .yakap-step, .eligibility-card,
.gallery-item, .faq-question, .faq-chevron,
.form-group input, .form-group select, .form-group textarea,
.wp-content a {
  transition-timing-function: var(--ease);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll-reveal utility — toggled by IntersectionObserver in theme.js.
   Elements start hidden/offset, then animate in once .is-visible is added. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings inside the same grid/row automatically. */
.reveal:nth-child(2) { --reveal-delay: 70ms; }
.reveal:nth-child(3) { --reveal-delay: 140ms; }
.reveal:nth-child(4) { --reveal-delay: 210ms; }
.reveal:nth-child(5) { --reveal-delay: 280ms; }
.reveal:nth-child(6) { --reveal-delay: 350ms; }
.reveal:nth-child(n+7) { --reveal-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.site-logo-img { display: block; width: auto; height: 40px; object-fit: contain; }
.site-logo-img--footer { height: 36px; filter: brightness(0) invert(1); }

/* Desktop nav */
.nav-desktop { display: none; }
@media (min-width: 1024px) { .nav-desktop { display: flex; align-items: center; gap: .25rem; } }
.nav-desktop ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  padding: .5rem .75rem;
  font-size: .875rem; font-weight: 500;
  color: var(--foreground);
  transition: color .2s, background .2s;
  border-radius: .375rem;
  font-family: 'Quicksand', sans-serif;
}
.nav-desktop a:hover,
.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a { color: var(--primary); background: var(--primary-light); }

/* Header CTA */
.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: flex; align-items: center; gap: 1rem; } }
.header-phone { font-size: .875rem; font-weight: 500; color: var(--primary); }

/* Mobile toggle */
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: none; border: none; cursor: pointer;
  border-radius: .375rem; transition: background var(--duration-base), transform var(--duration-fast); color: var(--foreground);
}
.menu-toggle:hover { background: #f3f4f6; }
.menu-toggle:active { transform: scale(.9); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile nav */
.nav-mobile { display: none; padding: 1rem 0; border-top: 1px solid var(--border); }
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block; padding: .625rem 1rem;
  font-size: .9rem; font-weight: 500;
  color: var(--foreground); border-radius: .375rem;
  transition: color .2s, background .2s;
  font-family: 'Quicksand', sans-serif;
}
.nav-mobile a:hover { color: var(--primary); background: #f9fafb; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative; width: 100%; overflow: hidden;
  height: 520px;
}
@media (min-width: 768px)  { .hero-slider { height: 620px; } }
@media (min-width: 1024px) { .hero-slider { height: 720px; } }

.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 5s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }

.hero-bg-1 { background: linear-gradient(135deg,#eff6ff 0%,#dbeafe 50%,#dcfce7 100%); }
.hero-bg-2 { background: linear-gradient(135deg,#dcfce7 0%,#d1fae5 50%,#dbeafe 100%); }
.hero-bg-3 { background: linear-gradient(135deg,#faf5ff 0%,#fce7f3 50%,#fee2e2 100%); }
.hero-bg-4 { background: linear-gradient(135deg,#fff7ed 0%,#fefce8 50%,#dcfce7 100%); }

.hero-content {
  max-width: 700px; margin: 0 auto;
  text-align: center; padding: 0 1.5rem; width: 100%;
}
.hero-icon { font-size: 5rem; margin-bottom: 1.5rem; line-height: 1; }
.hero-title {
  font-size: 2rem; font-weight: 700;
  color: var(--foreground); margin-bottom: 1.25rem;
}
@media (min-width: 768px)  { .hero-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3rem; } }
.hero-subtitle {
  font-size: 1.125rem; color: var(--muted);
  margin-bottom: 2rem; line-height: 1.7;
  font-family: 'Quicksand', sans-serif;
}

/* Slider controls */
.hero-controls {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .5rem; align-items: center;
}
.hero-dot {
  width: .625rem; height: .625rem; border-radius: 50%;
  background: rgba(67,97,238,.3); cursor: pointer; border: none;
  transition: background var(--duration-slow), transform var(--duration-fast); padding: 0;
}
.hero-dot.active { background: var(--primary); }
.hero-dot:active { transform: scale(.8); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.8); border: 1px solid var(--border);
  border-radius: 50%; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--duration-base), box-shadow var(--duration-base), transform var(--duration-fast); color: var(--foreground);
  font-size: 1.125rem; line-height: 1;
}
.hero-arrow:hover { background: #fff; box-shadow: var(--shadow-md); }
.hero-arrow:active { transform: translateY(-50%) scale(.88); }
.hero-arrow-prev { left: 1rem; }
.hero-arrow-next { right: 1rem; }

/* ============================================================
   QUICK CARDS (Homepage)
   ============================================================ */
.quick-cards {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px)  { .quick-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .quick-cards { grid-template-columns: repeat(4,1fr); } }

/* ── Quick Access Cards — new card design ─────────────────────── */
.qac-section {
  background: linear-gradient(135deg, #cde8f8 0%, #c8f0e0 100%);
  padding: 4rem 0;
}

.qac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) { .qac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .qac-grid { grid-template-columns: 1fr; } }

.qac-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 1.5rem;
  text-decoration: none;
  min-height: 420px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.qac-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.qac-card:active { transform: translateY(-2px) scale(.98); }

.qac-card--blue  { background: linear-gradient(160deg, #8b9edf 0%, #6270c8 100%); }
.qac-card--teal  { background: linear-gradient(160deg, #4ecdc4 0%, #34ada5 100%); }
.qac-card--amber { background: linear-gradient(160deg, #f6ba50 0%, #e69918 100%); }
.qac-card--red   { background: linear-gradient(160deg, #e87070 0%, #d03a3a 100%); }

.qac-sparkle {
  position: absolute;
  font-size: 1.1rem;
  color: rgba(255,255,255,.5);
  line-height: 1;
  pointer-events: none;
}
.qac-sparkle--tl { top: .9rem;  left: .9rem;  }
.qac-sparkle--br { bottom: .9rem; right: .9rem; }

.qac-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.qac-icon {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.18));
}

.qac-divider {
  width: 55%;
  height: 1px;
  background: rgba(255,255,255,.4);
  margin: 0 auto .9rem;
}

.qac-desc {
  font-family: 'Quicksand', sans-serif;
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  margin: 0 0 1.5rem;
  flex: 1;
}

.qac-btn {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: .5rem 1.6rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .07em;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: box-shadow .2s, transform .2s;
  margin-top: auto;
}

.qac-card:hover .qac-btn { box-shadow: 0 6px 18px rgba(0,0,0,.2); transform: scale(1.04); }

/* Stats/Highlights */
.highlights-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  max-width: 900px; margin: 0 auto;
}
@media (min-width: 640px) { .highlights-grid { grid-template-columns: repeat(3,1fr); } }
.highlight-item { text-align: center; }
.highlight-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); font-family: 'Quicksand', sans-serif; }
.highlight-label  { font-size: 1.125rem; font-weight: 600; color: var(--foreground); margin: .25rem 0; font-family: 'Quicksand', sans-serif; }
.highlight-desc   { font-size: .875rem; color: var(--muted); font-family: 'Quicksand', sans-serif; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--foreground); color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 4rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .site-logo .logo-name { color: #fff; }
.footer-brand .site-logo .logo-sub  { color: #9ca3af; }
.footer-brand p { font-size: .875rem; color: #9ca3af; line-height: 1.7; margin: 1rem 0 1.5rem; font-family: 'Quicksand', sans-serif; }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 2.5rem; height: 2.5rem; background: var(--primary);
  border-radius: .5rem; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #fff; transition: background .2s;
  font-family: 'Quicksand', sans-serif;
}
.footer-social a:hover { background: var(--primary-dark); }

.footer-col h4 { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: 1rem; font-family: 'Quicksand', sans-serif; }
.footer-col a  { font-size: .875rem; color: #9ca3af; display: block; margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.footer-contact-item span:first-child { flex-shrink: 0; line-height: 1.4; }
.footer-contact-item a,
.footer-contact-item p { font-size: .875rem; color: #9ca3af; font-family: 'Quicksand', sans-serif; margin: 0; transition: color .2s; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center; text-align: center; padding: 1.5rem 0;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p,
.footer-bottom span { font-size: .875rem; color: #9ca3af; font-family: 'Quicksand', sans-serif; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  padding: 2rem 0;
}
@media (min-width: 768px) { .page-hero { padding: 2.75rem 0; } }
.page-hero-inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: 2rem; margin-bottom: .75rem; }
@media (min-width: 768px) { .page-hero h1 { font-size: 2.75rem; } }
.page-hero p  { font-size: 1.125rem; color: var(--muted); line-height: 1.7; font-family: 'Quicksand', sans-serif; }

/* ============================================================
   IMAGE PLACEHOLDERS (until real images added)
   ============================================================ */
.img-placeholder {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  border-radius: var(--radius);
  min-height: 24rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 1rem;
}
.img-placeholder-icon { font-size: 5rem; opacity: .35; }
.img-placeholder p { color: var(--muted); font-size: 1.125rem; font-family: 'Quicksand', sans-serif; }
.img-placeholder-svg { width: 100%; max-width: 220px; height: auto; }

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col p { font-size: 1.0625rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; font-family: 'Quicksand', sans-serif; }
.two-col h2 { margin-bottom: 1.5rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.mission-vision-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 56rem; margin: 0 auto 4rem; }
@media (min-width: 768px) { .mission-vision-grid { grid-template-columns: 1fr 1fr; } }
.mv-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; }
.mv-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; font-family: 'Quicksand', sans-serif; }
.mv-card.mission h3 { color: var(--primary); }
.mv-card.vision h3  { color: var(--secondary); }
.mv-card p { color: var(--muted); line-height: 1.7; font-family: 'Quicksand', sans-serif; }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4,1fr); } }
.value-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 1.5rem; text-align: center; overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  transition: transform .25s, box-shadow .25s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(15,23,42,.16); }
.value-card:active { transform: translateY(-2px) scale(.99); }
.value-icon { width: 3.5rem; height: 3.5rem; background: var(--primary-light); border-radius: .5rem; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 1rem; }
.value-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; font-family: 'Quicksand', sans-serif; }
.value-card p  { font-size: .875rem; color: var(--muted); font-family: 'Quicksand', sans-serif; }

/* Services cards with a photo instead of an icon (front-page.php) */
.value-card--photo { padding: 0; text-align: left; }
.value-image { width: 100%; height: 11rem; object-fit: cover; display: block; }
.value-card-body { padding: 1.5rem; text-align: center; }
.value-card-body h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; font-family: 'Quicksand', sans-serif; }
.value-card-body p  { font-size: .875rem; color: var(--muted); font-family: 'Quicksand', sans-serif; }

.team-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px)  { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3,1fr); } }
.team-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: box-shadow var(--duration-base), transform var(--duration-base); }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-avatar { background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%); height: 12rem; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.team-info { padding: 1.5rem; }
.team-info h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; font-family: 'Quicksand', sans-serif; }
.team-role { font-size: .875rem; color: var(--primary); font-weight: 500; margin-bottom: .75rem; font-family: 'Quicksand', sans-serif; }
.team-bio  { font-size: .875rem; color: var(--muted); line-height: 1.6; font-family: 'Quicksand', sans-serif; }

/* ============================================================
   BRANCHES PAGE
   ============================================================ */
.search-bar-wrap { max-width: 42rem; margin: 0 auto; }
.search-bar { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .search-bar { flex-direction: row; } }
.search-input {
  flex: 1; padding: .875rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .9375rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: 'Quicksand', sans-serif;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,97,238,.15); }

.branches-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .branches-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .branches-grid { grid-template-columns: repeat(3,1fr); } }

.branch-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: box-shadow var(--duration-base), transform var(--duration-base); }
.branch-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.branch-header { background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%); padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.branch-header h3 { font-size: 1.125rem; font-weight: 700; font-family: 'Quicksand', sans-serif; }
.branch-body { padding: 1.5rem; }
.branch-detail { display: flex; gap: .75rem; margin-bottom: 1rem; align-items: flex-start; }
.branch-detail-icon { flex-shrink: 0; font-size: 1rem; }
.branch-detail-text { font-size: .875rem; color: var(--muted); line-height: 1.5; font-family: 'Quicksand', sans-serif; }
.branch-services { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.gallery-filter-btn {
  font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: .875rem;
  padding: .5rem 1.25rem; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.gallery-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.gallery-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4,1fr); gap: 1.5rem; } }
.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer;
  transition: transform var(--duration-base), box-shadow var(--duration-base);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item:active { transform: scale(.98); }
.gallery-item img  { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1rem; }
.gallery-placeholder-icon { font-size: 2.5rem; opacity: .4; }
.gallery-placeholder p { font-size: .75rem; color: var(--muted); font-family: 'Quicksand', sans-serif; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: .5rem .75rem; font-size: .75rem; color: #fff;
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
}

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px)  { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3,1fr); } }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--duration-base), transform var(--duration-base); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-img { background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%); height: 12rem; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.news-body { padding: 1.5rem; }
.news-body h3 { font-size: 1.125rem; font-weight: 700; margin: .75rem 0 .5rem; line-height: 1.4; font-family: 'Quicksand', sans-serif; }
.news-body p  { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; font-family: 'Quicksand', sans-serif; }
.news-meta { font-size: .75rem; color: var(--muted); font-family: 'Quicksand', sans-serif; }

/* ============================================================
   FAQs PAGE
   ============================================================ */
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #fff; border: none; cursor: pointer;
  text-align: left; font-size: 1rem; font-weight: 600;
  color: var(--foreground); font-family: 'Quicksand', sans-serif;
  transition: background .2s; gap: 1rem;
}
.faq-question:hover { background: #f9fafb; }
.faq-question.open  { background: var(--primary-light); color: var(--primary); }
.faq-chevron { flex-shrink: 0; transition: transform .3s; color: var(--muted); font-size: 1rem; }
.faq-question.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer { display: none; padding: 1.25rem 1.5rem; background: #fff; font-size: .9375rem; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); font-family: 'Quicksand', sans-serif; }
.faq-answer.open { display: block; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start;
  transition: box-shadow var(--duration-base), transform var(--duration-base), border-color var(--duration-base);
}
.contact-info-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: var(--primary-light); }
.contact-info-item:active { transform: translateX(2px) scale(.99); }
.contact-info-icon {
  width: 2.75rem; height: 2.75rem; background: var(--primary-light); border-radius: .5rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease), background var(--duration-base);
}
.contact-info-item:hover .contact-info-icon { transform: scale(1.12) rotate(-6deg); background: var(--secondary-light); }
.contact-info-item h4 { font-size: .9375rem; font-weight: 600; margin-bottom: .25rem; font-family: 'Quicksand', sans-serif; }
.contact-info-item p,
.contact-info-item a { font-size: .875rem; color: var(--muted); line-height: 1.6; font-family: 'Quicksand', sans-serif; transition: color var(--duration-fast); }
.contact-info-item a:hover { color: var(--primary); }

.contact-form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
  transition: box-shadow var(--duration-base);
}
.contact-form-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; font-family: 'Quicksand', sans-serif; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label { font-size: .875rem; font-weight: 500; color: var(--foreground); font-family: 'Quicksand', sans-serif; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1px solid var(--border); border-radius: .5rem;
  font-size: .9375rem; font-family: 'Quicksand', sans-serif;
  outline: none; transition: border-color var(--duration-base), box-shadow var(--duration-base), transform var(--duration-base); width: 100%;
  color: var(--foreground);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,97,238,.15); transform: translateY(-1px); }
.form-group textarea { resize: vertical; min-height: 7rem; }
.form-notice { padding: 1rem 1.25rem; border-radius: .5rem; margin-bottom: 1rem; font-size: .9375rem; font-family: 'Quicksand', sans-serif; display: none; }
.form-notice.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; display: block; animation: fadeInUp var(--duration-slow) var(--ease) both; }
.form-notice.error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; display: block; animation: shake .4s var(--ease-in-out) both; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(2px); }
}

/* Hero text entrance — contact page only */
.contact-hero { animation: fadeInUp .6s var(--ease) both; }

/* Submit button: subtle "sending" press feedback handled by global .btn:active */

/* ============================================================
   MEDICAL MISSION PAGE
   ============================================================ */
.events-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .events-grid { grid-template-columns: 1fr 1fr; } }
.event-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--duration-base), transform var(--duration-base); }
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-date-badge { background: var(--primary); color: #fff; padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; }
.event-date-badge .day { font-size: 1.75rem; font-weight: 700; line-height: 1; font-family: 'Quicksand', sans-serif; }
.event-date-badge .month-year { font-size: .875rem; line-height: 1.4; font-family: 'Quicksand', sans-serif; }
.event-body { padding: 1.5rem; }
.event-body h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem; font-family: 'Quicksand', sans-serif; }
.event-detail { display: flex; align-items: center; gap: .5rem; margin-bottom: .375rem; font-family: 'Quicksand', sans-serif; }
.event-detail span:first-child { flex-shrink: 0; }
.event-detail span:last-child  { font-size: .875rem; color: var(--muted); }

/* ============================================================
   YAKAP PAGE
   ============================================================ */
.yakap-steps { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 1.5rem; }
.yakap-step {
  background: #fff; border-radius: var(--radius); padding: 1.75rem 1.5rem; text-align: center;
  flex: 1 1 220px; max-width: 260px;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  transition: transform .25s, box-shadow .25s;
}
.yakap-step:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(15,23,42,.16); }
.yakap-step:active { transform: translateY(-2px) scale(.99); }
.yakap-step-icon-wrap { position: relative; width: 84px; height: 84px; margin: 0 auto 1.1rem; }
.yakap-step-icon { width: 84px; height: 84px; display: block; }
.yakap-step .step-number {
  position: absolute; top: -6px; right: -6px;
  width: 1.75rem; height: 1.75rem; background: var(--secondary); color: #fff;
  border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; font-family: 'Quicksand', sans-serif; margin: 0;
}
.yakap-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; font-family: 'Quicksand', sans-serif; }
.yakap-step-subtitle { font-size: .8125rem; color: var(--muted); line-height: 1.5; font-family: 'Quicksand', sans-serif; }
.yakap-step-arrow {
  display: none; align-self: center; color: var(--border); flex-shrink: 0;
}
.yakap-step-arrow svg { width: 28px; height: 28px; }
@media (min-width: 1024px) { .yakap-step-arrow { display: flex; } }

.benefits-grid { display: grid; grid-template-columns: 1fr; gap: .875rem; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
.benefits-grid--stacked { grid-template-columns: 1fr; }
.benefit-item { display: flex; gap: .75rem; align-items: flex-start; }
.benefit-check { width: 1.5rem; height: 1.5rem; background: var(--secondary-light); color: var(--secondary-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .8rem; font-weight: 700; font-family: 'Quicksand', sans-serif; }
.benefit-item p { font-size: .9375rem; color: var(--muted); line-height: 1.5; font-family: 'Quicksand', sans-serif; }

/* ============================================================
   ELIGIBILITY / REQUIRED DOCUMENTS — paired side-by-side cards
   ============================================================ */
.eligibility-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .eligibility-grid { grid-template-columns: 1fr 1fr; } }
.eligibility-card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.eligibility-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(15,23,42,.16); }
.eligibility-card:active { transform: translateY(-2px) scale(.99); }
.eligibility-card h2 { margin-bottom: 1.5rem; }

/* ============================================================
   BG HELPERS
   ============================================================ */
.bg-white  { background: #fff; }
.bg-light  { background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%); }
.bg-subtle { background: #f9fafb; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   WORDPRESS EDITOR CONTENT (.wp-content)
   Styles applied to content edited in WP Admin → Pages
   ============================================================ */
.wp-content { color: var(--muted); line-height: 1.8; }
.wp-content p { font-size: 1.0625rem; margin-bottom: 1.25rem; }
.wp-content h1, .wp-content h2, .wp-content h3, .wp-content h4, .wp-content h5 { font-family: 'Quicksand', sans-serif; color: var(--foreground); margin: 2rem 0 .75rem; }
.wp-content h2 { font-size: 1.75rem; }
.wp-content h3 { font-size: 1.375rem; }
.wp-content h4 { font-size: 1.125rem; }
.wp-content ul, .wp-content ol { margin: .75rem 0 1.25rem 1.5rem; }
.wp-content li { font-size: 1.0625rem; margin-bottom: .375rem; line-height: 1.7; }
.wp-content a { color: var(--primary); text-decoration: underline; transition: color .2s; }
.wp-content a:hover { color: var(--primary-dark); }
.wp-content strong, .wp-content b { color: var(--foreground); font-weight: 700; }
.wp-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.5rem 0; display: block; }
.wp-content blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; background: var(--primary-light); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-style: italic; }
.wp-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.wp-content th, .wp-content td { padding: .75rem 1rem; border: 1px solid var(--border); text-align: left; }
.wp-content th { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.wp-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.wp-content figure { margin: 1.5rem 0; }
.wp-content figcaption { font-size: .875rem; color: var(--muted); text-align: center; margin-top: .5rem; }
