:root {
  --primary: #00a6d6;
  --secondary: #071c2f;
  --accent: #c8a24a;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #dbe5ef;
  --radius: 8px;
  --shadow: 0 20px 55px rgba(7, 28, 47, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-ar, "Cairo", "Tajawal", Arial, sans-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

body.lang-en {
  direction: ltr;
  font-family: var(--font-en, "Inter", "Segoe UI", Arial, sans-serif);
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 229, 239, 0.75);
}

.topbar-strip {
  background:
    linear-gradient(90deg, rgba(3, 17, 29, 0.98), rgba(7, 54, 72, 0.98));
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(88, 230, 255, 0.14);
}

.topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.topbar-item:hover {
  color: #58e6ff;
}

.topbar-trust {
  color: #a7f3d0;
}

.topbar-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.topbar-icon svg {
  width: 16px;
  height: 16px;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 212px;
  height: 46px;
  object-fit: contain;
}

.brand img[src*="logo-transparent"] {
  transform: scale(1.55);
}

.brand-text {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(0, 166, 214, 0.08);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-start: 8px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle {
  color: var(--primary);
  background: rgba(0, 166, 214, 0.08);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  z-index: 60;
  min-width: 250px;
  padding: 10px;
  border: 1px solid rgba(0, 166, 214, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.nav-dropdown-menu a {
  display: block;
  white-space: nowrap;
}

.language-toggle {
  min-height: 40px;
  border: 1px solid rgba(0, 166, 214, 0.20);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(0, 166, 214, 0.08);
  color: var(--primary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.language-toggle:hover {
  background: rgba(0, 166, 214, 0.14);
  transform: translateY(-1px);
}

body.lang-en .section-head,
body.lang-en .split,
body.lang-en .hero-grid,
body.lang-en .footer-main,
body.lang-en .footer-bottom,
body.lang-en .topbar-inner {
  direction: ltr;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--secondary);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 166, 214, 0.24);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--secondary);
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: rgba(0, 166, 214, 0.10);
  border: 1px solid rgba(0, 166, 214, 0.18);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 112px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, var(--hero-gradient-from, #03111d), var(--hero-gradient-to, #0b3f46)),
    var(--hero-bg-image, none) center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(88, 230, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 230, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 20% 18%, rgba(0, 213, 213, 0.24), transparent 32%),
    radial-gradient(circle at 78% 34%, rgba(45, 212, 191, 0.18), transparent 28%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(0deg, var(--bg), rgba(245, 248, 251, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 46px;
  align-items: center;
  padding: 82px 0 112px;
}

.hero-copy {
  animation: hero-fade-up 0.72s ease both;
}

.hero h1 {
  margin: 18px 0;
  max-width: 780px;
  font-size: 68px;
  line-height: 1.16;
  color: #fff;
}

.hero h1 span,
.hero h1 strong {
  display: inline-block;
}

.hero h1 strong {
  color: #5ee7ff;
  text-shadow: 0 0 34px rgba(0, 213, 213, 0.35);
}

.hero p {
  max-width: 700px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 2;
}

.hero .eyebrow {
  color: #baf6ff;
  background: rgba(0, 213, 213, 0.12);
  border-color: rgba(88, 230, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #00d5d5, #38bdf8);
  color: #03202d;
  box-shadow: 0 18px 40px rgba(0, 213, 213, 0.25);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(88, 230, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.hero-trust-check {
  color: #5ee7ff;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(88, 230, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.26);
  padding: 22px;
  backdrop-filter: blur(18px);
  animation: hero-slide-in 0.8s ease 0.08s both;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-card {
  min-height: 124px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(88, 230, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, #00d5d5);
  background:
    linear-gradient(145deg, rgba(0, 213, 213, 0.14), rgba(255, 255, 255, 0.07));
}

.hero-card-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(0, 213, 213, 0.15);
  color: var(--card-accent, #00d5d5);
  font-size: 14px;
  font-weight: 900;
}

.hero-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
}

.hero-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
  line-height: 1.75;
}

.hero-card.is-stat strong {
  color: #5ee7ff;
  font-size: 30px;
  line-height: 1.1;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.metric strong {
  display: block;
  color: var(--primary);
  font-size: 25px;
  line-height: 1.2;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

@keyframes hero-slide-in {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section-title {
  margin: 10px 0 0;
  color: var(--secondary);
  font-size: 34px;
  line-height: 1.35;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(7, 28, 47, 0.06);
  overflow: hidden;
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--secondary);
  line-height: 1.45;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-card {
  padding: 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: rgba(0, 166, 214, 0.10);
  color: var(--primary);
  font-weight: 900;
}

.activity-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.activity-card .media {
  aspect-ratio: 794 / 1123;
  height: auto;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-thumb {
  position: relative;
  height: 156px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 166, 214, 0.34), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(200, 162, 74, 0.28), transparent 28%),
    linear-gradient(135deg, #071c2f, #0b3a5b);
  display: flex;
  align-items: end;
  padding: 18px;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.article-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb span {
  position: relative;
  z-index: 1;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: rgba(7, 28, 47, 0.72);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

#article-page .page-hero {
  padding: 84px 0 110px;
  background:
    radial-gradient(circle at 14% 20%, rgba(0, 166, 214, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(7, 28, 47, 0.98), rgba(7, 55, 89, 0.91));
}

.article-hero-inner {
  max-width: 930px;
}

#article-page .page-hero .section-title {
  max-width: 900px;
  font-size: 54px;
  line-height: 1.35;
}

#article-page .page-hero .section-desc {
  max-width: 800px;
  font-size: 19px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.86);
}

#article-page .page-hero .article-meta {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.article-detail-section {
  padding-top: 0;
}

.article-layout {
  width: min(var(--article-container-width, 980px), calc(100% - 32px));
}

.article-hero-media {
  margin: -76px 0 28px;
  overflow: hidden;
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.article-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
}

.article-hero-media figcaption {
  padding: 12px 18px 16px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.article-body h2,
.article-body h3 {
  color: var(--article-heading-color, var(--secondary));
  line-height: 1.55;
}

.article-body h2 {
  margin: 34px 0 12px;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--article-accent-color, var(--primary));
  font-size: 30px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.article-body p {
  margin: 0 0 var(--article-paragraph-spacing, 18px);
  color: var(--article-body-color, var(--text));
  font-size: var(--article-font-size, 18px);
  line-height: var(--article-line-height, 2.05);
}

.article-body ul,
.article-body ol,
.legal-card ul {
  margin: 0 0 20px;
  padding-inline-start: 24px;
  color: var(--article-body-color, var(--text));
  font-size: var(--article-font-size, 18px);
  line-height: 2;
}

.article-body li,
.legal-card li {
  margin-bottom: 6px;
}

.article-body a {
  color: var(--article-accent-color, var(--primary));
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-inline-start: 4px solid var(--article-accent-color, var(--primary));
  border-radius: var(--radius);
  background: rgba(0, 166, 214, 0.08);
  color: var(--article-heading-color, var(--secondary));
  font-weight: 700;
}

.article-divider {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-inline-image {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.article-inline-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f8fafc;
}

.article-inline-image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.article-note {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 166, 214, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 166, 214, 0.09), rgba(7, 28, 47, 0.045));
  color: var(--article-heading-color, var(--secondary));
}

.article-inline-cta {
  margin: 28px 0;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(0, 166, 214, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 166, 214, 0.13), rgba(7, 28, 47, 0.06));
}

.article-inline-cta p {
  margin: 0;
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.article-cta {
  margin-top: 34px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(0, 166, 214, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 166, 214, 0.10), rgba(7, 28, 47, 0.06));
}

.article-cta p {
  margin: 0;
  color: var(--secondary);
  font-weight: 800;
}

.article-cta .btn {
  flex: 0 0 auto;
}

.article-related-section {
  padding-top: 0;
  background: linear-gradient(180deg, rgba(245, 248, 251, 0), rgba(219, 229, 239, 0.38));
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 18% 24%, rgba(0, 166, 214, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(7, 28, 47, 0.98), rgba(7, 55, 89, 0.90));
  color: #fff;
}

.legal-hero .section-title,
.legal-hero .section-desc {
  color: #fff;
}

.legal-hero .section-title {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 52px);
}

.legal-hero .section-desc {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.legal-meta {
  width: fit-content;
  margin-top: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.legal-section {
  background:
    linear-gradient(180deg, rgba(219, 229, 239, 0.25), rgba(245, 248, 251, 0));
}

.legal-layout {
  width: min(920px, calc(100% - 32px));
}

.legal-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(219, 229, 239, 0.95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-card h2,
.legal-card h3 {
  color: var(--secondary);
  line-height: 1.6;
}

.legal-card h2 {
  margin: 30px 0 12px;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--primary);
  font-size: clamp(22px, 3vw, 29px);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 22px 0 10px;
  font-size: 21px;
}

.legal-card p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
  line-height: 2.05;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-band {
  background: var(--secondary);
  color: #fff;
}

.contact-band .section-title,
.contact-band .section-desc {
  color: #fff;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.form textarea {
  min-height: 122px;
  resize: vertical;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 166, 214, 0.20), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(0, 166, 214, 0.10), transparent 28%),
    linear-gradient(145deg, #03111d 0%, #061827 48%, #08263d 100%);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  padding: 58px 0 26px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 2.2fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.footer-brand-panel {
  min-width: 0;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 132px;
  height: 54px;
  object-fit: contain;
  object-position: right center;
}

.footer-brand-name {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.footer-description {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 2;
}

.footer-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-item span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

a.footer-contact-item:hover {
  color: #fff;
  transform: translateX(-3px);
}

.footer-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 166, 214, 0.26);
  border-radius: var(--radius);
  background: rgba(0, 166, 214, 0.10);
  color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 166, 214, 0.08);
}

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

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.footer-column {
  min-width: 0;
  padding: 2px 0;
}

.footer-column h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.footer-column-links {
  display: grid;
  gap: 8px;
}

.footer-column-links a {
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
  line-height: 1.75;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column-links a::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.footer-column-links a:hover {
  color: #fff;
  transform: translateX(-3px);
}

.footer-column-links a:hover::before {
  width: 100%;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social:empty {
  display: none;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 166, 214, 0.42);
  background: rgba(0, 166, 214, 0.16);
  box-shadow: 0 14px 28px rgba(0, 166, 214, 0.14);
}

.footer-social-link svg {
  width: 19px;
  height: 19px;
}

.footer-social-letter {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 8, 23, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox-panel {
  width: min(760px, 100%);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-media {
  height: min(76vh, 860px);
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
  overflow: hidden;
}

.lightbox-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(76vh - 24px);
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.lightbox-title {
  font-weight: 900;
  color: var(--secondary);
}

.lightbox-actions {
  display: flex;
  gap: 8px;
}

.whatsapp {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.35);
}

.page-hero {
  padding: 72px 0 48px;
  background:
    linear-gradient(90deg, rgba(7, 28, 47, 0.93), rgba(7, 28, 47, 0.74)),
    url("../../images/activity-hospital.jpg") center/cover no-repeat;
  color: #fff;
}

.page-hero .section-title,
.page-hero .section-desc {
  color: #fff;
}

.articles-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.articles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(88, 230, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 230, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  pointer-events: none;
}

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

.articles-hero.align-right {
  text-align: right;
}

.articles-hero.align-left {
  text-align: left;
}

.articles-hero .section-title {
  color: var(--articles-title-color, #fff);
}

.articles-hero .section-desc {
  color: var(--articles-subtitle-color, rgba(255, 255, 255, 0.84));
  margin-inline: auto;
}

.articles-hero.align-right .section-desc {
  margin-inline: 0 auto;
}

.articles-hero.align-left .section-desc {
  margin-inline: auto 0;
}

.articles-category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.articles-hero.align-right .articles-category-filter {
  justify-content: flex-start;
}

.articles-hero.align-left .articles-category-filter {
  justify-content: flex-end;
}

.articles-category-filter button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.articles-category-filter button:hover,
.articles-category-filter button.active {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 28px;
  align-items: center;
}

.image-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.image-frame img {
  width: 100%;
  height: 330px;
  object-fit: contain;
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.maintenance-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
  background: var(--secondary);
  color: #fff;
}

.maintenance-screen img {
  width: min(320px, 80vw);
  max-height: 110px;
  object-fit: contain;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius);
}

.maintenance-screen h1 {
  max-width: 720px;
  margin: 0;
  font-size: 32px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    padding: 14px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.has-topbar .nav {
    inset: 112px 0 auto;
  }

  .nav.open {
    display: flex;
  }

  .nav-dropdown,
  .nav-dropdown-menu {
    position: static;
  }

  .nav-dropdown-menu {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin-top: 6px;
    padding: 6px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 166, 214, 0.05);
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid,
  .split,
  .footer-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 64px 0 96px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar-inner {
    min-height: 40px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar-inner::-webkit-scrollbar {
    display: none;
  }

  .topbar-item {
    flex: 0 0 auto;
  }

  .brand img {
    width: 170px;
    height: 38px;
  }

  .hero-grid {
    padding: 46px 0 78px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

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

  .hero-card {
    min-height: 112px;
  }

  .section-title {
    font-size: 28px;
  }

  .section {
    padding: 58px 0;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .metrics {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  #article-page .page-hero {
    padding: 58px 0 86px;
  }

  #article-page .page-hero .section-title {
    font-size: 34px;
  }

  #article-page .page-hero .section-desc {
    font-size: 16px;
  }

  .article-layout {
    width: min(100% - 24px, 980px);
  }

  .article-hero-media {
    margin-top: -58px;
  }

  .article-body p {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 24px;
  }

  .article-inline-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-inline-cta .btn {
    width: 100%;
  }

  .legal-layout {
    width: min(100% - 24px, 920px);
  }

  .legal-card p {
    font-size: 16px;
  }

  .legal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-actions .btn {
    width: 100%;
  }

  .article-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-shell {
    padding: 44px 0 22px;
  }

  .footer-logo-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-logo {
    width: 150px;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-social-link {
    width: 42px;
    height: 42px;
  }
}
