/* 
  drzuleyxa.az - Official Web Application Stylesheet
  Uzman Pediatr Dr. Züleyxa Ziyadova
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables & Theme Definitions */
:root {
  /* Light Mode Default: Orange / White */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --brand-orange: #FF6B00;
  --brand-orange-hover: #E05D00;
  --brand-orange-light: rgba(255, 107, 0, 0.08);
  --brand-orange-border: rgba(255, 107, 0, 0.25);
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(255, 107, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-blur: blur(12px);
  --slot-available-bg: rgba(255, 107, 0, 0.1);
  --slot-available-border: #FF6B00;
  --slot-available-text: #FF6B00;
  --slot-booked-bg: #F1F5F9;
  --slot-booked-border: #CBD5E1;
  --slot-booked-text: #94A3B8;
  --header-height: 80px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Mode: Orange / Black */
  --bg-primary: #0A0A0E;
  --bg-secondary: #121218;
  --bg-card: #161620;
  --bg-card-hover: #1E1E2C;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --brand-orange: #FF7A1A;
  --brand-orange-hover: #FF6600;
  --brand-orange-light: rgba(255, 122, 26, 0.12);
  --brand-orange-border: rgba(255, 122, 26, 0.35);
  --border-color: #262636;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(255, 122, 26, 0.18);
  --nav-bg: rgba(10, 10, 14, 0.9);
  --slot-available-bg: rgba(255, 122, 26, 0.15);
  --slot-available-border: #FF7A1A;
  --slot-available-text: #FF7A1A;
  --slot-booked-bg: #1A1A24;
  --slot-booked-border: #333346;
  --slot-booked-text: #525266;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* Typography Azerbaijani Unicode Fix */
h1, h2, h3, h4, h5, h6, p, span, button, input, select, textarea, a {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img, video {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: max-content;
}

.logo-badge {
  background: linear-gradient(135deg, var(--brand-orange), #FF8800);
  color: #FFFFFF;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.08) rotate(2deg);
}

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

.logo-main {
  line-height: 1.1;
  font-size: 1.25rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-orange);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Main Navigation Menu (Strict Ordering Required) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 4px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--brand-orange);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Nav Actions (Theme, Language, Coordinator) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: var(--brand-orange-light);
  border-color: var(--brand-orange-border);
  color: var(--brand-orange);
}

/* Language Selector Pill */
.lang-selector {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* Coordinator Fast Button */
.btn-coordinator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-orange-border);
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.btn-coordinator:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  padding: 8px;
}

/* Section Common Styling */
section {
  padding: 100px 0 60px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-subtitle {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.section-title span {
  color: var(--brand-orange);
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 14px;
}

/* -------------------------------------------------------------
   Hero / Haqqında (About) Section
------------------------------------------------------------- */
.hero-section {
  padding-top: 140px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
  background: linear-gradient(145deg, var(--brand-orange-light), var(--bg-card));
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.hero-img-wrapper:hover .hero-img {
  transform: scale(1.02);
}

.hero-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-img-badge i {
  font-size: 1.8rem;
  color: var(--brand-orange);
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-title-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.clinic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.clinic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.clinic-card:hover {
  border-color: var(--brand-orange-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.clinic-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clinic-card h4 i {
  color: var(--brand-orange);
}

.clinic-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-orange), #FF8800);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45);
  background: linear-gradient(135deg, var(--brand-orange-hover), var(--brand-orange));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: var(--brand-orange-light);
}

/* -------------------------------------------------------------
   Qəbula Yazıl (Book Appointment) Section
------------------------------------------------------------- */
.booking-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  outline: none;
}

.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-light);
  background: var(--bg-card);
}

/* Slot Selection Styles */
.slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.slots-legend {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.available {
  background: var(--brand-orange);
}

.legend-dot.booked {
  background: var(--slot-booked-border);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.slot-btn {
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.slot-btn.available {
  background: var(--slot-available-bg);
  border: 1.5px solid var(--slot-available-border);
  color: var(--slot-available-text);
  cursor: pointer;
}

.slot-btn.available:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.slot-btn.selected {
  background: var(--brand-orange) !important;
  color: #FFFFFF !important;
  border-color: var(--brand-orange) !important;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
}

.slot-btn.booked {
  background: var(--slot-booked-bg);
  border: 1px solid var(--slot-booked-border);
  color: var(--slot-booked-text);
  cursor: not-allowed;
  opacity: 0.65;
}

.slot-status-text {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.booking-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -------------------------------------------------------------
   Qalereya (Gallery) Section - Instagram 3/3 Grid Setup
------------------------------------------------------------- */
.video-grid-container {
  width: 100%;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important; /* 2 per row on Mobile & Desktop for larger video size */
  gap: 16px;
}

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.video-card:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* -------------------------------------------------------------
   Pediatr Kimdir? (Articles / Knowledge Base) Section
------------------------------------------------------------- */
.articles-search-bar {
  display: flex;
  gap: 12px;
  max-width: 650px;
  margin: 0 auto 30px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-light);
}

.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 30px;
  scrollbar-width: thin;
}

.category-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
  background: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

.article-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.article-read-link {
  color: var(--brand-orange);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* -------------------------------------------------------------
   Sosial Media (Social Media) Section
------------------------------------------------------------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-smooth);
}

.social-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #FFFFFF;
}

.social-icon-wrapper.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.3);
}

.social-icon-wrapper.tiktok {
  background: #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.social-icon-wrapper.youtube {
  background: #FF0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}

.social-icon-wrapper.facebook {
  background: #1877F2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.social-icon-wrapper.twitter {
  background: #0F1419;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.social-icon-wrapper.linkedin {
  background: #0A66C2;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
}

.social-icon-wrapper.pinterest {
  background: #E60023;
  box-shadow: 0 4px 14px rgba(230, 0, 35, 0.35);
}

.social-icon-wrapper.placeholder {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  border: 1px dashed var(--brand-orange-border);
}

.social-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.social-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   Modal Systems (Coordinator Panel & Full Article Reader)
------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
}

/* Passcode Lock Screen */
.passcode-box {
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
}

.passcode-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* Coordinator Dashboard Layout */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.coord-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.coord-table th {
  background: var(--bg-secondary);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
}

.coord-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.coord-table tr:hover {
  background: var(--bg-secondary);
}

.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-block;
}

.badge-status.confirmed {
  background: rgba(34, 197, 94, 0.15);
  color: #16A34A;
}

.badge-status.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
}

/* Footer Styling */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 400px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--brand-orange);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Overrides */
/* ===================== WhatsApp Floating Button ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 9990;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}
@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===================== Mobile Sidebar Drawer ===================== */
.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px;
  height: 100%;
  background: var(--bg-card);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}
.mobile-sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-logo .logo-badge {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.sidebar-close:hover {
  color: var(--brand-orange);
}

.sidebar-menu {
  list-style: none;
  padding: 12px 0;
  flex: 1;
}
.sidebar-menu li {
  margin: 0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  border-left-color: var(--brand-orange);
}
.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--brand-orange);
}
.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 20px;
}
.sidebar-link-special {
  color: var(--brand-orange);
  font-weight: 600;
}
.sidebar-link-instagram i {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-link-whatsapp i {
  color: #25D366;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-footer i {
  color: var(--brand-orange);
  width: 16px;
  text-align: center;
}

.sidebar-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

section {
  scroll-margin-top: 90px;
}

/* ===================== Responsive: Tablet & Mobile ===================== */
@media (max-width: 1140px) {
  .hero-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-img {
    height: 380px;
  }

  /* Hide desktop nav-menu on mobile/compact tablet — sidebar used instead */
  .nav-menu {
    display: none !important;
  }

  /* Clean mobile header: hide desktop buttons from header on mobile */
  .nav-controls .btn-coordinator,
  .nav-controls .lang-selector,
  .nav-controls .btn-icon {
    display: none !important;
  }

  /* Extremely prominent 3-line hamburger menu button */
  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    height: 42px;
    background: var(--brand-orange);
    color: #FFFFFF !important;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .mobile-toggle-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .mobile-toggle:active {
    transform: scale(0.95);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure Video Grid is ALWAYS 2/2 for large, clear preview */
@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .booking-container {
    padding: 20px 16px;
  }

  .clinic-cards {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Clinic Workdays Badge & FAQ Accordion */
.clinic-workdays-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid var(--brand-orange-border);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.clinic-workdays-badge i {
  color: var(--brand-orange);
  font-size: 1.1rem;
}

.faq-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.faq-grid {
  max-width: 860px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  transition: var(--transition-smooth);
}
.faq-item:hover {
  border-color: var(--brand-orange-border);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-question i {
  color: var(--brand-orange);
  font-size: 1rem;
}
.faq-answer {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
