@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* Custom Local Fonts (from LM Fonts) */
@font-face {
  font-family: 'KO-Sans';
  src: url('../fonts/KOSans-Regular.otf') format('opentype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KO-Sans';
  src: url('../fonts/KOSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KO-Sans';
  src: url('../fonts/KOSans-SemiBold.otf') format('opentype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('../fonts/TheYearofTheCamel-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('../fonts/TheYearofTheCamel-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheYearofTheCamel';
  src: url('../fonts/TheYearofTheCamel-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panchang';
  src: url('../fonts/Panchang-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panchang';
  src: url('../fonts/Panchang-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panchang';
  src: url('../fonts/Panchang-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panchang';
  src: url('../fonts/Panchang-Extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lalezar';
  src: url('../fonts/Lalezar-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Asap';
  src: url('../fonts/Asap-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Asap';
  src: url('../fonts/Asap-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Asap';
  src: url('../fonts/Asap-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Asap';
  src: url('../fonts/Asap-Bold.ttf') format('truetype');
  font-weight: 700;
  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-sans: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, 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: "Lalezar", "Cairo", sans-serif;
  --font-headings: "TheYearofTheCamel", "Cairo", sans-serif;
  --font-body: "KO-Sans", "Cairo", sans-serif;
  --font-sans: "KO-Sans", "Cairo", sans-serif;
}

/* English Typography Variables */
html[lang="en"] {
  --font-display: "Panchang", "Asap", sans-serif;
  --font-headings: "Asap", sans-serif;
  --font-body: "Asap", sans-serif;
  --font-sans: "Asap", 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-display);
}

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);
}

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: 'Syne', 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;
  }

  /* Responsive Slide-down Mobile Menu for Premium Header */
  .premium-header .site-nav.site-nav-saas {
    position: fixed !important;
    inset: 86px 0 auto 0 !important;
    z-index: 1990 !important;
    display: block !important;
    max-height: calc(100dvh - 86px) !important;
    padding: 12px !important;
    overflow-y: auto !important;
    background: linear-gradient(180deg, rgba(13, 33, 33, 0.98), rgba(13, 33, 33, 0.95)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease !important;
  }

  .premium-header .site-nav.site-nav-saas.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-list {
    display: grid !important;
    width: min(100%, 24rem) !important;
    margin: 0 auto !important;
    padding: 12px !important;
    gap: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    background: #0d2121 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
    height: auto !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-item {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-link {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  [dir="rtl"] .premium-header .site-nav.site-nav-saas .nav-link {
    justify-content: flex-end !important;
    text-align: right !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-link:hover,
  .premium-header .site-nav.site-nav-saas .nav-link.is-active {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-link::after {
    display: none !important;
  }

  /* Mobile Dropdown styling */
  .premium-header .site-nav.site-nav-saas .nav-dropdown-menu {
    position: static !important;
    display: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    min-width: 0 !important;
    margin-top: 4px !important;
    width: 100% !important;
    transform: none !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-item-dropdown.open .nav-dropdown-menu {
    display: grid !important;
  }

  .premium-header .site-nav.site-nav-saas .nav-dropdown-link {
    padding: 10px 16px !important;
    color: rgba(255, 255, 255, 0.7) !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;
  }
}
