/* سايتوتك الإمارات — Design System */

/* Self-hosted Tajawal (same-origin) — avoids Google Fonts flash on hosted pages */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tajawal-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tajawal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/tajawal-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/tajawal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/tajawal-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/tajawal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/tajawal-800-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/tajawal-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #0B4A8B;
  --primary-dark: #08386B;
  --secondary: #1B8F6A;
  --secondary-dark: #147354;
  --primary-rgb: 11, 74, 139;
  --secondary-rgb: 27, 143, 106;
  --background: #F7FAFC;
  --text: #1E293B;
  --text-light: #64748B;
  --border: #E8F3EF;
  --white: #FFFFFF;
  --surface: #FFFFFF;

  /* Legacy aliases used throughout the current components. */
  --primary-blue: var(--primary);
  --secondary-blue: var(--primary-dark);
  --medical-teal: var(--secondary);
  --fresh-teal: var(--secondary);
  --leaf-green: var(--secondary-dark);
  --light-bg: var(--background);
  --text-main: var(--text);
  --text-muted: var(--text-light);
  --shadow-sm: 0 2px 8px rgba(var(--primary-rgb), 0.08);
  --shadow-md: 0 8px 24px rgba(var(--primary-rgb), 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Tajawal', Tahoma, 'Segoe UI', sans-serif;
  --transition: 0.25s ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #071A2D;
  --surface: #0E263C;
  --text: #EDF3F8;
  --text-light: #B8C9D8;
  --border: #2A5068;
  --primary-blue: #8BBCED;
  --secondary-blue: #7AADD9;
  --medical-teal: #4FCB9F;
  --fresh-teal: #1B8F6A;
  --leaf-green: #4FCB9F;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.32);
}

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

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

body {
  font-family: var(--font);
  background: var(--light-bg);
  color: var(--text-main);
  line-height: 1.75;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--medical-teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-blue); }

h1, h2, h3, h4 {
  color: var(--primary-blue);
  line-height: 1.35;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-main); }
.lead { font-size: 1.125rem; color: var(--text-muted); }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  gap: 1rem;
  min-height: 70px;
  max-height: 70px;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  background: var(--secondary);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.25);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.header-cta:hover {
  background: var(--secondary-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--secondary-rgb), 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  width: clamp(300px, 32vw, 400px);
  height: 118px;
  margin-block: -26px;
  object-fit: contain;
  object-position: right center;
  transition: filter var(--transition);
}

[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}


.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-blue), var(--fresh-teal));
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary-blue);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(var(--secondary-rgb), 0.35);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon--sun,
[data-theme="dark"] .theme-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-icon--sun {
  display: block;
}

@media (max-width: 768px) {
  .brand-logo {
    width: clamp(150px, 42vw, 220px);
    height: auto;
    max-height: 64px;
    margin-block: -10px;
  }

  .header-inner {
    min-height: 58px;
    max-height: 58px;
    padding: 0.25rem 0;
    gap: 0.45rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
    min-height: 36px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    padding: 0.3rem 0.5rem;
    font-size: 1.1rem;
  }

  .main-nav {
    top: 58px;
    max-height: calc(100vh - 58px);
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: clamp(130px, 38vw, 180px);
    max-height: 56px;
    margin-block: -8px;
  }

  .header-inner {
    min-height: 54px;
    max-height: 54px;
  }

  .header-cta {
    /* Keep label short on narrow screens */
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.4rem 0.55rem;
    font-size: 0.68rem;
  }

  .main-nav {
    top: 54px;
    max-height: calc(100vh - 54px);
  }
}

@media (max-width: 360px) {
  .brand-logo {
    width: 120px;
    max-height: 48px;
  }

  .header-cta {
    display: none;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--primary-blue);
  font-size: 1.25rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--light-bg);
  color: var(--primary-blue);
}

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (min-width: 769px) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-menu a {
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--primary-blue) 0%, var(--secondary-blue) 45%, var(--medical-teal) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(var(--secondary-rgb), 0.24), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.18), transparent 40%);
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .lead { color: rgba(255,255,255,0.88); max-width: 640px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

/* ── Sections ── */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0.5rem auto 0; }

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card h3 a { color: var(--primary-blue); }
.card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Page Header (inner pages) ── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.page-header h1 { margin-bottom: 0.75rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text-muted); }

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.page-meta--review span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-meta--review a {
  color: var(--primary);
  font-weight: 700;
}

.page-meta--review a:hover {
  color: var(--secondary);
}

/* ── Content Layout ── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.main-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
}

.main-content h2 { margin-top: 2rem; }
.main-content h2:first-child { margin-top: 0; }

.main-content ul,
.main-content ol {
  margin: 0.75rem 0 1.25rem;
  padding-inline-start: 2.35rem;
  padding-inline-end: 0.5rem;
  margin-inline-end: 0.75rem;
}

.main-content li {
  margin-bottom: 0.55rem;
  line-height: 1.75;
}

.main-content .content-steps {
  list-style: decimal;
  padding-inline-start: 2.5rem;
  margin-inline-end: 1rem;
}

.main-content .content-steps > li {
  margin-bottom: 1rem;
  padding-inline-end: 0.35rem;
}

.main-content .content-steps ul {
  list-style: disc;
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  padding-inline-start: 1.75rem;
  margin-inline-end: 0.5rem;
}

.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-box h4 {
  font-size: 0.95rem;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--fresh-teal);
}

.sidebar-box--ask p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.95rem;
}

.sidebar-box--ask .btn {
  width: 100%;
  justify-content: center;
}

.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: 0.4rem; }
.sidebar-box a { font-size: 0.88rem; color: var(--text-main); }
.sidebar-box a:hover { color: var(--medical-teal); }
.sidebar-box--ask a.btn:hover { color: var(--white); }

/* ── TOC ── */
.toc { background: var(--light-bg); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 2rem; }
.toc h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.toc ol { padding-right: 1.25rem; }
.toc li { margin-bottom: 0.35rem; font-size: 0.9rem; }

/* ── Key points list ── */
.key-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.key-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 0;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.key-points li:last-child { border-bottom: none; }

/* ── Info boxes ── */
.info-box {
  border-right: 4px solid var(--medical-teal);
  background: var(--light-bg);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.info-box.warning {
  border-color: var(--secondary);
  background: color-mix(in srgb, var(--surface) 90%, var(--secondary) 10%);
}
.info-box.medical { border-color: var(--fresh-teal); }

/* ── CTA Consultation (no sales) ── */
.consult-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--secondary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.consult-cta h3 { color: var(--white); margin-bottom: 0.5rem; }
.consult-cta p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--fresh-teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--leaf-green); color: var(--white); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn-secondary {
  background: var(--surface);
  color: var(--primary-blue);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--light-bg); }

/* ── Footer ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  border-top: 4px solid var(--secondary);
  margin-top: auto;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 99px;
  background: var(--secondary);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--fresh-teal); }

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.footer-contact__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
  line-height: 1.45;
}

.footer-contact__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.footer-contact__link span[dir="ltr"] {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.disclaimer {
  background: rgba(0,0,0,0.15);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ── Blog list ── */
.blog-list { display: flex; flex-direction: column; gap: 1.25rem; }

.blog-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}

.blog-item:hover { box-shadow: var(--shadow-md); }

.blog-date {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.8rem;
  color: var(--medical-teal);
  font-weight: 700;
  border-right: 3px solid var(--fresh-teal);
  padding-right: 0.75rem;
}

.blog-item h3 { margin-bottom: 0.35rem; }
.blog-item h3 a { color: var(--primary-blue); }
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

.tag {
  background: var(--light-bg);
  color: var(--medical-teal);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* ── City index ── */
.cities-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.city-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.city-card:hover { transform: scale(1.02); }

.city-card-body {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(var(--primary-rgb), 0.94));
  color: var(--white);
}

.city-card h3 { color: var(--white); font-size: 1.15rem; }
.city-card p { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav > ul > li:last-child { border-bottom: none; }

  .main-nav a { padding: 0.85rem 0.5rem; }

  .nav-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-dropdown > a::after {
    content: '▾';
    font-size: 0.85rem;
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-right: 0.5rem;
  }

  .nav-dropdown.open > a::after { transform: rotate(180deg); }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    display: block;
    background: var(--light-bg);
    border-radius: var(--radius);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-dropdown.open > .dropdown-menu {
    max-height: 320px;
    padding: 0.35rem 0 0.65rem;
    margin-top: 0.25rem;
  }

  .dropdown-menu li { border-bottom: none; }

  .dropdown-menu a {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:active {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-blue);
  }

  .blog-item { grid-template-columns: 1fr; }
  .blog-date {
    writing-mode: horizontal-tb;
    border-right: none;
    border-bottom: 3px solid var(--fresh-teal);
    padding: 0 0 0.5rem;
  }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Reference tables ── */
.ref-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ref-table th,
.ref-table td {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ref-table th {
  background: var(--light-bg);
  color: var(--primary-blue);
  font-weight: 700;
}

.ref-table tr:last-child td { border-bottom: none; }

.ref-table tbody tr:hover { background: rgba(var(--primary-rgb), 0.04); }

.ref-review-date {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ref-review-date strong { color: var(--primary-blue); }

/* ── Content flowchart ── */
.content-flowchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.flow-step {
  background: var(--surface);
  border: 2px solid var(--medical-teal);
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  min-width: 260px;
  box-shadow: var(--shadow-sm);
}

.flow-arrow {
  color: var(--medical-teal);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35rem 0;
  font-weight: 700;
}

/* Dark mode contrast polish */
[data-theme="dark"] .hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 50%, #0A3D5C 100%);
}

[data-theme="dark"] .site-footer {
  background: var(--primary-dark);
}

[data-theme="dark"] .home-uae-note,
[data-theme="dark"] .home-section-desc,
[data-theme="dark"] .hero-desc,
[data-theme="dark"] .home-uae-card__text {
  color: var(--text-light);
}

[data-theme="dark"] .trust-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-blue);
}

[data-theme="dark"] .home-badge,
[data-theme="dark"] .hero-badge,
[data-theme="dark"] .home-article-card__cat,
[data-theme="dark"] .home-refs-bar__list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}
