/* ============================================================
   DR. RAGHAD ABOUALKHIR — Premium Paediatric Portfolio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --yellow:       #fff1b8;
  --yellow-mid:   #ffe98a;
  --green:        #65aea7;
  --green-dark:   #4a9189;
  --gray:         #4b5563;
  --gray-light:   #6b7280;
  --gray-dark:    #1f2937;
  --light-green:  #bfead8;
  --baby-blue:    #a7ddf2;
  --white:        #ffffff;
  --off-white:    #fafcfb;
  --bg-soft:      #f7fffe;

  --font-head:    'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    36px;
  --radius-full:  9999px;

  --shadow-sm:    0 2px 12px rgba(101,174,167,0.10);
  --shadow-md:    0 8px 32px rgba(101,174,167,0.15);
  --shadow-lg:    0 16px 56px rgba(101,174,167,0.20);
  --shadow-card:  0 4px 24px rgba(75,85,99,0.08);

  --transition:   all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--white);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; font-family: var(--font-body); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section { position: relative; overflow: hidden; }

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 2px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0.6;
}
.cursor-dot.active  { width: 16px; height: 16px; background: var(--yellow-mid); }
.cursor-ring.active { width: 50px; height: 50px; opacity: 0.3; }

/* Sparkle particles */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: sparkle-fade 0.7s ease-out forwards;
}
@keyframes sparkle-fade {
  0%   { opacity: 1; transform: scale(1) translate(0,0); }
  100% { opacity: 0; transform: scale(0) translate(var(--tx), var(--ty)); }
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--baby-blue));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s;
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(101,174,167,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 90px;
  width: auto;
  transition: var(--transition);
  /* logo-symbol is pale yellow — add a subtle teal drop shadow so it reads on any bg */
  filter: drop-shadow(0 2px 8px rgba(101,174,167,0.35));
}
#navbar.scrolled .nav-logo img { height: 72px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  box-shadow: 0 4px 16px rgba(101,174,167,0.35);
  transition: var(--transition) !important;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(101,174,167,0.45) !important;
}
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Section ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0faf8 0%, #e8f8f5 30%, #f5f5ff 60%, #fefff0 100%);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: var(--light-green);
  top: -100px; right: -100px;
  animation: blob-float 8s ease-in-out infinite;
}
.hero-blob-2 {
  width: 350px; height: 350px;
  background: var(--baby-blue);
  bottom: -80px; left: -80px;
  animation: blob-float 10s ease-in-out infinite reverse;
}
.hero-blob-3 {
  width: 250px; height: 250px;
  background: var(--yellow);
  top: 40%; left: 30%;
  animation: blob-float 12s ease-in-out infinite 2s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-10px, 15px) scale(0.98); }
}

.hero-watermark {
  position: absolute;
  right: 48%;
  top: 50%;
  transform: translate(50%, -50%);
  opacity: 0.04;
  width: 600px;
  height: 600px;
  pointer-events: none;
}
.hero-watermark img { width: 100%; height: 100%; object-fit: contain; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content { padding-right: 20px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(101,174,167,0.12);
  border: 1px solid rgba(101,174,167,0.25);
  color: var(--green-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fade-up 0.8s ease both;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--gray-dark);
  line-height: 1.12;
  margin-bottom: 16px;
  animation: fade-up 0.8s ease 0.1s both;
}
.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-name {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--gray-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fade-up 0.8s ease 0.2s both;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 32px;
  animation: fade-up 0.8s ease 0.3s both;
  max-width: 480px;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  animation: fade-up 0.8s ease 0.4s both;
}
.credential-tag {
  background: var(--white);
  border: 1px solid rgba(101,174,167,0.3);
  color: var(--gray);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.8s ease 0.5s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(101,174,167,0.4);
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(101,174,167,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--gray);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(101,174,167,0.3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  transition: var(--transition);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.45);
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  animation: fade-up 0.8s ease 0.3s both;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl) var(--radius-xl) 200px var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--light-green);
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(191,234,216,0.3) 0%, transparent 60%);
  z-index: 1;
}
.hero-image-frame img {
  width: calc(100% + 90px);
  height: 600px;
  object-fit: cover;
  object-position: left 15%;
  transform: translateX(90px);
  transition: transform 0.6s ease;
}
.hero-image-frame:hover img { transform: translateX(90px) scale(1.03); }

.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: card-float 4s ease-in-out infinite;
}
.hero-float-card-1 { bottom: 40px; left: -30px; animation-delay: 0s; }
.hero-float-card-2 { bottom: 130px; right: -30px; animation-delay: 1.5s; }

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float-card-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--light-green), var(--baby-blue));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.float-card-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-dark);
  font-family: var(--font-head);
}
.float-card-text span {
  font-size: 0.75rem;
  color: var(--gray-light);
  font-weight: 600;
}

.hero-deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(101,174,167,0.25);
  animation: spin-slow 20s linear infinite;
}
.hero-deco-ring-1 { width: 120px; height: 120px; top: -20px; left: -20px; }
.hero-deco-ring-2 { width: 80px; height: 80px; bottom: 80px; right: 20px; animation-direction: reverse; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Stats Bar ── */
#stats {
  background: var(--green);
  padding: 50px 0;
  position: relative;
  z-index: 1;
}
#stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--baby-blue), var(--light-green));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 10px 20px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}
.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number sup { font-size: 1.5rem; }
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  position: relative;
  padding: 0 20px;
}
.section-label::before, .section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px; height: 1px;
  background: var(--green);
  opacity: 0.5;
}
.section-label::before { right: 100%; }
.section-label::after  { left: 100%; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── About Section ── */
#about {
  padding: 100px 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center center;
  transform: scale(0.78);
  transform-origin: center center;
}

.about-image-deco {
  position: absolute;
  z-index: -1;
}
.about-image-deco-1 {
  width: 160px; height: 160px;
  background: var(--yellow);
  border-radius: var(--radius-lg);
  bottom: -24px; left: -24px;
  opacity: 0.7;
}
.about-image-deco-2 {
  width: 100px; height: 100px;
  background: var(--light-green);
  border-radius: 50%;
  top: -20px; right: -20px;
  opacity: 0.7;
}

.about-badge-float {
  position: absolute;
  right: -20px;
  bottom: 120px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 120px;
}
.about-badge-float .badge-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.about-badge-float .badge-label {
  font-size: 0.75rem;
  color: var(--gray-light);
  font-weight: 600;
  margin-top: 4px;
}

.about-content .section-header { text-align: left; margin-bottom: 28px; }
.about-content .section-label::before { display: none; }

.about-bio {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray-light);
  margin-bottom: 24px;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--green);
  transition: var(--transition);
}
.credential-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.credential-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--light-green), var(--baby-blue));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.credential-text strong { display: block; font-size: 0.9rem; color: var(--gray-dark); font-weight: 700; }
.credential-text span  { font-size: 0.8rem; color: var(--gray-light); }

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.info-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  box-shadow: var(--shadow-sm);
}
.info-pill-icon { font-size: 0.9rem; }

/* ── Services Section ── */
#services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(101,174,167,0.1);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--baby-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(191,234,216,0.6), rgba(167,221,242,0.6));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--green), var(--baby-blue));
  transform: scale(1.1);
}

.service-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 0.87rem;
  color: var(--gray-light);
  line-height: 1.7;
}

/* ── Experience Timeline ── */
#experience {
  padding: 100px 0;
  background: linear-gradient(180deg, #f0faf8 0%, #fafcfb 100%);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--baby-blue));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(odd)  { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  width: calc(50% - 40px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(101,174,167,0.1);
  transition: var(--transition);
  position: relative;
}
.timeline-content:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.timeline-item:nth-child(odd)  .timeline-content { margin-right: 40px; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 40px; }

.timeline-content::after {
  content: '';
  position: absolute;
  top: 24px;
  width: 16px; height: 16px;
  background: var(--white);
  border: 2px solid rgba(101,174,167,0.3);
  transform: rotate(45deg);
}
.timeline-item:nth-child(odd)  .timeline-content::after { right: -9px; }
.timeline-item:nth-child(even) .timeline-content::after { left: -9px; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  background: var(--green);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px rgba(101,174,167,0.3);
  z-index: 2;
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--yellow-mid);
  box-shadow: 0 0 0 6px rgba(101,174,167,0.15);
}

.timeline-period {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 3px 10px;
  background: rgba(101,174,167,0.1);
  border-radius: var(--radius-full);
}
.timeline-role {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 4px;
}
.timeline-hospital {
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 600;
  margin-bottom: 10px;
}
.timeline-detail {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.65;
}

/* ── Affiliations ── */
#affiliations {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
}

.affiliations-track-wrap {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}
.affiliations-track-wrap::before,
.affiliations-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 150px;
  z-index: 2;
}
.affiliations-track-wrap::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.affiliations-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--white), transparent); }

.affiliations-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 18s linear infinite;
}
.affiliations-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.affil-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(101,174,167,0.12);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-shrink: 0;
}
.affil-logo-wrap:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(101,174,167,0.3);
  transform: translateY(-4px);
}
.affil-logo-wrap img { height: 48px; width: auto; object-fit: contain; }
.affil-logo-wrap.logo-nmc img,
.affil-logo-wrap.logo-mediclinic img { height: 110px; }
.affil-logo-wrap.logo-nmc,
.affil-logo-wrap.logo-mediclinic { padding: 0 20px; }

.affil-text-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}

/* ── Why Choose ── */
#why-choose {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0faf8 0%, #fafafa 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, linear-gradient(90deg, var(--green), var(--baby-blue)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-card:hover::after { transform: scaleX(1); }

.why-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.why-card:nth-child(1) .why-icon { background: rgba(191,234,216,0.5); }
.why-card:nth-child(2) .why-icon { background: rgba(167,221,242,0.5); }
.why-card:nth-child(3) .why-icon { background: rgba(255,241,184,0.6); }
.why-card:nth-child(4) .why-icon { background: rgba(191,234,216,0.5); }
.why-card:nth-child(5) .why-icon { background: rgba(167,221,242,0.5); }
.why-card:nth-child(6) .why-icon { background: rgba(255,241,184,0.6); }

.why-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 10px;
}
.why-desc { font-size: 0.9rem; color: var(--gray-light); line-height: 1.75; }

/* ── Gallery ── */
#gallery {
  padding: 100px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: none;
  position: relative;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(101,174,167,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  color: var(--white);
  font-size: 2rem;
  cursor: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

/* ── Testimonials ── */
#testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(191,234,216,0.2) 0%, rgba(167,221,242,0.15) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.testimonial-quote {
  font-size: 3rem;
  color: var(--green);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-light);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-stars {
  color: var(--yellow-mid);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-green), var(--baby-blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--gray-dark); }
.testimonial-meta { font-size: 0.78rem; color: var(--gray-light); }

.testimonials-notice {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: rgba(101,174,167,0.08);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(101,174,167,0.3);
}
.testimonials-notice p {
  color: var(--gray-light);
  font-size: 0.88rem;
}

/* ── Contact Section ── */
#contact {
  padding: 100px 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info { padding-top: 8px; }
.contact-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 16px;
}
.contact-desc {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(101,174,167,0.1);
  transition: var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow-md); border-color: rgba(101,174,167,0.25); }
.contact-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--light-green), var(--baby-blue));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.82rem; color: var(--gray-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.contact-item-text a,
.contact-item-text span { font-size: 0.95rem; color: var(--gray-dark); font-weight: 600; }
.contact-item-text a:hover { color: var(--green); }

.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: var(--white);
  padding: 18px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
  transition: var(--transition);
  margin-bottom: 20px;
}
.whatsapp-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37,211,102,0.4);
}
.whatsapp-cta svg { width: 28px; height: 28px; }
.whatsapp-cta-text strong { display: block; font-size: 1rem; }
.whatsapp-cta-text span { font-size: 0.8rem; opacity: 0.85; }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(101,174,167,0.1);
}
.form-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(101,174,167,0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-dark);
  background: var(--bg-soft);
  transition: var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(101,174,167,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: none; }

.form-submit {
  width: 100%;
  background: var(--green);
  color: var(--white);
  padding: 15px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: none;
  box-shadow: 0 6px 20px rgba(101,174,167,0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(101,174,167,0.5);
}

/* ── Footer ── */
footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 32px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--baby-blue), var(--yellow));
}

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

.footer-brand .footer-logo img {
  height: 72px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer-brand-text {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 280px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}
.social-link:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
  color: rgba(255,255,255,0.6);
}
.footer-links a:hover { color: var(--green); transform: translateX(4px); display: inline-block; }

.footer-contact-items { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item span:first-child { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-copy strong { color: rgba(255,255,255,0.6); }

/* ── Floating Background Dots ── */
.bg-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--green);
}

/* ── Scroll Reveal Utility ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Floating Stars ── */
.floating-star {
  position: absolute;
  pointer-events: none;
  font-size: 0.9rem;
  animation: star-float linear infinite;
  opacity: 0;
}
@keyframes star-float {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-200px) rotate(360deg); }
}

/* ── Mobile Navigation ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-dark);
  transition: var(--transition-fast);
}
.mobile-menu a:hover { color: var(--green); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; text-align: center; }
  .hero-content  { padding-right: 0; order: 2; }
  .hero-image-wrap { order: 1; max-width: 380px; margin: 0 auto; }
  .hero-desc     { margin: 0 auto 32px; }
  .hero-credentials, .hero-actions { justify-content: center; }
  .about-grid    { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 480px; margin: 0 auto; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-content,
  .timeline-item:nth-child(odd)  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { width: calc(100% - 60px); margin-left: 60px; margin-right: 0; }
  .timeline-content::after { left: -9px !important; right: auto !important; }
  .timeline-dot { left: 20px; transform: translateX(-50%); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-float-card-1,
  .hero-float-card-2 { display: none; }
}

/* ══════════════════════════════════════════
   INNER PAGE STYLES (about / services /
   experience / gallery)
   ══════════════════════════════════════════ */

/* Inner page navbar always solid */
.inner-page #navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(101,174,167,0.12);
  padding: 12px 0;
}

/* Page Hero Banner */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #f0faf8 0%, #e8f8f5 40%, #fefff0 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--baby-blue), var(--yellow));
}
.page-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  pointer-events: none;
}
.page-hero-blob-1 {
  width: 400px; height: 400px;
  background: var(--light-green);
  top: -100px; right: -60px;
  animation: blob-float 8s ease-in-out infinite;
}
.page-hero-blob-2 {
  width: 280px; height: 280px;
  background: var(--baby-blue);
  bottom: -60px; left: -40px;
  animation: blob-float 10s ease-in-out infinite reverse;
}
.page-hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  padding: 5px 18px;
  background: rgba(101,174,167,0.1);
  border: 1px solid rgba(101,174,167,0.2);
  border-radius: var(--radius-full);
}
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--gray-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero-title em { font-style: italic; color: var(--green); }
.page-hero-desc {
  font-size: 1.05rem;
  color: var(--gray-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}
.page-hero-watermark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  opacity: 0.04;
  pointer-events: none;
}
.page-hero-watermark img { width: 100%; height: 100%; object-fit: contain; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray-light);
}
.breadcrumb a { color: var(--green); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.4; }

/* ── Congress Highlight ── */
#congress {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255,241,184,0.2) 0%, rgba(191,234,216,0.15) 100%);
  position: relative;
  overflow: hidden;
}

.congress-header {
  text-align: center;
  margin-bottom: 60px;
}
.congress-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--yellow), #ffe066);
  color: #7a6000;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(255,200,0,0.25);
}
.congress-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 14px;
}
.congress-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.congress-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 600;
}
.congress-desc {
  font-size: 1rem;
  color: var(--gray-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Congress Photo Grid ─────────────────────────────────────
   grid-template-rows locks the ENTIRE row to exactly 400px.
   Images use position:absolute so they NEVER influence layout
   height — eliminating all tall-card / white-space bugs.
   ─────────────────────────────────────────────────────────── */
.congress-photos {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 400px;       /* ← row height locked here */
  gap: 20px;
  margin-bottom: 48px;
  align-items: stretch;
}

.congress-photo-item {
  position: relative;              /* establishes stacking context */
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 8px 32px rgba(75,85,99,0.15);
  /* No height on the item — the grid row controls it fully */
  background: var(--light-green);  /* placeholder colour while loading */
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.congress-photo-item:hover {
  box-shadow: 0 16px 48px rgba(75,85,99,0.25);
  transform: translateY(-3px);
}

/* Image fills its parent absolutely — zero layout contribution */
.congress-photo-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;  /* overridden per-image with inline style */
  transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
  will-change: transform;
}
.congress-photo-item:hover img { transform: scale(1.06); }

/* Caption — always rendered, revealed on hover with slide-up */
.congress-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  /* deep teal gradient for medical brand cohesion */
  background: linear-gradient(
    to top,
    rgba(20, 45, 42, 0.92)  0%,
    rgba(20, 45, 42, 0.55)  50%,
    transparent             100%
  );
  color: var(--white);
  padding: 52px 20px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
}
.congress-photo-item:hover .congress-photo-caption {
  opacity: 1;
  transform: translateY(0);
}

.congress-highlights-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.congress-highlight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--green);
  transition: var(--transition);
}
.congress-highlight-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.congress-highlight-icon { font-size: 2rem; margin-bottom: 12px; }
.congress-highlight-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
}
.congress-highlight-desc { font-size: 0.88rem; color: var(--gray-light); line-height: 1.7; }

@media (max-width: 900px) {
  .congress-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 300px; }
  .congress-highlights-strip { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .congress-photos { grid-template-columns: 1fr; grid-template-rows: 260px; }
}

/* ══════════════════════════════════════════
   LANGUAGE SWITCHER
   ══════════════════════════════════════════ */
.lang-switcher {
  position: relative;
}
.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid rgba(101,174,167,0.4);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-dark);
  cursor: none;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.lang-toggle-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(101,174,167,0.06);
}
.lang-toggle-btn .lang-globe { font-size: 1rem; }
.lang-toggle-btn .lang-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.lang-dropdown.open ~ * .lang-arrow,
.lang-dropdown.open + .lang-toggle-btn .lang-arrow { transform: rotate(180deg); }

#lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(75,85,99,0.15);
  border: 1px solid rgba(101,174,167,0.15);
  min-width: 140px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}
#lang-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-dark);
  cursor: none;
  transition: background 0.2s ease;
  text-align: left;
}
.lang-option:hover { background: rgba(101,174,167,0.08); color: var(--green); }
.lang-option.active { color: var(--green); font-weight: 700; background: rgba(101,174,167,0.06); }
.lang-option .lang-flag { font-size: 1.1rem; }

/* ══════════════════════════════════════════
   RTL OVERRIDES (Arabic)
   ══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

body.rtl {
  font-family: 'Cairo', 'Nunito', sans-serif;
}
body.rtl .hero-content,
body.rtl .about-content,
body.rtl .section-header,
body.rtl .timeline-content,
body.rtl .contact-form-wrap,
body.rtl .footer-brand { text-align: right; }

body.rtl .nav-links { direction: rtl; }
body.rtl .hero-credentials { justify-content: flex-start; }
body.rtl .hero-actions { justify-content: flex-start; }
body.rtl .info-pills { justify-content: flex-start; }
body.rtl .credentials-list { direction: rtl; }
body.rtl .credential-item { flex-direction: row-reverse; text-align: right; }
body.rtl .timeline-item { flex-direction: row-reverse; }
body.rtl .timeline-content { text-align: right; }
body.rtl .about-grid { direction: rtl; }
body.rtl .section-title { direction: rtl; }
body.rtl .lang-option { text-align: right; flex-direction: row-reverse; }
body.rtl #lang-dropdown { right: auto; left: 0; }
body.rtl .contact-info-block { text-align: right; }
body.rtl .footer-grid { direction: rtl; }
body.rtl .footer-links-list { text-align: right; }
body.rtl .stats-bar { direction: rtl; }
body.rtl .services-grid { direction: rtl; }
body.rtl .service-card { text-align: right; }
body.rtl .why-grid { direction: rtl; }
body.rtl .why-card { text-align: right; }
body.rtl .form-group label { text-align: right; display: block; }
body.rtl .form-group input,
body.rtl .form-group select,
body.rtl .form-group textarea { text-align: right; direction: rtl; }
