:root {
  /* =========================================================================
     OFFICIAL BOGSII HEALTHCARE NETWORK GLOBAL TOKENS
     ========================================================================= */
  --bogsii-primary: #0487E2;
  --bogsii-deep: #0463CA;
  --bogsii-sky: #65C2F5;
  --bogsii-cyan: #09B1EC;
  --bogsii-light: #B0D6F5;
  --bogsii-subtle: #EBF5FC;
  --bogsii-canvas: #F4F9FD;
  --bogsii-navy: #0A2540;

  /* Reconciled Semantic Tokens */
  --blue: #0487E2;
  --blue-hover: #0463CA;
  --navy: #0463CA;
  --navy-deep: #0A2540;
  --blue-light: #EBF5FC;
  --sky-soft: #65C2F5;
  --cyan: #09B1EC;
  --blue-border: #D0E4F7;
  --green: #059669;
  --green-hover: #047857;
  --green-light: #ecfdf5;
  --green-border: #a7f3d0;
  --red: #dc2626;
  --red-light: #fef2f2;
  --amber: #b45309;
  --amber-light: #fffbeb;
  --ink: #0A2540;
  --muted: #486581;
  --line: #D0E4F7;
  --bg: #F4F9FD;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px -2px rgba(4, 99, 202, 0.05);
  --shadow: 0 4px 20px -2px rgba(4, 99, 202, 0.08);
  --shadow-lg: 0 12px 30px -4px rgba(4, 99, 202, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .15s ease, background-color .15s ease, transform .15s ease; }
button, input, select, textarea { font: inherit; }

.container { width: min(1240px, 92%); margin: auto; }
.narrow { max-width: 860px; }

/* Topbar */
.topbar {
  display: none;
}

/* Header & Main Nav */
.header {
  height: 72px;
  background: #ffffff;
  border-bottom: 2px solid var(--bogsii-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 4px 16px rgba(4,99,202,0.04);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img, .brand-logo-img {
  height: 50px;
  width: auto;
  max-width: 68px;
  object-fit: contain;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  display: block;
}
.brand strong, .brand .brand-name {
  display: block;
  font-size: 21px;
  color: var(--bogsii-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}
.brand strong .brand-accent, .brand .brand-name .brand-accent {
  display: inline !important;
  color: var(--bogsii-deep);
}
.brand > div > span, .brand .brand-tagline {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--bogsii-deep);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 1px;
  white-space: nowrap;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.header nav a {
  color: #475569;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all .15s ease;
}
.header nav a:hover,
.header nav a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* Nav Dropdown */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group > button {
  background: none;
  border: 0;
  font: inherit;
  color: #475569;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all .15s ease;
}
.nav-group > button:hover,
.nav-group.active > button {
  color: var(--blue);
  background: var(--blue-light);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
  padding: 8px;
  min-width: 260px;
  z-index: 999;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.open .nav-dropdown {
  display: grid;
  animation: dropdownFade .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dropdown.wide {
  min-width: 560px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}
.dropdown-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.nav-dropdown a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s ease;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--blue-light);
  color: var(--blue);
  transform: translateX(2px);
}

.nav-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 11px;
}
.nav-group.open .nav-chevron {
  transform: rotate(180deg);
}
.mobile-nav-header,
.mobile-nav-footer {
  display: none;
}

/* Actions & Lang */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-switch {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.lang {
  padding: 4px 8px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.lang.active, .lang:hover {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 11px 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21,101,192,.22);
  transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(21,101,192,.28);
}
.btn:active { transform: translateY(0); }
.btn.outline {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue-border);
  box-shadow: none;
}
.btn.outline:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}
.btn.small {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn.full { width: 100%; }
.btn.light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn.light:hover { background: #f8fafc; }
.btn.success {
  background: var(--green);
  box-shadow: 0 4px 14px rgba(21,128,61,.22);
}
.btn.success:hover { background: var(--green-hover); }
.btn.danger {
  background: var(--red);
  box-shadow: 0 4px 14px rgba(185,28,28,.22);
}

.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   PORTAL 2-COLUMN LEFT SIDEBAR ARCHITECTURE (PREMIUM DARK NAVY THEME)
   ========================================================================== */
.portal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 110px);
  background: #f8fafc;
  align-items: stretch;
  transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-layout.sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

/* Mobile Sticky Admin Bar */
.portal-mobile-bar {
  display: none;
  background: #091e36;
  color: #fff;
  padding: 12px 18px;
  border-bottom: 2px solid #1e293b;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 62px;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.portal-mobile-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-mobile-sep {
  color: #475569;
}

.portal-mobile-count {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 800;
}

.portal-mobile-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
  transition: background 0.15s ease;
}
.portal-mobile-btn:hover {
  background: #1d4ed8;
}

/* Portal Sidebar */
.portal-sidebar {
  background: #091e36;
  border-right: 1px solid #1e293b;
  position: sticky;
  top: 75px;
  height: calc(100vh - 75px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 14px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 3px 0 12px rgba(0,0,0,.08);
  scrollbar-width: thin;
  scrollbar-color: #334155 #091e36;
  z-index: 30;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
}

/* Collapsed Desktop State */
.portal-sidebar.collapsed {
  width: 78px;
  padding: 14px 8px 28px;
  overflow-x: hidden;
}

.portal-sidebar.collapsed .sidebar-brand-text,
.portal-sidebar.collapsed .sidebar-role-badge,
.portal-sidebar.collapsed .sidebar-user-name,
.portal-sidebar.collapsed .sidebar-user-role,
.portal-sidebar.collapsed .sidebar-search-box,
.portal-sidebar.collapsed .sidebar-group-actions,
.portal-sidebar.collapsed .group-title,
.portal-sidebar.collapsed .group-meta,
.portal-sidebar.collapsed .nav-text,
.portal-sidebar.collapsed .sidebar-footer-box span {
  display: none !important;
}

.portal-sidebar.collapsed .sidebar-group-header-btn,
.portal-sidebar.collapsed .sidebar-group-toggle {
  display: none !important;
}

.portal-sidebar.collapsed .sidebar-group-items {
  display: block !important;
}

.portal-sidebar.collapsed .sidebar-nav a {
  justify-content: center;
  padding: 12px 0;
  border-radius: 10px;
}

.portal-sidebar.collapsed .sidebar-brand-box {
  padding: 8px 4px;
}

.sidebar-desktop-collapse-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #cbd5e1;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.sidebar-desktop-collapse-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

.sidebar-brand-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.sidebar-role-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #60a5fa;
  margin-bottom: 4px;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: #94a3b8;
}

/* Sidebar Real-time Search */
.sidebar-search-box {
  margin-bottom: 10px;
}
.sidebar-filter-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12.5px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sidebar-filter-input::placeholder {
  color: #64748b;
}
.sidebar-filter-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

/* Sidebar Expand / Collapse All Actions */
.sidebar-group-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.sidebar-action-btn {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-action-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* Sidebar Accordion Groups */
.sidebar-nav {
  flex: 1;
}

.sidebar-group {
  margin-bottom: 4px;
}

.sidebar-group-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 10px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-group:first-of-type .sidebar-group-toggle {
  border-top: none;
}
.sidebar-group-toggle:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}
.sidebar-group.has-active .sidebar-group-toggle {
  color: #60a5fa;
  font-weight: 900;
}

.group-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.group-badge {
  background: rgba(255,255,255,0.09);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

.group-chevron {
  font-size: 11px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.sidebar-group:not(.is-open) .group-chevron {
  transform: rotate(-90deg);
}

.sidebar-group:not(.is-open) .sidebar-group-items {
  display: none;
}

.sidebar-group-items {
  padding: 2px 0 6px;
}

/* Sidebar Links (Minimum 44px Touch Target) */
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 2px;
  box-sizing: border-box;
  transition: all .15s ease;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  transform: translateX(3px);
}

.sidebar-nav a.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}

.sidebar-footer-box {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Portal Content Area & Universal Layout Safeguards */
.portal-main {
  padding: 24px 32px 60px;
  min-width: 0;
  background: #f8fafc;
}

.portal-main .panel,
.portal-main .card {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.portal-main table,
.portal-main .table,
.portal-main .data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.portal-main .table-wrap,
.portal-main .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.portal-main input,
.portal-main select,
.portal-main textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.portal-main button,
.portal-main .btn {
  min-height: 42px;
  box-sizing: border-box;
}

.portal-main .page {
  padding: 0 0 30px;
}

.portal-main .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Multi-column Inline Grid Auto-collapse for Tablet/Mobile */
@media (max-width: 860px) {
  .portal-main [style*="grid-template-columns: 1fr 1fr"],
  .portal-main [style*="grid-template-columns:1fr 1fr"],
  .portal-main [style*="grid-template-columns: 1fr 2fr"],
  .portal-main [style*="grid-template-columns:1fr 2fr"],
  .portal-main [style*="grid-template-columns: 2fr 1fr"],
  .portal-main [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive Breakpoints: Tablet & Mobile (<= 992px) */
@media (max-width: 992px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-mobile-bar {
    display: flex;
  }
  .portal-sidebar {
    display: none;
    position: static;
    top: 0;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 2px solid #1e293b;
    padding: 16px 14px;
    box-shadow: none;
  }
  .portal-sidebar.mobile-open {
    display: flex;
    animation: slideDownPortalNav 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes slideDownPortalNav {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .portal-sidebar .sidebar-desktop-collapse-btn {
    display: none;
  }
  .portal-main {
    padding: 18px 16px 48px;
  }
}

@media (max-width: 640px) {
  .portal-main {
    padding: 14px 12px 40px;
  }
  .portal-mobile-bar {
    padding: 10px 14px;
    top: 56px;
  }
}

/* Flash Messages & Alerts */
.flash-wrap {
  width: min(1200px, 92%);
  margin: 18px auto 0;
}
.flash, .notice {
  padding: 14px 18px;
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  color: #14532d;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flash.error, .notice.error {
  background: var(--red-light);
  border-left-color: var(--red);
  color: #7f1d1d;
}
.notice.info {
  background: var(--blue-light);
  border-left-color: var(--blue);
  color: #1e3a8a;
}
.flash-close {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  color: inherit;
  opacity: .7;
}
.flash-close:hover { opacity: 1; }

/* =========================================================================
   BOGSII HERO SECTION (Global Healthcare Network Theme)
   ========================================================================= */
.hero {
  background-color: var(--bogsii-canvas);
  background-image: 
    radial-gradient(1000px 600px at 85% 20%, rgba(101, 194, 245, 0.16) 0%, rgba(244, 249, 253, 0) 65%),
    radial-gradient(800px 500px at 10% 85%, rgba(4, 135, 226, 0.07) 0%, rgba(244, 249, 253, 0) 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bogsii-canvas) 100%);
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -100px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(101, 194, 245, 0.14) 0%, rgba(4, 135, 226, 0.03) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--bogsii-deep);
  background: var(--bogsii-subtle);
  border: 1px solid var(--bogsii-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(40px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--bogsii-navy);
  font-weight: 800;
}

.hero h1 em {
  color: var(--bogsii-deep);
  font-style: normal;
  display: inline-block;
  background: linear-gradient(135deg, var(--bogsii-deep) 0%, var(--bogsii-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p,
.hero-description {
  font-size: 16px;
  color: #475569;
  max-width: 620px;
  line-height: 1.68;
  margin: 0 0 24px;
}

/* Premium Clinical Search Command Bar */
.hero-search-wrapper {
  margin: 26px 0 26px;
  position: relative;
  z-index: 5;
}

.hero-search-form {
  background: var(--white);
  border: 1px solid var(--bogsii-light);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 28px -4px rgba(4, 99, 202, 0.08), 0 2px 6px rgba(10, 37, 64, 0.03);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-form:focus-within {
  border-color: var(--bogsii-sky);
  box-shadow: 0 12px 34px -4px rgba(4, 99, 202, 0.14), 0 0 0 3px rgba(4, 135, 226, 0.12);
}

.hero-search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.hero-search-field.field-keyword {
  flex: 1.8;
  min-width: 170px;
}

.hero-search-field.field-specialty {
  flex: 1.2;
  min-width: 135px;
}

.hero-search-field.field-country {
  flex: 1.05;
  min-width: 120px;
}

.hero-search-field.field-city {
  flex: 1.05;
  min-width: 120px;
}

.hero-search-input,
.hero-search-select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--bogsii-navy);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hero-search-input:focus,
.hero-search-select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--bogsii-primary);
  box-shadow: 0 0 0 3px rgba(4, 135, 226, 0.16);
}

.hero-search-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.hero-search-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
}

[dir="rtl"] .hero-search-select {
  background-position: left 12px center;
  padding-right: 12px;
  padding-left: 28px;
  text-align: right;
}

[dir="rtl"] .hero-search-input {
  text-align: right;
}

.hero-search-btn {
  height: 48px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--bogsii-primary) 0%, var(--bogsii-deep) 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(4, 99, 202, 0.25);
  flex-shrink: 0;
}

.hero-search-btn:hover {
  background: linear-gradient(135deg, var(--bogsii-deep) 0%, #034fa3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(4, 99, 202, 0.35);
}

.hero-search-btn:active {
  transform: translateY(0);
}

/* Hero Action CTA Hierarchy */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: var(--bogsii-primary);
  color: #ffffff !important;
  font-weight: 700;
  height: 48px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(4, 135, 226, 0.28);
  transition: all 0.2s ease;
  font-size: 14.5px;
}

.hero-btn-primary:hover {
  background: var(--bogsii-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(4, 99, 202, 0.35);
  color: #ffffff !important;
}

.hero-btn-secondary {
  background: var(--white);
  color: var(--bogsii-deep) !important;
  border: 1.5px solid var(--bogsii-light);
  font-weight: 700;
  height: 48px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14.5px;
}

.hero-btn-secondary:hover {
  background: var(--bogsii-subtle);
  border-color: var(--bogsii-sky);
  color: var(--bogsii-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4, 99, 202, 0.08);
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 520px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(4, 99, 202, 0.16), 0 4px 16px -2px rgba(10, 37, 64, 0.06);
  background: var(--white);
  border: 3px solid var(--white);
  display: flex;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual:hover .hero-photo {
  transform: scale(1.02);
}

.hero-floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid #D0E4F7;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 12px 32px rgba(4, 99, 202, 0.14), 0 2px 8px rgba(10, 37, 64, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-floating-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(4, 99, 202, 0.2);
}

.hero-badge-bottom {
  bottom: -14px;
  left: -18px;
}

.hero-badge-top {
  top: 18px;
  right: -16px;
  padding: 8px 14px;
  border-radius: 20px;
  gap: 8px;
}

.hero-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EBF5FC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0463A4;
  flex-shrink: 0;
}

.hero-badge-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--bogsii-navy);
  font-weight: 700;
  line-height: 1.25;
}

.hero-badge-text span {
  display: block;
  font-size: 11.5px;
  color: #4A6572;
  margin-top: 2px;
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  display: inline-block;
}

.hero-pill-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--bogsii-navy);
}

@media (max-width: 992px) {
  .hero-badge-bottom { left: 10px; bottom: 10px; }
  .hero-badge-top { right: 10px; top: 10px; }
}

/* Quick Access Bar - BOGSII Global Healthcare Network */
.quick {
  background: var(--white);
  padding: 26px 0;
  border-bottom: 1px solid var(--bogsii-light);
  position: relative;
  z-index: 4;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.quick-grid a,
.quick-card {
  padding: 16px 18px;
  border: 1.5px solid #D0E4F7;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(4, 135, 226, 0.06);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  min-height: 76px;
}
.quick-grid a:hover,
.quick-card:hover {
  border-color: var(--bogsii-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(4, 99, 202, 0.14);
}
.quick-icon-frame {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: #EBF5FC;
  color: #0463A4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.quick-grid a:hover .quick-icon-frame,
.quick-card:hover .quick-icon-frame {
  background: #0463A4;
  color: #ffffff;
  transform: scale(1.04);
}
.quick-icon-frame svg {
  width: 22px;
  height: 22px;
  display: block;
}
.quick-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quick-grid b,
.quick-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--bogsii-navy);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-grid small,
.quick-card-desc {
  color: #4A6572;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[dir="rtl"] .quick-card-text {
  text-align: right;
}

/* Sections & Page Layouts */
.page { padding: 80px 0; }
.section-head, .dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2, .dash-head h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--bogsii-navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}
.section-head p, .dash-head p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 680px;
}

/* Grids */
.doctor-grid, .article-grid, .media-grid, .feature-grid, .payment-grid, .topic-grid, .admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature, .doctor, .article, .media-card, .topic-card, .payment-card, .admin-card, .panel {
  background: var(--white);
  border: 1px solid var(--bogsii-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 18px -2px rgba(4, 99, 202, 0.05);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease;
}

/* Medical Service Cards with Somali Healthcare Photography */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
}

.service-card, .service {
  background: var(--white);
  border: 1px solid var(--bogsii-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px -2px rgba(4, 99, 202, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  height: 100%;
}
.service-card:hover, .service:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -4px rgba(4, 99, 202, 0.12);
  border-color: var(--bogsii-sky);
}
.service-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-card-image img {
  transform: scale(1.05);
}
.service-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
[dir="rtl"] .service-category-tag {
  left: auto;
  right: 12px;
}
.service-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.service-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--bogsii-navy);
  line-height: 1.35;
}
.service-card-desc {
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.service-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.service-fee-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service-fee-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.service-fee-amount {
  font-size: 16px;
  color: var(--bogsii-navy);
  font-weight: 800;
}
.service-fee-unspecified {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  background: transparent;
  padding: 0;
  border: none;
}
.service-cta-btn {
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  white-space: nowrap;
  background: var(--bogsii-subtle) !important;
  color: var(--bogsii-deep) !important;
  border: 1.5px solid var(--bogsii-light) !important;
  transition: all 0.2s ease;
}
.service-cta-btn:hover {
  background: var(--bogsii-primary) !important;
  color: #ffffff !important;
  border-color: var(--bogsii-primary) !important;
}

/* Feature Grid */
.feature span {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* Doctor Grid */
.doctor { text-align: center; display: flex; flex-direction: column; align-items: center; }
.doctor .avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}
.doctor h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.doctor span { color: var(--green); font-size: 13px; font-weight: 700; margin-bottom: 10px; display: block; }
.doctor p { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; flex: 1; }

/* Doctor Details */
.doctor-detail {
  display: grid;
  gap: 16px;
}
.doctor-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Articles & News */
.article { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.article-img {
  height: 140px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
}
.article-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.article-body > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.article-body h3 { margin: 8px 0; font-size: 17px; color: var(--navy); }
.article-body p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; flex: 1; }

/* Health A-Z Letter bar */
.topic-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.topic-letters a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
}
.topic-letters a:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Search bar */
.searchbar {
  display: flex;
  gap: 10px;
  max-width: 650px;
  margin: 20px 0;
}

/* Forms & Inputs */
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Auth Cards */
.auth {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

/* Dashboard Stats */
.dashboard { padding: 40px 0 60px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 32px;
}
.stats > div {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stats b, .stats span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.stats strong {
  display: block;
  font-size: 30px;
  color: var(--navy);
  margin: 4px 0;
  line-height: 1.1;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}
tbody tr:hover {
  background: #f8fafc;
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.status.confirmed, .status.published, .status.active, .status.verified {
  background: var(--green-light);
  color: var(--green);
}
.status.cancelled, .status.rejected, .status.expired, .status.inactive {
  background: var(--red-light);
  color: var(--red);
}
.status.pending, .status.under_review, .status.draft {
  background: var(--amber-light);
  color: var(--amber);
}

/* CTA */
.cta {
  background: var(--navy);
  color: #fff;
  padding: 60px 0;
}
.cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cta h2 { font-size: 34px; margin: 0 0 8px; }
.cta p { color: #94a3b8; margin: 0; font-size: 16px; }

/* =========================================================================
   PREMIUM REDESIGNED FOOTER (INTERNATIONAL HEALTHCARE DESIGN)
   ========================================================================= */
.site-footer, footer.footer {
  background: linear-gradient(180deg, var(--bogsii-navy) 0%, #061324 100%);
  color: #94a3b8;
  margin-top: 64px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main-wrap {
  padding: 68px 0 44px;
}

.footer-grid-bogsii {
  display: grid;
  grid-template-columns: 2.2fr 1.15fr 1.15fr 1.15fr 1.15fr 1.65fr;
  gap: 36px;
  align-items: start;
}

.footer-col-brand .footer-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand-logo {
  height: 46px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

.footer-brand-title h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.footer-brand-accent {
  color: var(--bogsii-sky);
}

.footer-brand-tagline {
  font-size: 10px;
  color: var(--bogsii-sky);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 22px;
  max-width: 320px;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--bogsii-deep);
  border-color: var(--bogsii-sky);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(4, 99, 202, 0.4);
}

.footer-social-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.footer-social-btn.yt:hover { background: #ff0000; border-color: #ff0000; }
.footer-social-btn.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: #d6249f; }

.footer-col-title {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
  position: relative;
  line-height: 1.3;
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bogsii-sky);
  margin-top: 8px;
  border-radius: 2px;
}

[dir="rtl"] .footer-col-title::after {
  margin-left: auto;
  margin-right: 0;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li {
  margin-bottom: 8px;
}

.footer-link-list a {
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 0;
}

.footer-link-list a:hover {
  color: #ffffff;
  transform: translateX(4px);
  text-decoration: none;
}

[dir="rtl"] .footer-link-list a:hover {
  transform: translateX(-4px);
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bogsii-sky);
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact-label {
  display: block;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
}
.footer-contact-link {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  line-height: 1.55;
  transition: color 0.15s ease;
}
.footer-contact-link:hover {
  color: var(--bogsii-sky) !important;
  text-decoration: underline;
}

.footer-lang-selector {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-lang-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-lang-heading svg {
  color: var(--bogsii-sky);
}
.footer-lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-lang-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 11px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}
.footer-lang-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.footer-lang-pill.active {
  background: var(--bogsii-deep);
  color: #ffffff;
  border-color: var(--bogsii-sky);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(4, 99, 202, 0.35);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 10, 20, 0.45);
  padding: 20px 0;
  font-size: 12.5px;
  color: #64748b;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-left {
  color: #94a3b8;
  font-size: 12.5px;
}

.footer-bottom-center, .footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}
.footer-bottom-center svg, .footer-bottom-right svg {
  color: var(--bogsii-sky);
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .footer-grid-bogsii {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 24px;
    margin-bottom: 6px;
  }
  .footer-col-brand .footer-brand-desc {
    max-width: 520px;
    margin-bottom: 0;
  }
  .footer-col-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 6px;
  }
  .footer-col-contact .footer-lang-selector {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

@media (max-width: 768px) {
  .footer-grid-bogsii {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-col-brand {
    flex-direction: column;
  }
  .footer-col-contact {
    grid-template-columns: 1fr;
  }
  .footer-link-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-lang-pill {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 12.5px;
  }
}

@media (max-width: 520px) {
  .footer-main-wrap {
    padding: 48px 0 36px;
  }
  .footer-grid-bogsii {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col-brand {
    grid-column: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
  }
  .footer-col-contact {
    grid-column: 1;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-center, .footer-bottom-right {
    justify-content: center;
  }
}

/* Floating WhatsApp button */
.wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #25d366;
  color: #fff;
  padding: 13px 20px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(37,211,102,.35);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wa:hover {
  transform: scale(1.05);
  background: #20ba5a;
}

/* Responsive Media Queries */
/* Responsive Media Queries */
@media (max-width: 1024px) {
  .brand strong, .brand .brand-name { font-size: 19px; white-space: nowrap; }
  .brand span, .brand .brand-tagline { font-size: 9.5px; letter-spacing: 0.14em; white-space: nowrap; }
  .page { padding: 60px 0; }
  .hero { padding: 60px 0 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 380px; max-height: 460px; aspect-ratio: 16 / 10; }
  .hero-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }
  .hero-search-field.field-keyword { grid-column: 1 / 2; }
  .hero-search-field.field-specialty { grid-column: 2 / 3; }
  .hero-search-field.field-country { grid-column: 1 / 2; }
  .hero-search-field.field-city { grid-column: 2 / 3; }
  .hero-search-btn {
    grid-column: 1 / -1;
    width: 100%;
    height: 48px;
  }
  .service-grid, .doctor-grid, .article-grid, .media-grid, .feature-grid, .payment-grid, .topic-grid, .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page { padding: 46px 0; }
  .topbar { display: none; }
  .header { height: 68px; }
  .header-inner { position: relative; }
  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    color: var(--ink);
  }
  
  .brand { gap: 8px; }
  .brand img, .brand-logo-img { height: 42px; max-width: 52px; }
  .brand strong, .brand .brand-name { font-size: 17.5px; white-space: nowrap; }
  .brand span, .brand .brand-tagline { font-size: 9px; letter-spacing: 0.12em; white-space: nowrap; }

  /* Slim Mobile Off-Canvas Drawer (min 320px / max 82vw) with Sharp Stacking Context */
  body.nav-open .header {
    z-index: 10001 !important;
  }

  .header nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: clamp(280px, 82vw, 320px);
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px 24px;
    box-shadow: 14px 0 45px rgba(15, 23, 42, 0.28);
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 10002 !important;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
  }

  body.nav-open .header nav {
    transform: translateX(0);
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999 !important;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden !important;
  }

  [dir="rtl"] .header nav {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -14px 0 45px rgba(15, 23, 42, 0.28);
    text-align: right;
  }

  [dir="rtl"] body.nav-open .header nav {
    transform: translateX(0);
  }

  /* Mobile Drawer Header & Close Button */
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .mobile-nav-brand {
    display: flex;
    flex-direction: column;
  }
  .mobile-nav-brand .brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
  }
  .mobile-nav-brand .brand-accent {
    color: var(--blue);
  }
  .mobile-nav-brand .brand-tagline {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--muted);
  }
  .mobile-nav-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
  }
  .mobile-nav-close:hover,
  .mobile-nav-close:active {
    background: #e2e8f0;
    color: var(--blue);
  }

  /* Mobile Nav Links (Touch target >= 44px) */
  .header nav > a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    color: var(--ink);
    border: 1px solid transparent;
    transition: all .15s ease;
  }
  .header nav > a:hover,
  .header nav > a.active {
    color: var(--blue);
    background: var(--blue-light);
    border-color: #bfdbfe;
  }

  /* Mobile Nav Group & Accordion */
  .nav-group {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-group > button {
    padding: 12px 14px;
    justify-content: space-between;
    min-height: 44px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f8fafc;
    width: 100%;
    display: flex;
    align-items: center;
    transition: all .15s ease;
  }
  .nav-group.active > button,
  .nav-group.open > button {
    color: var(--blue);
    background: var(--blue-light);
    border-color: #bfdbfe;
  }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid var(--line);
    margin: 4px 0 8px 10px;
    padding: 6px;
    border-radius: 8px;
    display: none;
  }
  .nav-group.open .nav-dropdown,
  .nav-group.active .nav-dropdown {
    display: grid !important;
  }
  .nav-dropdown.wide {
    min-width: 0 !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }
  [dir="rtl"] .nav-dropdown {
    margin: 4px 10px 8px 0;
  }
  .nav-dropdown a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 13.5px;
    border-radius: 6px;
    color: var(--ink);
    border: 1px solid transparent;
  }
  .nav-dropdown a.active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 700;
    border-color: #bfdbfe;
  }

  /* Mobile Drawer Footer */
  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
  }
  .mobile-nav-footer .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .actions .btn { display: none; }
  
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.15; }
  .hero p, .hero-description { font-size: 15px; margin-bottom: 20px; line-height: 1.6; }
  .hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .hero-search-field,
  .hero-search-field.field-keyword,
  .hero-search-field.field-specialty,
  .hero-search-field.field-country,
  .hero-search-field.field-city,
  .hero-search-input,
  .hero-search-select,
  .hero-search-btn {
    width: 100% !important;
    min-width: 100% !important;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .hero-visual { min-height: 300px; max-height: 380px; aspect-ratio: 4 / 3; border-radius: 20px; }

  .service-grid, .doctor-grid, .article-grid, .media-grid, .feature-grid, .payment-grid, .topic-grid, .admin-grid, .quick-grid, .two, .stats, .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta .container { flex-direction: column; text-align: center; }
}

/* Slot Chips */
.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.slot-chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all .15s ease;
}
.slot-chip:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
.slot-chip.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(21,101,192,.3);
}

/* Rx Templates */
.rx-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.rx-template-btn {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.rx-template-btn:hover {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green-border);
}

/* ==========================================================================
   SOMTELEMED OFFICIAL SOCIAL MEDIA & BRAND VISUAL SYSTEM
   ========================================================================== */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,.15);
  color: #fff !important;
}
.social-btn.youtube { background: #FF0000; }
.social-btn.facebook { background: #1877F2; }
.social-btn.tiktok { background: #000000; border: 1px solid #333; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icon-only svg { width: 18px; height: 18px; fill: currentColor; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
  text-decoration: none;
  color: var(--ink);
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.social-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.social-card-icon.youtube { background: #FF0000; }
.social-card-icon.facebook { background: #1877F2; }
.social-card-icon.tiktok { background: #000000; }
.social-card-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-card-icon svg { width: 22px; height: 22px; fill: currentColor; }

/* -------------------------------------------------------------
 * Announcement Top Banners
 * ------------------------------------------------------------- */
.announcement-banner {
  padding: 6px 16px;
  font-size: 13px;
  color: #fff;
  position: relative;
  z-index: 60;
}
.announcement-banner.banner-info { background: linear-gradient(90deg, #1e40af, #2563eb); }
.announcement-banner.banner-warning { background: linear-gradient(90deg, #b45309, #d97706); }
.announcement-banner.banner-emergency { background: linear-gradient(90deg, #991b1b, #dc2626); }
.announcement-banner.banner-promo { background: linear-gradient(90deg, #065f46, #059669); }

/* -------------------------------------------------------------
 * CMS Theme Manager & Live Sandbox
 * ------------------------------------------------------------- */
.cms-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.cms-color-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cms-color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cms-color-picker-row input[type="color"] {
  width: 44px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}
.cms-color-picker-row input[type="text"] {
  font-family: monospace;
  font-size: 14px;
  text-transform: uppercase;
  flex: 1;
}
.cms-preset-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cms-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s ease;
}
.cms-preset-btn:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.cms-preset-dots {
  display: inline-flex;
  gap: 3px;
}
.cms-preset-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.cms-preview-box {
  background: var(--bg);
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
}

/* -------------------------------------------------------------
 * Media Library Grid & Picker Modal
 * ------------------------------------------------------------- */
.media-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.media-card-admin {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .2s ease;
}
.media-card-admin:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.media-card-thumb {
  height: 130px;
  width: 100%;
  object-fit: cover;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.media-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.media-card-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-card-meta {
  font-size: 11px;
  color: var(--muted);
}
.media-picker-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.media-picker-content {
  background: #fff;
  width: min(900px, 96%);
  max-height: 85vh;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.media-picker-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.media-picker-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* -------------------------------------------------------------
 * Section Builder & Draggable Rows
 * ------------------------------------------------------------- */
.section-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all .15s ease;
}
.section-item-row:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.section-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-order-badge {
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: var(--navy);
}

/* -------------------------------------------------------------
 * Multi-Step Patient Registration & Payment Verification
 * ------------------------------------------------------------- */
.reg-container {
  max-width: 680px;
  margin: 36px auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.reg-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3b66 100%);
  color: #ffffff;
  padding: 28px 32px 20px;
  text-align: center;
}
.reg-header .eyebrow {
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.reg-header h1 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.reg-header p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

/* Stepper Progress Indicator */
.stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  flex: 1;
  text-align: center;
  min-width: 70px;
}
.stepper-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}
.stepper-step.completed:not(:last-child)::after {
  background: var(--green);
}
.stepper-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  z-index: 2;
  transition: all .2s ease;
}
.stepper-step.active .stepper-circle {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.18);
}
.stepper-step.completed .stepper-circle {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}
.stepper-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.stepper-step.active .stepper-label {
  color: var(--blue);
  font-weight: 800;
}
.stepper-step.completed .stepper-label {
  color: var(--green);
}

.reg-body {
  padding: 32px;
}

/* Consultation / Doctor Selection Summary Badge */
.consult-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  margin-bottom: 24px;
}
.consult-doc-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.consult-doc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #86efac;
}
.consult-doc-meta strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
}
.consult-doc-meta span {
  font-size: 12.5px;
  color: #15803d;
  font-weight: 600;
}
.consult-fee-badge {
  text-align: right;
}
.consult-fee-badge span {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}
.consult-fee-badge strong {
  font-size: 20px;
  color: #166534;
  font-weight: 900;
}

/* 6-Provider Payment Selection Grid */
.payment-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.payment-provider-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
}
.payment-provider-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.12);
  transform: translateY(-2px);
}
.payment-provider-card:focus-visible {
  outline: 3px solid var(--blue);
}
.provider-logo-wrap {
  width: 72px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}
.provider-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.provider-info strong {
  display: block;
  font-size: 15.5px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
}
.provider-info span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.provider-card-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #94a3b8;
  transition: transform .2s ease;
}
.payment-provider-card:hover .provider-card-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* Expanded Payment Details Box */
.payment-detail-box {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 18px;
  padding: 26px;
  margin: 20px 0 26px;
}
.pay-dest-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
}
.pay-dest-number {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
}
.btn-copy-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}
.btn-copy-action:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}
.btn-copy-action.copied {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

/* 3-Minute Live Verification Timer Card */
.timer-container-card {
  text-align: center;
  padding: 36px 24px;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
}
.timer-radial-pulse {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #eff6ff 0%, #dbeafe 100%);
  border: 4px solid var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(21, 101, 192, 0.08);
  animation: timerPulse 2s infinite;
}
@keyframes timerPulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.25); }
  70% { box-shadow: 0 0 0 18px rgba(21, 101, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0); }
}
.timer-clock-digits {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 2px;
  line-height: 1;
}
.timer-sublabel {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 4px;
}
.attempt-tracker-pill {
  display: inline-block;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 16px;
}

/* OTP 6-Digit Inputs */
.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.otp-single-digit {
  width: 48px;
  height: 58px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--navy);
}
.otp-single-digit:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
  outline: none;
}

/* ============================================================
   CLINICAL TRIAGE & PRIORITY SYSTEM
   ============================================================ */
.badge-triage-emergency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-triage-urgent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-triage-routine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================================
   DOCTOR CLINICAL WORKSPACE
   ============================================================ */
.workspace-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }
}
.workspace-queue-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .15s ease;
}
.workspace-queue-card:hover, .workspace-queue-card.active {
  border-color: var(--blue);
  background: #f0f7ff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.clinical-step-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.clinical-step-tab {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: #f1f5f9;
  border: 1px solid transparent;
  white-space: nowrap;
}
.clinical-step-tab.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue-hover);
}

/* ============================================================
   BED & OBSERVATION WARD MANAGEMENT
   ============================================================ */
.bed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.bed-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 18px;
  background: #ffffff;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.bed-card.available {
  border-top: 4px solid #10b981;
}
.bed-card.occupied {
  border-top: 4px solid #e11d48;
}
.bed-card.reserved {
  border-top: 4px solid #f59e0b;
}
.bed-card.maintenance {
  border-top: 4px solid #64748b;
}

/* ============================================================
   INTERACTIVE 5-STAR RATING WIDGET
   ============================================================ */
.star-rating-group {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.star-rating-group input {
  display: none;
}
.star-rating-group label {
  font-size: 24px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color .15s ease;
}
.star-rating-group input:checked ~ label,
.star-rating-group label:hover,
.star-rating-group label:hover ~ label {
  color: #f59e0b;
}

/* ============================================================
   QR & DOCUMENT VERIFICATION
   ============================================================ */
.qr-verify-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11px;
  font-family: monospace;
  color: var(--muted);
}
.qr-badge-verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   SKELETON LOADERS & EMPTY STATES
   ============================================================ */
.empty-state-box {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  color: var(--muted);
}
.empty-state-icon {
  font-size: 42px;
  margin-bottom: 12px;
  opacity: 0.8;
}
.skeleton-pulse {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   GLOBAL PRINT OPTIMIZATIONS
   ============================================================ */
@media print {
  .no-print,
  header.header,
  footer.footer,
  .portal-sidebar,
  .sidebar,
  a.wa,
  .notif-bell-btn,
  .announcement-banner,
  .cart-drawer-overlay,
  .cart-floating-btn {
    display: none !important;
  }
}

/* ============================================================
   SPECIAL PRODUCTS & HEALTH ESSENTIALS DESIGN SYSTEM
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--bogsii-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  box-shadow: 0 4px 18px -2px rgba(4, 99, 202, 0.05);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -4px rgba(4, 99, 202, 0.12);
  border-color: var(--bogsii-sky);
}

.product-card-img-wrap {
  height: 180px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--bogsii-subtle);
  padding: 14px;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card-img {
  transform: scale(1.03);
}

.product-tag-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  z-index: 2;
}

.product-tag-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  z-index: 2;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--bogsii-navy);
  margin: 0 0 6px;
  line-height: 1.35;
}
.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.product-title a:hover {
  color: var(--bogsii-deep);
}
.product-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.product-price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--bogsii-navy);
}
.product-price-old {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-stock-tag {
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

.product-actions {
  display: flex;
  gap: 8px;
}
.product-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
  font-weight: 700;
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
}
.category-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.category-pill:hover,
.category-pill.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}

/* Floating Cart Button */
.cart-floating-btn {
  position: fixed;
  bottom: 84px;
  right: 24px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(9, 30, 54, 0.25);
  cursor: pointer;
  z-index: 99;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cart-floating-btn:hover {
  transform: translateY(-3px);
  background: var(--blue);
}
.cart-floating-count {
  background: #dc2626;
  color: #ffffff;
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  padding: 0 5px;
}

/* Slide-over Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 94vw);
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}
.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}
.cart-drawer-header h2 {
  margin: 0;
  font-size: 17px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-drawer-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.cart-drawer-close:hover {
  background: #e2e8f0;
  color: var(--ink);
}
.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.cart-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #f8fafc;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.cart-item-info {
  flex-grow: 1;
}
.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.3;
}
.cart-item-price {
  font-size: 13px;
  color: var(--blue);
  font-weight: 800;
}
.cart-item-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}
.cart-item-qty-btn {
  background: #f8fafc;
  border: none;
  padding: 2px 8px;
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}
.cart-item-qty-btn:hover {
  background: #e2e8f0;
}
.cart-item-qty-num {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}
.cart-item-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}
.cart-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

/* =========================================================================
   MEDICAL MAIN SPECIALTIES (DR KURTUN POLYCLINIC / SOMTELEMED)
   ========================================================================= */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.specialty-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: var(--blue-border);
}

.specialty-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.specialty-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0f7ff;
  border: 1.5px solid #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.specialty-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.specialty-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.specialty-badge.telemed {
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.specialty-badge.docs {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.specialty-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.35;
}

.specialty-card-title-en {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 10px;
}

.specialty-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.specialty-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
  font-size: 12.5px;
}

.specialty-fee {
  font-weight: 800;
  color: var(--blue);
  font-size: 14px;
}

.specialty-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.specialty-card-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 12.5px;
}

/* =========================================================================
   SOMTELEMED GLOBAL HEALTHCARE NETWORK & FACILITIES STYLES
   ========================================================================= */

/* Verified Badges */
.verified-badge-doctor,
.verified-badge-facility {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.verified-badge-facility {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.affiliation-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* Facilities Grid & Cards */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.facility-card {
  background: var(--white);
  border: 1px solid var(--bogsii-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  box-shadow: 0 4px 18px -2px rgba(4, 99, 202, 0.05);
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -4px rgba(4, 99, 202, 0.12);
  border-color: var(--bogsii-sky);
}

.facility-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.facility-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 4px;
  flex-shrink: 0;
}

.facility-card-title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 3px;
  line-height: 1.3;
}

.facility-card-type {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.facility-card-location {
  font-size: 12.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.facility-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.facility-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.facility-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.facility-card-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 12.5px;
}

/* Modern Doctor Cards */
.doctor-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.doctor-card-modern {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.doctor-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: var(--blue-border);
}

.doctor-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.doctor-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  background: #f8fafc;
}

.doctor-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 2px;
  line-height: 1.3;
}

.doctor-card-specialty {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.doctor-card-facility {
  font-size: 12px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.doctor-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
  font-size: 12px;
  color: #64748b;
}

/* Global Hero Search */
.global-hero-search {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 24px auto 0;
}

.global-hero-search .search-input-col {
  flex: 2;
  min-width: 220px;
  position: relative;
}

.global-hero-search .search-input-col input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.global-hero-search .search-select-col {
  flex: 1;
  min-width: 160px;
  border-left: 1px solid #e2e8f0;
  padding-left: 10px;
}

.global-hero-search .search-select-col select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 6px;
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
}

.global-hero-search .btn-search {
  background: #1565c0;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.global-hero-search .btn-search:hover {
  background: #0d47a1;
}

/* Compliance Disclaimer Card (Professional & Modern Medical Styling) */
.compliance-disclaimer-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1565c0;
  border-radius: 14px;
  padding: 22px 26px;
  margin: 32px 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.compliance-disclaimer-card .disclaimer-icon-badge,
.compliance-disclaimer-card .disclaimer-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.compliance-disclaimer-card .disclaimer-body {
  flex: 1;
  min-width: 0;
}

.compliance-disclaimer-card .disclaimer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.compliance-disclaimer-card .disclaimer-title,
.compliance-disclaimer-card h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.compliance-disclaimer-card .disclaimer-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.compliance-disclaimer-card .disclaimer-text,
.compliance-disclaimer-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 10px;
  font-family: inherit;
}

.compliance-disclaimer-card .disclaimer-meta,
.compliance-disclaimer-card small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  margin-top: 6px;
  font-family: inherit;
}

@media (max-width: 640px) {
  .compliance-disclaimer-card {
    flex-direction: column;
    padding: 18px 20px;
    gap: 14px;
  }
}

/* Featured Healthcare Facilities Section */
.featured-facilities-section {
  background: #f8fafc;
  padding: 56px 0;
  border-bottom: 1px solid #e2e8f0;
}
.facility-preview-track-wrap {
  position: relative;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.facility-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.facility-preview-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.facility-preview-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.facility-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.facility-preview-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 12px;
  padding: 6px;
  border: 1px solid #dbeafe;
}
.facility-preview-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.facility-preview-type {
  font-size: 11px;
  font-weight: 800;
  color: #1565c0;
  background: rgba(21, 101, 192, 0.08);
  border: 1px solid rgba(21, 101, 192, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.facility-preview-name {
  font-size: 17px;
  font-weight: 800;
  color: #091e36;
  margin: 0 0 6px;
  line-height: 1.3;
}
.facility-preview-name a {
  color: inherit;
  text-decoration: none;
}
.facility-preview-name a:hover {
  color: #1565c0;
}
.facility-preview-loc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}
.facility-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
}
.facility-preview-docs {
  font-weight: 700;
  color: #16a34a;
}
.facility-preview-btn {
  font-weight: 800;
  color: #1565c0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.facility-preview-btn:hover {
  gap: 8px;
}

/* ====================================================================
   ARABIC RTL FOUNDATION (dir="rtl")
   ==================================================================== */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .header-inner,
[dir="rtl"] .brand,
[dir="rtl"] nav,
[dir="rtl"] .nav-group,
[dir="rtl"] .actions,
[dir="rtl"] .footer-grid,
[dir="rtl"] .card,
[dir="rtl"] .portal-layout {
  direction: rtl;
}

[dir="rtl"] .portal-sidebar {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.1);
}

[dir="rtl"] .sidebar-nav a {
  text-align: right;
  flex-direction: row;
}

[dir="rtl"] .sidebar-nav a span {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .sidebar-group-toggle {
  text-align: right;
  flex-direction: row;
}

[dir="rtl"] .sidebar-group:not(.is-open) .group-chevron {
  transform: rotate(90deg);
}

[dir="rtl"] .sidebar-nav a:hover {
  transform: translateX(-3px);
}

[dir="rtl"] .portal-sidebar.collapsed .sidebar-nav a:hover {
  transform: none;
}

[dir="rtl"] .portal-mobile-bar {
  direction: rtl;
}

[dir="rtl"] .nav-dropdown {
  left: auto;
  right: 0;
  text-align: right;
}

[dir="rtl"] .search-trigger-btn,
[dir="rtl"] .cart-trigger-btn,
[dir="rtl"] .notif-bell-btn {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  text-align: right;
}

[dir="rtl"] .table th,
[dir="rtl"] .table td {
  text-align: right;
}

[dir="rtl"] .badge {
  direction: rtl;
}

/* Language Dropdown System */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.lang-dropdown-menu.show {
  display: block !important;
  animation: fadeInDown 0.18s ease-out;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-dropdown-menu a:hover {
  background: #E6F3FC !important;
  color: #0487E2 !important;
}
[dir="rtl"] .lang-dropdown-menu {
  right: auto !important;
  left: 0 !important;
  text-align: right !important;
}

/* ==========================================================================
   BOGSII PATIENT DOSSIER & EMR CLINICAL RECORD STYLES (QA-05)
   ========================================================================== */
.dossier-hero {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}
.dossier-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.dossier-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dossier-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E6F3FC;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  border: 2px solid var(--blue-light);
  flex-shrink: 0;
}
.dossier-name-box h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-deep);
}
.dossier-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dossier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.dossier-badge.mrn { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.dossier-badge.blood { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dossier-badge.gender { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.dossier-badge.active { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
.dossier-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dossier-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.dossier-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dossier-meta-item strong {
  color: var(--ink);
  font-size: 13.5px;
}

/* Dossier KPI Grid */
.dossier-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.dossier-kpi-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 3.5px solid var(--blue);
}
.dossier-kpi-card b {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dossier-kpi-card strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 4px 0;
}
.dossier-kpi-card span {
  font-size: 11.5px;
  color: #64748b;
}

/* Dossier Tab Navigation */
.dossier-tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.dossier-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
  text-decoration: none;
}
.dossier-tab-btn:hover {
  background: #E6F3FC;
  color: var(--blue);
  border-color: var(--blue-light);
}
.dossier-tab-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 2px 6px rgba(4, 135, 226, 0.25);
}
.dossier-tab-btn .tab-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
}
.dossier-tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Dossier Panes */
.dossier-tab-pane {
  display: none;
}
.dossier-tab-pane.active {
  display: block;
  animation: fadeInDossierPane 0.18s ease-out;
}
@keyframes fadeInDossierPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clinical Timeline */
.clinical-timeline {
  position: relative;
  padding: 10px 0 20px 32px;
}
.clinical-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 12px;
  width: 2.5px;
  background: #cbd5e1;
}
.timeline-item {
  position: relative;
  margin-bottom: 22px;
}
.timeline-icon {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 1;
}
.timeline-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.timeline-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
}
.timeline-time {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.timeline-provider {
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-details {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

/* Vitals Highlight Strip */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.vitals-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}
.vitals-box.alert {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.vitals-box .vital-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 4px 0 2px 0;
}
.vitals-box.alert .vital-val {
  color: #be123c;
}
.vitals-box .vital-lbl {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.vitals-box .vital-unit {
  font-size: 10.5px;
  color: #64748b;
}

/* Dossier Empty State */
.dossier-empty {
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  color: var(--muted);
}
.dossier-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.dossier-empty h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--navy-deep);
}
.dossier-empty p {
  margin: 0;
  font-size: 13px;
}

/* RTL Support */
[dir="rtl"] .clinical-timeline {
  padding: 10px 32px 20px 0;
}
[dir="rtl"] .clinical-timeline::before {
  left: auto;
  right: 12px;
}
[dir="rtl"] .timeline-icon {
  left: auto;
  right: -32px;
}
[dir="rtl"] .dossier-hero-top {
  direction: rtl;
}
[dir="rtl"] .dossier-meta-grid {
  direction: rtl;
}
[dir="rtl"] .dossier-tabs-bar {
  direction: rtl;
}

/* Print Overrides */
@media print {
  .no-print, .header, .portal-sidebar, .portal-mobile-bar, .dossier-tabs-bar, .dossier-actions {
    display: none !important;
  }
  .portal-layout, .portal-main, .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .dossier-hero {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

/* =========================================================================
   BOGSII SHARED CARD SYSTEM & HOMEPAGE VISUAL FOUNDATIONS
   ========================================================================= */
.bogsii-card,
.facility-card-item,
.trust-testimonial-card,
.health-hub-card {
  background: var(--white);
  border: 1px solid var(--bogsii-light);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px -2px rgba(4, 99, 202, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.bogsii-card:hover,
.facility-card-item:hover,
.trust-testimonial-card:hover,
.health-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -4px rgba(4, 99, 202, 0.12);
  border-color: var(--bogsii-sky);
}

.section-head-bogsii {
  margin-bottom: 36px;
}
.section-head-bogsii h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--bogsii-navy);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.section-head-bogsii p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

/* Facility Card Elements */
.facility-card-item {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.facility-card-logo-frame {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--bogsii-light);
  background: var(--white);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(4, 99, 202, 0.04);
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.facility-card-item:hover .facility-card-logo-frame {
  transform: scale(1.04);
  border-color: var(--bogsii-sky);
}

.facility-chip {
  background: var(--bogsii-subtle);
  color: var(--bogsii-deep);
  border: 1px solid var(--bogsii-light);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.facility-badge-verified {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: 6px;
}

.facility-badge-registered {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
}

.facility-cta,
.service-cta-btn {
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .facility-cta,
  .service-cta-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* =========================================================================
   HOME-UX-01 VISUAL PHASE 4: TRUST & PILLARS REFINEMENT
   ========================================================================= */
.trust-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.trust-subhead-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bogsii-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--bogsii-deep);
}
.trust-subhead-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--bogsii-navy);
  margin: 0;
  letter-spacing: -0.01em;
}
.trust-subhead-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
}

.trust-pillar-card {
  background: var(--white);
  border: 1px solid var(--bogsii-light);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 18px -2px rgba(4, 99, 202, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.trust-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(4, 99, 202, 0.10);
  border-color: var(--bogsii-sky);
}
.trust-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bogsii-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  border: 1px solid #d0e4f7;
}
.trust-pillar-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--bogsii-navy);
  margin: 0 0 6px;
  line-height: 1.35;
}
.trust-pillar-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.trust-badge-verified {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 2.5px 8px;
  border-radius: 6px;
}

/* =========================================================================
   HOME-UX-01 VISUAL PHASE 5: HEALTH HUB ARTICLE SHOWCASE
   ========================================================================= */
.health-hub-showcase-section {
  padding: 60px 0;
}
.health-hub-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.health-hub-img-frame {
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bogsii-subtle);
  border: 1px solid var(--bogsii-light);
}
.health-hub-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.health-hub-card:hover .health-hub-img-frame img {
  transform: scale(1.03);
}
.health-hub-placeholder-frame {
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bogsii-subtle) 0%, #dbeafe 100%);
  border: 1px solid var(--bogsii-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.health-hub-cat-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--bogsii-deep);
  text-transform: uppercase;
  background: var(--bogsii-subtle);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--bogsii-light);
  letter-spacing: 0.04em;
}
.health-hub-date {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}
.health-hub-title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--bogsii-navy);
  margin: 0 0 8px;
  line-height: 1.4;
}
.health-hub-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.health-hub-title a:hover {
  color: var(--bogsii-deep);
}
.health-hub-summary {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.health-hub-footer-row {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.health-hub-guide-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.health-hub-cta-btn {
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
}
@media (max-width: 768px) {
  .health-hub-cta-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* =========================================================================
   FEATURED FACILITIES GRID & TRUST METRICS
   ========================================================================= */
.featured-facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 390px));
  gap: 24px;
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
  margin-bottom: 40px;
}
.trust-stat-card {
  background: var(--white);
  border: 1px solid var(--bogsii-light);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 18px -2px rgba(4, 99, 202, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.trust-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(4, 99, 202, 0.10);
  border-color: var(--bogsii-sky);
}
.trust-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--bogsii-deep);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.trust-stat-label {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--bogsii-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.trust-stat-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}
.trust-subhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 20px;
}
.trust-subhead-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bogsii-subtle);
  border: 1px solid #d0e4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bogsii-deep);
  flex-shrink: 0;
}
.trust-subhead-icon svg {
  width: 20px;
  height: 20px;
}
.trust-subhead-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--bogsii-navy);
  margin: 0;
  line-height: 1.3;
}
.trust-subhead-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
}
.trust-pillar-icon svg {
  width: 22px;
  height: 22px;
  color: var(--bogsii-deep);
}
.homepage-compliance-section {
  background: #f8fafc;
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
}
.homepage-compliance-section .compliance-disclaimer-card {
  margin: 0;
}
@media (max-width: 900px) {
  .trust-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .trust-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   SERVICES-UX-02 Phase 2B: Service Cards & Visual Asset System
   ========================================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.svc-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(9, 30, 54, 0.13);
  border-color: #bfdbfe;
}
.svc-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a2540;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.svc-card:hover .svc-card-img {
  transform: scale(1.04);
}
.svc-fallback-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-svg-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.svc-tele-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.svc-tele-badge--avail {
  background: rgba(2, 132, 199, 0.95);
  color: #ffffff;
  backdrop-filter: blur(4px);
}
.svc-tele-badge--clinic {
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  backdrop-filter: blur(4px);
}
[dir="rtl"] .svc-tele-badge {
  right: auto;
  left: 10px;
}
.svc-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.svc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.svc-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0487e2;
  background: #eff6ff;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}
.svc-cat-badge svg {
  flex-shrink: 0;
}
.svc-price {
  font-size: 14px;
  font-weight: 800;
  color: #059669;
}
.svc-price small {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.svc-price--free {
  color: #64748b;
  font-weight: 700;
}
.svc-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #091e36;
  margin: 0 0 8px;
  line-height: 1.35;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.svc-btn-outline,
.svc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
  box-sizing: border-box;
}
.svc-btn-outline {
  color: #0a2540;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
}
.svc-btn-outline:hover {
  background: #f8fafc;
  border-color: #0487e2;
  color: #0487e2;
}
.svc-btn-outline:focus-visible {
  outline: 2px solid #0487e2;
  outline-offset: 2px;
}
.svc-btn-primary {
  background: #0487e2;
  color: #ffffff;
  border: 1.5px solid #0487e2;
}
.svc-btn-primary:hover {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff;
}
.svc-btn-primary:focus-visible {
  outline: 2px solid #0487e2;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .svc-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
[dir="rtl"] .svc-card-meta {
  flex-direction: row-reverse;
}
[dir="rtl"] .svc-card-actions {
  flex-direction: row-reverse;
}

/* =========================================================================
   SERVICES-UX-02 Phase 2C: Search, Filter, Live Counter & Empty State
   ========================================================================= */
.svc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 28px;
  flex-wrap: wrap;
}
.svc-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
  display: flex;
  align-items: center;
}
.svc-search-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.svc-search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 42px 10px 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  color: #091e36;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  outline: none;
}
.svc-search-input::-webkit-search-cancel-button {
  display: none;
}
.svc-search-input:hover {
  border-color: #94a3b8;
}
.svc-search-input:focus,
.svc-search-input:focus-visible {
  border-color: #0487e2;
  box-shadow: 0 0 0 3px rgba(4, 135, 226, 0.18);
  outline: 2px solid #0487e2;
  outline-offset: 1px;
}
.svc-search-clear {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  box-sizing: border-box;
}
.svc-search-clear:hover {
  background: #e2e8f0;
  color: #091e36;
}
.svc-search-clear:focus-visible {
  outline: 2px solid #0487e2;
  outline-offset: 2px;
}
.svc-search-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-search-count {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
}
.svc-search-empty {
  text-align: center;
  padding: 56px 20px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  margin: 24px 0 36px;
  width: 100%;
  box-sizing: border-box;
}
.svc-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #ebf5fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0487e2;
}
.svc-empty-title {
  color: #091e36;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.svc-empty-desc {
  color: #64748b;
  margin: 0 0 20px;
  font-size: 14px;
}
.svc-btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  max-width: 240px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .svc-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 16px 0 20px;
  }
  .svc-search-box {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .svc-search-meta {
    justify-content: flex-start;
  }
}
[dir="rtl"] .svc-toolbar {
  flex-direction: row-reverse;
}
[dir="rtl"] .svc-search-icon {
  left: auto;
  right: 14px;
}
[dir="rtl"] .svc-search-clear {
  right: auto;
  left: 8px;
}
[dir="rtl"] .svc-search-input {
  text-align: right;
}

/* ==========================================================================
   CMS Authoring RTL & Localization Styles (CMS-UX-01 Phase 3 Step 3)
   ========================================================================== */
.cms-lang-pills a {
  transition: background 0.15s ease, color 0.15s ease;
}
.cms-lang-pills a:hover {
  background: rgba(4, 99, 164, 0.15);
}
[dir="rtl"] .cms-lang-pills {
  direction: ltr; /* keep language pills in uniform sequence SO | EN | AR | SW | AM */
}
[dir="rtl"] .page h1 span[dir="auto"],
[dir="rtl"] .panel [dir="auto"] {
  text-align: right;
}
[dir="rtl"] .table-wrap table th,
[dir="rtl"] .table-wrap table td {
  text-align: right;
}
[dir="rtl"] .table-wrap table th:last-child,
[dir="rtl"] .table-wrap table td:last-child {
  text-align: left;
}
[dir="rtl"] .cms-preview-banner {
  border-left: 1.5px solid #fef3c7 !important;
  border-right: 5px solid #f59e0b !important;
}
[dir="rtl"] input[dir="ltr"] {
  text-align: left !important;
  direction: ltr !important;
}

/* ==========================================================================
   CMS Public Health Hub RTL & Bi-directional Presentation (Phase 3 Step 5C)
   ========================================================================== */
.cms-lang-filter-pills {
  direction: ltr; /* keep language filter pills in uniform order */
}
.cms-article-content[dir="auto"],
.cms-news-content[dir="auto"] {
  text-align: start;
}
[dir="rtl"] .media-card,
[dir="rtl"] .article-body {
  text-align: right;
}
[dir="rtl"] .media-card small,
[dir="rtl"] .article-body small {
  text-align: right;
}
.cms-article-content img,
.cms-news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.cms-article-content blockquote,
.cms-news-content blockquote {
  border-inline-start: 4px solid var(--blue, #0463A4);
  padding-inline-start: 16px;
  margin: 16px 0;
  color: #475569;
  font-style: italic;
}

/* ==========================================================================
   CMS Public Health Hub Facility Attribution (Phase 3 Step 5D)
   ========================================================================== */
.facility-badge svg,
.facility-attribution svg {
  flex-shrink: 0;
}
.facility-badge {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.facility-attribution {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  flex-wrap: wrap;
}


