/* ================================================
   DR. LUIZ FELIPE CARVALHO - Design System
   Ref: Areto template structure + Dr. Felipe brand
   ================================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors - Dr. Felipe */
  --blue-primary: #1e73be;
  --blue-dark: #185c98;
  --blue-deeper: #0b2641;
  --blue-light: #e8f1fa;
  --navy: #0f1b2d;
  --dark: #15151f;
  --dark-surface: #1a1a2e;
  --gray-900: #1a1a1a;
  --gray-700: #333333;
  --gray-500: #4d4d4d;
  --gray-400: #6b7280;
  --gray-300: #9ca3af;
  --gray-200: #d1d5db;
  --gray-100: #f0f0f0;
  --gray-50: #f5f7fa;
  --white: #ffffff;
  --accent-green: #2ecc71;
  --accent-teal: #3db8a2;
  --lime: #7ec8e3;

  /* Typography */
  --font-heading: 'Inter Tight', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 120px;
  --section-pad-mobile: 60px;
  --container-max: 1240px;
  --container-large: 1400px;
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
  --duration-fast: 0.25s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-500);
}

.text-white { color: var(--white) !important; }
.text-blue { color: var(--blue-primary) !important; }
.text-gray { color: var(--gray-400) !important; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-large {
  width: 100%;
  max-width: var(--container-large);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section-sm {
  padding: 80px 0;
}

/* ---------- Tag / Label ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-primary);
}

.tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blue-primary);
  border-radius: var(--radius-full);
  display: inline-block;
}

.tag--white {
  color: var(--lime);
}

.tag--white::before {
  background: var(--lime);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 115, 190, 0.3);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn .arrow {
  width: 14px;
  height: 11px;
  transition: transform var(--duration-fast) var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--dark);
  position: relative;
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue-primary);
  transition: width var(--duration) var(--ease);
}

.btn-link:hover::after {
  width: 100%;
}

.btn-link:hover {
  color: var(--blue-primary);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(15, 27, 45, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
  background: rgba(15, 27, 45, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-container {
  width: 100%;
  max-width: var(--container-large);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Nav Left (hamburger + logo) --- */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* --- Nav Center (links) --- */
.nav-center {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border: none;
  background: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-fast) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

/* Nav divider between links */
.nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Dropdown icon */
.nav-link .dropdown-icon {
  width: 8px;
  height: 5px;
  opacity: 0.4;
  transition: transform var(--duration-fast) var(--ease);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  color: var(--gray-700);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease);
}

.nav-dropdown-link:hover {
  background: var(--blue-light);
  color: var(--blue-primary);
}

/* --- Mega Menus (Patologias & Mídia) — Dark, Container Width --- */

/* Desktop: break mega menus out of .nav-dropdown */
@media (min-width: 769px) {
  .nav-dropdown:has(.mega-menu) {
    position: static;
  }
  .nav-dropdown:has(.mega-menu) > .nav-dropdown-menu {
    display: none;
  }
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-width: calc(var(--container-large) - 48px);
  margin: 0 auto;
  background: #0f1b2d;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--duration-fast) var(--ease) 0.08s,
              visibility var(--duration-fast) 0.08s,
              transform var(--duration-fast) var(--ease) 0.08s;
  z-index: 100;
  pointer-events: none;
}

/* Invisible hover bridge above panel */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.mega-menu-inner {
  padding: 32px 36px;
}

/* --- Patologias Mega Menu --- */
.mega-menu--patologias .mega-menu-inner {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  align-items: start;
}

.mega-menu-col--info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.mega-menu-col--info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.mega-menu-col--info p {
  font-size: 0.875rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.btn-mega {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--blue-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease);
  width: fit-content;
}

.btn-mega:hover {
  background: var(--blue-dark);
}

.mega-menu-col--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Patologias card — image-based, dark */
.mega-card-pat {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--duration-fast) var(--ease);
}

.mega-card-pat:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.mega-card-pat-img {
  height: 130px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
}

.mega-card-pat-img img,
.mega-card-pat-img > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}

.mega-card-pat:hover .mega-card-pat-img img,
.mega-card-pat:hover .mega-card-pat-img > div {
  transform: scale(1.08);
}

.mega-card-pat-text {
  padding: 14px 16px;
}

.mega-card-pat-text h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  transition: color var(--duration-fast) var(--ease);
}

.mega-card-pat:hover .mega-card-pat-text h4 {
  color: var(--blue-primary);
}

.mega-card-pat-text p {
  font-size: 0.75rem;
  color: var(--gray-300);
  line-height: 1.5;
}

/* --- Mídia Mega Menu --- */
.mega-menu--midia .mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mega-card-midia {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--duration-fast) var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.mega-card-midia:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.mega-card-midia-img {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.mega-card-midia-img img,
.mega-card-midia-img > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}

.mega-card-midia:hover .mega-card-midia-img img,
.mega-card-midia:hover .mega-card-midia-img > div {
  transform: scale(1.05);
}

.mega-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  z-index: 1;
}

.mega-card-tag--blog { background: var(--blue-primary); }
.mega-card-tag--artigos { background: var(--accent-teal); }
.mega-card-tag--livros { background: #8b5cf6; }

.mega-card-midia-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mega-card-midia-body h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

.mega-card-midia-body p {
  font-size: 0.75rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.mega-card-midia-body .mega-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-top: auto;
  transition: gap var(--duration-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mega-card-midia:hover .mega-card-link {
  gap: 8px;
}

/* Mobile: hide mega menus, keep simple dropdown */
@media (max-width: 768px) {
  .mega-menu {
    display: none !important;
  }
}

/* --- Nav Right (CTA) --- */
.nav-right {
  display: flex;
  align-items: center;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--blue-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease);
}

.nav-cta-btn:hover {
  background: var(--blue-dark);
}

.nav-cta-btn svg {
  width: 14px;
  height: 11px;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease);
}

.nav-cta-btn:hover svg {
  transform: translateX(3px);
}

/* --- Mobile Menu --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 2px 0;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu Header & Footer (hidden on desktop) --- */
.mobile-menu-header,
.mobile-menu-footer {
  display: none;
}

/* ---------- HERO SLIDER ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,27,45,0.98) 0%, rgba(15,27,45,0.85) 35%, rgba(15,27,45,0.2) 55%, transparent 70%, transparent 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding-top: 160px;
  padding-bottom: 48px;
}

/* --- Slider --- */
.hero-slider {
  flex: 1;
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slider-mask {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-slide-content {
  display: flex;
  flex-direction: column;
}

.hero-slide-main {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.hero-slide-top {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.hero-heading {
  color: var(--white);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  line-height: 1.1;
  max-width: 700px;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.6s var(--ease-out), opacity 0.5s ease;
}

.hero-slide:not(.active) .hero-heading {
  transform: translateY(40%);
  opacity: 0;
}

.hero-heading span {
  color: var(--blue-primary);
}

.hero-button-wrap {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s var(--ease-out) 0.1s, opacity 0.5s ease 0.1s;
}

.hero-slide:not(.active) .hero-button-wrap {
  transform: translateY(100%);
  opacity: 0;
}

/* Accent Button (yellow/lime style like Areto) */
.btn-accent {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: var(--dark);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color var(--duration-fast) ease;
}

.btn-accent .btn-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.btn-accent .btn-arrow {
  transition: transform var(--duration-fast) var(--ease);
}

.btn-accent:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-accent .btn-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--white);
  z-index: 1;
  transition: width var(--duration) var(--ease);
}

.btn-accent:hover .btn-overlay {
  width: 100%;
}

.hero-slide-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 540px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s var(--ease-out) 0.15s, opacity 0.5s ease 0.15s;
}

.hero-slide:not(.active) .hero-slide-desc {
  transform: translateY(100%);
  opacity: 0;
}

/* --- Slider Arrows --- */
.hero-slider-arrows {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.hero-slider-arrow {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  z-index: 5;
  backdrop-filter: blur(8px);
}

.hero-slider-arrow:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  transform: scale(1.08);
}

/* --- Bottom Card (bottom-right) --- */
.hero-bottom-card {
  flex: 0 0 600px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(5,10,20,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-self: flex-end;
  min-height: 220px;
}

.hero-bottom-images {
  position: relative;
  flex: 0 0 280px;
}

.hero-small-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-small-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-small-img.active {
  opacity: 1;
}

.hero-bottom-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  margin: 0 -22px;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-bottom-texts {
  flex: 1;
  position: relative;
  padding: 24px 28px 24px 32px;
  display: flex;
  align-items: center;
}

.hero-bottom-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px 28px 24px 32px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-bottom-text.active {
  opacity: 1;
}

.hero-bottom-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.05em;
}

.hero-bottom-text-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-bottom-text-inner h5 {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
}

.hero-bottom-text-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.6;
}


/* ---------- ABOUT CARDS SECTION ---------- */
.about-cards {
  background: var(--white);
}

.about-cards-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-xl);
}

.about-cards-heading {
  max-width: 700px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--gray-700);
  font-weight: 500;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 12px 40px rgba(30,115,190,0.1);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-primary);
}

.card h4 {
  font-size: 1.25rem;
}

.card p {
  font-size: 0.9375rem;
}

.card-arrow {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  transition: all var(--duration-fast) var(--ease);
}

.card:hover .card-arrow {
  background: var(--blue-primary);
}

.card:hover .card-arrow svg {
  color: var(--white);
}

.card-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--blue-primary);
  transition: color var(--duration-fast) var(--ease);
}

/* -- Contact channel cards -- */
.contact-channels {
  grid-template-columns: repeat(3, 1fr);
}

.contact-channel {
  text-align: center;
  align-items: center;
}

.contact-channel .card-icon {
  margin: 0 auto;
}

/* -- Card with image top -- */
.card-img-top {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}

.card-img-top--contain img {
  object-fit: contain;
  max-height: 240px;
}

.card:hover .card-img-top img {
  transform: scale(1.05);
}

/* -- Card with video background -- */
.card--video {
  border-color: transparent;
  background: var(--navy);
}

.card-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.card-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 50, 0.6);
  z-index: 1;
}

.card--video .card-icon,
.card--video h4,
.card--video p,
.card--video .card-arrow {
  position: relative;
  z-index: 2;
}

.card--video h4,
.card--video p {
  color: var(--white);
}

.card--video .card-icon {
  background: rgba(255, 255, 255, 0.15);
}

.card--video .card-icon svg {
  color: var(--white);
}

.card--video .card-arrow {
  background: rgba(255, 255, 255, 0.15);
}

.card--video .card-arrow svg {
  color: var(--white);
}

.card--video:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(10, 25, 50, 0.3);
}

.card--video:hover .card-arrow {
  background: var(--white);
}

.card--video:hover .card-arrow svg {
  color: var(--navy);
}

/* ---------- DOCTOR BIO SECTION ---------- */
.doctor-section {
  background: var(--gray-50);
}

.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.doctor-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.doctor-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
}

.doctor-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.doctor-image-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doctor-image-badge .badge-icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.doctor-image-badge span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.doctor-text .tag {
  margin-bottom: var(--gap-md);
}

.doctor-text h2 {
  margin-bottom: var(--gap-md);
}

.doctor-text > p {
  margin-bottom: var(--gap-md);
}

.doctor-credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--gap-lg);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.credential-item .check {
  width: 22px;
  height: 22px;
  background: var(--blue-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credential-item .check svg {
  width: 12px;
  height: 12px;
  color: var(--blue-primary);
}

/* ---------- PATHOLOGIES LIST SECTION ---------- */
.pathologies-section {
  background: var(--white);
}

.pathologies-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--gap-xl);
}

.pathologies-big-text {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--gray-100);
  line-height: 0.9;
}

.pathology-list {
  display: flex;
  flex-direction: column;
}

.pathology-item {
  display: flex;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  position: relative;
}

.pathology-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.pathology-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: width var(--duration) var(--ease);
}

.pathology-item:hover::after {
  width: 100%;
}

.pathology-item:hover {
  padding-left: 16px;
}

.pathology-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 40px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pathology-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  flex: 1;
}

.pathology-type {
  font-size: 0.875rem;
  color: var(--gray-400);
  min-width: 180px;
  text-align: right;
}

.pathology-item:hover .pathology-name {
  color: var(--blue-primary);
}

/* ---------- TREATMENTS SECTION ---------- */
.treatments-section {
  background: var(--gray-50);
}

.treatments-title {
  max-width: 700px;
  margin-bottom: var(--gap-xl);
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.treatment-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  cursor: pointer;
}

.treatment-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.treatment-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.treatment-card:hover .treatment-card-bg img {
  transform: scale(1.05);
}

.treatment-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,27,45,0.9) 100%);
  z-index: 1;
}

.treatment-card-content {
  position: relative;
  z-index: 2;
}

.treatment-card-content h4 {
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.treatment-card-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.treatments-bottom {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
}

.treatments-bottom .tag {
  flex-shrink: 0;
}

/* ---------- ABOUT / BIO FULL SECTION ---------- */
.bio-section {
  background: var(--blue-deeper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.bio-top {
  display: flex;
  gap: var(--gap-xl);
  align-items: flex-start;
  margin-bottom: var(--gap-xl);
}

.bio-left {
  flex: 1;
}

.bio-left .tag--white {
  margin-bottom: var(--gap-md);
}

.bio-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 560px;
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-right {
  flex: 1;
}

.bio-right h2 {
  color: var(--white);
  margin-bottom: var(--gap-md);
}

.bio-right p {
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--gap-lg);
}

.bio-bottom {
  display: flex;
  gap: var(--gap-lg);
  align-items: stretch;
}

.bio-links {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bio-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all var(--duration-fast) var(--ease);
}

.bio-link-item:hover {
  padding-left: 12px;
}

.bio-link-item h5 {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
}

.bio-link-item .link-arrow {
  width: 14px;
  height: 14px;
  color: var(--blue-primary);
}

.bio-bottom-image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.bio-bottom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- ESPECIALIDADES GRID ---------- */
.esp-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--gap-xl);
}

.esp-header h2 {
  color: var(--white);
  margin: var(--gap-sm) 0 var(--gap-md);
}

.esp-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.esp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

.esp-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.esp-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.esp-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.esp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}

.esp-card:hover .esp-card-img img {
  transform: scale(1.05);
}

.esp-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.esp-card-body h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.esp-card-body p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.esp-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lime);
  margin-bottom: 8px;
}

.esp-card-link {
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration-fast) var(--ease);
}

.esp-card-link svg {
  color: var(--lime);
}

.esp-card:hover .esp-card-link {
  gap: 10px;
}

.esp-cta {
  text-align: center;
}

@media (max-width: 1024px) {
  .esp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .esp-grid {
    grid-template-columns: 1fr;
  }
}

/* -- Divider inside bio-section -- */
.esp-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: var(--gap-xl) 0;
}

/* -- Papers / Artigos Científicos -- */
.papers-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--gap-xl);
}

.paper-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--duration-fast) var(--ease);
  border-radius: var(--radius-sm);
}

.paper-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.paper-item:hover {
  background: rgba(255,255,255,0.05);
  padding-left: 24px;
}

.paper-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper-icon svg {
  color: var(--lime);
}

.paper-body {
  flex: 1;
  min-width: 0;
}

.paper-journal {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lime);
  margin-bottom: 4px;
  display: block;
}

.paper-body h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 4px;
}

.paper-body p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin: 0;
}

.paper-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease);
}

.paper-arrow svg {
  color: var(--lime);
}

.paper-item:hover .paper-arrow {
  opacity: 1;
}

/* Papers light variant */
.papers-list--light .paper-item {
  border-bottom-color: var(--gray-200);
}

.papers-list--light .paper-item:first-child {
  border-top-color: var(--gray-200);
}

.papers-list--light .paper-item:hover {
  background: var(--gray-50);
}

.papers-list--light .paper-icon {
  background: var(--blue-light);
}

.papers-list--light .paper-icon svg {
  color: var(--blue-primary);
}

.papers-list--light .paper-journal {
  color: var(--blue-primary);
}

.papers-list--light .paper-body h5 {
  color: var(--navy);
}

.papers-list--light .paper-body p {
  color: var(--gray-400);
}

.papers-list--light .paper-arrow svg {
  color: var(--blue-primary);
}

@media (max-width: 768px) {
  .paper-item {
    flex-wrap: wrap;
  }

  .paper-arrow {
    display: none;
  }
}

/* ---------- COUNTERS SECTION ---------- */
.counters-section {
  background: var(--blue-deeper);
  padding-bottom: 0;
}

.counters-top {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}

.counters-top-left {
  flex: 1;
}

.counters-top-left h2 {
  color: var(--white);
}

.counters-top-right {
  flex: 1;
}

.counters-top-right p {
  color: rgba(255,255,255,0.65);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.counter-card {
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.counter-card h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
}

.counter-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,115,190,0.9) 0%, rgba(11,38,65,0.9) 100%);
  z-index: 1;
}

.cta-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}

.cta-fade--top {
  top: 0;
  background: linear-gradient(to bottom, #0b2641 0%, transparent 100%);
}

.cta-fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--navy) 0%, transparent 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: var(--gap-md);
}

.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  margin-bottom: var(--gap-lg);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  padding-top: 80px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--gap-xl);
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.footer-social-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease);
}

.social-icon:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.footer-middle {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--gap-lg);
  padding-bottom: var(--gap-xl);
}

.footer-newsletter h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--gap-md);
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color var(--duration-fast) var(--ease);
  outline: none;
  width: 100%;
}

.footer-input::placeholder {
  color: var(--gray-400);
}

.footer-input:focus {
  border-color: var(--blue-primary);
}

.footer-col h6 {
  color: var(--white);
  margin-bottom: var(--gap-md);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: color var(--duration-fast) var(--ease);
}

.footer-link:hover {
  color: var(--white);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.footer-contact-block h6 {
  margin-bottom: 8px;
}

.footer-contact-block p,
.footer-contact-block a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-contact-block a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.footer-disclaimer {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-disclaimer p {
  color: var(--gray-400);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.6;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  transition: all var(--duration-fast) var(--ease);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
}

.whatsapp-float.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

/* ============ GLOBES - INTERNATIONAL SECTION ============ */

.globes-section {
  background: var(--navy);
  position: relative;
}

.globes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(30,115,190,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.globes-header {
  text-align: center;
  margin-bottom: var(--gap-xl);
  position: relative;
  z-index: 1;
}

.globes-header .tag {
  margin-bottom: var(--gap-sm);
}

.globes-header h2 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--gap-xs);
}

.globes-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto;
}

.globe-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: var(--gap-xl);
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
}

.globe-card + .globe-card {
  margin-top: var(--gap-xl);
}

.globe-card--reverse {
  direction: rtl;
}

.globe-card--reverse > * {
  direction: ltr;
}

.globe-card-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  justify-content: center;
}

.globe-card-icon {
  width: 44px;
  height: 44px;
  color: var(--blue-primary);
}

.globe-card-icon svg {
  width: 100%;
  height: 100%;
}

.globe-card-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.globe-card-text .globe-card-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.globe-card-text .globe-card-sub strong {
  color: var(--white);
  font-weight: 600;
}

.globe-canvas-wrap {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.globe-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.globe-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.globe-pills-counter {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  background: rgba(30,115,190,0.1);
  border: 1px solid rgba(30,115,190,0.2);
  border-radius: var(--radius-sm);
}

.globe-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  cursor: default;
  transition: all 0.2s ease;
  animation: pillFadeIn 0.4s ease both;
}

@keyframes pillFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.globe-pill:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

.globe-pill--active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30,115,190,0.3);
}

.globe-pill--active .globe-pill-dot {
  background: var(--white);
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

.globe-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slider {
    align-self: flex-start;
    text-align: left;
  }

  .hero-slide-desc {
    margin: 0;
  }

  .hero-slider-arrows {
    justify-content: flex-start;
  }

  .hero-bottom-card {
    flex: none;
    width: 100%;
    max-width: 440px;
    align-self: center;
  }

  .hero-slider-arrow {
    width: 44px;
    height: 44px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .treatments-grid {
    grid-template-columns: 1fr;
  }

  .treatment-card {
    min-height: 360px;
  }

  .bio-top {
    flex-direction: column;
  }

  .bio-bottom {
    flex-direction: column;
  }

  .counters-top {
    flex-direction: column;
  }

  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-middle {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
  }

  .about-cards-top {
    flex-direction: column;
  }

  .globe-card {
    gap: var(--gap-lg);
  }

  .globe-canvas-wrap {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .nav-center {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    z-index: 998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-center.open {
    display: flex;
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.06);
  }

  .nav-link {
    font-size: 1.125rem;
    padding: 14px 0;
    width: 100%;
    color: rgba(255,255,255,0.6);
  }

  .nav-link::after {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown .nav-link {
    justify-content: space-between;
  }

  .nav-dropdown .dropdown-icon {
    transition: transform var(--duration-fast) var(--ease);
  }

  .nav-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    padding: 4px 0;
    display: none;
    min-width: auto;
    width: 100%;
    margin-bottom: 4px;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    transform: none;
  }

  .nav-dropdown-link {
    color: rgba(255,255,255,0.45);
    padding: 10px 12px;
    font-size: 0.9375rem;
    border-radius: var(--radius-xs);
    transition: color var(--duration-fast) var(--ease);
  }

  .nav-dropdown-link:hover {
    background: none;
    color: var(--white);
  }

  .nav-right {
    display: none;
  }

  /* --- Mobile Menu Header --- */
  .mobile-menu-header {
    display: block;
    width: 100%;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-menu-header img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
  }

  /* --- Mobile Menu Footer --- */
  .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--blue-primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-align: center;
  }

  .mobile-menu-contact {
    display: flex;
    gap: 24px;
  }

  .mobile-menu-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .mobile-menu-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--blue-primary);
  }

  .mobile-menu-contact-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-menu-contact-item span {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
  }

  .mobile-menu-contact-item a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
  }

  .mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .mobile-menu-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    transition: all var(--duration-fast) var(--ease);
  }

  .mobile-menu-social a:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: var(--white);
  }

  .mobile-menu-social a svg {
    width: 15px;
    height: 15px;
  }

  .nav-left {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    z-index: 999;
    order: 2;
    margin-left: auto;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-bg img {
    object-position: 70% center;
  }

  .hero-overlay {
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(15,27,45,0.7) 60%, rgba(15,27,45,0.97) 75%, rgba(15,27,45,0.99) 100%);
  }

  .hero-container {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 40px;
    gap: var(--gap-lg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .hero-bottom-card {
    display: none;
  }

  .hero-slider {
    text-align: left;
    width: 100%;
    flex: none;
    position: static;
  }

  .hero-slider-mask {
    padding-top: 0;
  }

  .hero-slide-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .hero-slider-arrows {
    position: absolute;
    bottom: 40px;
    right: 24px;
    margin-top: 0;
    z-index: 3;
    gap: 8px;
  }

  .hero-slider-arrow {
    width: 36px;
    height: 36px;
  }

  .hero-slider-arrow svg {
    width: 16px;
    height: 16px;
  }

  .hero-slide-top {
    gap: 16px;
  }

  .hero-slide-main {
    gap: 12px;
  }

  .pathology-type {
    display: none;
  }

  .globe-card {
    grid-template-columns: 1fr;
    padding: var(--gap-md);
    gap: var(--gap-md);
  }

  .globe-card--reverse {
    direction: ltr;
  }

  .globe-card-text {
    padding: var(--gap-md);
    order: 2;
  }

  .globe-canvas-wrap {
    order: 1;
  }

  .globe-canvas-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  .globe-card + .globe-card {
    margin-top: var(--gap-lg);
  }

  .globes-header h2 {
    font-size: 2rem;
  }

  .globe-card-title {
    font-size: 1.25rem;
  }

  .globe-card-subtitle {
    font-size: 0.8125rem;
  }

  .counters-grid {
    grid-template-columns: 1fr;
  }

  .counter-card {
    padding: 28px 24px;
  }

  .footer-middle {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .pathologies-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-md);
  }

  .cta-section {
    padding: 100px 0;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 60px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.875rem;
  }

  .hero-heading {
    font-size: 2.25rem;
  }

  .pathologies-big-text {
    font-size: 3rem;
  }

  .globes-header h2 {
    font-size: 1.75rem;
  }

  .globe-card {
    padding: var(--gap-sm);
    gap: var(--gap-sm);
  }

  .globe-card-text {
    padding: var(--gap-sm);
    gap: 8px;
  }

  .globe-canvas-wrap {
    max-width: 260px;
  }

  .globe-card-icon {
    width: 32px;
    height: 32px;
  }

  .globe-card-title {
    font-size: 1.0625rem;
  }

  .globe-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .globe-pills-counter {
    font-size: 0.6875rem;
    padding: 4px 10px;
  }

  .globe-pills {
    margin-top: 10px;
    padding-top: 10px;
  }
}

/* ================================================
   INNER PAGES - Shared Styles
   ================================================ */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--navy);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--navy), transparent);
  pointer-events: none;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: radial-gradient(circle at 70% 30%, var(--blue-primary), transparent 60%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--gap-md);
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast) var(--ease);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .sep {
  opacity: 0.3;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 700px;
  margin-bottom: var(--gap-sm);
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.125rem;
  max-width: 600px;
}

/* ---------- Content Sections ---------- */
.content-section {
  padding: 80px 0;
}

.content-section:nth-child(even) {
  background: var(--gray-50);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.content-image .img-placeholder {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.content-text h2 {
  margin-bottom: var(--gap-md);
}

.content-text h3 {
  margin-bottom: var(--gap-sm);
}

.content-text p {
  margin-bottom: var(--gap-sm);
}

.content-text p:last-child {
  margin-bottom: 0;
}

/* ---------- Feature List ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: var(--gap-md) 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.feature-item .icon-circle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--blue-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-item .icon-circle svg {
  width: 12px;
  height: 12px;
  color: var(--blue-primary);
}

/* ---------- Accordion ---------- */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease);
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
}

.accordion-header:hover {
  color: var(--blue-primary);
}

.accordion-header .acc-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 36px;
  letter-spacing: 0.05em;
}

.accordion-header .acc-title {
  flex: 1;
}

.accordion-header .acc-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease);
  flex-shrink: 0;
}

.accordion-item.active .accordion-header .acc-icon {
  background: var(--blue-primary);
  transform: rotate(45deg);
}

.accordion-header .acc-icon svg {
  width: 14px;
  height: 14px;
  color: var(--gray-500);
  transition: color var(--duration-fast) var(--ease);
}

.accordion-item.active .accordion-header .acc-icon svg {
  color: var(--white);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.accordion-body-inner {
  padding: 0 0 28px 36px;
}

.accordion-body-inner p {
  margin-bottom: 12px;
}

.accordion-body-inner h4 {
  font-size: 1rem;
  margin: var(--gap-sm) 0 8px;
  color: var(--blue-primary);
}

.accordion-body-inner ul {
  margin: 8px 0 16px;
  padding-left: 0;
}

.accordion-body-inner ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.accordion-body-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--blue-primary);
  border-radius: var(--radius-full);
}

/* ---------- Info Cards Grid ---------- */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-md);
}

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all var(--duration) var(--ease);
}

.info-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 8px 30px rgba(30,115,190,0.08);
  transform: translateY(-3px);
}

.info-card .info-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-sm);
}

.info-card .info-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue-primary);
}

.info-card h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.875rem;
}

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--gap-md);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.blog-card-image {
  height: 220px;
  overflow: hidden;
}

.blog-card-image img,
.blog-card-image .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.blog-card:hover .blog-card-image img,
.blog-card:hover .blog-card-image .img-placeholder {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card-body p {
  font-size: 0.875rem;
  flex: 1;
  margin-bottom: var(--gap-sm);
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* ---------- Article Cards ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-md);
}

.article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 8px 30px rgba(30,115,190,0.1);
  transform: translateY(-3px);
}

.article-card-image {
  height: 180px;
  overflow: hidden;
  background: var(--blue-light);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
}

/* ---------- Book Section ---------- */
.book-showcase {
  display: flex;
  gap: var(--gap-xl);
  align-items: center;
}

.book-cover {
  flex: 0 0 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.book-cover img,
.book-cover .img-placeholder {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.book-info {
  flex: 1;
}

.book-info h2 {
  margin-bottom: var(--gap-md);
}

.book-info p {
  margin-bottom: var(--gap-sm);
}

/* ---------- Contact Page ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--duration) var(--ease);
}

.contact-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 8px 30px rgba(30,115,190,0.08);
}

.contact-card h4 {
  margin-bottom: var(--gap-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card h4 svg {
  width: 20px;
  height: 20px;
  color: var(--blue-primary);
}

.contact-card p {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--blue-primary);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--blue-dark);
}

.contact-form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-input,
.form-textarea {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(30,115,190,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-300);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* ---------- Hospitals Grid ---------- */
.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap-sm);
}

.hospital-tag {
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue-deeper);
  text-align: center;
  transition: all var(--duration-fast) var(--ease);
}

.hospital-tag:hover {
  background: var(--blue-primary);
  color: var(--white);
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  position: relative;
  padding-top: 32px;
  margin-top: var(--gap-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  text-align: center;
  padding-top: 8px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--blue-primary);
  border-radius: var(--radius-full);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-primary);
}

.timeline-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.timeline-item .timeline-place {
  font-size: 0.8125rem;
  color: var(--blue-primary);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.8125rem;
}

/* ---------- Inner Page Responsive ---------- */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.reverse {
    direction: ltr;
  }

  .book-showcase {
    flex-direction: column;
    text-align: center;
  }

  .book-cover {
    flex: auto;
    max-width: 260px;
  }

  .contact-form-section {
    grid-template-columns: 1fr;
  }

  /* Tablet: 2 columns for grids with 3+ cols */
  .cards-grid[style*="repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .esp-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
    padding-left: 40px;
    padding-top: 0;
    gap: 0;
  }

  .timeline::before {
    left: 12px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .timeline-item {
    text-align: left;
    margin-bottom: var(--gap-md);
    padding-bottom: var(--gap-md);
    padding-top: 0;
  }

  .timeline-item::before {
    left: -34px;
    top: 6px;
    transform: none;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .hospitals-grid {
    grid-template-columns: 1fr 1fr;
  }

  .accordion-body-inner {
    padding-left: 0;
  }

  /* Force single column on mobile for inline-styled grids */
  .cards-grid {
    grid-template-columns: 1fr !important;
  }

  .esp-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact channel cards on mobile: stack vertically, compact */
  .contact-channel {
    text-align: center !important;
    align-items: center !important;
    padding: 24px 20px !important;
    gap: 10px !important;
  }

  .contact-channel .card-icon {
    margin: 0 auto !important;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
  }

  .contact-channel h4 {
    font-size: 1.05rem;
  }

  .contact-channel p {
    font-size: 0.875rem;
    margin: 0;
  }

  .contact-channel .card-arrow {
    display: none;
  }

  .contact-channels {
    grid-template-columns: 1fr !important;
    gap: var(--gap-sm) !important;
  }

  /* Contact form + map stack */
  .contact-form-section {
    grid-template-columns: 1fr !important;
  }

  .contact-map {
    min-height: 300px;
  }

  /* Location cards compact */
  .card[style*="gap:var(--gap-sm)"] {
    padding: 24px 20px;
  }

  .card[style*="gap:var(--gap-sm)"] .card-icon {
    width: 44px;
    height: 44px;
  }

  /* Blog card images */
  .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Papers list on mobile */
  .paper-item {
    padding: 16px 8px;
  }

  .paper-icon {
    display: none;
  }

  /* Content grid on mobile */
  .content-grid {
    grid-template-columns: 1fr !important;
  }

  /* Smaller headings */
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  /* CTA section padding */
  .cta-section {
    padding: 80px 0;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  /* Esp header */
  .esp-header {
    padding: 0 var(--gap-sm);
  }
}
