/* ==========================================================================
   Doç. Dr. Burak ÜLKÜMEN — KBB ve Baş Boyun Cerrahisi Uzmanı
   Modern Medical & Academic Web Design System
   ========================================================================== */

:root {
  /* Color Palette - Authoritative Medical Navy, Cerulean Teal & Warm Academic Gold */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent-soft: #eff6ff;
  --bg-teal-soft: #f0fdfa;
  --bg-dark: #0a192f;
  --bg-dark-elevated: #112240;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;

  --brand-navy: #0b2545;
  --brand-primary: #0284c7;
  --brand-primary-dark: #0369a1;
  --brand-primary-light: #38bdf8;
  --brand-teal: #0d9488;
  --brand-gold: #d97706;
  --brand-gold-soft: #fef3c7;
  --brand-whatsapp: #16a34a;
  --brand-whatsapp-hover: #15803d;

  --border-light: #e2e8f0;
  --border-focus: #0284c7;
  --error-color: #d93025;
  --error-bg: #fce8e6;
  --success-color: #188038;
  --success-bg: #e6f4ea;

  /* Shadows & Radius */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 48px -8px rgba(11, 37, 69, 0.14), 0 8px 20px -4px rgba(11, 37, 69, 0.06);
  --shadow-glow: 0 10px 30px -5px rgba(2, 132, 199, 0.32);

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Header Sizing (for shrinking-header-on-scroll) */
  --header-initial-height: 116px;
  --header-final-height: 72px;
  --container-max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

body {
  padding-top: var(--header-initial-height);
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--brand-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* ==========================================================================
   Responsive Typography with clamp() (modern-web-guidance: responsive-design)
   ========================================================================== */
.display-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 1.05rem + 2.1vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-navy);
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 68ch;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary-dark);
  background: var(--bg-accent-soft);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Fixed Shrinking Header on Scroll (modern-web-guidance: shrinking-header-on-scroll)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-initial-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

@keyframes shrink-header {
  to {
    height: var(--header-final-height);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
  }
}

@keyframes hide-topbar {
  to {
    opacity: 0;
    max-height: 0;
    padding-block: 0;
    border-bottom-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .site-header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 44px;
    }

    .header-topbar {
      animation: hide-topbar auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 44px;
    }
  }
}

.header-topbar {
  background: var(--brand-navy);
  color: var(--text-on-dark);
  font-size: 0.8125rem;
  max-height: 40px;
  padding-block: 0.45rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.topbar-item:hover {
  color: #fff;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar-socials a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.topbar-socials a:hover {
  color: #fff;
  background: var(--brand-primary);
  transform: translateY(-1px);
}

.header-main {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-logo img {
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  color: var(--brand-navy);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-secondary);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary-dark);
  background: var(--bg-accent-soft);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle,
.nav-dropdown:focus-within .dropdown-toggle,
.nav-dropdown.open .dropdown-toggle {
  color: var(--brand-primary-dark);
  background: var(--bg-accent-soft);
}

.nav-dropdown:hover .dropdown-toggle svg,
.nav-dropdown:focus-within .dropdown-toggle svg,
.nav-dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 185px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1050;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--bg-accent-soft);
  color: var(--brand-primary-dark);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.925rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(2, 132, 199, 0.45);
}

.btn-whatsapp {
  background: var(--brand-whatsapp);
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(22, 163, 74, 0.35);
}

.btn-whatsapp:hover {
  background: var(--brand-whatsapp-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--brand-navy);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary-dark);
  background: var(--bg-accent-soft);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
}

/* ==========================================================================
   Hero Section — Dynamic Viewport Units (dvh) & Medical Editorial Layout
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(92dvh - var(--header-initial-height));
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--brand-navy);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.badge-pill.gold {
  background: var(--brand-gold-soft);
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.3);
}

.hero-quote {
  display: inline-block;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  color: var(--brand-primary-dark);
  border-left: 3px solid var(--brand-primary);
  padding-left: 0.9rem;
}

.hero-description {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero-quick-symptoms {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.quick-symptoms-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.symptom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.symptom-chip {
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.symptom-chip:hover {
  background: var(--bg-accent-soft);
  color: var(--brand-primary-dark);
  border-color: rgba(2, 132, 199, 0.3);
  transform: translateY(-1px);
}

/* Hero Visual Column */
.hero-visual {
  position: relative;
}

.portrait-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(145deg, var(--brand-navy), #1e3a8a);
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  aspect-ratio: 4 / 4.6;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.6) 65%, transparent 100%);
  color: #fff;
}

.portrait-overlay h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  white-space: nowrap;
  margin-bottom: 0.2rem;
}

.portrait-overlay p {
  font-size: 0.875rem;
  color: #bae6fd;
  font-weight: 500;
}

.floating-credential {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.8rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  z-index: 2;
}

.floating-credential.top-left {
  top: 1.25rem;
  left: -1.5rem;
}

.floating-credential.bottom-right {
  bottom: 6.75rem;
  right: -1.25rem;
}

.cred-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  background: var(--bg-accent-soft);
  color: var(--brand-primary-dark);
}

.cred-icon svg {
  width: 20px;
  height: 20px;
}

.cred-icon.gold {
  background: var(--brand-gold-soft);
  color: var(--brand-gold);
}

.cred-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cred-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.25;
  white-space: nowrap;
}

.cred-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
  background: var(--brand-navy);
  color: #fff;
  padding-block: 2.25rem;
  position: relative;
  z-index: 2;
}

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 700;
  color: var(--brand-primary-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.stat-label strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

/* ==========================================================================
   Section Layout & Scroll-Driven Reveal (modern-web-guidance: scroll-entry-exit-effects)
   ========================================================================== */
.section {
  padding-block: clamp(4rem, 7vw, 6.25rem);
}

.section-alt {
  background-color: var(--bg-surface);
  border-block: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-subtitle {
  color: var(--text-on-dark-muted);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.section-header .section-subtitle {
  margin-inline: auto;
  margin-top: 0.85rem;
}

/* Scroll Entry Animation with View Timeline */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .reveal-on-scroll {
      animation: reveal-up 1s linear backwards;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}

/* ==========================================================================
   Interactive Symptom Navigator (Şikâyet & Belirti Rehberi)
   ========================================================================== */
.symptom-navigator {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.symptom-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.symptom-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.symptom-tab-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-navy);
}

.symptom-tab-btn[aria-selected="true"] {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-sm);
}

.symptom-tab-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.12);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.symptom-tab-btn[aria-selected="true"] .symptom-tab-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--brand-primary-light);
}

.symptom-panel {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.symptom-panel-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.symptom-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.symptom-detail-card {
  background: var(--bg-surface);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.symptom-detail-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary-dark);
  margin-bottom: 0.6rem;
}

.symptom-detail-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.symptom-detail-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.symptom-detail-card li::before {
  content: "•";
  color: var(--brand-primary);
  font-weight: 700;
}

/* ==========================================================================
   Container Queries for Specialty Cards (modern-web-guidance: responsive-design)
   ========================================================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.specialty-card-wrapper {
  container-type: inline-size;
}

.specialty-card {
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.35);
}

@container (min-width: 380px) {
  .specialty-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.specialty-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-accent-soft), #e0f2fe);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

@container (min-width: 380px) {
  .specialty-icon {
    margin-bottom: 0;
  }
}

.specialty-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

.specialty-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.condition-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-block: 0.5rem;
}

.condition-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.condition-tag:hover {
  background: var(--bg-accent-soft);
  color: var(--brand-primary-dark);
  border-color: rgba(2, 132, 199, 0.25);
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-top: auto;
}

.card-link-btn:hover {
  gap: 0.65rem;
}

/* ==========================================================================
   About & Career Timeline Section
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.about-media-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--brand-navy);
}

.about-photo-card.featured {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.about-photo-card:not(.featured) {
  aspect-ratio: 4 / 3.5;
}

.about-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-photo-card:hover img {
  transform: scale(1.04);
}

.about-photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.92), transparent);
  color: #fff;
  font-size: 0.825rem;
  font-weight: 600;
}

.thesis-box {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1e3a8a 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.thesis-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary-light);
  margin-bottom: 0.4rem;
}

.thesis-box p {
  font-size: 0.95rem;
  font-style: italic;
  color: #f1f5f9;
}

.bio-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-block: 1.5rem;
}

.bio-meta-item {
  background: var(--bg-primary);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.bio-meta-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bio-meta-item strong {
  font-size: 0.925rem;
  color: var(--brand-navy);
}

.timeline-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.timeline-group h3 {
  font-size: 1.05rem;
  color: var(--brand-navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-list {
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(2, 132, 199, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--bg-accent-soft);
}

.timeline-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  background: var(--bg-accent-soft);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--brand-navy);
}

.timeline-place {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Clinical & Congress Photo Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: var(--brand-navy);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-sm);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Specific focus positions for gallery images so faces are clearly visible */
.gallery-card img.pos-workshop {
  object-position: center 38%;
}

.gallery-card img.pos-article-cochrane {
  object-position: center 48%;
}

.gallery-card img.pos-ege-presentation {
  object-position: 85% 62%;
}

.gallery-card img.pos-national-congress {
  object-position: 25% 55%;
}

.gallery-card img.pos-academic-delegation {
  object-position: center 35%;
}

.gallery-card img.pos-surgery-loupe {
  object-position: center 30%;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(7, 19, 36, 0.95) 0%, rgba(7, 19, 36, 0.6) 40%, rgba(7, 19, 36, 0.1) 75%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem 1.15rem;
  color: #fff;
  pointer-events: none;
}

.gallery-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.gallery-card-overlay h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.gallery-card-overlay p {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Publications & Academic Library (Searchable & Filterable)
   ========================================================================== */
.publications-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  background: var(--bg-surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.pub-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  transition: all 0.2s ease;
}

.pub-tab-btn.active,
.pub-tab-btn:hover {
  background: var(--brand-navy);
  color: #fff;
}

.pub-search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
}

.pub-search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  font-size: 0.875rem;
}

.pub-search-box input:focus {
  outline: 2px solid var(--brand-primary);
  border-color: transparent;
}

.pub-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.publications-list {
  display: grid;
  gap: 0.85rem;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.pub-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pub-item:hover {
  box-shadow: var(--shadow-sm);
}

.pub-item[data-category="ulusal-makale"] {
  border-left-color: var(--brand-teal);
}

.pub-item[data-category="bildiri"] {
  border-left-color: var(--brand-gold);
}

.pub-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-accent-soft);
  color: var(--brand-primary-dark);
  margin-bottom: 0.35rem;
}

.pub-citation {
  font-size: 0.925rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.pub-doi-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  background: var(--bg-accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.pub-doi-link:hover {
  background: var(--brand-primary);
  color: #fff;
}

/* Academic Student Lecture Notes */
.student-docs-box {
  margin-top: 3rem;
  background: linear-gradient(135deg, #0b2545 0%, #112240 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}

.student-docs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.student-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
}

.student-doc-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.2s ease;
}

.student-doc-card:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--brand-primary-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   Patient Guide / Blog Articles & FAQ Accordion
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-subtle);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.05);
}

.article-category-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(11, 37, 69, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.article-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brand-navy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.article-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Native <details> FAQ Accordion */
.faq-container {
  max-width: 860px;
  margin-inline: auto;
  margin-top: 3.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--brand-primary);
  font-weight: 600;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid var(--bg-subtle);
  padding-top: 0.9rem;
}

/* ==========================================================================
   Contact Section & Form Validation (:user-invalid / :user-valid)
   (modern-web-guidance: validate-input-after-interaction)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-info-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-accent-soft);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 0.95rem;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.contact-card a:hover {
  color: var(--brand-primary-dark);
  text-decoration: underline;
}

.map-frame-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
}

.map-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field.full-width {
  grid-column: span 2;
}

.field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}

/* Format hints placed ABOVE the input so autocomplete popovers don't cover them */
.hint {
  display: block;
  color: #5f6368;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.error-msg {
  display: none;
  color: var(--error-color);
  font-size: 0.825rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

/* Deferred Validation after interaction (:user-invalid & fallback) */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid,
.field input.user-invalid-fallback,
.field select.user-invalid-fallback,
.field textarea.user-invalid-fallback {
  border-color: var(--error-color);
  background-color: var(--error-bg);
}

.field input:user-invalid + .error-msg,
.field select:user-invalid + .error-msg,
.field textarea:user-invalid + .error-msg,
.field input.user-invalid-fallback + .error-msg,
.field select.user-invalid-fallback + .error-msg,
.field textarea.user-invalid-fallback + .error-msg {
  display: block;
}

.field input:user-valid,
.field select:user-valid,
.field textarea:user-valid,
.field input.user-valid-fallback,
.field select.user-valid-fallback,
.field textarea.user-valid-fallback {
  border-color: var(--success-color);
}

/* ==========================================================================
   Modal Dialog with Light-Dismiss (modern-web-guidance: light-dismiss-a-dialog)
   ========================================================================== */
dialog.info-modal {
  margin: auto;
  width: min(92vw, 720px);
  max-height: 86dvh;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

dialog.info-modal::backdrop {
  background-color: rgba(10, 25, 47, 0.65);
  backdrop-filter: blur(4px);
}

.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 86dvh;
}

.modal-header {
  padding: 1.35rem 1.75rem;
  background: var(--brand-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-content {
  padding: 1.75rem;
  overflow-y: auto;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-content h3 {
  color: var(--brand-navy);
  margin-top: 1.15rem;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.modal-content ul {
  padding-left: 1.25rem;
  margin-block: 0.65rem;
}

.modal-footer {
  padding: 1rem 1.75rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer & Floating WhatsApp Action
   ========================================================================== */
.site-footer {
  background: #071324;
  color: #cbd5e1;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-primary-light);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.825rem;
  color: #94a3b8;
}

.medical-disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand-whatsapp);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4);
}

.floating-whatsapp:hover {
  background: var(--brand-whatsapp-hover);
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .symptom-navigator {
    grid-template-columns: 1fr;
  }

  .symptom-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .symptom-tab-btn {
    min-width: 210px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-credential.top-left {
    left: 0.75rem;
  }

  .floating-credential.bottom-right {
    right: 0.75rem;
    bottom: 6.5rem;
  }
}

.nav-backdrop {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --header-initial-height: 76px;
    --header-final-height: 68px;
  }

  .header-topbar {
    display: none;
  }

  .header-actions {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-initial-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 1001;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0.85rem;
    height: 42px;
  }

  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    height: 42px;
    padding: 0 0.85rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(2, 132, 199, 0.3);
    border-radius: 0;
    margin-left: 0.85rem;
    padding: 0.25rem 0 0.4rem 0.65rem;
    pointer-events: auto;
    display: none;
    background: transparent;
  }

  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }

  .timeline-columns,
  .form-grid,
  .bio-meta-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .field.full-width {
    grid-column: span 1;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .floating-credential {
    padding: 0.45rem 0.65rem;
    gap: 0.55rem;
  }

  .cred-icon {
    width: 34px;
    height: 34px;
  }

  .cred-icon svg {
    width: 18px;
    height: 18px;
  }

  .cred-text strong {
    font-size: 0.8rem;
  }

  .cred-text span {
    font-size: 0.7rem;
  }

  .floating-credential.bottom-right {
    bottom: 7.15rem;
    right: 0.75rem;
  }

  .portrait-overlay {
    padding: 1.15rem 1.25rem;
  }

  .portrait-overlay h2 {
    font-size: clamp(1.05rem, 4vw, 1.25rem);
    white-space: nowrap;
  }

  .portrait-overlay p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .portrait-overlay {
    padding: 0.85rem 1rem;
  }

  .portrait-overlay h2 {
    font-size: clamp(0.95rem, 4.6vw, 1.15rem);
    white-space: nowrap;
  }

  .portrait-overlay p {
    font-size: 0.75rem;
  }

  .floating-credential.bottom-right {
    bottom: 7.4rem;
  }
}

