@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Amiri:wght@400;700&family=Reem+Kufi:wght@500;700;800&display=swap");

:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-strong: #fbfcfb;
  --surface-soft: #edf5f1;
  --primary: #0f4d3e;
  --primary-strong: #143f34;
  --primary-soft: #e6f2ed;
  --primary-50: #e6f2ed;
  --accent: #c59b57;
  --accent-soft: #f7efe0;
  --text: #15251f;
  --muted: #617169;
  --border: #dce5e0;
  --success: #1f8a66;
  --danger: #b13d3d;
  --warning: #d48a1f;
  --shadow-sm: 0 6px 20px rgba(18, 63, 52, 0.06);
  --shadow-md: 0 12px 34px rgba(18, 63, 52, 0.1);
  --shadow-lg: 0 28px 60px rgba(18, 63, 52, 0.16);
  --shadow-glow: 0 0 0 1px rgba(197, 155, 87, 0.15), 0 24px 60px rgba(18, 63, 52, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08111a;
  --surface: #0f1724;
  --surface-strong: #132034;
  --surface-soft: #17263a;
  --primary: #7dd9bf;
  --primary-strong: #49b996;
  --primary-soft: #12261f;
  --primary-50: #12261f;
  --accent: #e7c37a;
  --accent-soft: #241d12;
  --text: #eef4f8;
  --muted: #9caebd;
  --border: #213244;
  --success: #41c994;
  --danger: #f08d8d;
  --warning: #efb24f;
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 34px 72px rgba(0, 0, 0, 0.44);
  --shadow-glow: 0 0 0 1px rgba(125, 217, 191, 0.12), 0 26px 56px rgba(0, 0, 0, 0.34);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    "Cairo",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  transition:
    background-color 0.4s ease,
    color 0.35s ease;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.1), transparent 24%),
    radial-gradient(circle at bottom left, rgba(231, 195, 122, 0.06), transparent 22%),
    linear-gradient(180deg, #08111a 0%, #0c1521 48%, #08111a 100%);
}

html:not([data-theme="dark"]) body.home-page {
  background:
    radial-gradient(circle at top right, rgba(197, 155, 87, 0.05), transparent 28%),
    radial-gradient(circle at bottom left, rgba(15, 77, 62, 0.035), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfb 52%, #ffffff 100%);
}

html[data-theme="dark"] body.home-page {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(231, 195, 122, 0.07), transparent 26%),
    linear-gradient(180deg, #08111a 0%, #0c1521 52%, #08111a 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset-block-start: -120px;
  inset-inline-end: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 155, 87, 0.18), transparent 70%);
}

body::after {
  inset-block-end: -140px;
  inset-inline-start: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 77, 62, 0.08), transparent 72%);
}

html[data-theme="dark"] body::before {
  background: radial-gradient(circle, rgba(125, 217, 191, 0.08), transparent 70%);
}

html[data-theme="dark"] body::after {
  background: radial-gradient(circle, rgba(231, 195, 122, 0.05), transparent 72%);
}

html:not([data-theme="dark"]) body.home-page::before {
  inset-block-start: -160px;
  inset-inline-end: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(197, 155, 87, 0.06), transparent 72%);
}

html:not([data-theme="dark"]) body.home-page::after {
  inset-block-end: -180px;
  inset-inline-start: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(15, 77, 62, 0.035), transparent 74%);
}

::selection {
  background: rgba(197, 155, 87, 0.28);
  color: var(--text);
}

html[data-theme="dark"] ::selection {
  background: rgba(113, 216, 176, 0.22);
  color: #fff;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

button,
a,
.chip,
.donate-amount,
.s-icon,
.card,
.project,
.ann,
.teacher-card,
.kpi,
.panel,
.form-card,
.btn,
.theme-toggle,
.menu-toggle,
.nav-links a,
.dash-nav a {
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(197, 155, 87, 0.18);
}

html[data-theme="dark"] *:focus-visible {
  box-shadow: 0 0 0 4px rgba(113, 216, 176, 0.2);
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 16px;
  z-index: 250;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 24px);
}

.font-display {
  font-family: "Reem Kufi", "Cairo", sans-serif;
}

.font-quran {
  font-family: "Amiri", "Cairo", serif;
}

main,
section.hero,
.page-hero,
.dash-content {
  animation: pageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Navbar */
.nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(247, 249, 247, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(220, 229, 224, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

html[data-theme="dark"] .nav {
  background: rgba(9, 15, 24, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

.nav::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 155, 87, 0.45), transparent);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.01em;
  min-width: 0;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

html[data-theme="dark"] .logo-mark {
  background: linear-gradient(135deg, rgba(125, 217, 191, 0.18), rgba(231, 195, 122, 0.16));
  box-shadow: var(--shadow-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.logo-text span {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-text small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #20342c;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  transform: translateZ(0);
}

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

.btn:active,
.btn-hero:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--primary-soft);
  border-color: transparent;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(15, 77, 62, 0.08);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #c04a4a, #a73535);
}

.btn-sm {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 12px;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 16px;
}

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  flex: none;
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  background: var(--primary);
  color: #fff;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-toggle {
  background: linear-gradient(180deg, rgba(18, 29, 24, 0.96), rgba(10, 18, 14, 0.96));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .menu-toggle:hover {
  background: var(--primary);
  color: #07110e;
}

.menu-toggle {
  display: none;
  font-size: 20px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 86% -10%, rgba(15, 77, 62, 0.14), transparent 60%),
    linear-gradient(180deg, #fbfdfc, #edf4f0);
}

html:not([data-theme="dark"]) body.home-page .hero {
  background:
    radial-gradient(1000px 460px at 90% -8%, rgba(197, 155, 87, 0.08), transparent 58%),
    radial-gradient(820px 360px at 8% 0%, rgba(15, 77, 62, 0.05), transparent 52%),
    linear-gradient(180deg, #ffffff, #fafcfb 58%, #ffffff);
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(1100px 520px at 86% -10%, rgba(125, 217, 191, 0.12), transparent 60%),
    radial-gradient(720px 340px at 12% 4%, rgba(231, 195, 122, 0.08), transparent 56%),
    linear-gradient(180deg, #08111a, #0c1521 70%, #08111a);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(197, 155, 87, 0.1) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.45;
}

html:not([data-theme="dark"]) body.home-page .hero::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(197, 155, 87, 0.06) 1px, transparent 0);
  background-size: 34px 34px;
  opacity: 0.3;
}

html[data-theme="dark"] .hero::before,
html[data-theme="dark"] .page-hero::before {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(125, 217, 191, 0.08) 1px,
    transparent 0
  );
  background-size: 34px 34px;
  opacity: 0.18;
}

html[data-theme="dark"] .hero-eyebrow {
  background: rgba(125, 217, 191, 0.12);
  color: #e6faf5;
}

html[data-theme="dark"] .hero-bismillah {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(18, 29, 46, 0.98), rgba(11, 18, 30, 0.96));
  border-color: rgba(125, 217, 191, 0.12);
}

html[data-theme="dark"] .hero-bismillah-text {
  color: #f7efe0;
}

html[data-theme="dark"] .hero-bismillah-sub {
  color: #9caebd;
}

html[data-theme="dark"] .hero h1 span {
  background: linear-gradient(135deg, #f0d9a2, #d7ab61);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 104px;
  min-height: 0;
  min-width: 0;
}

.hero-bismillah {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: fit-content;
  padding: 13px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(197, 155, 87, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 229, 224, 0.95);
  box-shadow: var(--shadow-sm);
}

.hero-bismillah-text {
  color: var(--primary);
  font-family: "Amiri", serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero-bismillah-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 77, 62, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 18px 0 18px;
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(42px, 5.7vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.hero h1 span {
  background: linear-gradient(135deg, #deb66d, #9f742f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(220, 229, 224, 0.95);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero-chip i {
  color: var(--accent);
  font-size: 13px;
}

.hero-service-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
  max-width: 700px;
}

.hero-service-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 170px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 229, 224, 0.95);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-service-line i {
  color: var(--accent);
  font-size: 13px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 28px;
  max-width: 580px;
}

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
  max-width: 620px;
}

.hero-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(220, 229, 224, 0.95);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.hero-trust-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.12), rgba(197, 155, 87, 0.18));
  color: var(--primary);
  font-size: 14px;
}

.hero-trust-item strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.hero-trust-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

html[data-theme="dark"] .hero-trust-item {
  background: rgba(15, 23, 36, 0.84);
  border-color: rgba(148, 163, 184, 0.12);
}

.hero-highlight {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 229, 224, 0.95);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    background var(--transition);
}

.hero-highlight:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.96);
}

.hero-trust-item:hover {
  transform: translateY(-4px);
}

html:not([data-theme="dark"]) body.home-page .hero-highlight {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(220, 229, 224, 0.9);
  box-shadow: 0 10px 24px rgba(18, 63, 52, 0.06);
}

html:not([data-theme="dark"]) body.home-page .nav {
  background: rgba(255, 255, 255, 0.86);
}

.hero-highlight strong {
  display: block;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.hero-highlight span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

html[data-theme="dark"] .hero-highlight {
  background: rgba(15, 23, 36, 0.84);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .hero-trust-item {
  background: rgba(15, 23, 36, 0.84);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .hero-trust-icon {
  background: linear-gradient(135deg, rgba(125, 217, 191, 0.2), rgba(231, 195, 122, 0.16));
  color: #fff;
}

html[data-theme="dark"] .hero-chip {
  background: rgba(15, 23, 36, 0.84);
  border-color: rgba(148, 163, 184, 0.12);
  color: #eef4f8;
}

html[data-theme="dark"] .hero-service-line span {
  background: rgba(15, 23, 36, 0.84);
  border-color: rgba(148, 163, 184, 0.12);
  color: #eef4f8;
}

html[data-theme="dark"] .hero-art {
  background:
    radial-gradient(640px 280px at 72% 18%, rgba(125, 217, 191, 0.14), transparent 60%),
    linear-gradient(145deg, #0f1724, #111d2c 45%, #0c1521);
}

html[data-theme="dark"] .hero-art::before {
  background: radial-gradient(520px 280px at 72% 18%, rgba(231, 195, 122, 0.22), transparent 60%);
}

html[data-theme="dark"] .hero-art::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  opacity: 0.22;
  mix-blend-mode: screen;
}

html[data-theme="dark"] .hero-art-inner {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .hero-art-badge,
html[data-theme="dark"] .hero-art-mini-grid > div {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .hero-art-logo,
html[data-theme="dark"] .hero-art-foot {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .hero-focus-item,
html[data-theme="dark"] .hero-focus-note {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .hero-focus-icon {
  background: linear-gradient(135deg, rgba(125, 217, 191, 0.2), rgba(231, 195, 122, 0.16));
  color: #fff;
}

html[data-theme="dark"] .hero-floating {
  background: rgba(15, 23, 36, 0.92);
  color: #eef4f8;
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .hero-floating .dot {
  background: linear-gradient(135deg, #7dd9bf, #e7c37a);
  box-shadow: 0 0 0 5px rgba(125, 217, 191, 0.1);
}

html[data-theme="dark"] .impact-note,
html[data-theme="dark"] .professional-panel-note {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(227, 192, 129, 0.12);
}

html[data-theme="dark"] .professional-panel-badge,
html[data-theme="dark"] .stat-chip {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

html[data-theme="dark"] .project-badge,
html[data-theme="dark"] .project-meta-pill,
html[data-theme="dark"] .ann-date-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme="dark"] .project-status--active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

html[data-theme="dark"] .project-status--completed {
  background: rgba(57, 194, 142, 0.14);
  color: #98efc5;
}

html[data-theme="dark"] .project-status--planned {
  background: rgba(240, 176, 75, 0.14);
  color: #ffd08a;
}

html[data-theme="dark"] .impact-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

html[data-theme="dark"] .impact-point,
html[data-theme="dark"] .professional-check {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(227, 192, 129, 0.12);
}

html[data-theme="dark"] .teacher-school {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme="dark"] .ann-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .professional-panel {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.98), rgba(11, 17, 29, 0.94));
  border-color: rgba(125, 217, 191, 0.14);
}

html[data-theme="dark"] .feature-card {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.16), transparent 30%),
    linear-gradient(145deg, #122235, #0f1a2a 48%, #101a27);
  border-color: rgba(125, 217, 191, 0.14);
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .feature-card .card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #eef4f8;
}

html[data-theme="dark"] .feature-card .card-icon--logo {
  background: linear-gradient(135deg, rgba(125, 217, 191, 0.08), rgba(231, 195, 122, 0.08));
}

html[data-theme="dark"] .feature-card::after {
  background: radial-gradient(circle, rgba(125, 217, 191, 0.18), transparent 70%);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
}

.btn-hero-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
  box-shadow: 0 34px 70px rgba(18, 63, 52, 0.22);
}

.btn-hero-outline {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
}

.btn-hero-outline:hover {
  background: var(--primary-soft);
}

html[data-theme="dark"] .btn-hero-outline {
  color: #eef4f8;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .btn-hero-outline:hover {
  background: rgba(125, 217, 191, 0.12);
  border-color: rgba(125, 217, 191, 0.18);
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  border-radius: 32px;
  background: linear-gradient(145deg, #0f4d3e, #143f34 45%, #0b241e);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 280px at 72% 18%, rgba(197, 155, 87, 0.44), transparent 60%);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.hero-art-inner {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  text-align: center;
  color: #fff;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  padding: 30px;
}

.hero-focus-inner {
  justify-content: flex-start;
  text-align: start;
  gap: 12px;
  padding: 24px;
}

.hero-art-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-art-top {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}

.hero-art-logo {
  width: 70px;
  height: 70px;
  flex: none;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-art-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.hero-art-top-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hero-art-top-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.hero-focus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-focus-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.hero-focus-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(197, 155, 87, 0.2));
  color: #fff;
  font-size: 15px;
}

.hero-focus-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.hero-focus-item span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.55;
}

.hero-focus-note {
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.hero-art-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.hero-art-foot i {
  color: var(--accent);
}

.hero-floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-lg);
  font-weight: 800;
  font-size: 13px;
  backdrop-filter: blur(12px);
  max-width: calc(100% - 24px);
}

.hero-floating .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
  flex: none;
}

.hero-floating.f1 {
  inset-block-start: 18px;
  inset-inline-start: -8px;
}

.hero-floating.f2 {
  inset-block-end: 18px;
  inset-inline-end: -8px;
}

/* Section headings */
section.section {
  padding: 88px 0;
  position: relative;
}

section.section.section-soft {
  background: linear-gradient(180deg, #fff, var(--surface-strong), #fff);
}

section.section.section-framed {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

section.section.section-surface {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface), var(--surface-strong));
}

section.section.section-plain {
  background: transparent;
}

html[data-theme="dark"] section.section.section-soft {
  background: linear-gradient(180deg, #08111a, #0f1724 52%, #08111a);
}

html[data-theme="dark"] section.section.section-framed {
  background: linear-gradient(180deg, #08111a, #0f1724);
  border-top-color: rgba(148, 163, 184, 0.12);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] section.section.section-surface {
  background: linear-gradient(180deg, #0a1320, #0f1724 52%, #0a1320);
}

html[data-theme="dark"] section.section.section-plain {
  background: transparent;
}

.section-head,
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-eyebrow,
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(197, 155, 87, 0.08);
  border: 1px solid rgba(197, 155, 87, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
}

.section-title,
.section-header h2 {
  margin: 14px 0 10px;
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.2;
  color: var(--primary);
}

.section-sub,
.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
  max-width: 680px;
  margin-inline: auto;
}

.arabesque-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto 0;
  color: var(--accent);
}

.arabesque-divider::before,
.arabesque-divider::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(197, 155, 87, 0.7), transparent);
}

.arabesque-divider span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(197, 155, 87, 0.16);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  line-height: 1;
  transform: none;
}

html[data-theme="dark"] .section-eyebrow,
html[data-theme="dark"] .section-badge {
  background: rgba(125, 217, 191, 0.08);
  border-color: rgba(125, 217, 191, 0.12);
  color: #dff7ef;
}

html[data-theme="dark"] .section-sub,
html[data-theme="dark"] .section-header p {
  color: #9caebd;
}

html[data-theme="dark"] .arabesque-divider {
  color: #e7c37a;
}

html[data-theme="dark"] .arabesque-divider::before,
html[data-theme="dark"] .arabesque-divider::after {
  background: linear-gradient(90deg, transparent, rgba(125, 217, 191, 0.7), transparent);
}

html[data-theme="dark"] .arabesque-divider span {
  background: rgba(15, 23, 36, 0.96);
  border-color: rgba(125, 217, 191, 0.12);
  color: #e7c37a;
}

/* Shared grids */
.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.cards-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.stagger-children > * {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stagger-children > *:nth-child(1) {
  animation-delay: 0.04s;
}

.stagger-children > *:nth-child(2) {
  animation-delay: 0.08s;
}

.stagger-children > *:nth-child(3) {
  animation-delay: 0.12s;
}

.stagger-children > *:nth-child(4) {
  animation-delay: 0.16s;
}

.stagger-children > *:nth-child(5) {
  animation-delay: 0.2s;
}

/* Stats */
.stats-grid,
.stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.stat {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-card::before,
.stat::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

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

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.stat-number,
.stat .num {
  line-height: 1;
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--primary);
}

.stat-label,
.stat .label {
  margin-top: 0.4rem;
  color: var(--muted);
  font-weight: 700;
}

.impact-section {
  background: linear-gradient(180deg, #fff, var(--surface-strong), #fff);
}

html[data-theme="dark"] .impact-section {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(231, 195, 122, 0.05), transparent 22%),
    linear-gradient(180deg, #08111a 0%, #0c1521 52%, #08111a 100%);
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.impact-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: var(--radius-xl);
}

html[data-theme="dark"] .impact-panel {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.98), rgba(11, 17, 29, 0.95));
  border-color: rgba(125, 217, 191, 0.12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.impact-title {
  margin: 10px 0 0;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 900;
}

.impact-text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.impact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.impact-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.impact-points {
  display: grid;
  gap: 12px;
}

.impact-point {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 77, 62, 0.04);
  border: 1px solid rgba(15, 77, 62, 0.08);
}

html[data-theme="dark"] .impact-point {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(148, 163, 184, 0.12);
}

.impact-point strong {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.impact-point span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-align: end;
}

.impact-note {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.08), rgba(197, 155, 87, 0.08));
  border: 1px solid rgba(197, 155, 87, 0.16);
}

html[data-theme="dark"] .impact-note {
  background: linear-gradient(135deg, rgba(125, 217, 191, 0.08), rgba(231, 195, 122, 0.06));
  border-color: rgba(125, 217, 191, 0.14);
}

.impact-note strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.impact-note span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.impact-stats {
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.impact-stat-card {
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 260px;
}

html[data-theme="dark"] .impact-stat-card {
  background:
    linear-gradient(180deg, rgba(15, 23, 36, 0.98), rgba(11, 17, 29, 0.96));
  border-color: rgba(125, 217, 191, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 77, 62, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

html[data-theme="dark"] .impact-stat-card .stat-chip {
  background: rgba(125, 217, 191, 0.08);
  color: #e6faf5;
}

html[data-theme="dark"] .impact-stat-card .stat-label,
html[data-theme="dark"] .impact-stat-card .stat-desc {
  color: #9caebd;
}

html[data-theme="dark"] .impact-stat-card .stat-number,
html[data-theme="dark"] .impact-stat-card .stat-icon {
  color: #e7c37a;
}

.impact-stat-card .stat-icon {
  margin-bottom: 0;
  font-size: 1.9rem;
}

.stat-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Services page */
.services-hero .services-hero-highlights {
  max-width: 760px;
  margin: 28px auto 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.about-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-panel-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(197, 155, 87, 0.08);
  border: 1px solid rgba(197, 155, 87, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.about-panel h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
}

.about-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

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

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

.services-details {
  padding-bottom: 76px;
}

.services-detail-list {
  display: grid;
  gap: 22px;
}

.service-detail {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.service-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.service-detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.08), rgba(197, 155, 87, 0.16));
  color: var(--primary);
  font-size: 24px;
  flex: none;
}

.service-detail-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(197, 155, 87, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.service-detail h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.25;
}

.service-detail-summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

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

.service-detail-columns > div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 77, 62, 0.03);
  border: 1px solid rgba(15, 77, 62, 0.06);
}

.service-detail-columns strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.service-detail-list {
  margin: 0;
  padding: 0 18px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.service-detail-list li {
  margin: 0;
}

.services-cta {
  padding-top: 0;
}

.services-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

html[data-theme="dark"] .about-panel-badge,
html[data-theme="dark"] .service-detail-kicker {
  background: rgba(125, 217, 191, 0.08);
  border-color: rgba(125, 217, 191, 0.12);
  color: #e6faf5;
}

html[data-theme="dark"] .about-panel p,
html[data-theme="dark"] .service-detail-summary,
html[data-theme="dark"] .service-detail-columns > div,
html[data-theme="dark"] .service-detail-list {
  color: #9caebd;
}

html[data-theme="dark"] .service-detail-columns > div {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .service-detail-icon {
  background: linear-gradient(135deg, rgba(125, 217, 191, 0.12), rgba(231, 195, 122, 0.1));
  color: #e7c37a;
}

html[data-theme="dark"] .service-detail h3,
html[data-theme="dark"] .about-panel h3 {
  color: #eef4f8;
}

html[data-theme="dark"] .service-detail-columns strong {
  color: #e7c37a;
}

html[data-theme="dark"] .services-detail-list .service-detail,
html[data-theme="dark"] .about-panel {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 36, 0.98), rgba(11, 17, 29, 0.96));
  border-color: rgba(125, 217, 191, 0.12);
}

.professional-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: stretch;
}

.professional-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(197, 155, 87, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 227, 0.92));
}

.professional-panel-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(15, 77, 62, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.professional-panel h3 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 900;
}

.professional-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.professional-checks {
  display: grid;
  gap: 12px;
}

.professional-check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(220, 229, 224, 0.9);
}

.professional-check span {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.professional-check strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.professional-check small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.professional-panel-note {
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(15, 77, 62, 0.05);
  border: 1px solid rgba(15, 77, 62, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

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

.professional-grid .card {
  min-height: 210px;
}

.professional-grid .feature-card {
  min-height: 210px;
}

/* Cards */
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 155, 87, 0.35);
  box-shadow: var(--shadow-lg);
}

.card::after,
.project::after,
.ann::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(197, 155, 87, 0.18), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.card:hover::after,
.project:hover::after,
.ann:hover::after {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.08), rgba(197, 155, 87, 0.18));
}

.card-icon--logo {
  padding: 6px;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.04), rgba(197, 155, 87, 0.12));
}

.card-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

html[data-theme="dark"] .card-icon--logo {
  background: linear-gradient(135deg, rgba(125, 217, 191, 0.08), rgba(231, 195, 122, 0.08));
}

.card h3 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.35;
  color: var(--primary);
  font-weight: 800;
}

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

.card .more,
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

.card .more:hover,
.card-link:hover {
  transform: translateX(-2px);
}

.animated-card {
  --card-float-delay: 0s;
  --card-icon-delay: 0s;
  position: relative;
  isolation: isolate;
}

.animated-card.fade-up {
  animation:
    fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both,
    cardBreath 7.8s ease-in-out var(--card-float-delay) infinite;
}

.animated-card:nth-child(2n) {
  --card-float-delay: 0.45s;
  --card-icon-delay: 0.2s;
}

.animated-card:nth-child(3n) {
  --card-float-delay: 0.9s;
  --card-icon-delay: 0.35s;
}

.islamic-card {
  background:
    radial-gradient(circle at top right, rgba(197, 155, 87, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(15, 77, 62, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--surface));
  border-color: rgba(197, 155, 87, 0.18);
}

html[data-theme="dark"] .islamic-card {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.1), transparent 34%),
    radial-gradient(circle at bottom left, rgba(231, 195, 122, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.98), var(--surface));
  border-color: rgba(125, 217, 191, 0.14);
}

.islamic-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 18px 18px, rgba(125, 217, 191, 0.2), transparent 16px),
    radial-gradient(circle at calc(100% - 18px) 18px, rgba(231, 195, 122, 0.12), transparent 16px),
    linear-gradient(135deg, rgba(125, 217, 191, 0.06), transparent 38%, rgba(231, 195, 122, 0.03));
  opacity: 0.85;
  mix-blend-mode: multiply;
  animation: islamicGlow 8.5s ease-in-out infinite;
}

.islamic-card > * {
  position: relative;
  z-index: 1;
}

.islamic-card .card-icon,
.islamic-card .process-step {
  animation: iconFloat 4.4s ease-in-out var(--card-icon-delay) infinite;
}

.islamic-card .card-icon {
  box-shadow: 0 14px 28px rgba(15, 77, 62, 0.08);
}

.feature-card {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #0f4d3e, #143f34);
  box-shadow: var(--shadow-lg);
}

.feature-card .card-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.feature-card h3,
.feature-card p,
.feature-card .more,
.feature-card .card-link {
  color: #fff;
}

.feature-card::after {
  opacity: 1;
  background: radial-gradient(circle, rgba(227, 192, 129, 0.26), transparent 70%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.process-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow-sm);
}

.process-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.process-step {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.process-card h3 {
  margin: 16px 0 8px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

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

.faq-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}

.faq-panel {
  padding: 30px;
  text-align: start;
}

.faq-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.faq-panel h3 {
  margin: 14px 0 10px;
  color: var(--primary);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.45;
  font-weight: 900;
}

.faq-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.faq-points {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.faq-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 77, 62, 0.1);
  border-radius: 18px;
  background: rgba(15, 77, 62, 0.03);
}

html[data-theme="dark"] .faq-point {
  border-color: rgba(227, 192, 129, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.faq-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.12), rgba(197, 155, 87, 0.12));
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}

.faq-point strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 2px;
}

.faq-point span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.faq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "⌄";
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.faq-answer p {
  margin: 0;
}

.faq-item[open] {
  box-shadow: var(--shadow-lg);
}

.faq-item:hover {
  transform: translateY(-3px);
}

.card-img {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--surface-soft);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding-top: 8px;
}

.card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(197, 155, 87, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Projects / announcements */
.project {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-img {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 24px;
  background: linear-gradient(145deg, #0f4d3e, #143f34 52%, #0b241e);
  color: #fff;
  font-size: 58px;
}

.project-img::after {
  inset: 0;
  width: auto;
  height: auto;
  opacity: 1;
  background: radial-gradient(360px 180px at 75% 25%, rgba(197, 155, 87, 0.42), transparent 60%);
}

.project-img > * {
  position: relative;
  z-index: 1;
}

.project-img .badge {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 800;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.project-body h3 {
  margin: 0;
  color: var(--primary);
  font-size: 19px;
  font-weight: 800;
}

.project-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.project-impact {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.project-top,
.ann-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-top {
  margin-bottom: 12px;
}

.ann-top {
  margin-bottom: 2px;
}

.project-badge,
.project-status,
.project-meta-pill,
.ann-date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.project-badge {
  background: var(--accent-soft);
  color: var(--accent);
}

.project-status {
  background: rgba(15, 77, 62, 0.08);
  color: var(--primary);
}

.project-status--active {
  background: rgba(15, 77, 62, 0.08);
  color: var(--primary);
}

.project-status--completed {
  background: rgba(31, 138, 102, 0.12);
  color: var(--success);
}

.project-status--planned {
  background: rgba(212, 138, 31, 0.12);
  color: var(--warning);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta-pill {
  background: rgba(15, 77, 62, 0.05);
  border: 1px solid rgba(15, 77, 62, 0.08);
  color: var(--primary);
}

.project-meta-pill--soft {
  background: rgba(197, 155, 87, 0.12);
  border-color: rgba(197, 155, 87, 0.18);
  color: var(--accent);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.project-link:hover {
  transform: translateX(-2px);
}

.ann {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ann-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}

.ann-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ann:hover .ann-image img {
  transform: scale(1.04);
}

.ann-top,
.ann h3,
.ann p,
.ann-footer {
  padding-inline: 22px;
}

.ann-top {
  padding-top: 22px;
}

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

.ann-tag {
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.ann h3 {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

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

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

.ann-date-pill {
  background: rgba(15, 77, 62, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ann-footer {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(15, 77, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ann-footer .date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* Social band */
.social-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px;
  color: #fff;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f4d3e, #163f35 60%, #0b231d);
  box-shadow: var(--shadow-lg);
}

.social-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 0
  );
  background-size: 26px 26px;
  opacity: 0.4;
}

.social-band > * {
  position: relative;
  z-index: 1;
}

.social-band h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
}

.social-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.s-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.s-icon:hover {
  transform: translateY(-3px) scale(1.02);
  background: #fff;
  color: var(--primary);
}

/* Footer */
footer {
  position: relative;
  margin-top: 72px;
  padding: 0 0 26px;
  color: #b8cac2;
  background: linear-gradient(180deg, #0b251f, #07120f);
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 0
  );
  background-size: 30px 30px;
  opacity: 0.3;
}

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

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 0 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 42px;
}

.foot-newsletter {
  flex: 1 1 400px;
  max-width: 520px;
}

.foot-newsletter h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.foot-newsletter p {
  margin: 0 0 16px;
  color: #9ab5a9;
  font-size: 14px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: #7a9a8e;
}

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(197, 155, 87, 0.4);
  box-shadow: 0 0 0 4px rgba(197, 155, 87, 0.08);
}

.foot-social {
  flex: 0 0 auto;
}

.foot-social h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

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

.foot-s-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #d7e5de;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
}

.foot-s-icon:hover {
  transform: translateY(-3px);
  background: rgba(197, 155, 87, 0.18);
  border-color: rgba(197, 155, 87, 0.3);
  color: #fff;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

footer h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

footer a:hover {
  color: #fff;
}

.foot-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  font-size: 13px;
}

html[data-theme="dark"] .social-band {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.08), transparent 28%),
    linear-gradient(135deg, #0d1725, #101d2f 60%, #0a1320);
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .social-band::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  opacity: 0.22;
}

html[data-theme="dark"] .social-band p {
  color: rgba(238, 244, 248, 0.78);
}

html[data-theme="dark"] .s-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.12);
  color: #eef4f8;
}

html[data-theme="dark"] .s-icon:hover {
  background: rgba(125, 217, 191, 0.14);
  color: #eef4f8;
}

html[data-theme="dark"] footer {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.05), transparent 28%),
    linear-gradient(180deg, #09111c, #0b1521);
  color: #9caebd;
}

html[data-theme="dark"] footer::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
  opacity: 0.22;
}

html[data-theme="dark"] .foot-top {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .foot-newsletter h3,
html[data-theme="dark"] footer h4 {
  color: #eef4f8;
}

html[data-theme="dark"] .foot-newsletter p {
  color: #9caebd;
}

html[data-theme="dark"] .newsletter-form input {
  background: rgba(15, 23, 36, 0.96);
  border-color: rgba(148, 163, 184, 0.14);
  color: #eef4f8;
}

html[data-theme="dark"] .newsletter-form input::placeholder {
  color: #7f91a0;
}

html[data-theme="dark"] .newsletter-form input:focus {
  border-color: rgba(125, 217, 191, 0.35);
  box-shadow: 0 0 0 4px rgba(125, 217, 191, 0.12);
}

html[data-theme="dark"] footer a:hover {
  color: #ffffff;
}

html[data-theme="dark"] .foot-bottom {
  border-top-color: rgba(148, 163, 184, 0.12);
  color: #7f91a0;
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Forms */
.form-card {
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin-inline: auto;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fff);
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .form-card {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 36, 0.98), rgba(11, 17, 29, 0.98));
  border-color: rgba(148, 163, 184, 0.12);
}

.form-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa8a1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(15, 77, 62, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 77, 62, 0.09);
}

.field .err {
  display: none;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 700;
}

.field.invalid .err {
  display: block;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .search input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    var(--surface-strong);
  border-color: rgba(148, 163, 184, 0.14);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder,
html[data-theme="dark"] .search input::placeholder {
  color: #7f91a0;
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .search input:focus {
  border-color: rgba(125, 217, 191, 0.35);
  box-shadow: 0 0 0 4px rgba(125, 217, 191, 0.12);
}

html[data-theme="dark"] .courses-search,
html[data-theme="dark"] .teacher-search,
html[data-theme="dark"] .search {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .courses-search,
html[data-theme="dark"] .teacher-search {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    var(--surface-strong);
}

/* Stepper */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.step {
  position: relative;
  padding: 10px 8px;
  border-radius: 18px;
  background: rgba(15, 77, 62, 0.03);
  border: 1px solid transparent;
  text-align: center;
}

.step.active {
  border-color: rgba(15, 77, 62, 0.16);
  background: rgba(15, 77, 62, 0.06);
}

.step.done {
  background: rgba(31, 138, 102, 0.09);
}

.step-circle {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
}

.step.active .step-circle {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.step.done .step-circle {
  background: var(--success);
  border-color: transparent;
  color: #fff;
}

.step .lbl {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.step.active .lbl {
  color: var(--primary);
}

.step.done .lbl {
  color: var(--success);
}

/* Filters / search */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 77, 62, 0.34);
}

.chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow-sm);
}

.search {
  position: relative;
  min-width: 240px;
  flex: 1;
}

.search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.search input:focus {
  border-color: rgba(15, 77, 62, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 77, 62, 0.09);
}

/* Donate */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.donate-amount {
  padding: 18px 16px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
}

.donate-amount:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 77, 62, 0.34);
}

.donate-amount.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow-lg);
}

.donate-amount small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

/* Toast */
.toast {
  position: fixed;
  inset-block-start: 22px;
  inset-inline-start: 50%;
  transform: translate(-50%, -18px);
  z-index: 200;
  max-width: min(92vw, 420px);
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(13, 22, 18, 0.96);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  font-size: 14px;
  font-weight: 700;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success {
  background: linear-gradient(135deg, #167f5d, #0f6448);
}

.toast.error {
  background: linear-gradient(135deg, #b03d3d, #8e2323);
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 86px;
  background:
    radial-gradient(1000px 280px at 15% 0, rgba(197, 155, 87, 0.11), transparent 60%),
    radial-gradient(900px 260px at 85% 0, rgba(15, 77, 62, 0.07), transparent 58%),
    linear-gradient(180deg, #ffffff, #fafcfb 72%, #ffffff);
  color: var(--text);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(197, 155, 87, 0.08) 1px, transparent 0);
  background-size: 34px 34px;
  opacity: 0.3;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 300px at 15% 0, rgba(197, 155, 87, 0.08), transparent 60%);
  pointer-events: none;
}

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

.page-hero h1 {
  margin: 0 0 12px;
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.15;
  font-weight: 900;
  color: var(--primary);
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

html[data-theme="dark"] .page-hero {
  background:
    radial-gradient(1000px 280px at 15% 0, rgba(231, 195, 122, 0.08), transparent 60%),
    radial-gradient(900px 260px at 85% 0, rgba(125, 217, 191, 0.08), transparent 58%),
    linear-gradient(180deg, #0a1320, #0f1724 72%, #0a1320);
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .page-hero h1 {
  color: var(--text);
}

html[data-theme="dark"] .page-hero p {
  color: rgba(238, 244, 248, 0.78);
}

section[style*="background:#fff"],
section[style*="background: #fff"] {
  background: var(--surface) !important;
}

html[data-theme="dark"] section[style*="background:linear-gradient(180deg,#fff"],
html[data-theme="dark"] section[style*="background: linear-gradient(180deg,#fff"],
html[data-theme="dark"] section[style*="background:linear-gradient(180deg, #fff"],
html[data-theme="dark"] section[style*="background: linear-gradient(180deg, #fff"],
html[data-theme="dark"] section[style*="background:#fff"],
html[data-theme="dark"] section[style*="background: #fff"] {
  background: linear-gradient(180deg, #08111a 0%, #0f1724 52%, #08111a 100%) !important;
}

/* Tables */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  text-align: right;
  vertical-align: top;
  border-bottom: 1px solid rgba(220, 229, 224, 0.92);
}

th {
  background: linear-gradient(180deg, #f4f7f5, #eef4f1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .table-wrap {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] th {
  background: linear-gradient(180deg, #121d19, #0e1714);
  color: #daf2e8;
}

html[data-theme="dark"] th,
html[data-theme="dark"] td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] tbody tr:hover {
  background: rgba(125, 217, 191, 0.05);
}

tbody tr:hover {
  background: rgba(15, 77, 62, 0.03);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.status-pending {
  color: #92400e;
  background: #fef3c7;
}

.status-accepted {
  color: #065f46;
  background: #d1fae5;
}

.status-rejected {
  color: #991b1b;
  background: #fee2e2;
}

.status-info {
  color: #1e40af;
  background: #dbeafe;
}

html[data-theme="dark"] .status-pending {
  color: #f7d08a;
  background: rgba(212, 138, 31, 0.18);
}

html[data-theme="dark"] .status-accepted {
  color: #8ef0c8;
  background: rgba(65, 201, 148, 0.14);
}

html[data-theme="dark"] .status-rejected {
  color: #f4b0b0;
  background: rgba(240, 141, 141, 0.14);
}

html[data-theme="dark"] .status-info {
  color: #b9d3ff;
  background: rgba(105, 153, 255, 0.14);
}

/* Dashboard */
#sideToggle {
  display: none;
}

.dash-side-overlay {
  display: none;
}

.dash {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: linear-gradient(180deg, #f2f6f4, #e8efeb);
}

.dash-side {
  position: sticky;
  inset-block-start: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 18px;
  color: #d7e5de;
  background: linear-gradient(180deg, #0b241d, #081612);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-side .logo {
  margin-bottom: 28px;
  color: #fff;
}

.dash-side .logo-text small {
  color: #9ab5a9;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #d7e5de;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.dash-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dash-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow-sm);
}

.dash-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] .dash {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(231, 195, 122, 0.05), transparent 24%),
    linear-gradient(180deg, #08111a 0%, #0c1521 52%, #08111a 100%);
}

html[data-theme="dark"] .dash-top {
  background: rgba(9, 15, 24, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .dash-top h2 {
  color: #eef4f8;
}

html[data-theme="dark"] .dash-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #08111a, #0c1521);
}

html[data-theme="dark"] .kpi,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .table-wrap {
  background: rgba(15, 23, 36, 0.96);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .kpi .v,
html[data-theme="dark"] .panel-head h3,
html[data-theme="dark"] .dash-top h2,
html[data-theme="dark"] .dash-quick-card strong {
  color: #eafaf4;
}

html[data-theme="dark"] .kpi .l,
html[data-theme="dark"] .dash-quick-card span {
  color: #9caebd;
}

html[data-theme="dark"] .kpi-icon {
  background: rgba(125, 217, 191, 0.12);
  color: #baf3e2;
}

html[data-theme="dark"] .dash-hero-card {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(16, 24, 38, 0.98), rgba(10, 16, 27, 0.98));
}

html[data-theme="dark"] .dash-quick-card {
  background: linear-gradient(180deg, rgba(15, 23, 36, 0.98), rgba(11, 17, 29, 0.98));
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .dash-quick-card:hover {
  border-color: rgba(125, 217, 191, 0.24);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .dash-quick-card i {
  background: rgba(125, 217, 191, 0.12);
  color: #baf3e2;
}

html[data-theme="dark"] .dash-hero-panel-card,
html[data-theme="dark"] .dash-summary-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .dash-hero-panel-card span {
  color: rgba(238, 244, 248, 0.82);
}

html[data-theme="dark"] .dash-summary-pill {
  color: #eef4f8;
}

html[data-theme="dark"] .btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: #eef4f8;
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .btn-outline:hover {
  background: rgba(125, 217, 191, 0.12);
  color: #eef4f8;
  border-color: rgba(125, 217, 191, 0.18);
}

html[data-theme="dark"] .btn-ghost {
  color: #cdd8df;
}

html[data-theme="dark"] .btn-ghost:hover {
  background: rgba(148, 163, 184, 0.08);
}

html[data-theme="dark"] .dash-top-search input {
  background: rgba(15, 25, 20, 0.96);
  color: #edf5f1;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dash-top-search input:focus {
  box-shadow: 0 0 0 3px rgba(113, 216, 176, 0.12);
}

html[data-theme="dark"] .dash-badge {
  background: #f08d8d;
  color: #08110d;
}

.dash-top {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.dash-top h2 {
  margin: 0;
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

.dash-content {
  padding: 28px;
  flex: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dash-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(197, 155, 87, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(15, 77, 62, 0.98), rgba(11, 36, 29, 0.98));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.dash-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.22;
  pointer-events: none;
}

.dash-hero-copy,
.dash-hero-panel {
  position: relative;
  z-index: 1;
}

.dash-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.dash-hero-copy h3 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 900;
}

.dash-hero-copy p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.9;
}

.dash-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dash-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dash-hero-actions .btn {
  min-width: 128px;
}

.dash-hero-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.dash-hero-panel-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.dash-hero-panel-card strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}

.dash-hero-panel-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.7;
}

.dash-quick-actions {
  margin-bottom: 24px;
}

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

.dash-quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f7fbf9);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  cursor: pointer;
  text-align: right;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.dash-quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 77, 62, 0.18);
  box-shadow: var(--shadow-md);
}

.dash-quick-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
}

.dash-quick-card strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
}

.dash-quick-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.dash-user-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-user-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

.dash-user-card small {
  display: block;
  margin-top: 6px;
  color: #a9c0b7;
  font-size: 12px;
  line-height: 1.7;
}

.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 22px;
}

.kpi .v {
  color: var(--primary);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.kpi .l {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h3 {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.dash-section {
  display: none;
}

.dash-section.active {
  display: block;
  animation: fadeUp 0.35s ease both;
}

/* Auth */
.auth-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

.auth-left {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  color: #fff;
  background: linear-gradient(160deg, #0f4d3e, #143f34 55%, #0b241d);
}

.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 280px at 85% 15%, rgba(197, 155, 87, 0.35), transparent 60%),
    radial-gradient(500px 220px at 20% 80%, rgba(255, 255, 255, 0.07), transparent 60%);
}

.auth-left > * {
  position: relative;
  z-index: 1;
}

.auth-right {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #fbfdfc, #eef4f1);
}

html[data-theme="dark"] .auth-right {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.08), transparent 34%),
    linear-gradient(180deg, #0a1320, #0f1724 72%, #0a1320);
}

.auth-form {
  width: 100%;
  max-width: 440px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 229, 224, 0.95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .auth-form {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 36, 0.98), rgba(11, 17, 29, 0.98));
  border-color: rgba(148, 163, 184, 0.12);
}

.auth-form h1 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.2;
}

.auth-form .sub {
  margin: 0 0 28px;
  color: var(--muted);
}

.auth-spotlight {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

.auth-spotlight-card {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-spotlight-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
}

.auth-spotlight-card span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.7;
}

.auth-cred-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-cred-note i {
  margin-top: 2px;
  color: var(--accent);
  font-size: 18px;
}

.auth-cred-note span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.8;
}

/* ========================================
   CAROUSEL — Lightweight infinite scroll
   ======================================== */
.carousel {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scrollX var(--carousel-speed, 40s) linear infinite;
  will-change: transform;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-group {
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
}

.carousel-group[aria-hidden="true"] {
  pointer-events: none;
}

/* ========================================
   TEACHERS HOME GRID — compact card grid
   ======================================== */
.teachers-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.teachers-home-grid .tc {
  flex: initial;
  width: 100%;
  padding: 16px 12px 12px;
  min-height: auto;
}

.teachers-home-grid .tc-avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
  margin: 2px 0 4px;
  border-width: 3px;
}

.teachers-home-grid .tc-avatar::after {
  inset: -5px;
}

.teachers-home-grid .tc-name {
  font-size: 13px;
}

.teachers-home-grid .tc-role {
  font-size: 11px;
  min-height: auto;
}

.teachers-home-grid .tc-pills {
  display: none;
}

.teachers-home-grid .tc-footer {
  display: none;
}

.teachers-home-grid .tc::before {
  height: 3px;
}

/* ========================================
   TEACHER SHOWCASE STATS
   ======================================== */
.teacher-showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 24px;
}

.teacher-showcase-stat {
  padding: 18px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.teacher-showcase-stat:hover {
  transform: translateY(-3px);
}

.teacher-showcase-stat strong {
  display: block;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1;
  font-weight: 900;
}

.teacher-showcase-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="dark"] .teacher-showcase-stat {
  background: rgba(16, 24, 20, 0.8);
  border-color: rgba(227, 192, 129, 0.12);
}

/* ========================================
   TEACHER CARD — Clean reusable component
   ======================================== */
.tc {
  position: relative;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(197, 155, 87, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, rgba(251, 246, 235, 0.96));
  box-shadow: 0 8px 32px rgba(15, 77, 62, 0.08);
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.tc::before {
  content: "";
  position: absolute;
  inset-inline: 20px;
  inset-block-start: 0;
  height: 4px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
  opacity: 0.8;
}

.tc:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(15, 77, 62, 0.14);
}

html[data-theme="dark"] .tc {
  background: linear-gradient(180deg, rgba(16, 24, 20, 0.98), rgba(18, 30, 25, 0.95));
  border-color: rgba(227, 192, 129, 0.14);
}

/* Avatar */
.tc-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 4px 0 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  border: 4px solid rgba(197, 155, 87, 0.4);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(15, 77, 62, 0.16);
  animation: teacherFloat 6s ease-in-out infinite;
}

.tc-avatar::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(197, 155, 87, 0.3);
  pointer-events: none;
}

/* Body */
.tc-name {
  margin: 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.tc-role {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 20px;
}

/* Pills */
.tc-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.tc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
}

.tc-pill--primary {
  background: rgba(15, 77, 62, 0.07);
  color: var(--primary);
  border: 1px solid rgba(15, 77, 62, 0.08);
}

.tc-pill--accent {
  background: rgba(197, 155, 87, 0.1);
  color: var(--accent);
  border: 1px solid rgba(197, 155, 87, 0.15);
}

/* Footer */
.tc-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 77, 62, 0.08);
  text-align: center;
}

html[data-theme="dark"] .tc-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.tc-note {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
}

/* ========================================
   LEGACY TEACHER CARD — kept for teachers page
   ======================================== */
.teacher-card {
  position: relative;
  flex: 0 0 294px;
  min-height: 360px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(197, 155, 87, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 241, 227, 0.95));
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transform: translateZ(0);
}

.teacher-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-xl);
}

html[data-theme="dark"] .teacher-card {
  background:
    radial-gradient(circle at top, rgba(125, 217, 191, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.98), rgba(11, 17, 29, 0.96));
  border-color: rgba(125, 217, 191, 0.14);
}

.teacher-avatar {
  position: relative;
  width: 98px;
  height: 98px;
  margin: 4px auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  border: 5px solid rgba(197, 155, 87, 0.45);
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(15, 77, 62, 0.18);
  animation: teacherFloat 5.8s ease-in-out infinite;
}

.teacher-card h3 {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.teacher-card .role {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  min-height: 44px;
}

.teacher-top,
.teacher-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.teacher-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 77, 62, 0.09);
}

.teacher-chip,
.teacher-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.teacher-chip {
  background: rgba(15, 77, 62, 0.08);
  color: var(--primary);
}

.teacher-chip--gold {
  background: linear-gradient(135deg, rgba(197, 155, 87, 0.18), rgba(197, 155, 87, 0.08));
  color: var(--accent);
}

.teacher-status {
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.12), rgba(15, 77, 62, 0.06));
  color: var(--primary);
}

.teacher-school {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(197, 155, 87, 0.1);
  border: 1px solid rgba(197, 155, 87, 0.16);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.teacher-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.teachers-page .page-hero .container {
  max-width: 1040px;
}

.teachers-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.teachers-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(197, 155, 87, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .teachers-hero-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(227, 192, 129, 0.14);
  color: #fff;
}

.teachers-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 28px auto 0;
}

.teachers-hero-stat {
  padding: 16px 18px;
  border: 1px solid rgba(220, 229, 224, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .teachers-hero-stat {
  border-color: rgba(227, 192, 129, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.teachers-hero-stat strong {
  display: block;
  color: var(--primary);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 900;
}

.teachers-hero-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="dark"] .teachers-hero-stat strong {
  color: #fff;
}

.teacher-directory {
  padding-top: 28px;
}

.teacher-toolbar {
  position: sticky;
  inset-block-start: 88px;
  z-index: 20;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .teacher-toolbar {
  background: rgba(15, 26, 22, 0.92);
}

.teacher-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.teacher-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.teacher-search i {
  color: var(--primary);
}

.teacher-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.teacher-search input::placeholder {
  color: var(--muted);
}

.teacher-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teacher-toolbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.teacher-toolbar-status strong {
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}

.teacher-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.teacher-filter .count {
  opacity: 0.72;
}

.teacher-filter.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.teacher-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.teacher-track-card {
  padding: 24px;
}

.teacher-track-card h3 {
  margin: 14px 0 8px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

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

.teacher-track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.teacher-track-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.teacher-sections {
  display: grid;
  gap: 18px;
}

.teacher-section {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.teacher-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.teacher-section-title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  font-weight: 900;
}

.teacher-section-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.teacher-section-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.teacher-card--directory {
  flex: initial;
  width: 100%;
  min-height: 288px;
  padding: 22px 18px 18px;
}

.teacher-card--directory .teacher-avatar {
  width: 82px;
  height: 82px;
  font-size: 30px;
  margin: 2px auto 8px;
}

.teacher-meta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.teacher-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.teacher-card--directory .teacher-note {
  min-height: 40px;
  color: var(--muted);
  text-align: center;
  display: -webkit-box;

  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teacher-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  background: rgba(15, 77, 62, 0.03);
  color: var(--muted);
  text-align: center;
}

html[data-theme="dark"] .teacher-empty {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(227, 192, 129, 0.12);
}

@keyframes teacherFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Misc */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px dashed rgba(15, 77, 62, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.06), rgba(197, 155, 87, 0.08));
  color: var(--muted);
  font-size: 13px;
}

.ad-slot .ad-tag {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bismillah {
  font-family: "Amiri", "Cairo", serif;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--primary);
  text-align: center;
  line-height: 2;
  letter-spacing: 0.02em;
}

.quran-banner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 56px;
  text-align: center;
  border: 1px solid #e6d9b8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf7, #f4efe0);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.quran-banner::before,
.quran-banner::after {
  content: "❖";
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  opacity: 0.8;
}

.quran-banner::before {
  inset-inline-end: 18px;
}

.quran-banner::after {
  inset-inline-start: 18px;
}

.quran-banner .ayah {
  font-family: "Amiri", serif;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--primary);
  font-weight: 700;
  line-height: 2.1;
}

.quran-banner .ayah-source {
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mushaf-frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    #c9a86a 0%,
    #e8d097 25%,
    #a8853f 50%,
    #e8d097 75%,
    #c9a86a 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 20px 50px -20px rgba(15, 77, 62, 0.35),
    0 8px 24px rgba(168, 133, 63, 0.2);
}

.mushaf-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  pointer-events: none;
}

.mushaf-inner {
  position: relative;
  overflow: hidden;
  padding: 42px 56px 38px;
  border-radius: 14px;
  background: radial-gradient(ellipse at top, #fffeff, #fbf6e7 60%, #f4eccf);
  text-align: center;
}

.mushaf-inner::before,
.mushaf-inner::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(168, 133, 63, 0.7) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 70%, rgba(168, 133, 63, 0.45) 0 2px, transparent 2px);
  opacity: 0.55;
}

.mushaf-inner::before {
  inset-block-start: 8px;
  inset-inline-end: 8px;
}

.mushaf-inner::after {
  inset-block-end: 8px;
  inset-inline-start: 8px;
  transform: rotate(180deg);
}

.ayah {
  display: inline;
  font-family: "Amiri", serif;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 2.2;
  color: #0b2a20;
  font-weight: 700;
}

.ayah-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 8px;
  vertical-align: middle;
  line-height: 1;
  font-family: "Amiri", serif;
  font-size: 14px;
  font-weight: 700;
  color: #a8853f;
  background: radial-gradient(circle, rgba(168, 133, 63, 0.12), rgba(168, 133, 63, 0.03));
  border-radius: 50%;
  border: 1px solid rgba(168, 133, 63, 0.28);
}

.ayah-source {
  margin-top: 18px;
  color: #a8853f;
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Reveal helpers */
.fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Floating WhatsApp */
.wa-fab {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  background: #25d366;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.38);
  animation: waPulse 2.4s ease-out infinite;
}

.wa-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 42px rgba(37, 211, 102, 0.5);
}

.wa-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.38);
  animation: waRing 2.4s ease-out infinite;
}

/* Skeleton */
.skeleton {
  display: inline-block;
  min-height: 1em;
  border-radius: 16px;
  color: transparent !important;
  background: linear-gradient(
    90deg,
    rgba(220, 229, 224, 0.95) 0%,
    rgba(244, 248, 246, 0.98) 50%,
    rgba(220, 229, 224, 0.95) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #15211b 0%, #1f2d26 50%, #15211b 100%);
  background-size: 200% 100%;
}

.skeleton-card {
  height: 240px;
  border-radius: 24px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cardBreath {
  0%,
  100% {
    box-shadow: var(--shadow-sm);
  }

  50% {
    box-shadow: var(--shadow-md);
  }
}

@keyframes islamicGlow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.01);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-4px) rotate(-1.5deg);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mobileNavSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scrollX {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.38);
  }

  50% {
    box-shadow: 0 16px 46px rgba(37, 211, 102, 0.6);
  }
}

@keyframes waRing {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0 72px;
  }

  .hero-art {
    width: min(100%, 560px);
    justify-self: center;
    aspect-ratio: 4 / 3;
  }

  .hero-service-line {
    max-width: 100%;
  }

  .hero-floating.f1 {
    inset-inline-start: 12px;
    inset-block-start: 12px;
  }

  .hero-floating.f2 {
    inset-inline-end: 12px;
    inset-block-end: 12px;
  }

  .hero-highlights {
    max-width: 100%;
  }

  .hero-chip-row {
    max-width: 100%;
  }

  .hero-bismillah {
    padding: 12px 16px;
  }

  .hero-trust-row,
  .impact-layout,
  .professional-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .teachers-hero-stats,
  .teacher-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-section-head {
    flex-direction: column;
  }

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

  .nav-inner {
    min-height: 60px;
    gap: 10px;
  }

  .nav-links {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 60px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px 18px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 16px 48px rgba(15, 77, 62, 0.10);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.32s ease;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  html[data-theme="dark"] .nav-links {
    background: rgba(10, 17, 14, 0.97);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    background: var(--primary-soft);
    border-color: rgba(15, 77, 62, 0.15);
    color: var(--primary);
    transform: translateX(-3px);
  }

  .nav-links.open a {
    animation: mobileNavSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .nav-links.open a:nth-child(1) { animation-delay: 0.02s; }
  .nav-links.open a:nth-child(2) { animation-delay: 0.04s; }
  .nav-links.open a:nth-child(3) { animation-delay: 0.06s; }
  .nav-links.open a:nth-child(4) { animation-delay: 0.08s; }
  .nav-links.open a:nth-child(5) { animation-delay: 0.10s; }
  .nav-links.open a:nth-child(6) { animation-delay: 0.12s; }
  .nav-links.open a:nth-child(7) { animation-delay: 0.14s; }
  .nav-links.open a:nth-child(8) { animation-delay: 0.16s; }
  .nav-links.open a:nth-child(9) { animation-delay: 0.18s; }

  .menu-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    font-size: 19px;
    border-radius: 10px;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .nav-cta .btn-outline {
    display: none;
  }

  .nav-cta .btn-primary {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .logo-text span {
    font-size: 14px;
  }

  .logo-text small {
    font-size: 10px;
  }

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

  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .dash {
    grid-template-columns: 1fr;
  }

  .dash-side {
    position: fixed;
    right: -280px;
    width: 260px;
    z-index: 50;
    height: 100vh;
    transition:
      right var(--transition),
      transform var(--transition);
  }

  .dash-side.open {
    right: 0;
  }

  #sideToggle {
    display: inline-flex !important;
  }

  .dash-side-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .dash-side-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 560px) {
  section.section {
    padding: 62px 0;
  }

  .hero-grid {
    padding: 48px 0 56px;
  }

  .hero p,
  .section-sub,
  .section-header p,
  .page-hero p {
    font-size: 15px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero-bismillah {
    width: 100%;
  }

  .hero-service-line {
    gap: 8px;
  }

  .hero-service-line span {
    flex-basis: 100%;
  }

  .hero-art {
    aspect-ratio: 1 / 1;
  }

  .hero-art-inner {
    inset: 14px;
    padding: 24px;
  }

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

  .hero-chip-row {
    gap: 8px;
  }

  .hero-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-trust-item {
    padding: 12px 14px;
  }

  .hero-art-mini-grid {
    gap: 8px;
  }

  .hero-art-mini-grid > div {
    padding: 10px 8px;
  }

  .hero-art-mini-grid strong {
    font-size: 22px;
  }

  .hero-art-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-art-top-copy {
    align-items: center;
  }

  .hero-art-label {
    font-size: 16px;
  }

  .hero-art-foot {
    font-size: 11px;
  }

  .hero-focus-item {
    padding: 11px 12px;
  }

  .impact-panel,
  .professional-panel {
    padding: 22px;
  }

  .impact-point,
  .professional-check {
    align-items: flex-start;
  }

  .impact-point {
    flex-direction: column;
    justify-content: flex-start;
  }

  .impact-point span {
    text-align: start;
  }

  .professional-grid {
    grid-template-columns: 1fr;
  }

  .impact-stat-card {
    min-height: 200px;
  }

  .teacher-toolbar {
    inset-block-start: 76px;
    padding: 12px;
  }

  .teacher-toolbar-inner {
    gap: 10px;
  }

  .teacher-search {
    flex-basis: 100%;
  }

  .teacher-section {
    padding: 22px;
  }

  .teacher-summary-grid,
  .teachers-hero-stats {
    grid-template-columns: 1fr;
  }

  .teacher-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .teacher-showcase-stats {
    grid-template-columns: 1fr;
  }

  .carousel-group {
    gap: 16px;
    padding-inline-end: 16px;
  }

  .carousel-group {
    gap: 14px;
  }

  .tc {
    flex-basis: 210px;
  }

  .tc-avatar {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .teacher-card {
    flex-basis: 260px;
    min-height: 344px;
    padding: 22px 18px 18px;
  }

  .social-band {
    padding: 32px;
    text-align: center;
    justify-content: center;
  }

  .form-card,
  .panel {
    padding: 24px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .process-grid,
  .faq-layout,
  .stats-grid,
  .stats,
  .kpi-grid,
  .hero-highlights,
  .donate-amounts,
  .foot-grid,
  .teachers-home-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    padding: 12px;
  }

  .search {
    min-width: 100%;
  }

  .page-hero {
    padding: 62px 0 64px;
  }

  .faq-panel {
    padding: 24px;
  }

  .faq-item summary {
    padding: 20px 18px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 18px 20px;
    font-size: 14px;
  }

  .dash-content {
    padding: 18px;
  }

  .dash-top {
    padding: 16px 18px;
  }

  .dash-hero-card {
    padding: 18px;
    border-radius: 22px;
  }

  .dash-hero-actions .btn {
    width: 100%;
  }

  .dash-quick-grid {
    grid-template-columns: 1fr;
  }

  .dash-hero-panel-card strong {
    font-size: 22px;
  }

  .auth-form {
    padding: 22px;
    border-radius: 22px;
  }

  .auth-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .auth-cred-note {
    flex-direction: column;
  }

  .wa-fab {
    width: 54px;
    height: 54px;
    font-size: 26px;
    inset-block-end: 18px;
    inset-inline-end: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-track,
  .wa-fab {
    animation: none !important;
  }
}

/* ========================================
   COURSES PAGE
   ======================================== */
.courses-toolbar {
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .courses-toolbar {
  background: rgba(15, 26, 22, 0.88);
}

.courses-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.courses-search i {
  color: var(--primary);
  font-size: 16px;
}

.courses-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.courses-search input::placeholder {
  color: var(--muted);
}

.courses-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-category {
  margin-bottom: 48px;
}

.course-category-head {
  margin-bottom: 24px;
}

.course-category-title {
  margin: 10px 0 8px;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  font-weight: 900;
}

.course-category-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.course-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.course-card-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #0f4d3e, #143f34 52%, #0b241e);
  color: #fff;
  overflow: hidden;
}

.course-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 70% 30%, rgba(197, 155, 87, 0.35), transparent 60%);
}

.course-card-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 28px;
  color: #fff;
  backdrop-filter: blur(8px);
}

.course-card-duration {
  position: absolute;
  z-index: 2;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.course-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  flex: 1;
}

.course-card-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-card-cat {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.course-card-level {
  font-size: 12px;
  font-weight: 900;
}

.course-card h3 {
  margin: 2px 0 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.course-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 77, 62, 0.08);
}

html[data-theme="dark"] .course-card-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.course-card-instructor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.course-card-instructor i {
  font-size: 12px;
  opacity: 0.7;
}

/* WhatsApp FAB font awesome */
.wa-fab i {
  font-size: inherit;
}

/* Footer responsive */
@media (max-width: 768px) {
  .foot-top {
    flex-direction: column;
    gap: 24px;
    padding: 40px 0 32px;
  }

  .foot-newsletter {
    flex-basis: 100%;
    max-width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .foot-social-icons {
    flex-wrap: wrap;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }
}

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

  .courses-filters {
    gap: 8px;
  }

  .courses-filters .chip {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ========================================
   WORKING HOURS & CONTACT SECTION
   ======================================== */
.hours-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.hours-card,
.contact-info-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.hours-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 22px;
  flex: none;
  box-shadow: var(--shadow-md);
}

.hours-card-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
}

.hours-list {
  display: grid;
  gap: 10px;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 77, 62, 0.03);
  border: 1px solid rgba(15, 77, 62, 0.06);
  transition:
    transform var(--transition),
    background var(--transition);
}

.hours-row:hover {
  transform: translateX(-4px);
  background: rgba(15, 77, 62, 0.06);
}

.hours-day {
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  flex: 1;
}

.hours-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

.hours-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  flex: none;
}

.hours-open {
  background: rgba(31, 138, 102, 0.12);
  color: var(--success);
}

.hours-limited {
  background: rgba(212, 138, 31, 0.12);
  color: var(--warning);
}

.hours-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(197, 155, 87, 0.08);
  border: 1px solid rgba(197, 155, 87, 0.14);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: auto;
}

.hours-note i {
  color: var(--accent);
  font-size: 16px;
  flex: none;
}

.contact-items {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 77, 62, 0.03);
  border: 1px solid rgba(15, 77, 62, 0.06);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.contact-item:hover {
  transform: translateX(-4px);
  background: rgba(15, 77, 62, 0.06);
  box-shadow: var(--shadow-sm);
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
  flex: none;
}

.contact-item-icon.wa {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}

.contact-item strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.contact-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="dark"] .hours-row,
html[data-theme="dark"] .contact-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .hours-row:hover,
html[data-theme="dark"] .contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .hours-note {
  background: rgba(227, 192, 129, 0.08);
  border-color: rgba(227, 192, 129, 0.14);
}

/* ========================================
   REGISTRATION CTA CARDS
   ======================================== */
.reg-cta-card {
  text-align: center;
  min-height: 380px;
}

.reg-cta-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.08), rgba(197, 155, 87, 0.16));
}

.reg-cta-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.reg-cta-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.reg-cta-features i {
  color: var(--success);
  font-size: 14px;
}

/* ========================================
   PROJECT CARD V2 — Enhanced design
   ======================================== */
.project-card-v2 {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(197, 155, 87, 0.18);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.project-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pv2-header {
  position: relative;
  padding: 28px 24px 20px;
  background: linear-gradient(145deg, #0f4d3e, #143f34 52%, #0b241e);
  color: #fff;
  text-align: center;
}

.pv2-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 180px at 75% 20%, rgba(197, 155, 87, 0.35), transparent 60%);
  pointer-events: none;
}

.pv2-emoji {
  position: relative;
  z-index: 1;
  font-size: 52px;
  line-height: 1;
  margin-bottom: 14px;
}

.pv2-badges {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pv2-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.pv2-badge i {
  font-size: 10px;
}

.pv2-badge-cat {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pv2-badge-status {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pv2-status--active {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.pv2-status--completed {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.pv2-status--planned {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.pv2-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv2-body h3 {
  margin: 0;
  color: var(--primary);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.4;
}

.pv2-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pv2-footer {
  padding: 0 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.pv2-impact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.pv2-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #a8813f);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.pv2-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Projects page toolbar */
.projects-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.projects-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.projects-search i {
  position: absolute;
  right: 14px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.projects-search input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.projects-search input:focus {
  border-color: rgba(15, 77, 62, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 77, 62, 0.09);
  outline: none;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.projects-empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.projects-empty strong {
  color: var(--primary);
  font-size: 18px;
}

/* ========================================
   ABOUT PAGE COMPONENTS
   ======================================== */
.about-hero {
  padding-top: 18px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.about-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.about-hero-copy .section-eyebrow {
  margin-bottom: 0;
}

.about-hero-copy h1 {
  margin: 0;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.25;
  font-weight: 900;
}

.about-hero-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

.about-hero-highlights {
  margin-top: 8px;
}

.about-hero-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20px -20px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 155, 87, 0.18), transparent 68%);
  pointer-events: none;
}

.about-hero-panel-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 77, 62, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.about-hero-logo {
  width: 126px;
  height: 126px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 77, 62, 0.08);
  box-shadow: var(--shadow-sm);
}

.about-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.about-hero-panel h2 {
  margin: 0;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
}

.about-hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.about-hero-points {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.about-hero-points div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 77, 62, 0.04);
  border: 1px solid rgba(15, 77, 62, 0.06);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.about-hero-points i {
  color: var(--accent);
}

.about-story-section .section-head {
  max-width: 860px;
  margin-inline: auto;
}

.about-story-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-story-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(15, 77, 62, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.about-story-pill i {
  color: var(--accent);
}

.about-story-paragraph {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.about-story-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-story-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-story-logo {
  width: 92px;
  height: 92px;
  flex: none;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 77, 62, 0.08);
}

.about-story-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.about-story-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(197, 155, 87, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.about-story-card h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: 22px;
  line-height: 1.35;
}

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

.about-story-metrics div {
  padding: 14px 12px;
  border-radius: 18px;
  text-align: center;
  background: rgba(15, 77, 62, 0.04);
  border: 1px solid rgba(15, 77, 62, 0.06);
}

.about-story-metrics strong {
  display: block;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.about-story-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.about-story-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 77, 62, 0.05);
  border: 1px solid rgba(15, 77, 62, 0.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.about-story-note i {
  margin-top: 2px;
  color: var(--accent);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-pillar {
  padding: 26px;
  text-align: center;
}

.about-pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.08), rgba(197, 155, 87, 0.18));
  color: var(--primary);
}

.about-pillar h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: 21px;
  line-height: 1.35;
}

.about-pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

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

.about-service-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-service-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-service-icon {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.08), rgba(197, 155, 87, 0.18));
  color: var(--primary);
  font-size: 24px;
}

.about-service-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(15, 77, 62, 0.06);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.about-service-card h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: 24px;
  line-height: 1.3;
}

.about-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.about-service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.about-service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.about-service-list i {
  color: var(--primary);
  margin-top: 3px;
  flex: none;
}

.about-timeline-section .section-head,
.about-impact-section .section-head,
.about-branches-section .section-head,
.about-cta-section .section-head {
  max-width: 860px;
  margin-inline: auto;
}

.about-impact-section .about-team-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-branches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-branches-grid .card {
  min-height: 100%;
}

.about-cta-section {
  padding-top: 12px;
}

.about-cta-section .cta-islamic {
  text-align: center;
  max-width: 940px;
  margin-inline: auto;
}

.about-cta-section .services-cta-actions {
  margin-top: 26px;
}

html[data-theme="dark"] .about-hero-panel,
html[data-theme="dark"] .about-story-card,
html[data-theme="dark"] .about-pillar,
html[data-theme="dark"] .about-service-card {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.98), rgba(11, 17, 29, 0.95));
  border-color: rgba(125, 217, 191, 0.12);
}

html[data-theme="dark"] .about-hero-panel-badge,
html[data-theme="dark"] .about-story-card-kicker,
html[data-theme="dark"] .about-story-pill,
html[data-theme="dark"] .about-service-kicker,
html[data-theme="dark"] .about-panel-badge,
html[data-theme="dark"] .service-detail-kicker {
  background: rgba(125, 217, 191, 0.08);
  border-color: rgba(125, 217, 191, 0.12);
  color: #e6faf5;
}

html[data-theme="dark"] .about-hero-logo,
html[data-theme="dark"] .about-story-logo {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .about-hero-panel p,
html[data-theme="dark"] .about-hero-points div,
html[data-theme="dark"] .about-story-paragraph,
html[data-theme="dark"] .about-story-note,
html[data-theme="dark"] .about-story-metrics span,
html[data-theme="dark"] .about-pillar p,
html[data-theme="dark"] .about-service-card p,
html[data-theme="dark"] .about-service-list,
html[data-theme="dark"] .about-highlight-item span {
  color: #9caebd;
}

html[data-theme="dark"] .about-hero-copy h1,
html[data-theme="dark"] .about-hero-panel h2,
html[data-theme="dark"] .about-story-card h3,
html[data-theme="dark"] .about-pillar h3,
html[data-theme="dark"] .about-service-card h3,
html[data-theme="dark"] .about-highlight-item strong,
html[data-theme="dark"] .about-story-metrics strong {
  color: #eef4f8;
}

html[data-theme="dark"] .about-hero-points div,
html[data-theme="dark"] .about-story-pill,
html[data-theme="dark"] .about-story-metrics div,
html[data-theme="dark"] .about-story-note,
html[data-theme="dark"] .about-service-list li {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .about-pillar-icon,
html[data-theme="dark"] .about-service-icon,
html[data-theme="dark"] .about-story-note i,
html[data-theme="dark"] .about-hero-points i,
html[data-theme="dark"] .about-service-list i {
  color: #e7c37a;
}

.about-story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-story-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-story-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.about-highlight-item {
  padding: 16px;
  border-radius: 18px;
  background: var(--primary-soft);
  text-align: center;
  border: 1px solid rgba(15, 77, 62, 0.08);
  transition: transform var(--transition);
}

.about-highlight-item:hover {
  transform: translateY(-3px);
}

.about-highlight-item strong {
  display: block;
  color: var(--primary);
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1;
}

.about-highlight-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.about-value-card {
  text-align: center;
  min-height: 260px;
}

.about-value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(15, 77, 62, 0.08), rgba(197, 155, 87, 0.16));
}

.about-value-bar {
  height: 4px;
  margin-top: auto;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  opacity: 0.6;
}

/* Timeline */
.about-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.about-timeline-item {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.about-timeline-item::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.about-timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}

.about-timeline-item h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.about-timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ========================================
   EDUCATIONAL ARTICLES CARDS
   ======================================== */
.article-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-xl);
  cursor: default;
}

.article-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 20px;
  flex: none;
  box-shadow: var(--shadow-sm);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card-cat {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.article-card-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card h3 {
  margin: 4px 0 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 77, 62, 0.06);
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.article-card-author i {
  color: var(--accent);
}

/* ========================================
   FORM HEADER BADGE
   ======================================== */
.form-header-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--primary-soft);
  border: 1px solid rgba(15, 77, 62, 0.08);
}

.form-header-icon {
  font-size: 32px;
}

.form-header-badge strong {
  display: block;
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}

.form-header-badge small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* ========================================
   RESPONSIVE — New components
   ======================================== */
@media (max-width: 980px) {
  .hours-contact-layout {
    grid-template-columns: 1fr;
  }

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

  .about-pillars,
  .about-service-grid,
  .about-branches-grid,
  .about-impact-section .about-team-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-story-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-story-art {
    max-width: 400px;
    margin: 0 auto;
  }

  .reg-cta-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hours-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hours-time {
    text-align: right;
  }

  .about-story-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .about-story-card-top,
  .about-service-head {
    align-items: flex-start;
  }

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

  .about-story-metrics {
    grid-template-columns: 1fr;
  }

  .service-detail-columns {
    grid-template-columns: 1fr;
  }

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

  .about-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .project-page-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-filters {
    justify-content: center;
  }

  .pv2-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .pv2-impact,
  .pv2-donate-btn {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .about-story-highlights {
    grid-template-columns: 1fr;
  }

  .about-pillars,
  .about-service-grid,
  .about-branches-grid,
  .about-impact-section .about-team-stats {
    grid-template-columns: 1fr;
  }

  .about-timeline {
    grid-template-columns: 1fr;
  }

  .project-page-stats {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr !important;
  }

  .services-roadmap .process-grid,
  .services-journey-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   YOUTUBE COURSE CARDS — Real video links
   ======================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.course-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(145deg, #0f4d3e, #143f34);
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.course-card:hover .course-card-thumb img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.course-card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .course-card-play {
  opacity: 1;
}

.course-card-play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 0, 0, 0.9);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.course-card:hover .course-card-play i {
  transform: scale(1.1);
}

.course-card-duration {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.course-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.course-card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.course-card-level {
  font-size: 12px;
  font-weight: 900;
}

.course-card-body h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.course-card-body h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

.course-card-body h3 a:hover {
  color: var(--accent);
}

.course-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 77, 62, 0.06);
}

.course-card-instructor {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.course-card-instructor i {
  color: var(--accent);
}

.course-card-watch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.08);
  color: #cc0000;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition);
}

.course-card-watch:hover {
  background: rgba(255, 0, 0, 0.16);
  transform: translateY(-2px);
}

/* ========================================
   FULL ARTICLE CARD — With content
   ======================================== */
.article-card-full {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.article-card-full .article-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-card-full h3 {
  margin: 0;
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
}

.article-card-content {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  text-align: justify;
}

.article-card-full .article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 77, 62, 0.06);
  flex-wrap: wrap;
}

.article-card-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition);
}

.article-card-source:hover {
  background: rgba(15, 77, 62, 0.12);
  transform: translateY(-2px);
}

/* ─── Scroll to Top Button ─────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  inset-block-end: 100px;
  inset-inline-end: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    background 0.2s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 20px 50px rgba(15, 77, 62, 0.3);
}

.scroll-top-btn:active {
  transform: translateY(0) scale(0.95);
}

/* ─── Button Spinner ─────────────────────────────────────── */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-inline-end: 6px;
}

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

/* ─── Print Styles ─────────────────────────────────────── */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .nav,
  footer,
  .wa-fab,
  .scroll-top-btn,
  .menu-toggle,
  .theme-toggle,
  .mobile-overlay,
  .nav-cta,
  .social-band,
  .foot-top,
  .foot-social,
  #foot-slot,
  #nav-slot,
  .hero-btns,
  .btn-hero,
  .faq-actions {
    display: none !important;
  }

  .form-card,
  .islamic-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  #success {
    border: 2px solid #0f4d3e;
    border-radius: 16px;
    padding: 40px !important;
  }

  #success .btn {
    display: none !important;
  }

  #success h2,
  #success p,
  #success #trackId {
    display: block !important;
  }

  .page-hero {
    background: #f0f5f2 !important;
    border-bottom: 2px solid #0f4d3e;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Teacher Join CTA ── */
.reg-cta-grid {
  gap: 28px;
  align-items: start;
}
.reg-cta-icon {
  font-size: 48px;
  line-height: 1;
}
.reg-cta-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reg-cta-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.reg-cta-features li i {
  color: var(--primary);
  font-size: 16px;
}
.form-card {
  padding: 0 !important;
  overflow: hidden;
}
.form-header-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}
.form-header-badge strong {
  display: block;
  font-size: 15px;
}
.form-header-badge small {
  display: block;
  opacity: 0.75;
  font-size: 12px;
}
.form-header-icon {
  font-size: 28px;
}
.form-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-body select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.form-body select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 77, 62, 0.1);
  outline: none;
}

/* ── Dashboard Charts ── */
.chart-bars {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chart-label {
  min-width: 90px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
}
.chart-track {
  flex: 1;
  height: 26px;
  background: var(--surface-strong);
  border-radius: 999px;
  overflow: hidden;
}
.chart-fill {
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  min-width: 28px;
  transition: width 0.6s ease;
}

/* ══════════════════════════════════════════════
   ISLAMIC DESIGN SYSTEM — Quran Verses & Motifs
   ══════════════════════════════════════════════ */

/* ── Bismillah Opening Banner ── */
.bismillah-banner {
  text-align: center;
  padding: 36px 20px 28px;
  background: linear-gradient(180deg, rgba(15,77,62,0.04), transparent);
  position: relative;
}
.bismillah-banner::before,
.bismillah-banner::after {
  content: "﴾";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  color: var(--accent);
  opacity: 0.2;
  font-family: "Amiri", serif;
}
.bismillah-banner::before {
  content: "﴿";
  right: 8%;
}
.bismillah-banner::after {
  left: 8%;
}
.bismillah-text {
  font-family: "Amiri", "Cairo", serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.8;
  letter-spacing: 0.02em;
}
html[data-theme="dark"] .bismillah-text {
  color: var(--accent);
}
html[data-theme="dark"] .bismillah-banner {
  background: linear-gradient(180deg, rgba(231,195,122,0.04), transparent);
}

/* ── Quran Verse Card ── */
.quran-verse {
  position: relative;
  text-align: center;
  padding: 40px 32px 36px;
  margin: 36px auto;
  max-width: 820px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(197,155,87,0.08), transparent 50%),
    radial-gradient(circle at bottom left, rgba(15,77,62,0.06), transparent 50%),
    var(--surface);
  border: 1.5px solid rgba(197,155,87,0.18);
  box-shadow: 0 16px 48px rgba(197,155,87,0.08);
  overflow: hidden;
}
.quran-verse-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(197,155,87,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.quran-verse::before {
  content: "❁";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #deb66d);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(197,155,87,0.3);
  z-index: 2;
}
.quran-verse::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(197,155,87,0.06) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
}
.quran-verse-text {
  font-family: "Amiri", serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 2.2;
  color: var(--primary);
  position: relative;
  z-index: 1;
}
.quran-verse-text .quran-bracket {
  color: var(--accent);
  font-size: 1.2em;
  vertical-align: middle;
}
.quran-verse-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(197,155,87,0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  font-family: "Cairo", sans-serif;
  position: relative;
  z-index: 1;
}
.quran-verse-ref i {
  font-size: 12px;
}
.quran-verse-hint {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .quran-verse {
  background:
    radial-gradient(circle at top right, rgba(125,217,191,0.1), transparent 46%),
    radial-gradient(circle at bottom left, rgba(231,195,122,0.06), transparent 44%),
    linear-gradient(180deg, rgba(15,23,36,0.98), rgba(11,17,29,0.98));
  border-color: rgba(125,217,191,0.14);
  box-shadow: 0 20px 52px rgba(0,0,0,0.38);
}
html[data-theme="dark"] .quran-verse-kicker {
  background: rgba(125,217,191,0.1);
  color: #e6faf5;
}
html[data-theme="dark"] .quran-verse-text {
  color: #eef4f8;
}
html[data-theme="dark"] .quran-verse-ref {
  background: rgba(125,217,191,0.08);
  color: #e6faf5;
}
html[data-theme="dark"] .quran-verse-hint {
  color: #9caebd;
}

/* ── Arabesque Divider ── */
.arabesque-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 8px;
  color: var(--accent);
  font-size: 18px;
  opacity: 0.7;
}
.arabesque-divider::before,
.arabesque-divider::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Islamic Quote Strip ── */
.islamic-quote-strip {
  position: relative;
  overflow: hidden;
  padding: 52px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(15,77,62,0.06), transparent 70%),
    linear-gradient(180deg, var(--surface-strong), var(--bg));
}
.islamic-quote-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(197,155,87,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.4;
}
.islamic-quote-strip .quran-verse-text {
  font-size: clamp(20px, 2.8vw, 28px);
  max-width: 780px;
  margin: 0 auto;
}
.islamic-quote-strip .quran-verse-ref {
  margin-top: 18px;
}
html[data-theme="dark"] .islamic-quote-strip {
  background:
    radial-gradient(ellipse at center, rgba(125,217,191,0.06), transparent 70%),
    linear-gradient(180deg, #0a1320, #08111a);
}

/* ── Islamic Section Accent ── */
.islamic-accent-border {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent 10%, var(--accent) 50%, transparent 90%) 1;
}

/* ── Hadith / Islamic Note Card ── */
.islamic-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(197,155,87,0.06);
  border: 1px solid rgba(197,155,87,0.12);
  margin: 24px 0;
  max-width: 820px;
  margin-inline: auto;
}
.islamic-note-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #deb66d);
  color: #fff;
  font-size: 20px;
}
.islamic-note-content {
  flex: 1;
}
.islamic-note-content blockquote {
  margin: 0 0 8px;
  font-family: "Amiri", serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  font-style: italic;
}
.islamic-note-content cite {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  font-style: normal;
}

html[data-theme="dark"] .islamic-note {
  background: rgba(125,217,191,0.06);
  border-color: rgba(125,217,191,0.1);
}

/* ── CTA Banner with Islamic Touch ── */
.cta-islamic {
  position: relative;
  overflow: hidden;
  padding: 56px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f4d3e 0%, #143f34 50%, #0a2e22 100%);
  color: #fff;
  text-align: center;
  margin: 0 auto;
  max-width: 1000px;
}
.cta-islamic::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 20px 20px;
}
.cta-islamic::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,155,87,0.2), transparent 70%);
  pointer-events: none;
}
.cta-islamic h2 {
  font-family: "Reem Kufi", "Cairo", sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}
.cta-islamic p {
  font-size: 16px;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
}
.cta-islamic .quran-verse-text {
  color: rgba(255,255,255,0.92);
  font-size: clamp(17px, 2.2vw, 22px);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.cta-islamic .quran-verse-ref {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.cta-islamic .btn {
  position: relative;
  z-index: 1;
}

.btn-cta-light {
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

.btn-cta-light:hover {
  background: #f4fbf8;
  color: var(--primary-strong);
}

.btn-cta-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .cta-islamic {
  background:
    radial-gradient(circle at top right, rgba(125, 217, 191, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(231, 195, 122, 0.1), transparent 24%),
    linear-gradient(135deg, #0f1724 0%, #111d2c 48%, #0a1320 100%);
}

html[data-theme="dark"] .cta-islamic::after {
  background: radial-gradient(circle, rgba(231, 195, 122, 0.18), transparent 70%);
}

html[data-theme="dark"] .btn-cta-light {
  background: #eef4f8;
  color: var(--primary-strong);
}

html[data-theme="dark"] .btn-cta-light:hover {
  background: #ffffff;
}

html[data-theme="dark"] .btn-cta-outline {
  border-color: rgba(148, 163, 184, 0.24);
  color: #eef4f8;
}

html[data-theme="dark"] .btn-cta-outline:hover {
  background: rgba(125, 217, 191, 0.12);
  border-color: rgba(125, 217, 191, 0.22);
}

/* ── Responsive — Islamic Components ── */
@media (max-width: 768px) {
  .bismillah-banner {
    padding: 28px 16px 22px;
  }
  .bismillah-banner::before,
  .bismillah-banner::after {
    display: none;
  }
  .quran-verse {
    padding: 32px 20px 28px;
    margin: 24px auto;
    border-radius: var(--radius-lg);
  }
  .quran-verse::before {
    top: -14px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .islamic-note {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
  }
  .cta-islamic {
    padding: 40px 18px;
    border-radius: var(--radius-lg);
  }
  .islamic-quote-strip {
    padding: 36px 16px;
  }
}

@media (max-width: 480px) {
  .quran-verse-text {
    font-size: 20px;
    line-height: 2;
  }
  .cta-islamic h2 {
    font-size: 22px;
  }
}

/* ── Extra Responsive Fixes ── */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 56px;
  }
  .hero-art {
    display: none;
  }
  .hero h1 {
    font-size: clamp(32px, 8vw, 48px);
  }
  .hero-trust-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn-hero {
    width: 100%;
    justify-content: center;
  }
  .hours-contact-layout {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .reg-cta-grid {
    grid-template-columns: 1fr;
  }
  .professional-layout {
    grid-template-columns: 1fr;
  }
  .impact-layout {
    grid-template-columns: 1fr;
  }
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    min-height: 56px;
    gap: 8px;
    padding-inline: 12px;
  }

  .nav-links {
    inset-block-start: 56px;
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    padding: 10px 12px 16px;
    gap: 4px;
    border-radius: 0 0 14px 14px;
  }

  .nav-links a {
    padding: 11px 14px;
    font-size: 13.5px;
    border-radius: 10px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .logo-text span {
    font-size: 13px;
  }

  .logo-text small {
    font-size: 9.5px;
  }

  .logo {
    gap: 8px;
  }

  .nav-cta .btn-primary {
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 8px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 17px;
    border-radius: 8px;
  }
}

@media (max-width: 360px) {
  .nav-inner {
    min-height: 52px;
    gap: 6px;
    padding-inline: 10px;
  }

  .nav-links {
    inset-block-start: 52px;
    max-height: calc(100vh - 52px);
    max-height: calc(100dvh - 52px);
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-text span {
    font-size: 12px;
  }

  .logo-text small {
    display: none;
  }

  .nav-cta .btn-primary {
    padding: 6px 9px;
    font-size: 10.5px;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
