@import url('./site-card-system.css?v=1.2');
@import url('./site-heading-colors.css?v=1.1');

/* LeadMinds brand fonts */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('../fonts/IBMPlexSansArabic-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('../fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('../fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('../fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Genos';
  src: url('../fonts/Genos-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Genos';
  src: url('../fonts/Genos-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Climate Crisis';
  src: url('../fonts/ClimateCrisis-Regular-VariableFont_YEAR.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f4f7;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: #e8edf3;
  --text: var(--text);
  --muted: #6b7280;
  --line: #d8dee8;
  --primary: var(--primary);
  --primary-2: var(--primary-dark);
  --secondary: var(--secondary);
  --secondary-2: var(--text);
  --success: #edf7f0;
  --danger: #fbe4e4;
  --shadow: 0 22px 60px rgba(14, 39, 39, 0.12);
  --shadow-soft: 0 14px 34px rgba(14, 39, 39, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --container: min(1180px, calc(100% - 1.5rem));
  --header-h: 66px;
  --font-display: "IBM Plex Sans Arabic", sans-serif;
  --font-headings: "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
  --font-sans: "IBM Plex Sans Arabic", sans-serif;
}

body[data-theme="dark"] {
  --bg: #0d1b26;
  --surface: rgba(19, 34, 48, 0.88);
  --surface-strong: #132230;
  --surface-muted: #172b39;
  --text: #e8eff5;
  --muted: #9eb0be;
  --line: #264052;
  --primary: #db8557;
  --primary-2: #f0a677;
  --secondary: #58c5bb;
  --secondary-2: #2f8ea8;
  --success: rgba(38, 94, 70, 0.4);
  --danger: rgba(124, 46, 46, 0.4);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 115, 87, 0.08), transparent 22rem),
    radial-gradient(circle at top right, rgba(16, 53, 53, 0.08), transparent 24rem),
    linear-gradient(180deg, #fbfcfe, var(--bg));
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 9rem;
}
main {
  display: block;
}
body.admin-body {
  background:
    radial-gradient(circle at top left, rgba(30, 127, 120, 0.12), transparent 20rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, #f8fafb), var(--bg));
  padding-bottom: 2rem;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.button-reset { border: 0; background: transparent; padding: 0; cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.topbar-inner,
.header-inner,
.footer-bottom,
.hero-grid,
.page-hero-grid,
.contact-grid,
.admin-grid,
.admin-stats,
.cards-grid,
.stats-grid,
.footer-grid,
.course-meta,
.lesson-grid,
.overview-grid { display: grid; gap: 1rem; }

.topbar-inner {
  display: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(14, 39, 39, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(14, 39, 39, 0.06);
}
.header-shell,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 70px;
  padding: 0 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 0 0 auto;
}
.brand-saas {
  order: 1;
}
.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary));
  box-shadow: 0 10px 24px rgba(242, 115, 87, 0.24);
}
.brand-mark-circle {
  border-radius: 12px;
}
.brand-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}
.brand-copy-single strong {
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}
.brand-copy strong,
.brand-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  order: 2;
}
.site-nav-saas {
  justify-content: center;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.nav-item {
  flex: 0 0 auto;
}
.nav-link,
.admin-topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 4px;
  color: #324255;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 12px;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.nav-link:hover,
.nav-link.is-active,
.admin-topnav a:hover,
.admin-topnav a.is-active {
  color: var(--secondary-2);
  background: rgba(16, 53, 53, 0.08);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  order: 3;
}
.nav-cta-saas {
  justify-content: flex-end;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--secondary-2);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.admin-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: var(--text);
  box-shadow: 0 14px 28px rgba(242, 115, 87, 0.3);
}
.button-secondary {
  background: var(--secondary-2);
  border-color: var(--secondary-2);
  color: #ffffff;
}
.button-ghost {
  background: rgba(16, 53, 53, 0.08);
  color: var(--secondary);
}
.floating-button-small {
  min-height: 2.5rem;
  padding: 0.68rem 0.75rem;
  font-size: 0.82rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.45rem 0.88rem;
  border-radius: 999px;
  background: rgba(242, 115, 87, 0.12);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}
.section-head { display: grid; gap: 0.9rem; margin-bottom: 1.5rem; }
.section-head h1,
.section-head h2,
.section-head h3,
.hero-copy h1,
.page-hero-copy h1,
.post-header h1,
.course-header h1 { margin: 0; line-height: 1.05; letter-spacing: -0.03em; }
.section-head p,
.muted,
.card p,
.hero-copy p,
.page-hero-copy p,
.post-body,
.lesson-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.hero,
.page-hero { padding: 2.3rem 0 3rem; }
.hero-grid,
.page-hero-grid,
.contact-grid,
.overview-grid { align-items: center; }
.hero-copy,
.contact-panel,
.cta-box,
.admin-card,
.table-card,
.stats-card,
.lesson-card,
.course-outline,
.post-article { padding: 1.4rem; }
.hero-copy { position: relative; overflow: hidden; gap: 1rem; }
.hero-copy::after {
  content: "";
  position: absolute;
  inset-inline-end: -3rem;
  inset-block-end: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--secondary) 28%, transparent), transparent 68%);
}
.hero-copy h1,
.page-hero-copy h1 { font-size: clamp(2rem, 6vw, 4.6rem); }
.hero-actions { display: grid; gap: 0.75rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.hero-showcase {
  position: relative;
  padding: 2.75rem 0 3.5rem;
  overflow: hidden;
}
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(16, 53, 53, 0.45), transparent 30%),
    linear-gradient(180deg, #091717 0%, var(--secondary) 100%);
  z-index: 0;
}
.hero-showcase-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}
.hero-intro {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 1rem 0 0;
}
.hero-intro::after {
  inset-inline-end: auto;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  inset-block-end: -4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 20%, transparent), transparent 68%);
}
.hero-showcase .eyebrow {
  background: color-mix(in srgb, #ffffff 10%, transparent);
  color: color-mix(in srgb, #ffffff 82%, var(--primary));
}
.hero-showcase .hero-copy h1,
.hero-showcase .hero-copy p {
  color: #f7fafc;
}
.hero-showcase .hero-copy p {
  max-width: 48rem;
  color: rgba(241, 245, 249, 0.88);
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.8;
  color: #fff;
}
.hero-showcase .hero-pills {
  justify-content: center;
}
.hero-showcase .pill {
  background: color-mix(in srgb, #ffffff 8%, transparent);
  color: #f7fafc;
}
.hero-showcase .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.hero-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.hero-strip-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero-tile {
  position: relative;
  min-height: 21rem;
  overflow: hidden;
  border-radius: 1.6rem;
  background: var(--text);
  box-shadow: 0 20px 40px rgba(14, 39, 39, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.hero-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.34);
}
.hero-tile img {
  width: 100%;
  height: 100%;
  min-height: 21rem;
  object-fit: cover;
  transform: scale(1.01);
}
.hero-tile__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 18, 24, 0.12) 0%, rgba(13, 18, 24, 0.18) 45%, rgba(13, 18, 24, 0.76) 100%);
}
.hero-tile__label {
  position: absolute;
  inset-inline: 1rem;
  inset-block-end: 1rem;
  z-index: 1;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}
.hero-tile-static {
  pointer-events: none;
}
.hero-homepage .hero-intro {
  max-width: 64rem;
}
.hero-trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  margin-top: 0.5rem;
}
.hero-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, #ffffff 8%, transparent);
  color: #f8fafc;
  text-align: start;
  line-height: 1.7;
}
.hero-trust-item::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
}
.section-head-center {
  justify-items: center;
  text-align: center;
}
.stats-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.story-grid,
.reason-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.story-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-detail-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.story-card h3,
.service-detail-card h3,
.reason-card h3 {
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.service-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-story {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(16, 53, 53, 0.06);
  border: 1px solid rgba(16, 53, 53, 0.08);
}
.service-story strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--primary);
}
.homepage-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.homepage-cta .section-head {
  max-width: 48rem;
}
.pill,
.contact-chip,
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 53, 53, 0.08);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.84rem;
}
.hero-visual,
.page-hero-media { overflow: hidden; min-height: 100%; }
.hero-visual img,
.page-hero-media img,
.card img,
.post-cover,
.course-cover { width: 100%; height: 100%; min-height: 18rem; object-fit: cover; }
.hero-overlay,
.media-caption {
  position: absolute;
  inset-inline: 1rem;
  inset-block-end: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(14, 39, 39, 0.9);
  color: #eef6fb;
}
.hero-visual { position: relative; padding: 0; }
.stats-grid,
.cards-grid,
.admin-stats,
.lesson-grid { grid-template-columns: 1fr; }
.stat,
.stats-card { padding: 1.35rem; }
.stat strong,
.stats-card strong { display: block; font-size: 2rem; margin-bottom: 0.35rem; color: var(--primary); }
.card { padding: 1.2rem; border: 1px solid rgba(16, 53, 53, 0.08); background: var(--surface-strong); box-shadow: var(--shadow-soft); border-radius: 20px; }
.clickable-card { cursor: pointer; }
.clickable-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--secondary) 45%, #ffffff);
  outline-offset: 3px;
}
.card,
.course-outline,
.lesson-card,
.footer-card,
.admin-card,
.contact-panel,
.cta-box,
.post-article { align-content: start; }
.card > * + *,
.course-outline > * + *,
.lesson-card > * + *,
.footer-card > * + *,
.contact-panel > * + *,
.cta-box > * + *,
.post-article > * + * { margin-top: 0.9rem; }
.card h3,
.card h4,
.footer-card h4,
.admin-card h2,
.lesson-card h3,
.course-outline h2 { margin: 0 0 0.75rem; line-height: 1.15; }
.card img,
.post-article img { border-radius: 1rem; margin-bottom: 0; }
.story-card.card img,
.service-detail-card.card img {
  width: 100%;
  height: auto;
  min-height: 0;
}
.card-kicker { color: var(--primary); font-weight: 700; }
.dynamic-card .button { margin-top: 0.9rem; }
.card-actions {
  margin-top: auto;
  padding-top: 0.2rem;
}
.card-actions .button {
  width: auto;
}
.text-link { color: var(--secondary); font-weight: 700; }
.footer {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  padding-bottom: 1rem;
}
.footer-bottom { color: rgba(255, 255, 255, 0.72); padding: 0; }
.footer-compact .container { position: relative; }
.footer-shell {
  display: grid;
  gap: 1.1rem;
  padding: 1.35rem 1.35rem 1.1rem;
  border: 1px solid rgba(242, 115, 87, 0.12);
  background: linear-gradient(180deg, var(--text) 0%, var(--secondary) 100%);
  box-shadow: 0 26px 60px rgba(14, 39, 39, 0.22);
  border-radius: 1.25rem;
}
.footer-summary strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  color: #ffffff;
}
.footer-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}
.footer-inline-links,
.footer-contact-row,
.footer-actions-row,
.footer-bottom-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}
.footer-inline-links a {
  font-weight: 700;
  color: #ffffff;
}
.footer-contact-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}
.footer-actions-row .button {
  width: auto;
}
.footer-actions-row .social-row {
  margin-inline-start: auto;
}
.footer-shell-admin {
  padding: 0.85rem 1rem;
}

.social-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-weight: 800;
}
.floating-bar {
  position: fixed;
  inset-inline: 0.7rem;
  inset-block-end: 0.85rem;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.chat-widget {
  position: fixed;
  inset-inline-end: 1rem;
  inset-block-end: 5.6rem;
  width: min(21rem, calc(100vw - 2rem));
  z-index: 95;
}
.chat-widget__header,
.chat-widget__form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.chat-widget__messages { max-height: 18rem; overflow: auto; padding: 1rem; display: grid; gap: 0.7rem; }
.chat-widget__bubble { padding: 0.8rem 0.95rem; border-radius: 1rem; background: var(--surface-muted); }
.chat-widget__bubble.user { justify-self: end; background: color-mix(in srgb, var(--primary) 16%, transparent); }
.chat-widget__close { border: 0; background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.chat-widget__form { border-bottom: 0; padding-top: 0; }
.chat-widget__form input { flex: 1; }
.input,
.select,
.textarea {
  width: auto;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}
.textarea { min-height: 8rem; resize: vertical; }
.form-grid { display: grid; gap: 0.9rem; }
.flash { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 1rem; }
.flash.success { background: var(--success); }
.flash.error { background: var(--danger); }
.table-card { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.85rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.admin-shell { padding: 2rem 0 4rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-toolbar .button { width: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  color: var(--secondary);
}
.badge.draft { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.empty-state { color: var(--muted); padding: 1rem 0; }
.overview-grid,
.course-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-article { display: grid; gap: 1.3rem; }
.post-cover--top { order: -1; }
.post-cover--left,
.post-cover--right { max-width: 32rem; }
.post-cover.width-narrow { max-width: 22rem; }
.post-cover.width-medium { max-width: 32rem; }
.post-cover.width-wide { max-width: 100%; }
.post-cover.position-left { margin-inline-end: auto; }
.post-cover.position-center { margin-inline: auto; }
.post-cover.position-right { margin-inline-start: auto; }
.post-body { font-size: 1rem; }
.post-body p { margin: 0 0 1rem; }
.course-header,
.post-header { display: grid; gap: 0.8rem; }
.course-outline,
.lesson-card { height: 100%; }
.video-frame {
  width: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 1rem;
  margin-top: 1rem;
}
.split-fields { display: grid; gap: 1rem; }
.fieldset-grid { display: grid; gap: 1rem; }

@media (min-width: 640px) {
  :root { --container: min(1180px, calc(100% - 2rem)); }
  .cards-grid,
  .stats-grid,
  .admin-stats,
  .lesson-grid,
  .footer-grid,
  .contact-grid,
  .overview-grid,
  .course-meta,
  .fieldset-grid,
  .split-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .admin-topnav { display: none; }
  .header-shell,
  .header-inner {
    padding: 0 18px;
    gap: 1rem;
  }
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cta .button {
    min-height: 40px;
    padding: 0 14px;
  }
  .hero-strip,
  .hero-strip-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-trust-list,
  .service-points,
  .story-grid,
  .reason-grid,
  .stats-grid-four {
    grid-template-columns: 1fr;
  }
  .homepage-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 900px) {
  :root { --container: min(1180px, calc(100% - 3rem)); }
  .nav-panel {
    gap: 1.25rem;
  }
  .nav-list {
    justify-content: flex-start;
  }
  .nav-link {
    min-height: 2.7rem;
    padding-inline: 0.9rem;
  }
  .nav-cta {
    gap: 0.65rem;
    flex-shrink: 0;
  }
  .nav-cta .button,
  .admin-actions .button { width: auto; }
  .hero-grid,
  .page-hero-grid,
  .contact-grid,
  .overview-grid { grid-template-columns: 1.05fr 0.95fr; }
  .cards-grid,
  .lesson-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-grid,
  .reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid:has(.service-detail-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid,
  .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-inline-links { justify-content: flex-start; }
  .footer-contact-row { justify-content: flex-start; }
  .footer-actions-row { justify-content: flex-start; }
  .admin-grid { grid-template-columns: 1.15fr 0.85fr; }
  .floating-bar { inset-inline-start: auto; width: min(27rem, calc(100vw - 2rem)); }
  .split-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .hero-showcase {
    padding: 2.1rem 0 2.7rem;
  }
  .hero-intro {
    text-align: start;
    justify-items: start;
  }
  .hero-showcase .hero-pills {
    justify-content: flex-start;
  }
  .hero-strip,
  .hero-strip-four {
    grid-template-columns: 1fr;
  }
  .hero-tile,
  .hero-tile img {
    min-height: 16rem;
  }
  .hero-trust-list {
    grid-template-columns: 1fr;
  }
}

.topbar-note,
.topbar-link,
.nav-links a,
.admin-topnav a,
.section-head h1,
.section-head h2,
.section-head h3,
.section-head p,
.card h3,
.card h4,
.card p,
.hero-copy h1,
.hero-copy p,
.page-hero-copy h1,
.page-hero-copy p,
.post-header h1,
.post-header p,
.post-body,
.lesson-card h3,
.lesson-card p,
.footer-card h4,
.footer-card p,
.button,
.badge,
th,
td,
.meta-pill,
.contact-chip,
.eyebrow {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-copy,
.page-hero-copy,
.card,
.footer-card,
.admin-card,
.lesson-card,
.post-article,
.course-outline,
.contact-panel,
.cta-box,
.stat,
.stats-card {
  min-width: 0;
}

[dir="rtl"] body,
[dir="rtl"] .section-head,
[dir="rtl"] .card,
[dir="rtl"] .post-article,
[dir="rtl"] .lesson-card,
[dir="rtl"] .footer-card,
[dir="rtl"] th,
[dir="rtl"] td,
[dir="rtl"] .input,
[dir="rtl"] .textarea,
[dir="rtl"] .select {
  text-align: right;
}

[dir="rtl"] .admin-topnav,
[dir="rtl"] .topbar-tools,
[dir="rtl"] .admin-actions,
[dir="rtl"] .social-row,
[dir="rtl"] .hero-pills {
  justify-content: flex-start;
}




[dir="rtl"] .header-shell,
[dir="rtl"] .header-inner {
  direction: rtl;
}
[dir="rtl"] .brand-saas {
  order: 3;
}
[dir="rtl"] .site-nav {
  order: 2;
}
[dir="rtl"] .nav-cta {
  order: 1;
}
[dir="rtl"] .nav-link {
  text-align: center;
}


/* Reference Header Override */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(222, 212, 198, 0.75);
  backdrop-filter: blur(18px);
  background: rgba(245, 241, 234, 0.82);
}
.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand.brand-saas {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand.brand-saas .brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.brand.brand-saas .brand-copy {
  min-width: 0;
}
.brand.brand-saas .brand-copy strong,
.brand.brand-saas .brand-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand.brand-saas .brand-copy strong {
  font-size: 0.98rem;
}
.brand.brand-saas .brand-copy span {
  font-size: 0.78rem;
  color: var(--muted);
}
.nav-toggle.nav-toggle-saas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.nav-toggle.nav-toggle-saas svg {
  width: 1.2rem;
  height: 1.2rem;
}
.site-nav.site-nav-saas {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  padding: 0.85rem;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}
.site-nav.site-nav-saas.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-nav.site-nav-saas .nav-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.97);
  box-shadow: var(--shadow);
}
.site-nav.site-nav-saas .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.site-nav.site-nav-saas .nav-links,
.site-nav.site-nav-saas .nav-actions,
.site-nav.site-nav-saas .nav-cta {
  display: grid;
  gap: 0.65rem;
}
.site-nav.site-nav-saas .nav-link {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.site-nav.site-nav-saas .nav-link:hover,
.site-nav.site-nav-saas .nav-link.is-active {
  background: var(--surface-muted);
}
.nav-cta.nav-cta-saas {
  display: grid;
  gap: 0.65rem;
}
.nav-cta.nav-cta-saas .button {
  width: 100%;
}
@media (min-width: 900px) {
  .nav-toggle.nav-toggle-saas {
    display: none;
  }
  .site-nav.site-nav-saas {
    position: static;
    inset: auto;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    flex: 1 1 auto;
  }
  .site-nav.site-nav-saas .nav-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-nav.site-nav-saas .nav-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .site-nav.site-nav-saas .nav-link {
    padding: 0.8rem 0.9rem;
  }
  .nav-cta.nav-cta-saas {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .nav-cta.nav-cta-saas .button {
    width: auto;
  }
}
[dir="rtl"] .header-shell {
  direction: rtl;
}
[dir="rtl"] .site-nav.site-nav-saas .nav-link {
  text-align: right;
}

/* Footer Layout Fix */
html,
body {
  min-height: 100%;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
}

main {
  display: block;
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 7.5rem;
}

body.admin-body main {
  padding-bottom: 2rem;
}

.flash,
.site-header {
  flex: 0 0 auto;
}

.footer {
  position: static;
  z-index: auto;
  margin-top: auto;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.footer-compact {
  margin-bottom: 5.5rem;
}

body.admin-body .footer-compact {
  margin-bottom: 0;
}

.footer-compact .container,
.footer-shell,
.footer-bottom,
.footer-inline-links,
.footer-contact-row,
.footer-actions-row,
.footer-bottom-compact {
  position: static;
}

.footer-shell {
  gap: 1rem;
}

.footer-actions-row {
  align-items: center;
}

.footer-actions-row .button,
.footer-actions-row .social-row {
  flex-shrink: 0;
}

.floating-bar {
  z-index: 80;
}

.chat-widget {
  z-index: 85;
}

@media (max-width: 899px) {
  main {
    padding-bottom: 8.5rem;
  }

  .footer-compact {
    margin-bottom: 6.5rem;
  }

  .footer-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-actions-row .button,
  .footer-actions-row .social-row {
    width: 100%;
    margin-inline-start: 0;
  }

  .social-row {
    justify-content: flex-start;
  }
}

/* Header tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(16, 53, 53, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--secondary-2);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.header-tool:hover {
  background: rgba(16, 53, 53, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 899px) {
  .header-tools {
    display: grid;
    width: 100%;
    gap: 0.65rem;
  }

  .header-tool {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .nav-cta.nav-cta-saas {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .header-tools {
    margin-inline-end: 0.25rem;
  }
}

/* Compact header tools */
.header-tool-circle {
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 899px) {
  .header-tools {
    display: none;
  }
}

/* Floating icon buttons */
.floating-bar-icons {
  grid-template-columns: repeat(2, minmax(0, 3.25rem));
  justify-content: end;
  width: auto;
  inset-inline-start: auto;
  inset-inline-end: 0.85rem;
  padding: 0.45rem;
}

.floating-icon {
  width: 3.1rem;
  height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 53, 53, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary-2);
  box-shadow: var(--shadow-soft);
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.floating-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.floating-icon:hover {
  transform: translateY(-1px);
}

.floating-icon-whatsapp {
  color: #1fa855;
}

.floating-icon-support {
  color: var(--secondary-2);
}

@media (max-width: 899px) {
  .floating-bar-icons {
    inset-inline-end: 0.7rem;
    inset-block-end: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 2.9rem));
  }

  .floating-icon {
    width: 2.9rem;
    height: 2.9rem;
  }
}

/* Icon-only action buttons */
.header-tool-circle {
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-actions-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 115, 87, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(14, 39, 39, 0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.icon-button i {
  font-size: 1.2rem;
}

.icon-button:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(14, 39, 39, 0.22);
}

.icon-button-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.icon-button-support {
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: var(--text);
}

.icon-button-map {
  background: #ffffff;
  border-color: rgba(16, 53, 53, 0.14);
  color: var(--secondary);
}

.floating-bar-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
}

.floating-bar-icons .icon-button {
  flex: 0 0 auto;
}

@media (max-width: 899px) {
  .header-tools {
    display: none;
  }

  .footer-actions-icons {
    gap: 10px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }
}

/* Inline svg icon fix */
.icon-button svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.icon-button i {
  display: none;
}

/* Mobile header simplification */
@media (max-width: 899px) {
  .nav-cta.nav-cta-saas > .button {
    display: none;
  }

  .nav-cta.nav-cta-saas {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .header-shell {
    gap: 0.75rem;
  }
}

/* Mobile menu open fix */
@media (max-width: 899px) {
  .site-nav.site-nav-saas {
    display: block;
    opacity: 0;
    pointer-events: none;
  }

  .site-nav.site-nav-saas.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
    z-index: 120;
  }

  .site-nav.site-nav-saas .nav-panel {
    display: grid;
  }
}

/* Lead Minds Refined Identity - Awwwards-Level UI Transformation */
:root {
  --bg: #f4f7f6;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-muted: #e8f0f0;
  --text: #0e2727;
  --muted: #5e7777;
  --primary: #F27357; /* Coral - Primary Brand Color */
  --primary-dark: #db5c40;
  --secondary: #103535; /* Dark Teal - Deep Brand Tone */
  --secondary-2: #41A5A5; /* Bright Teal - Highlight Accent */
  --border: rgba(14, 39, 39, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(14, 39, 39, 0.04);
  --shadow-strong: 0 20px 50px rgba(14, 39, 39, 0.08);
  --transition: 280ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Brand Typography Variables */
  --font-display: "IBM Plex Sans Arabic", sans-serif;
  --font-headings: "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
  --font-sans: "IBM Plex Sans Arabic", sans-serif;
}

/* English Typography Variables */
html[lang="en"] {
  --font-display: "Climate Crisis", "Genos", sans-serif;
  --font-headings: "Genos", sans-serif;
  --font-body: "Genos", sans-serif;
  --font-sans: "Genos", sans-serif;
}

body {
  background: linear-gradient(180deg, #fbfcfb 0%, #f3f7f6 42%, #ebf2f1 100%);
  color: var(--text);
  font-family: var(--font-sans);
  transition: background-color var(--transition), color var(--transition);
}

body[data-theme="dark"] {
  --bg: #0b1414;
  --surface: rgba(14, 28, 28, 0.82);
  --surface-strong: #0f1f1f;
  --surface-muted: #142a2a;
  --text: #f2faf9;
  --muted: #95afae;
  --primary: #f58f7a;
  --primary-dark: #F27357;
  --secondary: #d4eaea;
  --secondary-2: #5ec5c5;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #0b1414 0%, #0d1e1e 46%, #070e0e 100%);
}

/* Typography Application */
h1, .hero-copy h1, .page-hero-copy h1, .post-header h1, .course-header h1 {
  font-family: var(--font-headings);
  font-weight: 700;
}

h2, h3, .section-head h2, .section-head h3, .card h3, .card h4, .footer-card h4, .admin-card h2, .lesson-card h3, .course-outline h2 {
  font-family: var(--font-headings);
  font-weight: 700;
}

body, p, .nav-link, .button, input, textarea, select, .eyebrow {
  font-family: var(--font-sans);
}

/* 1. Navbar & Header - Glassmorphic floating design */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
}

.header-shell {
  min-height: 80px;
}

.brand.brand-saas .brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #41A5A5 0%, #78B299 30%, #FABA3D 60%, #F27357 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(14, 39, 39, 0.18);
}

.brand.brand-saas .brand-copy strong {
  color: var(--text);
  font-weight: 800;
}

.nav-link {
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  padding: 0.6rem 1rem;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(65, 165, 165, 0.1);
  color: var(--secondary-2);
  transform: translateY(-1px);
}

body[data-theme="dark"] .nav-link:hover,
body[data-theme="dark"] .nav-link.is-active {
  background: rgba(94, 197, 197, 0.15);
  color: var(--secondary-2);
}

/* 2. Hero Sections & Spacing */
.hero-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  background: 
    radial-gradient(circle at 15% 30%, rgba(65, 165, 165, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(250, 186, 61, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(242, 115, 87, 0.5) 0%, transparent 55%),
    linear-gradient(135deg, #091717 0%, #0f2b2b 100%);
  padding: 5.5rem 0 4.5rem;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0v120M0 60h120 M60 60a30 30 0 1 1-30-30 M90 60a30 30 0 1 0-30 30' stroke='rgba(255, 255, 255, 0.035)' stroke-width='0.75' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.hero-intro::after,
.hero-copy::after { display: none; }

.hero-showcase-shell {
  gap: 2.5rem;
}

.hero-intro {
  max-width: 58rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.hero-copy h1,
.page-hero-copy h1 {
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-showcase .hero-copy h1 {
  font-weight: 800;
  max-width: 52rem;
  margin-inline: auto;
  color: #ffffff;
}

.hero-showcase .hero-copy p {
  color: rgba(242, 250, 249, 0.85);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(242, 115, 87, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(242, 115, 87, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-showcase .eyebrow {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-trust-list {
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-trust-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  transition: all var(--transition);
}

.hero-trust-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 3. Cards & Grids - Modern Luxury UI styling */
.card,
.contact-panel,
.cta-box,
.post-article,
.course-outline,
.lesson-card,
.stat,
.stats-card,
.table-card,
.admin-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.clickable-card:hover {
  transform: translateY(-6px);
  border-color: rgba(65, 165, 165, 0.25);
  box-shadow: var(--shadow-strong);
}

.card img,
.post-article img,
.page-hero-media,
.page-hero-media img,
.course-cover,
.post-cover {
  border-radius: 14px;
}

/* 4. Buttons - Interactive glowing buttons */
.button {
  min-height: 3rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0 1.5rem;
  box-shadow: none;
  transition: all var(--transition);
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary,
.icon-button-support {
  background: linear-gradient(135deg, var(--secondary-2), var(--secondary));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(65, 165, 165, 0.25);
}

.button-primary:hover,
.icon-button-support:hover {
  box-shadow: 0 15px 35px rgba(65, 165, 165, 0.4);
  background: linear-gradient(135deg, var(--secondary), var(--secondary-2));
}

.button-secondary {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.button-secondary:hover {
  border-color: var(--secondary-2);
  color: var(--secondary-2);
  box-shadow: var(--shadow-strong);
}

/* 5. Modern Call-To-Action (CTA) Boxes */
.cta-box {
  background: linear-gradient(135deg, rgba(16, 53, 53, 0.98), rgba(65, 165, 165, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-strong);
  padding: 3rem;
  color: #ffffff;
}

.cta-box h2,
.cta-box p {
  color: #ffffff;
}

/* 6. Footer Redesign */
.footer {
  background: #081111;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-shell {
  border-radius: 20px;
  background: linear-gradient(135deg, #081111 0%, #0d2121 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  box-shadow: var(--shadow-strong);
}

.footer-inline-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-inline-links a:hover {
  color: var(--secondary-2);
}

/* 7. Forms & Inputs Focus Styling */
.input,
.select,
.textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  transition: all var(--transition);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--secondary-2);
  box-shadow: 0 0 0 4px rgba(65, 165, 165, 0.18);
  outline: none;
}

@media (min-width: 900px) {
  .page-hero-grid { gap: 2.5rem; }
  .hero-homepage .hero-intro { text-align: center; }
}

@media (max-width: 899px) {
  .header-shell { min-height: 66px; }
  .hero-actions { justify-content: flex-start; }
}

/* Calmer first-screen hero */
.hero-homepage.hero-showcase {
  padding: 2.4rem 0 2.75rem;
}

.hero-homepage .hero-showcase-shell {
  gap: 1.35rem;
}

.hero-homepage .hero-intro {
  max-width: 54rem;
  gap: 0.75rem;
}

.hero-homepage .hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4.15rem);
  max-width: 48rem;
}

.hero-slogan {
  min-height: 2.2em;
}

.type-caret {
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-inline-start: 0.08em;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(0.08em);
  animation: type-caret-blink 0.9s steps(2, start) infinite;
}

@keyframes type-caret-blink {
  50% { opacity: 0; }
}

.hero-homepage .hero-subtitle {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.hero-homepage .lead {
  max-width: 46rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.hero-homepage .hero-actions {
  margin-top: 0.15rem;
}

.hero-homepage .hero-trust-list {
  max-width: 56rem;
  margin-top: 0.25rem;
}

.hero-homepage .hero-trust-item {
  min-height: 3.15rem;
  padding: 0.8rem 1rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-homepage .hero-trust-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .hero-homepage .hero-copy h1 {
    font-size: clamp(2rem, 13vw, 3.1rem);
  }

  .hero-homepage .hero-trust-list {
    grid-template-columns: 1fr;
  }
}

/* Global-growth sections */
.section-tight {
  padding: 2.25rem 0;
}

.compact-head {
  margin-bottom: 1.35rem;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.logo-cloud span {
  display: grid;
  place-items: center;
  min-height: 4.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-strong) 92%, rgba(31, 122, 114, 0.08));
  color: var(--secondary);
  font-weight: 800;
  text-align: center;
}

.global-grid {
  align-items: stretch;
}

.global-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
}

.mini-chip-row span {
  border: 1px solid rgba(31, 122, 114, 0.16);
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  background: rgba(31, 122, 114, 0.08);
  color: var(--secondary-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.split-showcase {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

.industry-list,
.expert-list,
.resource-list,
.proof-metrics,
.faq-grid {
  display: grid;
  gap: 0.8rem;
}

.industry-list article,
.expert-list article,
.resource-link {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 12px 32px rgba(18, 32, 42, 0.06);
  padding: 1rem;
}

.industry-list h3,
.industry-list p {
  margin: 0;
}

.industry-list p,
.expert-list span,
.resource-link span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.7;
}

.proof-panel {
  display: grid;
  gap: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 48, 58, 0.96), rgba(31, 122, 114, 0.88));
  color: #ffffff;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.proof-panel h2,
.proof-panel p {
  color: #ffffff;
}

.proof-metrics .stat {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.proof-metrics .stat strong,
.proof-metrics .stat span {
  color: #ffffff;
}

.split-showcase-media .section-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.split-showcase-media .section-media img {
  display: block;
  width: 100%;
  min-height: 20rem;
  object-fit: cover;
}

.expert-list strong,
.resource-link strong {
  color: var(--text);
}

.resource-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.resource-link:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 114, 0.25);
}

.faq-grid {
  grid-template-columns: 1fr;
}

.faq-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.faq-card p {
  margin: 0;
}

@media (min-width: 700px) {
  .logo-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-metrics,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .split-showcase {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2rem;
  }

  .split-showcase-media {
    grid-template-columns: 1fr 1fr;
  }

  .proof-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

/* Expanded global navigation */
@media (min-width: 900px) {
  .site-nav.site-nav-saas .nav-list {
    gap: 0.12rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav.site-nav-saas .nav-link {
    padding: 0.62rem 0.58rem;
    font-size: 0.86rem;
  }

  .brand.brand-saas .brand-copy span {
    display: none;
  }
}

@media (min-width: 1180px) {
  .site-nav.site-nav-saas .nav-link {
    padding-inline: 0.72rem;
    font-size: 0.9rem;
  }
}

/* Header dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  gap: 0.35rem;
  cursor: pointer;
}

.nav-dropdown-caret {
  display: inline-flex;
  font-size: 0.68rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-item-dropdown.open .nav-dropdown-caret,
.nav-item-dropdown:hover .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-start: 0;
  z-index: 40;
  display: none;
  min-width: 13rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.nav-item-dropdown.open .nav-dropdown-menu,
.nav-item-dropdown:hover .nav-dropdown-menu {
  display: grid;
  gap: 0.15rem;
}

.nav-dropdown-link {
  display: block;
  padding: 0.68rem 0.82rem;
  border-radius: 0.58rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
  background: rgba(31, 122, 114, 0.1);
  color: var(--secondary-2);
}

[dir="rtl"] .nav-dropdown-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

@media (max-width: 899px) {
  .nav-item-dropdown {
    position: static;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
    background: rgba(31, 122, 114, 0.06);
  }

  .nav-item-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-item-dropdown.open .nav-dropdown-menu,
  .nav-item-dropdown.open:hover .nav-dropdown-menu {
    display: grid;
  }
}

/* Mobile navigation visibility repair */
@media (max-width: 899px) {
  .site-header {
    z-index: 2000;
  }

  .site-nav.site-nav-saas {
    position: fixed;
    inset: 66px 0 auto 0;
    z-index: 1990;
    display: block;
    max-height: calc(100dvh - 76px);
    padding: 0.75rem;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(13, 44, 48, 0.18), rgba(13, 44, 48, 0));
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.site-nav-saas.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav.site-nav-saas .nav-list {
    display: grid;
    width: min(100%, 24rem);
    margin: 0 auto;
    padding: 0.75rem;
    gap: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    background: #fffdf9;
    box-shadow: 0 22px 55px rgba(8, 28, 32, 0.2);
  }

  .site-nav.site-nav-saas .nav-link {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    justify-content: flex-start;
    padding: 0.72rem 0.85rem;
    border-radius: 0.75rem;
    color: var(--text);
    font-weight: 800;
  }

  [dir="rtl"] .site-nav.site-nav-saas .nav-link {
    justify-content: flex-end;
    text-align: right;
  }

  .site-nav.site-nav-saas .nav-link:hover,
  .site-nav.site-nav-saas .nav-link.is-active {
    background: rgba(31, 122, 114, 0.1);
    color: var(--secondary-2);
  }

  .site-nav.site-nav-saas .nav-dropdown-menu {
    margin: 0.3rem 0 0;
    padding: 0.35rem;
    border-color: rgba(31, 122, 114, 0.16);
    background: rgba(31, 122, 114, 0.06);
  }

  .site-nav.site-nav-saas .nav-dropdown-link {
    white-space: normal;
  }
}


/* ==========================================================================
   Premium Hero & Header Override (Lead Minds Transformation)
   ========================================================================== */

/* 1. Header Sticky & Transition Settings */
.site-header.premium-header {
  position: fixed !important;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2000 !important;
  background: #0d2121 !important; /* Solid dark brand color by default for subpages */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15) !important;
  height: 86px !important; /* Exactly 86px height */
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
}

/* Header inner layout alignment (Flexbox center alignment) */
.premium-header .header-shell {
  direction: ltr !important; /* Left-to-right flow for brand logo left, nav center, ctas right */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: var(--container) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  height: 100% !important;
  flex-wrap: nowrap !important; /* PREVENT WRAPPING */
}

/* Transparent overlay only on Homepage top */
body.home-page .site-header.premium-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

/* Homepage scrolled state */
body.home-page .site-header.premium-header.scrolled {
  background: rgba(13, 33, 33, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
}

/* 2. Brand & Logo Alignment */
.premium-header .brand-saas {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}

.premium-header .brand-saas img {
  display: block !important;
  height: 40px !important; /* Perfect vertical height */
  width: auto !important;
}

/* 3. Main Navigation Alignment */
.premium-header .site-nav {
  order: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  margin: 0 24px !important;
  height: 100% !important;
}

.premium-header .nav-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important; /* Comfortable spacing */
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  height: 100% !important;
  flex-wrap: nowrap !important; /* PREVENT WRAPPING */
}

.premium-header .nav-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.premium-header .nav-link {
  position: relative !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.premium-header .nav-link:hover,
.premium-header .nav-link.is-active {
  color: #ffffff !important;
  background: transparent !important;
}

/* Elegant indicator dot for active page */
.premium-header .nav-link::after {
  content: "" !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 50% !important;
  transform: translateX(-50%) scaleX(0) !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background-color: var(--primary) !important; /* Brand Coral */
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  transform-origin: center !important;
}

.premium-header .nav-link.is-active::after {
  transform: translateX(-50%) scaleX(1) !important;
}

.premium-header .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1) !important;
}

/* 4. Navigation Actions & Controls (Right side group) */
.premium-header .nav-cta {
  order: 3 !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important; /* Perfect spacing between CTA components */
  height: 100% !important;
  flex-wrap: nowrap !important; /* PREVENT WRAPPING */
}

/* Search Button */
.premium-header .header-search-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-header .header-search-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.premium-header .header-search-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  fill: none !important;
}

/* Divider Line */
.premium-header .header-divider {
  width: 1px !important;
  height: 22px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

/* CTA Buttons Group */
.premium-header .cta-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Primary Button (احجز مكالمة) */
.premium-header .header-btn-primary {
  background: var(--primary) !important; /* Coral */
  border: 1px solid transparent !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 15px rgba(243, 115, 88, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.premium-header .header-btn-primary:hover {
  background: #f4826b !important;
  box-shadow: 0 6px 20px rgba(243, 115, 88, 0.35) !important;
  transform: translateY(-2px) !important;
}

.premium-header .header-btn-primary svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-header .header-btn-primary:hover svg {
  transform: translateX(3px) !important;
}

[dir="rtl"] .premium-header .header-btn-primary:hover svg {
  transform: translateX(-3px) !important;
}

/* Secondary Button (اتصل الآن) */
.premium-header .header-btn-secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.premium-header .header-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* Language and Theme Toggles */
.premium-header .header-utils {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.premium-header .header-tool-circle {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.premium-header .header-tool-circle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* 5. Dropdown Menu Overrides (Desktop) */
.premium-header .nav-item-dropdown {
  position: relative !important;
}

.premium-header .nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.premium-header .nav-dropdown-caret {
  font-size: 0.6rem !important;
  opacity: 0.7;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-inline-start: 4px;
  display: inline-block !important;
  vertical-align: middle;
}

.premium-header .nav-item-dropdown.open .nav-dropdown-caret,
.premium-header .nav-item-dropdown:hover .nav-dropdown-caret {
  transform: rotate(180deg) !important;
}

.premium-header .nav-dropdown-menu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  inset-inline-start: 50% !important;
  transform: translateX(-50%) !important; /* Centered dropdown! */
  z-index: 2100 !important;
  min-width: 280px !important;
  padding: 8px !important;
  background: rgba(13, 33, 33, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45) !important;
  gap: 2px !important;
}

.premium-header .nav-item-dropdown.open .nav-dropdown-menu,
.premium-header .nav-item-dropdown:hover .nav-dropdown-menu {
  display: grid !important;
}

.premium-header .nav-dropdown-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: normal !important;
  display: block !important;
  text-align: right !important; /* RTL default */
}

[dir="ltr"] .premium-header .nav-dropdown-link {
  text-align: left !important; /* LTR override */
}

.premium-header .nav-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

/* 6. Hero Section Layout */
.hero-premium-section {
  position: relative;
  overflow: hidden;
  background-color: #061817;
  background-image: 
    radial-gradient(circle at 10% 40%, rgba(242, 92, 39, 0.65) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(245, 186, 60, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(105, 166, 142, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(16, 53, 53, 0.85) 0%, transparent 60%),
    linear-gradient(135deg, #092624 0%, #030a0a 100%);
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Background Noise Overlay */
.hero-premium-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

/* Background Geometric Line Overlay */
.hero-premium-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='1200' height='800' viewBox='0 0 1200 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='600' cy='400' r='380' stroke='rgba(255, 255, 255, 0.03)' stroke-width='0.75'/%3E%3Ccircle cx='600' cy='400' r='260' stroke='rgba(255, 255, 255, 0.02)' stroke-width='0.75'/%3E%3Ccircle cx='950' cy='260' r='210' stroke='rgba(245, 186, 60, 0.05)' stroke-width='0.75'/%3E%3Cpath d='M-100,400 Q600,-100 1300,400' stroke='rgba(242, 115, 87, 0.06)' stroke-width='1.2'/%3E%3Cpath d='M-100,400 Q600,900 1300,400' stroke='rgba(65, 165, 165, 0.06)' stroke-width='1.2'/%3E%3Cpath d='M200,0 L1000,800' stroke='rgba(245, 186, 60, 0.03)' stroke-width='0.75'/%3E%3Cpath d='M1000,0 L200,800' stroke='rgba(245, 186, 60, 0.03)' stroke-width='0.75'/%3E%3Crect x='300' y='100' width='600' height='600' rx='180' stroke='rgba(255, 255, 255, 0.015)' stroke-width='0.75'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero-premium-container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-premium-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

[dir="rtl"] .hero-premium-copy {
  align-items: flex-start;
  text-align: right;
}

.hero-premium-title {
  font-family: "Genos", sans-serif !important;
  font-size: clamp(3.2rem, 7.5vw, 5.8rem) !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 0 24px 0 !important;
  text-transform: uppercase;
}

.hero-premium-title span {
  display: block;
  background: linear-gradient(135deg, #ffffff 10%, #76B299 50%, #41A5A5 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.hero-premium-desc {
  font-family: var(--font-sans) !important;
  font-size: clamp(1rem, 1.8vw, 1.25rem) !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  color: rgba(242, 250, 249, 0.8) !important;
  margin: 0 !important;
  max-width: 520px;
}

.hero-premium-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.geometric-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 440px;
  height: 520px;
  position: relative;
  direction: ltr !important;
}

.grid-cell {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.grid-cell:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.25);
  z-index: 10;
}

.grid-cell img {
  position: absolute;
  width: calc(200% + 20px);
  height: calc(300% + 40px);
  max-width: none !important;
  object-fit: cover;
  pointer-events: none;
}

.cell-1-1 { border-radius: 120px 0 120px 0; }
.cell-1-1 img { top: 0; left: 0; }

.cell-1-2 { border-radius: 0 120px 0 120px; }
.cell-1-2 img { top: 0; left: calc(-100% - 20px); }

.cell-2-1 { border-radius: 0 120px 0 120px; }
.cell-2-1 img { top: calc(-100% - 20px); left: 0; }

.cell-2-2 { border-radius: 120px 0 120px 0; }
.cell-2-2 img { top: calc(-100% - 20px); left: calc(-100% - 20px); }

.cell-3-1 { border-radius: 0 120px 0 120px; }
.cell-3-1 img { top: calc(-200% - 40px); left: 0; }

.cell-3-2 { border-radius: 120px 0 120px 0; }
.cell-3-2 img { top: calc(-200% - 40px); left: calc(-100% - 20px); }

/* 7. Non-Homepage Layout Fix (Account for Fixed Header) */
body:not(.home-page) {
  padding-top: 86px !important;
}

/* 8. Responsive Rules */
@media (max-width: 991px) {
  .hero-premium-container {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 20px;
  }
  .hero-premium-copy {
    align-items: center;
    text-align: center;
  }
  [dir="rtl"] .hero-premium-copy {
    align-items: center;
    text-align: center;
  }
  .hero-premium-desc {
    max-width: 600px;
  }
  .geometric-grid-wrapper {
    height: 460px;
    max-width: 390px;
    margin: 0 auto;
  }
}

/* Compact Desktop scaling (1200px - 1350px) to prevent wrapping */
@media (min-width: 1200px) and (max-width: 1350px) {
  .premium-header .nav-list {
    gap: 12px !important;
  }
  .premium-header .nav-link {
    font-size: 0.88rem !important;
    padding: 6px 8px !important;
  }
  .premium-header .nav-cta {
    gap: 10px !important;
  }
  .premium-header .cta-group {
    gap: 8px !important;
  }
  .premium-header .header-btn-primary,
  .premium-header .header-btn-secondary {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 1199px) {
  .premium-header {
    height: 86px !important;
  }
  .premium-header .site-nav {
    display: none !important;
  }
  .premium-header .nav-cta .cta-group {
    display: none !important;
  }
  .premium-header .header-divider,
  .premium-header .header-search-btn {
    display: none !important;
  }
  
  /* Show hamburger button */
  .premium-header .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    order: 3 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  
  .premium-header .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
  }

  .premium-header .nav-toggle svg {
    width: 20px !important;
    height: 20px !important;
  }

  }

@media (max-width: 480px) {
  .hero-premium-section {
    padding: 120px 0 60px;
  }
  .hero-premium-title {
    font-size: 3rem !important;
  }
  .geometric-grid-wrapper {
    height: 380px;
    max-width: 320px;
    gap: 12px;
  }
  .grid-cell img {
    width: calc(200% + 12px);
    height: calc(300% + 24px);
  }
  .cell-1-2 img, .cell-2-2 img, .cell-3-2 img {
    left: calc(-100% - 12px);
  }
  .cell-2-1 img, .cell-2-2 img {
    top: calc(-100% - 12px);
  }
  .cell-3-1 img, .cell-3-2 img {
    top: calc(-200% - 24px);
  }
  .cell-1-1, .cell-1-2, .cell-2-1, .cell-2-2, .cell-3-1, .cell-3-2 {
    border-radius: 80px 0 80px 0;
  }
  .cell-1-2, .cell-2-1, .cell-3-1 {
    border-radius: 0 80px 0 80px;
  }
}

/* ========================================================================== 
   Lead Minds reference-art direction (July 2026)
   Visual-only overrides: all existing content and navigation remain intact.
   ========================================================================== */

html[dir="rtl"] body {
  --font-display: "IBM Plex Sans Arabic", sans-serif;
  --font-headings: "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
  --font-sans: "IBM Plex Sans Arabic", sans-serif;
  font-family: var(--font-sans);
}

html[dir="ltr"] body {
  --font-display: "Climate Crisis", "Genos", sans-serif;
  --font-headings: "Genos", sans-serif;
  --font-body: "Genos", sans-serif;
  --font-sans: "Genos", sans-serif;
  font-family: var(--font-sans);
}

body.home-page .site-header.premium-header {
  height: 92px !important;
  background: rgba(13, 66, 64, 0.16) !important;
  border-bottom-color: rgba(255, 224, 119, 0.2) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

body.home-page .site-header.premium-header.scrolled {
  background: rgba(16, 66, 64, 0.92) !important;
  border-bottom-color: rgba(255, 224, 119, 0.26) !important;
  box-shadow: 0 12px 35px rgba(7, 43, 42, 0.24) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
}

body.home-page .premium-header .header-shell {
  max-width: 1480px !important;
  padding-inline: clamp(22px, 4vw, 68px) !important;
}

body.home-page .premium-header .brand-saas img {
  height: 52px !important;
  filter: drop-shadow(0 8px 18px rgba(7, 42, 41, 0.18));
}

body.home-page .premium-header .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 12px rgba(7, 40, 39, 0.18);
}

body.home-page .premium-header .nav-link::after {
  background: #ffd25c !important;
}

body.home-page .premium-header .header-btn-primary {
  background: #176b68 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 9px 24px rgba(9, 65, 62, 0.28) !important;
}

.hero-premium-section {
  min-height: max(760px, 100svh);
  padding: 132px 0 72px;
  background-color: #db7a58;
  background-image:
    radial-gradient(circle at 9% 78%, rgba(18, 91, 87, 0.98) 0 12%, transparent 42%),
    radial-gradient(circle at 24% 28%, rgba(24, 92, 89, 0.82) 0, transparent 30%),
    radial-gradient(circle at 52% 48%, rgba(255, 109, 71, 0.94) 0, transparent 35%),
    radial-gradient(circle at 78% 20%, rgba(255, 194, 66, 0.98) 0, transparent 38%),
    radial-gradient(circle at 98% 70%, rgba(107, 180, 149, 0.94) 0, transparent 34%),
    linear-gradient(105deg, #176b68 0%, #e87558 46%, #ffc247 72%, #72b598 100%);
}

.hero-premium-section::before {
  background-image:
    linear-gradient(rgba(255, 211, 91, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 211, 91, 0.2) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg width='720' height='720' viewBox='0 0 720 720' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23F9D45D' stroke-opacity='.34' stroke-width='1'%3E%3Cpath d='M0 0h180v180H0zM180 0h180v180c0 99.4-80.6 180-180 180V0ZM360 0h180v180c0 99.4-80.6 180-180 180V0ZM540 0h180v180H540z'/%3E%3Cpath d='M0 360h180v180C80.6 540 0 459.4 0 360ZM180 360h180v180H180zM360 360h180v180c-99.4 0-180-80.6-180-180ZM540 360h180v180H540z'/%3E%3Cpath d='M0 180c99.4 0 180 80.6 180 180H0V180ZM180 180h180c0 99.4-80.6 180-180 180V180ZM540 180h180v180c-99.4 0-180-80.6-180-180Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px, 180px 180px, 720px 720px;
  background-position: center;
  opacity: 0.66;
  mix-blend-mode: soft-light;
}

.hero-premium-section::after {
  opacity: 0.62;
  mix-blend-mode: soft-light;
}

.hero-premium-container {
  width: min(1480px, calc(100% - 64px));
  grid-template-columns: minmax(0, 0.92fr) minmax(540px, 1.08fr);
  gap: clamp(40px, 5vw, 92px);
}

.hero-premium-copy {
  position: relative;
  z-index: 3;
}

.hero-premium-copy .eyebrow {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(12, 77, 74, 0.18) !important;
  backdrop-filter: blur(8px);
}

.hero-premium-title {
  font-size: clamp(4.5rem, 8.4vw, 8.7rem) !important;
  line-height: 0.79 !important;
  letter-spacing: -0.065em !important;
  margin-bottom: 34px !important;
  text-shadow: 0 12px 36px rgba(7, 52, 50, 0.16);
}

.hero-rotating-title {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 2.05em;
  font-family: "Genos", "IBM Plex Sans Arabic", sans-serif !important;
  font-size: clamp(3.4rem, 6.4vw, 7rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  text-transform: none;
}

html[dir="rtl"] .hero-rotating-title {
  font-family: "IBM Plex Sans Arabic", "Genos", sans-serif !important;
  letter-spacing: 0 !important;
}

.hero-rotating-title [data-slogan-text] {
  display: inline !important;
  max-width: 100%;
  padding-bottom: 0.08em;
  background: linear-gradient(110deg, #ffffff 0 40%, #d8fff8 72%, #67c8bd 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  overflow-wrap: anywhere;
}

.typing-cursor {
  display: inline-block !important;
  flex: 0 0 auto;
  width: 0.055em;
  height: 0.78em;
  margin-inline-start: 0.08em;
  margin-bottom: 0.12em;
  border-radius: 999px;
  background: #fff3c1 !important;
  -webkit-text-fill-color: initial !important;
  animation: lm-cursor-blink 0.78s steps(1) infinite;
}

@keyframes lm-cursor-blink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typing-cursor { animation: none; }
}

.hero-premium-title span {
  padding-bottom: 0.09em;
  background: linear-gradient(110deg, #ffffff 0 38%, #c9f3ec 72%, #65c4ba 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.hero-premium-desc {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: clamp(1.04rem, 1.4vw, 1.28rem) !important;
  font-weight: 500 !important;
  font-style: italic;
  line-height: 1.7 !important;
  text-shadow: 0 3px 16px rgba(8, 54, 52, 0.22);
}

.hero-premium-visual {
  position: relative;
  isolation: isolate;
}

.hero-premium-visual::before {
  content: "";
  position: absolute;
  inset: 5% -3% -2% 6%;
  border: 1px solid rgba(255, 222, 105, 0.38);
  border-radius: 48% 0 46% 0;
  transform: rotate(1deg);
  z-index: -1;
}

.geometric-grid-wrapper {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  width: min(100%, 700px);
  max-width: 700px;
  height: clamp(500px, 65vh, 680px);
}

.grid-cell {
  border: 0;
  background: rgba(255, 211, 76, 0.3);
  box-shadow: 0 20px 50px rgba(8, 58, 56, 0.16);
}

.grid-cell img {
  width: calc(300% + 28px);
  height: calc(200% + 14px);
  object-position: center center;
  filter: saturate(1.08) contrast(1.03) brightness(1.04);
}

.cell-1-1 { border-radius: 140px 0 0 0; }
.cell-1-1 img { top: 0; left: 0; }
.cell-1-2 { border-radius: 0 0 140px 0; }
.cell-1-2 img { top: 0; left: calc(-100% - 14px); }
.cell-2-1 { border-radius: 0 140px 0 0; }
.cell-2-1 img { top: 0; left: calc(-200% - 28px); }
.cell-2-2 { border-radius: 0 0 0 140px; }
.cell-2-2 img { top: calc(-100% - 14px); left: 0; }
.cell-3-1 { border-radius: 140px 0 0 0; }
.cell-3-1 img { top: calc(-100% - 14px); left: calc(-100% - 14px); }
.cell-3-2 { border-radius: 0 0 140px 0; }
.cell-3-2 img { top: calc(-100% - 14px); left: calc(-200% - 28px); }

.grid-overlay-svg {
  display: none;
}

@media (max-width: 1199px) {
  body.home-page .site-header.premium-header {
    height: 80px !important;
  }

  .hero-premium-container {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    width: min(100% - 40px, 1060px);
    gap: 34px;
  }

  .hero-premium-title {
    font-size: clamp(4rem, 9vw, 6.5rem) !important;
  }

  .geometric-grid-wrapper {
    height: 520px;
  }
}

@media (max-width: 900px) {
  .hero-premium-section {
    padding: 122px 0 70px;
  }

  .hero-premium-container {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 720px);
  }

  .hero-premium-copy,
  [dir="rtl"] .hero-premium-copy {
    align-items: flex-start;
    text-align: start;
  }

  .hero-premium-title {
    font-size: clamp(4.1rem, 16vw, 7rem) !important;
  }

  .geometric-grid-wrapper {
    width: min(100%, 620px);
    height: min(76vw, 590px);
  }
}

@media (max-width: 560px) {
  body.home-page .premium-header .brand-saas img {
    height: 44px !important;
  }

  .hero-premium-container {
    width: min(100% - 28px, 520px);
  }

  .hero-premium-title {
    font-size: clamp(3.45rem, 18vw, 5rem) !important;
    margin-bottom: 24px !important;
  }

  .hero-premium-desc {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .geometric-grid-wrapper {
    gap: 8px;
    height: min(90vw, 470px);
  }

  .grid-cell img {
    width: calc(300% + 16px);
    height: calc(200% + 8px);
  }

  .cell-1-2 img,
  .cell-3-1 img { left: calc(-100% - 8px); }
  .cell-2-1 img,
  .cell-3-2 img { left: calc(-200% - 16px); }
  .cell-2-2 img,
  .cell-3-1 img,
  .cell-3-2 img { top: calc(-100% - 8px); }
}

/* ========================================================================== 
   Unified six-piece brand artwork
   The same crop, geometry and image are used on every page.
   ========================================================================== */

.brand-artwork {
  --art-gap: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--art-gap);
  width: 100%;
  height: 100%;
  min-height: 420px;
  direction: ltr !important;
  isolation: isolate;
}

.brand-artwork__cell {
  position: relative;
  overflow: hidden;
  display: block;
  background-image: url("../images/hero-home/hero-grid-man.png");
  background-repeat: no-repeat;
  background-size: calc(300% + (var(--art-gap) * 2)) calc(200% + var(--art-gap));
  box-shadow: 0 18px 44px rgba(8, 47, 46, 0.15);
}

.brand-artwork__cell--1 {
  border-radius: 50% 0 0 0;
  background-position: left top;
}

.brand-artwork__cell--2 {
  border-radius: 0 0 50% 0;
  background-position: center top;
}

.brand-artwork__cell--3 {
  border-radius: 50% 0 0 0;
  background-position: right top;
}

.brand-artwork__cell--4 {
  border-radius: 0 0 50% 0;
  background-position: left bottom;
}

.brand-artwork__cell--5 {
  border-radius: 50% 0 0 0;
  background-position: center bottom;
}

.brand-artwork__cell--6 {
  border-radius: 0 0 50% 0;
  background-position: right bottom;
}

.page-hero-media.page-hero-media--brand-artwork {
  min-height: clamp(420px, 43vw, 650px) !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.page-hero-media.page-hero-media--brand-artwork::after {
  display: none !important;
}

.brand-artwork--content {
  width: min(100%, 720px);
  height: clamp(420px, 52vw, 650px);
  margin: 0 auto 28px;
}

/* Normalize the homepage artwork to the exact same six-piece geometry. */
.hero-premium-visual .geometric-grid-wrapper {
  --art-gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--art-gap) !important;
}

.hero-premium-visual .grid-cell {
  border: 0 !important;
  box-shadow: 0 18px 44px rgba(8, 47, 46, 0.15) !important;
}

.hero-premium-visual .grid-cell img {
  width: calc(300% + (var(--art-gap) * 2)) !important;
  height: calc(200% + var(--art-gap)) !important;
  max-width: none !important;
  object-fit: cover !important;
}

.hero-premium-visual .cell-1-1 {
  border-radius: 50% 0 0 0 !important;
}

.hero-premium-visual .cell-1-1 img {
  inset: 0 auto auto 0 !important;
}

.hero-premium-visual .cell-1-2 {
  border-radius: 0 0 50% 0 !important;
}

.hero-premium-visual .cell-1-2 img {
  top: 0 !important;
  left: calc(-100% - var(--art-gap)) !important;
}

.hero-premium-visual .cell-2-1 {
  border-radius: 50% 0 0 0 !important;
}

.hero-premium-visual .cell-2-1 img {
  top: 0 !important;
  left: calc(-200% - (var(--art-gap) * 2)) !important;
}

.hero-premium-visual .cell-2-2 {
  border-radius: 0 0 50% 0 !important;
}

.hero-premium-visual .cell-2-2 img {
  top: calc(-100% - var(--art-gap)) !important;
  left: 0 !important;
}

.hero-premium-visual .cell-3-1 {
  border-radius: 50% 0 0 0 !important;
}

.hero-premium-visual .cell-3-1 img {
  top: calc(-100% - var(--art-gap)) !important;
  left: calc(-100% - var(--art-gap)) !important;
}

.hero-premium-visual .cell-3-2 {
  border-radius: 0 0 50% 0 !important;
}

.hero-premium-visual .cell-3-2 img {
  top: calc(-100% - var(--art-gap)) !important;
  left: calc(-200% - (var(--art-gap) * 2)) !important;
}

@media (max-width: 560px) {
  .brand-artwork,
  .hero-premium-visual .geometric-grid-wrapper {
    --art-gap: 8px;
  }

  .brand-artwork {
    min-height: 330px;
  }

  .page-hero-media.page-hero-media--brand-artwork {
    min-height: min(110vw, 480px) !important;
  }

  .brand-artwork--content {
    height: min(110vw, 480px);
    min-height: 330px;
  }
}

/* ========================================================================== 
   Site-wide Lead Minds visual system
   Applies the final hero art direction, local typography and component finish
   to every page without altering page content.
   ========================================================================== */

:root {
  --lm-teal-950: #082f2e;
  --lm-teal-900: #0d4543;
  --lm-teal-700: #176b68;
  --lm-teal-500: #41a5a5;
  --lm-coral: #f27357;
  --lm-gold: #faba3d;
  --lm-mint: #78b299;
  --lm-cream: #fffaf0;
  --lm-ink: #103535;
  --lm-radius-lg: 30px;
  --lm-radius-md: 22px;
  --lm-shadow: 0 22px 60px rgba(16, 83, 80, 0.12);
}

html[dir="rtl"] :is(h1, h2, h3, h4, h5, h6, .button, .eyebrow, .nav-link) {
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
}

html[dir="ltr"] :is(h1, h2, h3, h4, h5, h6, .button, .eyebrow, .nav-link) {
  font-family: "Genos", sans-serif !important;
}

body:not(.home-page) {
  background:
    radial-gradient(circle at 0 8%, rgba(120, 178, 153, 0.14), transparent 25rem),
    linear-gradient(180deg, #f9fbf8 0%, #fffaf1 100%);
}

body:not(.home-page) .site-header.premium-header {
  background: rgba(13, 69, 67, 0.95) !important;
  border-bottom: 1px solid rgba(250, 186, 61, 0.25) !important;
  box-shadow: 0 10px 34px rgba(8, 47, 46, 0.18) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
}

body:not(.home-page) .premium-header .header-shell {
  max-width: 1480px !important;
  padding-inline: clamp(22px, 4vw, 68px) !important;
}

body:not(.home-page) .premium-header .brand-saas img {
  height: 48px !important;
}

.premium-header .header-btn-primary {
  background: var(--lm-coral) !important;
  border: 1px solid transparent !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 100px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  min-height: auto !important;
  box-shadow: 0 8px 22px rgba(242, 115, 87, 0.28) !important;
}

body:not(.home-page) .premium-header .nav-link::after {
  background: var(--lm-gold) !important;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(72px, 9vw, 120px) 0 !important;
  color: #fff;
  background:
    radial-gradient(circle at 8% 72%, rgba(15, 92, 88, 0.96) 0, transparent 35%),
    radial-gradient(circle at 49% 45%, rgba(242, 115, 87, 0.96) 0, transparent 38%),
    radial-gradient(circle at 78% 16%, rgba(250, 186, 61, 0.98) 0, transparent 40%),
    radial-gradient(circle at 100% 78%, rgba(120, 178, 153, 0.94) 0, transparent 35%),
    linear-gradient(110deg, #176b68, #f27357 48%, #faba3d 74%, #78b299);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 222, 96, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 222, 96, 0.18) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg width='720' height='720' viewBox='0 0 720 720' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23FFE06B' stroke-opacity='.35'%3E%3Cpath d='M0 0h180v180H0zM180 0h180v180c0 99-81 180-180 180V0ZM360 0h180v180c0 99-81 180-180 180V0ZM540 0h180v180H540zM0 360h180v180C81 540 0 459 0 360ZM180 360h180v180H180zM360 360h180v180c-99 0-180-81-180-180ZM540 360h180v180H540zM0 180c99 0 180 81 180 180H0V180ZM180 180h180c0 99-81 180-180 180V180ZM540 180h180v180c-99 0-180-81-180-180Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px, 180px 180px, 720px 720px;
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page-hero-grid {
  position: relative;
  z-index: 2;
  align-items: center;
  gap: clamp(32px, 6vw, 88px) !important;
}

.page-hero-copy {
  color: #fff;
}

.page-hero-copy :is(h1, h2, h3, p) {
  color: #fff !important;
  text-shadow: 0 5px 24px rgba(8, 47, 46, 0.16);
}

.page-hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 6.6rem) !important;
  line-height: 0.98 !important;
}

.page-hero-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.page-hero .eyebrow {
  color: #fff !important;
  background: rgba(13, 69, 67, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(8px);
}

.page-hero-media {
  position: relative;
  min-height: clamp(300px, 38vw, 520px) !important;
  border: 12px solid rgba(250, 186, 61, 0.78);
  border-radius: 48% 0 48% 0 !important;
  box-shadow: 0 28px 70px rgba(8, 47, 46, 0.24);
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 31% -12px auto -12px;
  height: 12px;
  background: rgba(250, 186, 61, 0.9);
  box-shadow: 0 128px 0 rgba(250, 186, 61, 0.9);
  pointer-events: none;
}

.page-hero-media img {
  border-radius: inherit !important;
  filter: saturate(1.08) contrast(1.03);
}

main > .section {
  position: relative;
  padding-block: clamp(64px, 8vw, 112px) !important;
}

main > .section:nth-of-type(even) {
  background:
    radial-gradient(circle at 90% 10%, rgba(250, 186, 61, 0.09), transparent 22rem),
    rgba(255, 255, 255, 0.72);
}

main > .section:nth-of-type(odd):not(.page-hero):not(.hero-premium-section) {
  background:
    radial-gradient(circle at 6% 90%, rgba(65, 165, 165, 0.09), transparent 24rem),
    rgba(255, 250, 240, 0.68);
}

.section-head {
  gap: 1rem !important;
}

.section-head h2 {
  color: var(--lm-ink);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.08 !important;
}

.section-head p {
  line-height: 1.85;
}

.eyebrow {
  width: fit-content;
  color: var(--lm-teal-700) !important;
  border: 1px solid rgba(23, 107, 104, 0.18) !important;
  background: rgba(65, 165, 165, 0.09) !important;
  border-radius: 999px !important;
  padding: 0.55rem 0.9rem !important;
  font-weight: 700 !important;
}

.section-head-center .eyebrow {
  margin-inline: auto;
}

.cards-grid {
  gap: clamp(18px, 2.5vw, 32px) !important;
}

:is(.card, .contact-panel, .cta-box, .post-article, .course-outline, .stat, .stats-card) {
  border: 1px solid rgba(23, 107, 104, 0.1) !important;
  border-radius: var(--lm-radius-lg) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: var(--lm-shadow) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

:is(.card, .contact-panel, .cta-box, .post-article, .course-outline) {
  padding: clamp(22px, 3vw, 40px) !important;
}

.dynamic-card {
  position: relative;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease !important;
}

.dynamic-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--lm-teal-500), var(--lm-gold), var(--lm-coral));
  opacity: 0.85;
}

[dir="rtl"] .dynamic-card::before {
  inset: 0 0 0 auto;
}

.dynamic-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(23, 107, 104, 0.2) !important;
  box-shadow: 0 30px 76px rgba(16, 83, 80, 0.18) !important;
}

:is(.card, .story-card, .service-detail-card) > img {
  border-radius: 22px 0 22px 0 !important;
}

.service-detail-card > img {
  min-height: 230px !important;
  max-height: 290px;
}

.mini-chip-row span,
.contact-chip,
.hero-trust-item {
  border: 1px solid rgba(23, 107, 104, 0.14) !important;
  background: rgba(65, 165, 165, 0.08) !important;
  color: var(--lm-teal-900) !important;
}

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

.stat::after {
  content: "";
  position: absolute;
  inset: auto -15% -65% 25%;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(250, 186, 61, 0.22), rgba(242, 115, 87, 0.16));
}

.stat strong,
.stats-card strong {
  color: var(--lm-coral) !important;
  font-size: clamp(2.1rem, 4vw, 3.5rem) !important;
}

.split-showcase {
  align-items: center;
  gap: clamp(32px, 6vw, 84px) !important;
}

.industry-list {
  gap: 14px !important;
}

.industry-list article {
  padding: 22px !important;
  border: 1px solid rgba(23, 107, 104, 0.1) !important;
  border-radius: var(--lm-radius-md) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 16px 42px rgba(16, 83, 80, 0.09);
}

.button {
  border-radius: 999px !important;
  font-weight: 700 !important;
  min-height: 48px;
  padding-inline: 1.35rem !important;
}

.button-primary {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(110deg, var(--lm-teal-700), var(--lm-teal-500)) !important;
  box-shadow: 0 10px 28px rgba(23, 107, 104, 0.24) !important;
}

.button-primary:hover {
  background: linear-gradient(110deg, var(--lm-coral), #f58c70) !important;
  box-shadow: 0 14px 34px rgba(242, 115, 87, 0.28) !important;
}

.cta-box,
.homepage-cta {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(250, 186, 61, 0.42), transparent 30%),
    linear-gradient(120deg, var(--lm-teal-950), var(--lm-teal-700)) !important;
  border-color: rgba(250, 186, 61, 0.24) !important;
}

.cta-box :is(h1, h2, h3, p),
.homepage-cta :is(h1, h2, h3, p) {
  color: #fff !important;
}

.cta-box .eyebrow,
.homepage-cta .eyebrow {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.input,
.select,
.textarea {
  min-height: 52px;
  border: 1px solid rgba(23, 107, 104, 0.14) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--font-sans) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 3px solid rgba(65, 165, 165, 0.16) !important;
  border-color: var(--lm-teal-500) !important;
}

.post-article {
  max-width: 980px;
  margin-inline: auto;
}

.post-cover,
.course-cover {
  border-radius: 28px 0 28px 0 !important;
}

.post-body {
  font-size: 1.08rem !important;
  line-height: 1.95 !important;
}

.footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82) !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(65, 165, 165, 0.24), transparent 24rem),
    radial-gradient(circle at 85% 100%, rgba(242, 115, 87, 0.18), transparent 24rem),
    var(--lm-teal-950) !important;
  border-top: 1px solid rgba(250, 186, 61, 0.24) !important;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(250, 186, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 186, 61, 0.05) 1px, transparent 1px);
  background-size: 90px 90px;
}

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

.footer-shell {
  padding-block: clamp(44px, 6vw, 76px) !important;
}

.footer-summary strong {
  color: #fff !important;
  font-family: "Climate Crisis", "Genos", "IBM Plex Sans Arabic", sans-serif !important;
  font-size: clamp(1.55rem, 3vw, 2.4rem) !important;
}

.footer-inline-links a {
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer-inline-links a:hover {
  color: var(--lm-gold) !important;
}

[data-theme="dark"] main > .section:nth-of-type(n) {
  background: rgba(8, 25, 25, 0.78);
}

[data-theme="dark"] :is(.card, .contact-panel, .post-article, .course-outline, .stat, .stats-card, .industry-list article) {
  color: var(--text);
  background: rgba(15, 38, 38, 0.9) !important;
  border-color: rgba(120, 178, 153, 0.16) !important;
}

[data-theme="dark"] .section-head h2,
[data-theme="dark"] :is(.card, .post-article, .course-outline, .industry-list article) :is(h2, h3, h4) {
  color: #f2faf9 !important;
}

@media (max-width: 900px) {
  .page-hero {
    min-height: auto;
    padding-block: 72px !important;
  }

  .page-hero-media {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .page-hero-copy {
    text-align: start !important;
  }
}

@media (max-width: 560px) {
  body:not(.home-page) {
    padding-top: 80px !important;
  }

  body:not(.home-page) .site-header.premium-header {
    height: 80px !important;
  }

  .page-hero {
    padding-block: 54px !important;
  }

  .page-hero-copy h1 {
    font-size: clamp(2.5rem, 13vw, 4.3rem) !important;
  }

  .page-hero-media {
    min-height: 280px !important;
    border-width: 8px;
  }

  .page-hero-media::after {
    inset-inline: -8px;
    height: 8px;
    box-shadow: 0 92px 0 rgba(250, 186, 61, 0.9);
  }

  main > .section {
    padding-block: 58px !important;
  }

  :is(.card, .contact-panel, .cta-box, .post-article, .course-outline) {
    padding: 22px !important;
    border-radius: 22px !important;
  }
}










/* ==========================================================================
   Premium Mobile Drawer, Header, & Cards Optimization (Antigravity Redesign)
   ========================================================================== */

/* Prevent body scroll when drawer is open */
body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Disable header containing block and force max z-index when drawer is open */
body.drawer-open .site-header,
body.drawer-open .site-header.premium-header,
body.drawer-open .site-header.premium-header.scrolled {
  z-index: 999999 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  transform: none !important;
}

/* Premium Mobile Drawer overlay */
.premium-header .site-nav.site-nav-saas {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: block !important;
  background: rgba(8, 25, 25, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 300ms ease, visibility 300ms ease !important;
  padding: 0 !important;
  transform: none !important;
  overflow: hidden !important;
}

.premium-header .site-nav.site-nav-saas.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Right Side Drawer Panel - Always Dark Brand Green */
.premium-header .site-nav.site-nav-saas .nav-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 85vw !important;
  max-width: 380px !important;
  height: 100vh !important;
  background: #0d2121 !important; /* Brand Dark Green */
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.2rem !important;
  overflow-y: auto !important;
  overflow-x: hidden !important; /* Strict overflow-x control */
  transform: translateX(100%) !important;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: auto !important;
  gap: 0.75rem !important;
}

.premium-header .site-nav.site-nav-saas.open .nav-panel {
  transform: translateX(0) !important;
}

/* Mobile Drawer Header */
.premium-header .site-nav.site-nav-saas .drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.25rem !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

.premium-header .site-nav.site-nav-saas .drawer-header .brand-img {
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.premium-header .site-nav.site-nav-saas .drawer-close-btn {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  right: auto !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important; /* Always white on dark overlay background! */
  cursor: pointer !important;
  padding: 0 !important;
  border-radius: 50% !important;
  z-index: 100000 !important;
  transition: background 250ms ease, color 250ms ease, transform 250ms ease !important;
}

.premium-header .site-nav.site-nav-saas .drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: rotate(90deg) !important;
}

/* Drawer Content */
.premium-header .site-nav.site-nav-saas .drawer-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  overflow-x: hidden !important; /* Strict overflow-x control */
  width: 100% !important;
}

/* Navigation container */
.premium-header .site-nav.site-nav-saas .navigation-container {
  overflow-x: hidden !important; /* Strict overflow-x control */
  width: 100% !important;
}

/* Mobile Navigation List inside Drawer */
.premium-header .site-nav.site-nav-saas .nav-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-x: hidden !important;
}

.premium-header .site-nav.site-nav-saas .nav-item {
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  align-items: stretch !important;
  flex-direction: column !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 0.15rem !important;
}

.premium-header .site-nav.site-nav-saas .nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0.45rem 0.5rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #ffffff !important; /* Always light text */
  text-decoration: none !important;
  transition: background 200ms ease, color 200ms ease !important;
  border-radius: 0.5rem !important;
}

/* Hide dot indicator on mobile drawer link */
.premium-header .site-nav.site-nav-saas .nav-link::after {
  content: none !important;
  display: none !important;
}

.premium-header .site-nav.site-nav-saas .nav-link:hover,
.premium-header .site-nav.site-nav-saas .nav-link.is-active {
  color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

/* Dropdown Accordion Toggle */
.premium-header .site-nav.site-nav-saas .nav-dropdown-toggle {
  cursor: pointer !important;
}

.premium-header .site-nav.site-nav-saas .nav-dropdown-caret {
  font-size: 0.75rem !important;
  margin-inline-start: auto !important;
  transition: transform 250ms ease !important;
  display: inline-block !important;
}

.premium-header .site-nav.site-nav-saas .nav-item-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg) !important;
}

/* Submenu Accordion */
.premium-header .site-nav.site-nav-saas .nav-dropdown-menu {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  background: rgba(0, 0, 0, 0.2) !important; /* Dark menu background */
  border: none !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease, padding 300ms ease !important;
}

.premium-header .site-nav.site-nav-saas .nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1 !important;
  max-height: 500px !important;
  padding: 0.35rem !important;
  margin-top: 0.15rem !important;
  margin-bottom: 0.25rem !important;
}

.premium-header .site-nav.site-nav-saas .nav-dropdown-link {
  display: block !important;
  padding: 0.45rem 0.75rem !important;
  border-radius: 0.35rem !important;
  color: rgba(255, 255, 255, 0.8) !important; /* Light text */
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-align: right !important;
  transition: background 200ms ease, color 200ms ease !important;
}

[dir="ltr"] .premium-header .site-nav.site-nav-saas .nav-dropdown-link {
  text-align: left !important;
}

.premium-header .site-nav.site-nav-saas .nav-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* CTA Group Area inside Drawer */
.premium-header .site-nav.site-nav-saas .drawer-cta-group {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.premium-header .site-nav.site-nav-saas .drawer-cta-group .button {
  width: 100% !important;
  max-width: 280px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0 1.5rem !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(31, 122, 114, 0.15) !important;
  transition: background 250ms ease, transform 250ms ease, box-shadow 250ms ease !important;
}

.premium-header .site-nav.site-nav-saas .drawer-cta-group .button-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
}

.premium-header .site-nav.site-nav-saas .drawer-cta-group .button-primary:hover {
  background: var(--primary-2) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(31, 122, 114, 0.3) !important;
}

.premium-header .site-nav.site-nav-saas .drawer-cta-group .button-secondary {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.premium-header .site-nav.site-nav-saas .drawer-cta-group .button-secondary:hover {
  background: rgba(16, 53, 53, 0.04) !important;
}

/* Drawer Footer Section below CTA */
.premium-header .site-nav.site-nav-saas .drawer-footer-bottom {
  margin-top: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

.premium-header .site-nav.site-nav-saas .drawer-lang-switcher {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.premium-header .site-nav.site-nav-saas .drawer-lang-switcher a {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none !important;
  transition: color 200ms ease !important;
}

.premium-header .site-nav.site-nav-saas .drawer-lang-switcher a.active-lang {
  color: var(--primary) !important;
}

.premium-header .site-nav.site-nav-saas .drawer-lang-switcher a:hover {
  color: var(--primary) !important;
}

.premium-header .site-nav.site-nav-saas .drawer-lang-switcher .lang-divider {
  color: rgba(255, 255, 255, 0.15) !important;
}

.premium-header .site-nav.site-nav-saas .drawer-theme-toggle {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
}

/* ==========================================
   Desktop Navigation Above 992px Breakpoint
   ========================================== */
@media (min-width: 992px) {
  .site-header.premium-header {
    height: 86px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .site-header.premium-header .container.header-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: min(1280px, calc(100% - 2.5rem)) !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    padding: 0 20px !important;
  }

  .brand.brand-saas {
    flex-shrink: 0 !important;
  }

  .premium-header .site-nav.site-nav-saas {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-panel {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 !important;
    gap: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  .premium-header .site-nav.site-nav-saas .drawer-content,
  .premium-header .site-nav.site-nav-saas .navigation-container {
    display: contents !important; /* Renders child nav-list directly without wrapping styling */
  }

  .premium-header .site-nav.site-nav-saas .nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(0.15rem, 0.75vw, 0.8rem) !important; /* Slightly smaller gap to prevent desktop overlap */
    width: auto !important;
    overflow: visible !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-item {
    width: auto !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-link {
    font-size: clamp(0.82rem, 0.95vw, 0.92rem) !important; /* Slightly smaller font size on desktop to prevent overlap */
    padding: 0.5rem clamp(0.3rem, 0.6vw, 0.6rem) !important; /* Smaller horizontal padding */
    white-space: nowrap !important;
  }

  .nav-cta.nav-cta-saas {
    display: flex !important;
    align-items: center !important;
    gap: clamp(0.5rem, 1vw, 1rem) !important;
    flex-shrink: 0 !important;
  }

  .nav-cta.nav-cta-saas .cta-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .nav-cta.nav-cta-saas .header-search-btn,
  .nav-cta.nav-cta-saas .header-divider {
    display: inline-flex !important;
  }

  .nav-cta.nav-cta-saas .header-utils {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .nav-toggle.nav-toggle-saas {
    display: none !important; /* Hide hamburger toggle on desktop! */
  }

  .premium-header .site-nav.site-nav-saas .nav-item-dropdown {
    position: relative !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    z-index: 999999 !important;
    background: #0d2121 !important; /* Premium dark background for readability of white text */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    min-width: 16rem !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    overflow: visible !important;
    display: none !important; /* Hide by default on desktop to avoid layout hacks */
    opacity: 1 !important; /* Override mobile accordion opacity */
    max-height: none !important; /* Override mobile accordion max-height */
  }

  /* Support Hover to open dropdown on Desktop */
  .premium-header .site-nav.site-nav-saas .nav-item-dropdown:hover .nav-dropdown-menu {
    display: block !important;
    margin-top: 0.5rem !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 999999 !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-item-dropdown.open .nav-dropdown-menu {
    display: block !important;
    margin-top: 0.5rem !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0.5rem !important; /* Keep desktop padding */
    z-index: 999999 !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-dropdown-link {
    font-size: 0.9rem !important;
    text-align: right !important;
  }

  [dir="ltr"] .premium-header .site-nav.site-nav-saas .nav-dropdown-link {
    text-align: left !important;
  }

  .premium-header .site-nav.site-nav-saas .drawer-header,
  .premium-header .site-nav.site-nav-saas .drawer-cta-group,
  .premium-header .site-nav.site-nav-saas .drawer-footer-bottom {
    display: none !important;
  }
}

/* Medium Desktop Spacing Optimization (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  .premium-header .site-nav.site-nav-saas .nav-link {
    font-size: 0.82rem !important;
    padding: 0.4rem 0.5rem !important;
  }
  .premium-header .site-nav.site-nav-saas .nav-list {
    gap: 0.35rem !important;
  }
  .site-header .container.header-shell {
    gap: 0.5rem !important;
  }
  .nav-cta.nav-cta-saas {
    gap: 0.5rem !important;
  }
  .nav-cta.nav-cta-saas .cta-group {
    gap: 0.4rem !important;
  }
  .nav-cta.nav-cta-saas .button {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.82rem !important;
    min-height: 38px !important;
  }
}

/* ==========================================
   Mobile Header & Toggle Below 992px Breakpoint
   ========================================== */
@media (max-width: 991px) {
  .site-header .container.header-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 60px !important;
    padding: 0 1rem !important;
  }

  .brand.brand-saas img {
    height: 32px !important;
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .nav-cta.nav-cta-saas {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    order: 3 !important;
  }

  .nav-cta.nav-cta-saas .cta-group,
  .nav-cta.nav-cta-saas .header-search-btn,
  .nav-cta.nav-cta-saas .header-divider {
    display: none !important;
  }

  .nav-cta.nav-cta-saas .header-utils {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .nav-toggle.nav-toggle-saas {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(16, 53, 53, 0.12) !important;
    background: var(--surface-strong) !important;
    color: var(--text) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
  }

  /* On transparent home page header before scroll, make toggle button semi-transparent white */
  body.home-page .site-header:not(.scrolled) .nav-toggle.nav-toggle-saas {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }

  .header-tool {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }
}

/* Keep the animated home headline inside the mobile viewport. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.hero-premium-section,
.hero-premium-container,
.hero-premium-copy,
.hero-rotating-title {
  min-width: 0;
  max-width: 100%;
}

.hero-rotating-title {
  display: block;
  width: 100%;
}

.hero-rotating-title [data-slogan-text] {
  display: inline !important;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-rotating-title .typing-cursor {
  display: inline-block !important;
}

@media (max-width: 767px) {
  .hero-premium-section {
    overflow: hidden;
  }

  .hero-premium-copy {
    width: 100%;
  }

  .hero-rotating-title {
    min-height: 3.3em;
    font-size: clamp(2.75rem, 13vw, 4.25rem) !important;
    line-height: 1.05 !important;
  }
}

/* ==========================================
   Article Cards Layout Improvements
   ========================================== */
.cards-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1400px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Premium Card Design overrides */
.card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 1rem !important;
  border: 1px solid rgba(16, 53, 53, 0.06) !important;
  border-radius: 12px !important;
  background: var(--surface-strong) !important;
  box-shadow: 0 2px 12px rgba(8, 28, 32, 0.03) !important;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover {
  transform: translate3d(0, -4px, 0) !important;
  box-shadow: 0 12px 28px rgba(8, 28, 32, 0.08) !important;
  border-color: rgba(31, 122, 114, 0.15) !important;
}

.card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  margin-bottom: 0.65rem !important;
  flex-shrink: 0 !important;
}

.card h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0.25rem 0 0.5rem 0 !important;
  color: var(--text) !important;
}

.card p {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
  margin-bottom: 1rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  margin-top: auto !important;
  padding-top: 0.25rem !important;
}

/* Premium Read Article Button Redesign */
.card-actions .button.button-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.65rem 1.2rem !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  border: 1.5px solid var(--primary) !important;
  background: transparent !important;
  color: var(--primary) !important;
  transition: all 200ms ease !important;
  position: relative !important;
}

.card-actions .button.button-secondary:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(31, 122, 114, 0.2) !important;
}

.card-actions .button.button-secondary::after {
  content: " \2192" !important;
  display: inline-block !important;
  margin-inline-start: 6px !important;
  transition: transform 200ms ease !important;
}

[dir="rtl"] .card-actions .button.button-secondary::after {
  content: " \2190" !important;
}

.card-actions .button.button-secondary:hover::after {
  transform: translateX(4px) !important;
}

[dir="rtl"] .card-actions .button.button-secondary:hover::after {
  transform: translateX(-4px) !important;
}

.card-actions .button.button-secondary:focus-visible {
  outline: 3px solid var(--secondary) !important;
  outline-offset: 2px !important;
}

.card-actions .button.button-secondary.loading {
  pointer-events: none !important;
  opacity: 0.6 !important;
}

.card-actions .button.button-secondary.loading::after {
  content: "" !important;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid currentColor !important;
  border-right-color: transparent !important;
  border-radius: 50% !important;
  animation: button-spin 800ms linear infinite !important;
  margin-inline-start: 6px !important;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   About Page Cinematic Redesign (Revision 3)
   ========================================================================== */

/* Register custom properties for hardware-accelerated border rotation */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* Base keyframe animations */
@keyframes borderRotate {
  to {
    --border-angle: 360deg;
  }
}

@keyframes aboutCardBreath {
  0%, 100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.018) translate3d(0, -3px, 0);
  }
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) translate3d(0, 0, 0);
  }
  50% {
    transform: translateY(-5px) rotate(3deg) translate3d(0, 0, 0);
  }
}

/* Grids responsive layout scoping for About page */
.about-page .vision-mission-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  position: relative !important;
  gap: 0 !important;
}

.about-page .values-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2.2rem !important;
  max-width: 1200px !important;
  margin: 2.5rem auto 0 auto !important;
}

.about-page .why-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2.2rem !important;
  max-width: 1320px !important;
  margin: 2.5rem auto 0 auto !important;
}

@media (min-width: 768px) {
  .about-page .values-grid,
  .about-page .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  .about-page .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .about-page .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Swap Wrapper for Vision & Mission stacking */
.about-page .swap-wrapper {
  grid-area: 1 / 1;
  width: 100%;
  will-change: transform, opacity;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.about-page .swap-wrapper.enter {
  opacity: 0;
  transform: translateX(100%) scale(0.96) translate3d(0, 0, 0);
  pointer-events: none;
  transition: none !important; /* Instant repositioning */
}

.about-page .swap-wrapper.active {
  opacity: 1;
  transform: translateX(0) scale(1) translate3d(0, 0, 0);
  pointer-events: auto;
  z-index: 2;
}

.about-page .swap-wrapper.exit {
  opacity: 0;
  transform: translateX(-100%) scale(0.95) translate3d(0, 0, 0);
  pointer-events: none;
  z-index: 1;
}

/* Premium Card Base Styles */
.about-page .about-card,
.home-page .about-card {
  --card-bg: rgba(255, 255, 255, 0.88);
  --border-glow-color: rgba(23, 107, 104, 0.15);
  
  position: relative;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  height: 100% !important;
  padding: clamp(24px, 4vw, 40px) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 32px rgba(8, 28, 32, 0.03),
              inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
  
  /* Dual background: inner area has solid mask, border area shows background */
  border: 1px solid transparent !important;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              linear-gradient(135deg, rgba(23, 107, 104, 0.1), rgba(23, 107, 104, 0.02)) border-box !important;
              
  /* Hardware Acceleration */
  will-change: transform, opacity, box-shadow;
  transform-style: preserve-3d;
  
  /* Scroll-reveal default state: visible by default for progressive enhancement */
  opacity: 1;
  transform: none;
  
  /* Transition timings */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.6s ease,
              filter 0.6s ease !important;
              
  filter: saturate(1) !important;
}

/* Revealed scroll reveal class */
.about-page .about-card.reveal-init,
.home-page .about-card.reveal-init {
  opacity: 0;
  transform: translateY(40px) scale(0.96) translate3d(0, 0, 0);
}

.about-page .about-card.revealed,
.home-page .about-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1) translate3d(0, 0, 0);
}

/* Continuous breathing animation (only applied when revealed) */
.about-page .about-card.revealed:not(:hover),
.home-page .about-card.revealed:not(:hover) {
  animation: aboutCardBreath var(--breath-duration, 7.5s) ease-in-out var(--breath-delay, 0s) infinite;
}

/* Rotating border glow effect */
.about-page .about-card::before,
.home-page .about-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle, 0deg), 
                            transparent 70%, 
                            rgba(23, 107, 104, 0.15) 85%, 
                            rgba(197, 160, 89, 0.25) 95%, 
                            rgba(23, 107, 104, 0.15) 100%);
  z-index: -1;
  animation: borderRotate 12s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.about-page .about-card:hover::before,
.home-page .about-card:hover::before {
  opacity: 1;
}

/* Interactive cursor spotlight */
.about-page .about-card::after,
.home-page .about-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                              rgba(23, 107, 104, 0.08) 0%, 
                              transparent 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.about-page .about-card:hover::after,
.home-page .about-card:hover::after {
  opacity: 1;
}

/* Premium Hover Interactions */
.about-page .about-card:hover,
.home-page .about-card:hover {
  border-color: transparent !important;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              conic-gradient(from var(--border-angle, 0deg), 
                             rgba(23, 107, 104, 0.3) 0%, 
                             rgba(197, 160, 89, 0.4) 50%, 
                             rgba(23, 107, 104, 0.3) 100%) border-box !important;
  box-shadow: 0 20px 48px rgba(23, 107, 104, 0.16),
              0 0 30px rgba(23, 107, 104, 0.08) !important;
  filter: saturate(1.15) !important;
  
  /* Cursor 3D dynamic tilt will be applied via inline transform variables from JS */
  transform: translateY(-8px) scale(1.03) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translate3d(0, 0, 0) !important;
}

/* Icon Container & Float animation */
.about-page .card-icon-container,
.home-page .card-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(23, 107, 104, 0.06);
  color: var(--primary);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  
  /* Independent floating */
  animation: iconFloat var(--icon-duration, 5.5s) ease-in-out var(--icon-delay, 0s) infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.about-page .about-card:hover .card-icon-container,
.home-page .about-card:hover .card-icon-container {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.12) rotate(5deg) translate3d(0, 0, 0);
  animation-play-state: paused;
}

.about-page .card-icon,
.home-page .card-icon {
  width: 28px;
  height: 28px;
  display: block;
}

/* Typography alignment */
.about-page .about-card h3,
.home-page .about-card h3 {
  font-family: var(--font-headings);
  font-size: clamp(1.2rem, 1.8vw, 1.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 1rem 0 !important;
  color: var(--text) !important;
  position: relative;
  z-index: 2;
  min-height: 3rem !important; /* Strict start-line alignment */
  display: flex;
  align-items: center;
}

.about-page .about-card p,
.home-page .about-card p {
  font-family: var(--font-sans);
  font-size: 0.94rem !important;
  line-height: 1.65 !important;
  color: var(--muted) !important;
  margin: 0 !important;
  text-align: justify !important; /* Perfect visual layout */
  flex-grow: 1 !important; /* Equal height filling */
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: unset !important;
  position: relative;
  z-index: 2;
}

/* Dark Mode Refinements */
[data-theme="dark"] .about-page .about-card,
[data-theme="dark"] .home-page .about-card {
  --card-bg: rgba(15, 38, 38, 0.82);
  border-color: transparent !important;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              linear-gradient(135deg, rgba(120, 178, 153, 0.12), rgba(120, 178, 153, 0.03)) border-box !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .about-page .about-card::before,
[data-theme="dark"] .home-page .about-card::before {
  background: conic-gradient(from var(--border-angle, 0deg), 
                            transparent 70%, 
                            rgba(120, 178, 153, 0.2) 85%, 
                            rgba(197, 160, 89, 0.3) 95%, 
                            rgba(120, 178, 153, 0.2) 100%);
}

[data-theme="dark"] .about-page .about-card::after,
[data-theme="dark"] .home-page .about-card::after {
  background: radial-gradient(circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                              rgba(120, 178, 153, 0.12) 0%, 
                              transparent 80%);
}

[data-theme="dark"] .about-page .about-card:hover,
[data-theme="dark"] .home-page .about-card:hover {
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
              conic-gradient(from var(--border-angle, 0deg), 
                             rgba(120, 178, 153, 0.4) 0%, 
                             rgba(197, 160, 89, 0.45) 50%, 
                             rgba(120, 178, 153, 0.4) 100%) border-box !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55),
              0 0 35px rgba(120, 178, 153, 0.12) !important;
}

[data-theme="dark"] .about-page .card-icon-container,
[data-theme="dark"] .home-page .card-icon-container {
  background: rgba(120, 178, 153, 0.08);
  color: var(--secondary);
}

[data-theme="dark"] .about-page .about-card:hover .card-icon-container,
[data-theme="dark"] .home-page .about-card:hover .card-icon-container {
  background: var(--secondary);
  color: #ffffff;
}

/* Accessibility: Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .about-page .about-card,
  .home-page .about-card,
  .about-page .swap-wrapper,
  .home-page .swap-wrapper,
  .about-page .card-icon-container,
  .home-page .card-icon-container,
  .about-page .about-card::before,
  .home-page .about-card::before,
  .about-page .about-card::after,
  .home-page .about-card::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
  
  .about-page .about-card:hover,
  .home-page .about-card:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
  
  .about-page .about-card,
  .home-page .about-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Executive Team & Training Experts Styles (Revision 7)
   ========================================================================== */

/* Team swap container in normal document flow */
.about-page .team-swap-grid,
.home-page .team-swap-grid,
.about-page .experts-swap-grid,
.about-page .infographic-swap-grid,
.home-page .homepage-founders-swap-grid,
.home-page .articles-swap-grid {
  display: block !important;
  position: relative !important;
  width: 100%;
  max-width: 740px !important; /* Slightly wider card container as requested */
  margin: 0 auto;
}

/* Stacking swap wrappers using display-toggle to avoid overlap regressions */
.about-page .swap-wrapper,
.about-page .team-swap-wrapper,
.home-page .team-swap-wrapper,
.about-page .expert-swap-wrapper,
.about-page .infographic-swap-wrapper,
.home-page .homepage-founder-swap-wrapper,
.home-page .article-swap-wrapper {
  display: none; /* Hidden by default to prevent layout space occupancy */
  width: 100%;
  will-change: transform, opacity;
}

.about-page .swap-wrapper.active,
.about-page .team-swap-wrapper.active,
.home-page .team-swap-wrapper.active,
.about-page .expert-swap-wrapper.active,
.about-page .infographic-swap-wrapper.active,
.home-page .homepage-founder-swap-wrapper.active,
.home-page .article-swap-wrapper.active {
  display: block !important;
  position: relative !important; /* Active card drives page height */
  z-index: 3 !important;
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-page .swap-wrapper.exit,
.about-page .team-swap-wrapper.exit,
.home-page .team-swap-wrapper.exit,
.about-page .expert-swap-wrapper.exit,
.about-page .infographic-swap-wrapper.exit,
.home-page .homepage-founder-swap-wrapper.exit,
.home-page .article-swap-wrapper.exit {
  display: block !important;
  position: absolute !important; /* Exiting card exits document flow to avoid stack jump */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1 !important;
  pointer-events: none;
  animation: cardFadeOut 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translate3d(50px, 0, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes cardFadeOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50px, 0, 0) scale(0.96);
  }
}

/* Rounded rectangular image container - fully visible, correct proportions, slightly smaller */
.about-page .team-img-container,
.home-page .team-img-container {
  width: 100%;
  max-width: 180px !important; /* Smaller size to look neat and suited to the card */
  height: 180px !important;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  background: rgba(23, 107, 104, 0.03);
  border: 1px solid rgba(23, 107, 104, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(8, 28, 32, 0.04);
}

[data-theme="dark"] .about-page .team-img-container,
[data-theme="dark"] .home-page .team-img-container {
  background: rgba(120, 178, 153, 0.03);
  border-color: rgba(120, 178, 153, 0.1);
}

.about-page .team-img-container img,
.home-page .team-img-container img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important; /* Original proportions, centered, no cropping */
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  transition: transform 0.4s ease;
}

.about-page .about-card:hover .team-img-container img,
.home-page .about-card:hover .team-img-container img {
  transform: scale(1.04);
}

/* Card details adjustments */
.about-page .team-card-info,
.home-page .team-card-info {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.about-page .team-card-info h3,
.home-page .team-card-info h3 {
  justify-content: center !important;
  min-height: auto !important;
  margin: 0 0 0.5rem 0 !important;
  font-size: 1.35rem !important;
}

.about-page .team-card-info .role,
.home-page .team-card-info .role {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

[data-theme="dark"] .about-page .team-card-info .role,
[data-theme="dark"] .home-page .team-card-info .role {
  color: var(--secondary);
}

.about-page .team-bullets,
.home-page .team-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  text-align: start;
  position: relative;
  z-index: 2;
}

.about-page .team-bullets li,
.home-page .team-bullets li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.about-page .team-bullets li::before,
.home-page .team-bullets li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-inline-start: 0.25em;
  flex-shrink: 0;
}

[dir="ltr"] .about-page .team-bullets li::before,
[dir="ltr"] .home-page .team-bullets li::before {
  margin-inline-start: 0;
  margin-inline-end: 0.25em;
}

/* Global section geometry: the two Lead Minds line drawings, used separately. */
main > section.brand-motif-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

main > section.brand-motif-section > :not(.brand-section-motif) {
  position: relative;
  z-index: 1;
}

.brand-section-motif {
  --motif-line: rgba(66, 166, 166, 0.38);
  position: absolute;
  z-index: 0;
  width: clamp(210px, 24vw, 360px);
  aspect-ratio: 1;
  top: clamp(28px, 10%, 96px);
  inset-inline-start: clamp(18px, 3vw, 58px);
  display: block;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  transform: rotate(-2deg);
}

main > section[data-brand-motif-side="end"] > .brand-section-motif {
  inset-inline-start: auto;
  inset-inline-end: clamp(18px, 3vw, 58px);
  top: auto;
  bottom: clamp(24px, 7%, 72px);
  transform: rotate(2deg);
}

main > section:nth-of-type(3n) > .brand-section-motif {
  --motif-line: rgba(250, 186, 62, 0.42);
}

.brand-section-motif__piece {
  position: absolute;
  box-sizing: border-box;
  display: block;
  border: 2px solid var(--motif-line);
}

/* Reference drawing 1: one tall curved part and two separate quarter forms. */
.brand-section-motif--single .brand-section-motif__piece--1 {
  inset: 5% 52% 5% 5%;
  border-radius: 0 0 0 100%;
}

.brand-section-motif--single .brand-section-motif__piece--2 {
  inset: 5% 5% 52% 52%;
  border-radius: 0 100% 0 0;
}

.brand-section-motif--single .brand-section-motif__piece--3 {
  inset: 52% 5% 5% 52%;
  border-radius: 0 100% 0 0;
}

/* Reference drawing 2: six independent cells inside a softly rounded square. */
.brand-section-motif--grid {
  border: clamp(1px, 0.13vw, 2px) solid var(--motif-line);
  border-radius: 24% 24% 24% 24%;
}

.brand-section-motif--grid .brand-section-motif__piece--1 {
  inset: 4% 52% 52% 4%;
  border-width: 0 1px 1px 0;
  border-radius: 22% 0 0 0;
}

.brand-section-motif--grid .brand-section-motif__piece--2 {
  inset: 4% 28% 52% 52%;
  border-radius: 0 0 100% 0;
}

.brand-section-motif--grid .brand-section-motif__piece--3 {
  inset: 4% 4% 52% 76%;
  border-width: 0 0 1px 1px;
  border-radius: 0 22% 0 0;
}

.brand-section-motif--grid .brand-section-motif__piece--4 {
  inset: 52% 52% 4% 4%;
  border-width: 1px 1px 0 0;
  border-radius: 0 0 0 22%;
}

.brand-section-motif--grid .brand-section-motif__piece--5 {
  inset: 52% 28% 28% 52%;
  border-radius: 100% 0 0 0;
}

.brand-section-motif--grid .brand-section-motif__piece--6 {
  inset: 76% 28% 4% 52%;
  border-radius: 0 100% 0 0;
}

.hero-premium-section > .brand-section-motif,
.article-reference-hero > .brand-section-motif,
.contact-reference-hero > .brand-section-motif {
  --motif-line: rgba(250, 186, 62, 0.34);
}

[data-theme="dark"] .brand-section-motif {
  --motif-line: rgba(250, 186, 62, 0.38);
}

@media (max-width: 720px) {
  .brand-section-motif {
    width: 170px;
    inset-inline-start: -24px;
    top: 28px;
    opacity: 0.9;
  }

  main > section[data-brand-motif-side="end"] > .brand-section-motif {
    inset-inline-end: -24px;
    bottom: 28px;
  }
}

/* Visual line clamping for biography previews */
.about-page .about-card .bio-preview,
.home-page .about-card .bio-preview {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 1.2rem !important;
  flex-grow: 1 !important;
  text-align: justify !important;
}

/* Trigger buttons */
.about-page .read-more-btn,
.home-page .read-more-btn {
  margin-top: auto !important;
  align-self: center;
  padding: 0.65rem 2rem !important;
  border-radius: 100px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 3;
}

/* Experts grids */
.about-page .experts-cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 991px) {
  .about-page .experts-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .about-page .experts-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Infographic section layout styles */
.about-page .experts-intro-section {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(23, 107, 104, 0.08);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .about-page .experts-intro-section {
  background: rgba(15, 38, 38, 0.35);
  border-color: rgba(120, 178, 153, 0.08);
}

@media (max-width: 991px) {
  .about-page .experts-intro-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about-page .intro-p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.about-page .experts-criteria {
  margin-top: 2rem;
}

.about-page .experts-criteria h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem !important;
}

[data-theme="dark"] .about-page .experts-criteria h3 {
  color: var(--secondary);
}

.about-page .criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-page .criteria-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  position: relative;
  padding-inline-start: 1.5rem;
}

.about-page .criteria-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  inset-inline-start: 0;
}

[data-theme="dark"] .about-page .criteria-list li::before {
  color: var(--secondary);
}

.about-page .infographic-container h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem !important;
  text-align: center;
  border-bottom: 2px dashed rgba(23, 107, 104, 0.15);
  padding-bottom: 0.8rem;
}

.about-page .infographic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (max-width: 480px) {
  .about-page .infographic-grid {
    grid-template-columns: 1fr;
  }
}

.about-page .info-step {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 107, 104, 0.08);
  padding: 1.25rem;
  border-radius: 16px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .about-page .info-step {
  background: rgba(15, 38, 38, 0.5);
  border-color: rgba(120, 178, 153, 0.08);
}

.about-page .info-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(23, 107, 104, 0.08);
}

.about-page .info-step-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(23, 107, 104, 0.12);
  font-family: var(--font-headings);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-page .info-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem !important;
}

[data-theme="dark"] .about-page .info-step h4 {
  color: var(--secondary);
}

.about-page .info-step p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ==========================================================================
   Premium Fullscreen Profile Viewer Modals
   ========================================================================== */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-modal.open {
  opacity: 1;
  pointer-events: auto;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 32, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(23, 107, 104, 0.15);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(8, 28, 32, 0.25);
  z-index: 10;
  overflow: hidden;
  transform: scale(0.94) translate3d(0, 20px, 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

[data-theme="dark"] .modal-content {
  background: rgba(15, 38, 38, 0.96);
  border-color: rgba(120, 178, 153, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.team-modal.open .modal-content {
  transform: scale(1) translate3d(0, 0, 0);
}

/* Modal Sticky Header */
.modal-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(23, 107, 104, 0.1);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 12;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .modal-header {
  background: rgba(15, 38, 38, 0.9);
  border-color: rgba(120, 178, 153, 0.1);
}

.modal-header-info {
  flex-grow: 1;
  min-width: 0;
}

.modal-header-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem 0 !important;
}

.modal-header-info .role {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  margin: 0 !important;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .modal-header-info .role {
  color: var(--secondary);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-inline-start: 1rem;
}

/* Navigation buttons */
.modal-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(23, 107, 104, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="dark"] .modal-nav-btn {
  background: rgba(15, 38, 38, 0.7);
  border-color: rgba(120, 178, 153, 0.15);
  color: #ffffff;
}

.modal-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.modal-nav-btn svg {
  width: 20px;
  height: 20px;
}

[dir="rtl"] .modal-nav-btn.prev-btn svg,
[dir="rtl"] .modal-nav-btn.next-btn svg {
  transform: rotate(180deg);
}

/* Close button */
.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(23, 107, 104, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

[data-theme="dark"] .modal-close {
  background: rgba(15, 38, 38, 0.7);
  border-color: rgba(120, 178, 153, 0.15);
  color: #ffffff;
}

.modal-close:hover {
  background: #c25954;
  color: #ffffff;
  border-color: #c25954;
  transform: rotate(90deg);
}

/* Modal body content */
.modal-body {
  padding: clamp(20px, 3.5vw, 36px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

.modal-body.switching {
  opacity: 0;
  transform: translateY(10px);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  width: 100%;
  direction: ltr;
}

.modal-img-col {
  grid-column: 2;
  grid-row: 1;
  direction: rtl;
}

.modal-text-col {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  direction: rtl;
}

.modal-text-col .modal-bullets li {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.8;
}

.modal-text-col .modal-bio {
  font-size: clamp(1.04rem, 1.2vw, 1.14rem);
  line-height: 2;
  text-align: start;
}

@media (max-width: 767px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-img-col,
  .modal-text-col {
    grid-column: 1;
  }

  .modal-img-col {
    grid-row: 1;
  }

  .modal-text-col {
    grid-row: 2;
  }
}

.modal-img-col {
  text-align: center;
}

.modal-img-wrapper {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(23, 107, 104, 0.12);
  box-shadow: 0 10px 30px rgba(8, 28, 32, 0.08);
  background: rgba(23, 107, 104, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .modal-img-wrapper {
  background: rgba(120, 178, 153, 0.03);
  border-color: rgba(120, 178, 153, 0.15);
}

.modal-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.fade-in-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fade-in-img.loaded {
  opacity: 1;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  border-bottom: 1px solid rgba(23, 107, 104, 0.1);
  padding-bottom: 1.2rem;
}

[data-theme="dark"] .modal-bullets {
  border-color: rgba(120, 178, 153, 0.15);
}

.modal-bullets li {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.6rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
}

.modal-bullets li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-inline-start: 0.25em;
  flex-shrink: 0;
}

[data-theme="dark"] .modal-bullets li::before {
  color: var(--secondary);
}

[dir="ltr"] .modal-bullets li::before {
  margin-inline-start: 0;
  margin-inline-end: 0.25em;
}

.modal-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  text-align: justify;
}

/* Homepage knowledge articles: three visible cards */
.home-page .articles-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
  align-items: stretch;
}

.home-page .articles-showcase-grid .article-swap-wrapper {
  display: block !important;
  position: relative !important;
  width: 100%;
}

.home-page .articles-showcase-grid .clickable-card {
  height: 100%;
}

.home-page .articles-showcase-grid .clickable-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 900px) {
  .home-page .articles-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Keyboard visible focus styles */
.about-page a:focus-visible,
.about-page button:focus-visible,
.team-modal button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

[data-theme="dark"] .about-page a:focus-visible,
[data-theme="dark"] .about-page button:focus-visible,
[data-theme="dark"] .team-modal button:focus-visible {
  outline-color: var(--secondary);
}

/* ==========================================================================
   Partners Logo Ticker Styles (Infinite Horizontal Scroll)
   ========================================================================== */
.partners-ticker-section {
  padding: 1.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Gradient fades at the edges for smooth transition */
.partners-ticker-section::before,
.partners-ticker-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 5;
  pointer-events: none;
}

.partners-ticker-section::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.partners-ticker-section::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

.partners-ticker-container {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.partners-ticker-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

/* Pause scroll on hover */
.partners-ticker-track:hover {
  animation-play-state: paused;
}

.partners-ticker-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 0 1.75rem;
  flex-shrink: 0;
}

.partners-ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  width: 110px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partners-ticker-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover effects for logos */
.partners-ticker-item:hover {
  transform: translateY(-3px) scale(1.05);
}

.partners-ticker-item:hover img {
  opacity: 1;
}


/* Keyframes for sliding (moving leftwards in dir="ltr" container) */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}



/* Site-wide Arabic RTL alignment */
html[dir="rtl"],
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .header-shell,
html[dir="rtl"] .nav-list,
html[dir="rtl"] .drawer-content,
html[dir="rtl"] .footer-shell,
html[dir="rtl"] .footer-inline-links,
html[dir="rtl"] .footer-contact-row {
  direction: rtl;
}

html[dir="rtl"] .header-shell {
  flex-direction: row;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .brand-saas {
  order: 0;
  margin-right: 0;
  margin-left: auto;
  align-items: flex-start !important;
}

html[dir="rtl"] .site-nav {
  order: 1;
}

html[dir="rtl"] .nav-cta {
  order: 2;
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .section-head,
html[dir="rtl"] .page-hero-copy,
html[dir="rtl"] .card,
html[dir="rtl"] article,
html[dir="rtl"] .footer-summary {
  text-align: right;
}

html[dir="rtl"] .section-head-center {
  text-align: center;
}

/* Static transparent partner-logo grid */
.site-header a[href="case-studies.html"] {
  display: none !important;
}

.partners-grid-section {
  background: var(--surface);
}

.partners-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.partner-logo-item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  mix-blend-mode: normal;
}

@media (max-width: 900px) {
  .partners-logo-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }
}

@media (max-width: 560px) {
  .partners-logo-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 1.75rem 1rem;
  }

  .partner-logo-item {
    min-height: 84px;
  }

  .partner-logo-item img {
    max-height: 64px;
  }
}

/* Arabic header brand: logo at the right with a clear slogan directly below it. */
html[dir="rtl"] .site-header.premium-header .header-shell {
  direction: rtl !important;
  flex-direction: row !important;
}

html[dir="rtl"] .site-header.premium-header .brand.brand-saas {
  order: 1 !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 142px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

html[dir="rtl"] .site-header.premium-header .brand.brand-saas img {
  display: block !important;
  height: 39px !important;
  width: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

html[dir="rtl"] .site-header.premium-header .logo-slogan {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  direction: rtl !important;
  white-space: nowrap !important;
}

html[dir="rtl"] .site-header.premium-header .site-nav {
  order: 2 !important;
}

html[dir="rtl"] .site-header.premium-header .nav-cta {
  order: 3 !important;
}

html[dir="rtl"] .premium-header .drawer-logo-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  margin-right: 0 !important;
  margin-left: auto !important;
  text-align: center !important;
}

@media (max-width: 991px) {
  html[dir="rtl"] .site-header.premium-header .header-shell {
    direction: rtl !important;
  }

  html[dir="rtl"] .site-header.premium-header .brand.brand-saas {
    min-width: 124px;
    align-items: center !important;
  }

  html[dir="rtl"] .site-header.premium-header .brand.brand-saas img,
  html[dir="rtl"] .premium-header .drawer-logo-link img {
    height: 31px !important;
  }

  html[dir="rtl"] .site-header.premium-header .logo-slogan {
    font-size: 9px !important;
  }

  html[dir="rtl"] .site-header.premium-header .nav-toggle {
    order: 3 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
  }
}

/* Mobile: rotate the strength and experience cards two at a time. */
@media (max-width: 767px) {
  [data-mobile-pair-rotator] {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0;
  }

  [data-mobile-pair-rotator] > .stat {
    display: none;
    grid-column: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  [data-mobile-pair-rotator] > .stat.mobile-pair-active {
    display: block;
    animation: mobile-stat-pair-in 360ms ease both;
  }
}

@keyframes mobile-stat-pair-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-mobile-pair-rotator] > .stat.mobile-pair-active {
    animation: none;
  }
}

/* Unified fixed header color and clearer official logo. */
.site-header.premium-header,
.site-header.premium-header.scrolled,
body.home-page .site-header.premium-header,
body.home-page .site-header.premium-header.scrolled,
body:not(.home-page) .site-header.premium-header,
body.drawer-open .site-header.premium-header,
body.drawer-open .site-header.premium-header.scrolled {
  background: #1a4242 !important;
  background-color: #1a4242 !important;
  border-bottom-color: rgba(255, 189, 63, 0.24) !important;
  box-shadow: 0 8px 28px rgba(8, 34, 34, 0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease !important;
}

html[dir="rtl"] .site-header.premium-header .brand.brand-saas {
  min-width: 168px !important;
}

html[dir="rtl"] .site-header.premium-header .brand.brand-saas img {
  height: 48px !important;
}

html[dir="rtl"] .site-header.premium-header .logo-slogan {
  font-size: 10.5px !important;
}

@media (max-width: 991px) {
  html[dir="rtl"] .site-header.premium-header .brand.brand-saas {
    min-width: 138px !important;
  }

  html[dir="rtl"] .site-header.premium-header .brand.brand-saas img,
  html[dir="rtl"] .premium-header .drawer-logo-link img {
    height: 36px !important;
  }

  html[dir="rtl"] .site-header.premium-header .logo-slogan {
    font-size: 9px !important;
  }
}

/* Homepage PDF reference: transparent header and hero palette/linework only. */
body.home-page .site-header.premium-header,
body.home-page .site-header.premium-header.scrolled {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home-page .hero-premium-section {
  background-color: #f37458;
  background-image:
    radial-gradient(ellipse at 4% 93%, rgba(255, 226, 113, 0.98) 0 10%, rgba(255, 199, 68, 0.9) 27%, transparent 52%),
    radial-gradient(ellipse at 12% 38%, rgba(255, 187, 57, 0.93) 0 11%, rgba(246, 116, 82, 0.78) 40%, transparent 65%),
    radial-gradient(ellipse at 44% 12%, rgba(238, 83, 85, 0.9) 0 18%, transparent 49%),
    radial-gradient(ellipse at 67% 52%, rgba(15, 74, 72, 0.97) 0 22%, rgba(19, 82, 78, 0.9) 44%, transparent 67%),
    radial-gradient(ellipse at 96% 94%, rgba(174, 224, 215, 0.98) 0 10%, rgba(75, 167, 160, 0.9) 35%, transparent 59%),
    linear-gradient(104deg, #ffd75b 0%, #f67458 42%, #0f5552 73%, #063a39 100%);
}

body.home-page .hero-premium-section::before {
  background-image: url("data:image/svg+xml,%3Csvg width='1920' height='1080' viewBox='0 0 1920 1080' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23FFD15A' stroke-opacity='.34' stroke-width='1.15'%3E%3Cpath d='M-180 18H550V268C550 465 390 625 193 625H-180V18Z'/%3E%3Cpath d='M570-210H1150V0C1150 196 991 355 795 355H570V-210Z'/%3E%3Cpath d='M1168-170H1530V115C1530 315 1368 477 1168 477V-170Z'/%3E%3Cpath d='M1548-76H2050V412H1892C1702 412 1548 258 1548 68V-76Z'/%3E%3Cpath d='M-210 646H370V1096H128C-59 1096-210 945-210 758V646Z'/%3E%3Cpath d='M389 646H955V1076H831C587 1076 389 878 389 634V646Z'/%3E%3Cpath d='M977 503H1445V970H1325C1133 970 977 814 977 622V503Z'/%3E%3Cpath d='M1467 492H2000V1078H1818C1624 1078 1467 921 1467 727V492Z'/%3E%3Cpath d='M-44 292C183 292 367 476 367 703V1068'/%3E%3Cpath d='M959 12C1252 12 1489 249 1489 542V1058'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 1;
  mix-blend-mode: normal;
}

body.home-page .hero-premium-section::after {
  opacity: 0.24;
}

/* Keep only the new PDF-reference linework inside the homepage hero. */
body.home-page .hero-premium-section > .brand-section-motif {
  display: none !important;
}

/* PDF-reference pill treatment for every desktop header section link. */
@media (min-width: 1200px) {
  .site-header.premium-header .site-nav .nav-link {
    min-height: 38px !important;
    padding: 7px 17px !important;
    border: 1px solid #795d51 !important;
    border-radius: 999px !important;
    background: #594239 !important;
    box-shadow: 0 7px 20px rgba(20, 42, 40, 0.12) !important;
  }

  .site-header.premium-header .site-nav .nav-link:hover {
    color: #ffffff !important;
    border-color: #ffd25a !important;
    background: #704c3e !important;
  }

  .site-header.premium-header .site-nav .nav-link.is-active {
    color: #ffffff !important;
    border-color: #ff9a80 !important;
    background: #f27357 !important;
  }

  .site-header.premium-header .site-nav .nav-link::after {
    content: none !important;
    display: none !important;
  }

  .site-header.premium-header .nav-dropdown-menu {
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    background: #102f2e !important;
    border-color: #315b58 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Solid utility controls remain visible above both light and dark backgrounds. */
.site-header.premium-header .header-search-btn,
.site-header.premium-header .header-tool-circle {
  color: #ffffff !important;
  background: #1a4f4c !important;
  border-color: #42a6a6 !important;
  box-shadow: 0 6px 18px rgba(7, 40, 39, 0.24) !important;
}

.site-header.premium-header .header-search-btn:hover,
.site-header.premium-header .header-tool-circle:hover {
  color: #ffffff !important;
  background: #236965 !important;
  border-color: #ffd25a !important;
}

/* Use the homepage transparent capsule header on every public page. */
.site-header.premium-header,
.site-header.premium-header.scrolled,
body.home-page .site-header.premium-header,
body.home-page .site-header.premium-header.scrolled,
body:not(.home-page) .site-header.premium-header,
body.drawer-open .site-header.premium-header,
body.drawer-open .site-header.premium-header.scrolled {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
