/*
  ===================================================================
  Dr. Fouad Hassan Hanafy - Elite UI/UX Design System (2026 Edition)
  Ultra-Modern, Smart, Responsive, Glassmorphism, Micro-Animations
  ===================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800;900&family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Palette */
  --primary-blue: #004b87;
  --primary-dark: #00264d;
  --primary-light: #0284c7;
  --primary-gradient: linear-gradient(135deg, #004b87 0%, #00264d 100%);
  --primary-glow: rgba(0, 75, 135, 0.15);
  
  --accent-red: #f04e45;
  --accent-red-hover: #d83a31;
  --accent-red-gradient: linear-gradient(135deg, #f04e45 0%, #e02419 100%);
  --accent-red-glow: rgba(240, 78, 69, 0.25);
  
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd5a;
  --facebook-blue: #1877f2;
  --gold-star: #f59e0b;
  --emerald: #10b981;
  
  --bg-slate: #f8fafc;
  --bg-white: #ffffff;
  --border-subtle: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px -2px rgba(0, 75, 135, 0.08);
  --shadow-lg: 0 16px 36px -4px rgba(0, 75, 135, 0.14);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  --font-heading: 'Alexandria', 'Cairo', sans-serif;
  --font-body: 'Cairo', 'Alexandria', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-slate);
  color: var(--text-main);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===================================================================
   1. Ultra-Smart Top Navigation Bar (Header)
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 75, 135, 0.04);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 1rem;
}

/* Brand Identity */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-icon-luxury {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #004b87 0%, #0284c7 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 75, 135, 0.3);
  position: relative;
  overflow: hidden;
}

.brand-icon-luxury svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-info small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}

/* Short, 1-word Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  background: #f1f5f9;
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.nav-link {
  display: inline-block;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.8);
}

.nav-link.active {
  color: #ffffff;
  background: var(--primary-blue);
  box-shadow: 0 2px 10px rgba(0, 75, 135, 0.3);
}

/* Header Right Actions (Phone, WhatsApp, Facebook, Booking) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.phone-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.phone-badge-btn:hover {
  background: #dbeafe;
  border-color: var(--primary-blue);
  transform: translateY(-1px);
}

.social-round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.social-round-btn svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.social-round-btn.btn-wa {
  background: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.social-round-btn.btn-wa:hover {
  background: #1ebd5a;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.social-round-btn.btn-fb {
  background: var(--facebook-blue);
}
.social-round-btn.btn-fb:hover {
  background: #1565c0;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.btn-header-booking {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-red-gradient);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--accent-red-glow);
  position: relative;
  overflow: hidden;
}

.btn-header-booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 78, 69, 0.45);
}

.mobile-toggle-btn {
  display: none;
  padding: 0.5rem;
  color: var(--primary-blue);
  background: #f1f5f9;
  border-radius: var(--radius-sm);
}

/* ===================================================================
   2. Page Hero Compact Banner (For Subpages)
   =================================================================== */
.page-hero-banner {
  background: linear-gradient(135deg, #00284d 0%, #004b87 60%, #0284c7 100%);
  color: #ffffff;
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #e0f2fe;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: #e0f2fe;
  line-height: 1.7;
}

/* ===================================================================
   3. Home Hero Section & Floating Stats
   =================================================================== */
.home-hero-section {
  padding: 3.5rem 0 4.5rem;
  background: radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(240, 78, 69, 0.08) 0%, transparent 40%),
              var(--bg-slate);
  position: relative;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.home-hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.home-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
}

.home-hero-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-red-gradient);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px var(--accent-red-glow);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(240, 78, 69, 0.45);
}

.btn-whatsapp-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp-green);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-action:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.35);
}

/* Floating Doctor Card with American Board Badge */
.doctor-hero-card {
  background: #ffffff;
  padding: 0.85rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  animation: floatCard 6s ease-in-out infinite;
}

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

.doctor-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  position: relative;
}

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

/* Bring back the favorite American Board Badge */
.american-board-floating-card {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 75, 135, 0.18);
  border: 1.5px solid #bfdbfe;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.board-card-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--primary-blue);
  font-weight: 800;
  line-height: 1.3;
}

.board-card-text small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

.board-card-flag {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-blue);
  background: #eff6ff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Quick Nav Cards */
.feature-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 3.5rem;
}

.feature-quick-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.feature-quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  background: #f0f9ff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.15rem;
}

.feature-quick-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.4rem;
}

.feature-quick-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.feature-link-btn {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===================================================================
   4. Stats Bar (Fixed on Mobile & Desktop)
   =================================================================== */
.stats-banner {
  background: #ffffff;
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.stat-box {
  padding: 0.75rem;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat-num.blue { color: var(--primary-blue); }
.stat-num.red { color: var(--accent-red); }
.stat-num.gold { color: var(--gold-star); }
.stat-num.green { color: var(--emerald); }

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

/* ===================================================================
   5. Interactive Milestone Age Buttons (Clearly Clickable)
   =================================================================== */
.milestone-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border-subtle);
}

.tool-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
}

.tool-tab-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 75, 135, 0.12);
}

.tool-tab-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 75, 135, 0.3);
  transform: translateY(-2px);
}

/* ===================================================================
   6. Reviews Section (Integrated on Home Page)
   =================================================================== */
.home-reviews-section {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #00284d 0%, #004b87 100%);
  color: #ffffff;
}

.home-reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ===================================================================
   7. Articles Clean Grid & Reader
   =================================================================== */
.articles-clean-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-clean-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-clean-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--primary-blue));
}

.article-clean-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}

.article-cat-tag {
  align-self: flex-start;
  background: #eff6ff;
  color: var(--primary-blue);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.15rem;
}

.article-clean-card h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.article-clean-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
}

.btn-read-article {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-red);
  font-weight: 800;
  font-size: 0.94rem;
}

/* Elite Article Reader Modal */
.article-reader-modal {
  max-width: 820px;
  background: #ffffff;
  padding: 2.8rem 2.5rem;
  border-radius: var(--radius-xl);
}

.article-reader-header {
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}

.article-reader-header h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.35;
  margin: 0.75rem 0 1rem;
}

.doctor-author-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.article-reader-body {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.95;
}

.article-reader-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 2rem 0 0.85rem;
}

.article-reader-body p {
  margin-bottom: 1.25rem;
}

.article-reader-body ul, .article-reader-body ol {
  padding-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-reader-body li {
  margin-bottom: 0.65rem;
}

.article-reader-cta {
  background: linear-gradient(135deg, #00284d 0%, #004b87 100%);
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 2.5rem;
}

.article-reader-cta h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.article-reader-cta p {
  color: #e0f2fe;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ===================================================================
   8. Modals & Forms
   =================================================================== */
.custom-modal, .modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 20, 45, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.custom-modal.active, .modal-overlay.active {
  display: flex !important;
}

.modal-dialog, .modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -10px rgba(0, 38, 77, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 2.2rem 2rem;
  animation: modalPop 0.28s ease;
  direction: rtl;
  text-align: right;
  box-sizing: border-box;
}

@keyframes modalPop {
  0% { transform: scale(0.93); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.35rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10000;
  pointer-events: auto !important;
  line-height: 1;
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.1);
}

/* Floating WhatsApp Widget with Official Transparent PNG */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 8px 18px rgba(37, 211, 102, 0.45));
  text-decoration: none;
  background: transparent;
  border: none;
}

.floating-whatsapp-widget img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: transparent;
}

.floating-whatsapp-widget:hover {
  transform: translateY(-5px) scale(1.12);
  filter: drop-shadow(0 14px 26px rgba(37, 211, 102, 0.65));
}

.social-round-btn-transparent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transition: all 0.25s ease;
  background: transparent;
  border: none;
  text-decoration: none;
}

.social-round-btn-transparent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-round-btn-transparent:hover {
  transform: translateY(-2px) scale(1.12);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label, .form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-blue);
  margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea, .form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: #f8fafc;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus, .form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Milestone Growth Calculator Buttons (Desktop & Compact Mobile Grid) */
.milestone-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.tool-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  background: #f8fafc;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-tab-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.tool-tab-btn.active {
  background: var(--primary-blue) !important;
  color: #ffffff !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 4px 14px rgba(0, 75, 135, 0.3);
}

@media (max-width: 768px) {
  .milestone-buttons-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
    margin-bottom: 1.5rem !important;
  }

  .tool-tab-btn {
    padding: 0.5rem 0.2rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

/* Star Rating Interactive System */
.star-rating-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  direction: ltr;
}

.star-rate-btn {
  font-size: 2.5rem;
  color: #cbd5e1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.2rem;
  line-height: 1;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.star-rate-btn.hovered, .star-rate-btn.selected {
  color: #f59e0b !important;
  transform: scale(1.22);
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
}

/* Dual Booking Actions */
.modal-actions-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.btn-confirm-direct {
  background: linear-gradient(135deg, #004b87 0%, #00264d 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 75, 135, 0.25);
  transition: all 0.25s ease;
}

.btn-confirm-direct:hover {
  background: linear-gradient(135deg, #0284c7 0%, #004b87 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 75, 135, 0.35);
}

.btn-confirm-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.btn-confirm-wa svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex-shrink: 0;
}

.btn-confirm-wa:hover {
  background: linear-gradient(135deg, #1ebd5a 0%, #0e7064 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

@media (max-width: 480px) {
  .modal-actions-dual {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* ===================================================================
   9. Footer & Sticky Mobile Bar (Pixel-Perfect Mobile Fix)
   =================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: #64748b;
}

/* Pixel-Perfect Mobile Sticky Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.65rem 0.85rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.mobile-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.3fr;
  gap: 0.45rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.35rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  white-space: nowrap;
}

.mobile-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.desktop-only {
  display: inline-flex !important;
}

.mobile-only-icon {
  display: none !important;
}

.header-social-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

/* ===================================================================
   10. Responsive Breakpoints
   =================================================================== */
@media (max-width: 1024px) {
  .home-hero-grid, .home-reviews-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .feature-quick-grid, .articles-clean-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only-icon {
    display: inline-flex !important;
  }

  .site-header {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .navbar {
    padding: 0.5rem 0.65rem;
    gap: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

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

  .brand-icon-luxury {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
  }

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

  .brand-info strong {
    font-size: 0.95rem;
    font-weight: 900;
    white-space: nowrap;
    color: var(--primary-blue);
    display: block;
  }

  .brand-info small {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .header-social-img {
    width: 30px;
    height: 30px;
  }

  .social-round-btn-transparent {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    flex-shrink: 0;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    color: var(--primary-blue);
    cursor: pointer;
  }

  .mobile-menu-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid var(--border-subtle);
    margin-bottom: 0.5rem;
  }

  .mobile-nav-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
  }

  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    padding: 1.75rem 1.5rem !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    border-radius: 0 !important;
    border: none !important;
    gap: 0.75rem !important;
    z-index: 100002 !important;
    overflow-y: auto !important;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    font-weight: 800;
  }

  .nav-link.active {
    background: var(--primary-blue);
    color: #ffffff;
  }

  /* Hero Mobile Styling */
  .home-hero-section {
    padding: 1.75rem 0 2.25rem;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-pill-badge {
    margin: 0 auto 1rem;
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }

  .home-hero-title {
    font-size: 1.65rem;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    word-break: break-word;
  }

  .home-hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }

  .home-hero-text {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .home-hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
  }

  .btn-primary-action, .btn-whatsapp-action {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .doctor-hero-card {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    animation: none;
  }

  .doctor-img-wrap {
    height: 320px;
  }

  .american-board-floating-card {
    bottom: 0.65rem;
    right: 0.65rem;
    left: 0.65rem;
    padding: 0.55rem 0.85rem;
    gap: 0.4rem;
  }

  .board-card-text strong {
    font-size: 0.78rem;
  }

  .board-card-text small {
    font-size: 0.68rem;
  }

  .board-card-flag {
    font-size: 1.15rem;
    padding: 0.15rem 0.35rem;
  }

  .feature-quick-grid, .articles-clean-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-banner {
    padding: 1.5rem 0;
  }

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

  .stat-num {
    font-size: 1.55rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  .mobile-bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-bar-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.3fr;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .mobile-action-btn {
    padding: 0.65rem 0.2rem;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 10px;
  }

  .floating-whatsapp-widget {
    bottom: 75px;
    right: 15px;
    width: 48px;
    height: 48px;
  }

  body {
    padding-bottom: 75px;
  }
}

/* ===================================================================
   11. Fast & Simplified Booking Modal Styles
   =================================================================== */
.custom-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 20, 45, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999 !important;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.custom-modal.active,
.custom-modal[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 25px 60px -15px rgba(0, 38, 77, 0.4);
  position: relative;
  border: 1.5px solid rgba(2, 132, 199, 0.15);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalScaleIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000 !important;
  transition: all 0.2s ease;
  pointer-events: auto !important;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg) scale(1.1);
}

.modal-actions-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.btn-confirm-direct {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-confirm-direct:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.btn-confirm-wa {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-confirm-wa:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.social-round-btn-transparent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.social-round-btn-transparent:hover {
  transform: scale(1.15) translateY(-2px);
}
