/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--hero);
  padding: 7rem 2rem 5rem;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 161, 114, 0.08), transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 161, 114, 0.06), transparent 65%);
  top: 30%;
  right: 10%;
  pointer-events: none;
}

.hero-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-rings::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border: 1px solid rgba(196, 161, 114, 0.06);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 8s ease-in-out infinite;
}

.hero-rings::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(196, 161, 114, 0.08);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 8s ease-in-out infinite .3s;
}

@keyframes pulse-ring {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: .5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 1;
  }
}

.hero-arabic-bg {
  position: absolute;
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(6rem, 18vw, 22rem);
  font-weight: 900;
  color: rgb(196 161 114 / 8%);
  direction: rtl;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

[data-theme="light"] .hero-arabic-bg {
  color: rgba(196, 161, 114, 0.04);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem .35rem .5rem;
  background: rgba(196, 161, 114, 0.1);
  border: 1px solid rgba(196, 161, 114, 0.25);
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fade-up .8s both;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .hero-badge {
  background: rgba(196, 161, 114, 0.08);
  border-color: rgba(196, 161, 114, 0.2);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.hero-badge span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent-green);
  text-transform: uppercase;
}

.herologo h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .03em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  animation: fade-up .9s .1s both;
}

.herologo img {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin-bottom: 25px;
}
/* .herologo {
  display: flex;
  align-items: center;
  gap: 5px;
  span {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 80px;
    letter-spacing: 4px;
    background: linear-gradient(
      145deg,
      #F5E6C8 0%,
      #E6C48A 20%,
      #CFA25E 40%,
      #A67C3B 60%,
      #E6C48A 80%,
      #F5E6C8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
      0 1px 0 #6E4F1F,
      0 2px 3px rgba(0,0,0,0.4),
      0 0 10px rgba(230,196,138,0.5);
  }
} */

[data-theme="light"] .hero h1 {
  color: var(--text-primary);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  animation: fade-up .9s .2s both;
}

.hero-arabic-verse {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: rgba(245, 158, 11, 0.6);
  direction: rtl;
  margin-bottom: 2.8rem;
  position: relative;
  z-index: 1;
  animation: fade-up .9s .25s both;
}

[data-theme="light"] .hero-arabic-verse {
  color: rgb(196 161 114 / 80%);
}

.hero-arabic-verse small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-style: normal;
  margin-top: .4rem;
  direction: ltr;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
  animation: fade-up .9s .35s both;
}

.btn-primary {
  padding: .9rem 2.2rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  /* box-shadow:0 12px 40px rgba(196, 161, 114,0.3); */
  transition: all .25s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  padding: .88rem 2.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: all .25s;
  background: var(--hover-overlay);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fade-up .9s .5s both;
}

.hero-stat-n {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: .25rem;
}

.hero-stat-n span {
  color: var(--accent-green);
}

.hero-stat-l {
  font-size: .62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  opacity: .4;
  animation: float 2.5s ease-in-out infinite;
  z-index: 1;
}

.scroll-hint span {
  font-size: .58rem;
  letter-spacing: .15em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(6px)
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ─── SECTIONS ─── */
section {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: '✦';
  font-size: .55rem;
  opacity: .6;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title em {
  font-style: normal;
  color: var(--accent-green);
}

.section-sub {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 540px;
}

/* ─── ROLES ─── */
.roles-section {
  padding: 8rem 2rem;
  background: var(--bg-secondary);
}

[data-theme="light"] .roles-section {
  background: var(--bg-secondary);
}

.roles-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.roles-header {
  text-align: center;
  margin-bottom: 5rem;
}

.roles-header .section-sub {
  margin: 0 auto;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.role-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.role-card-head {
  padding: 2.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.rc-madrasa .role-card-head {
  background: linear-gradient(145deg, #0a1628, #0d4f4f);
}

.rc-teacher .role-card-head {
  background: linear-gradient(145deg, #1a1205, #7a5000);
}

.rc-student .role-card-head {
  background: linear-gradient(145deg, #0a0e27, #1a3a6a);
}

[data-theme="light"] .rc-madrasa .role-card-head {
  background: linear-gradient(145deg, #0D8C8C, #14b8a6);
}

[data-theme="light"] .rc-teacher .role-card-head {
  background: linear-gradient(145deg, #92600a, #f59e0b);
}

[data-theme="light"] .rc-student .role-card-head {
  background: linear-gradient(145deg, #1e40af, #3b82f6);
}

.role-card-head::after {
  content: attr(data-arabic);
  position: absolute;
  right: 1.5rem;
  bottom: -1rem;
  font-family: 'Amiri', serif;
  font-size: 4.5rem;
  color: rgba(255, 255, 255, .06);
  direction: rtl;
  pointer-events: none;
  line-height: 1;
}

.role-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, .12);
}

.role-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8rem;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .2);
}

.role-name {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}

.role-tagline {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: .9rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
}

.role-card-body {
  background: var(--bg-card);
  padding: 2rem;
}

[data-theme="light"] .role-card-body {
  background: var(--bg-secondary);
}

.role-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 1.8rem;
}

.role-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .82rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.role-feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 900;
  margin-top: .05rem;
  background: rgba(196, 161, 114, .15);
  color: var(--accent-green);
}

[data-theme="light"] .role-feature-list li::before {
  background: rgba(196, 161, 114, .12);
}

.role-cta {
  display: block;
  text-align: center;
  padding: .8rem;
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: all .25s;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 161, 114, 0.25);
}

.role-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ─── HOW IT WORKS ─── */
.hiw-section {
  padding: 8rem 2rem;
  background: var(--bg-tertiary);
}

[data-theme="light"] .hiw-section {
  background: var(--bg-tertiary);
}

.hiw-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hiw-header {
  text-align: center;
  margin-bottom: 5rem;
}

.hiw-header .section-sub {
  margin: 0 auto;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.hiw-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), var(--accent-teal), transparent);
  z-index: 0;
  opacity: .3;
}

.hiw-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.hiw-step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.hiw-step:nth-child(1) .hiw-step-num {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  color: #fff;
  box-shadow: 0 8px 30px rgba(196, 161, 114, .3);
}

.hiw-step:nth-child(2) .hiw-step-num {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-yellow));
  color: #fff;
  box-shadow: 0 8px 30px rgba(245, 158, 11, .3);
}

.hiw-step:nth-child(3) .hiw-step-num {
  background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
  color: #fff;
  box-shadow: 0 8px 30px rgba(59, 130, 246, .3);
}

.hiw-step:nth-child(4) .hiw-step-num {
  background: linear-gradient(135deg, var(--accent-purple), #a78bfa);
  color: #fff;
  box-shadow: 0 8px 30px rgba(139, 92, 246, .3);
}

.hiw-step-title {
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
}

.hiw-step-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── CURRICULUM ─── */
.curriculum-section {
  padding: 8rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.curriculum-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 161, 114, .07), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(196, 161, 114, .05), transparent 50%);
}

.curriculum-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.curriculum-header {
  text-align: center;
  margin-bottom: 5rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
}

.program-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(196, 161, 114, .3);
  transform: translateY(-4px);
}

[data-theme="light"] .program-card {
  background: var(--bg-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.program-card-top {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.program-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.program-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .3rem;
}

.program-arabic {
  font-family: 'Amiri', serif;
  font-size: 2.1rem;
  color: rgba(245, 158, 11, .7);
  direction: rtl;
  display: block;
  margin-bottom: .7rem;
}

[data-theme="light"] .program-arabic {
  color: var(--accent-gold);
}

.program-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.program-card-bottom {
  padding: 1.5rem 2rem;
}

.program-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.program-detail:last-child {
  border-bottom: none;
}

.program-detail-label {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.program-detail-val {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.lesson-anatomy {
  background: var(--bg-card);
  border: 1px solid rgba(196, 161, 114, .2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

[data-theme="light"] .lesson-anatomy {
  background: var(--bg-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.lesson-anatomy-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-green);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: .05em;
}

.lesson-parts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lesson-part {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .lesson-part {
  background: var(--bg-tertiary);
}

.lesson-part-icon {
  font-size: 1.8rem;
  margin-bottom: .8rem;
}

.lesson-part-name {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem;
}

.lesson-part-arabic {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: rgba(245, 158, 11, .6);
  direction: rtl;
  margin-bottom: .5rem;
}

[data-theme="light"] .lesson-part-arabic {
  color: var(--accent-gold);
  opacity: .7;
}

.lesson-part-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sabaq-parts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.sabaq-part {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
}

[data-theme="light"] .sabaq-part {
  background: var(--bg-tertiary);
}

.sabaq-part-icon {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.sabaq-part-name {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: .2rem;
}

.sabaq-part-ur {
  font-family: 'Amiri', serif;
  font-size: 2.9rem;
  color: rgba(245, 158, 11, .5);
  direction: rtl;
}

[data-theme="light"] .sabaq-part-ur {
  color: var(--accent-gold);
  opacity: .6;
}

/* ─── FEATURES GRID ─── */
.features-strip {
  padding: 8rem 2rem;
  background: var(--bg-secondary);
}

[data-theme="light"] .features-strip {
  background: var(--bg-secondary);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 5rem;
}

.features-header .section-sub {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity .3s;
}

.feat-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.feat-card:hover::after {
  opacity: 1;
}

[data-theme="light"] .feat-card {
  background: var(--bg-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

[data-theme="light"] .feat-card:hover {
  background: var(--bg-tertiary);
}

.fc-green::after {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
}

.fc-gold::after {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-yellow));
}

.fc-blue::after {
  background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
}

.fc-purple::after {
  background: linear-gradient(90deg, var(--accent-purple), #a78bfa);
}

.fc-red::after {
  background: linear-gradient(90deg, var(--accent-red), #f87171);
}

.fc-teal::after {
  background: linear-gradient(90deg, var(--accent-teal), #5eead4);
}

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.fc-green .feat-icon {
  background: rgba(196, 161, 114, .12);
}

.fc-gold .feat-icon {
  background: rgba(245, 158, 11, .12);
}

.fc-blue .feat-icon {
  background: rgba(59, 130, 246, .12);
}

.fc-purple .feat-icon {
  background: rgba(139, 92, 246, .12);
}

.fc-red .feat-icon {
  background: rgba(239, 68, 68, .12);
}

.fc-teal .feat-icon {
  background: rgba(196, 161, 114, .12);
}

.feat-title {
  font-family: 'Cinzel', serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.feat-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── FAMILY FEATURE ─── */
.family-section {
  padding: 8rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.family-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, .1), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(196, 161, 114, .06), transparent 60%);
}

.family-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.family-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.family-features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ff-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(196, 161, 114, .1);
  border: 1px solid rgba(196, 161, 114, .2);
}

[data-theme="light"] .ff-icon {
  background: rgba(196, 161, 114, .1);
  border-color: rgba(196, 161, 114, .2);
}

.ff-text strong {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

.ff-text span {
  font-size: .77rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.family-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

[data-theme="light"] .family-visual {
  background: var(--bg-secondary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.family-visual-title {
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-green);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.family-tree {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.family-member {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  transition: all .2s;
}

.family-member:hover {
  border-color: rgba(196, 161, 114, .3);
}

[data-theme="light"] .family-member {
  background: var(--bg-tertiary);
}

.fm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.fm-info {
  flex: 1;
}

.fm-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .15rem;
}

.fm-role {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fm-pct {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
}

.fm-plabel {
  font-size: .58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── LIVE SECTION ─── */
.live-section {
  padding: 8rem 2rem;
  background: var(--bg-secondary);
}

[data-theme="light"] .live-section {
  background: var(--bg-secondary);
}

.live-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.live-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.live-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .live-visual {
  background: linear-gradient(145deg, var(--accent-green), var(--accent-teal));
  background: var(--bg-secondary);
  border: none;
}

.live-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(196, 161, 114, .08), transparent 50%);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 100px;
  padding: .25rem .75rem;
  font-size: .62rem;
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: blink 1.5s infinite;
}

.live-session-parts {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  z-index: 1;
}

.lsp {
  background: var(--hover-overlay);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all .3s;
}

[data-theme="light"] .lsp {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .25);
}

.lsp:hover {
  background: rgba(196, 161, 114, .08);
  border-color: rgba(196, 161, 114, .2);
}

.lsp-num {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 900;
  min-width: 32px;
  line-height: 1;
  color: var(--accent-green);
}

.lsp:nth-child(2) .lsp-num {
  color: var(--accent-gold);
}

.lsp:nth-child(3) .lsp-num {
  color: var(--accent-teal);
}

[data-theme="light"] .lsp-num,
[data-theme="light"] .lsp:nth-child(2) .lsp-num,
[data-theme="light"] .lsp:nth-child(3) .lsp-num {
  color: #000;
}

.lsp-text strong {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

[data-theme="light"] .lsp-text strong {
  color: var(--accent-green);
}

.lsp-text span {
  font-size: .72rem;
  color: var(--text-muted);
}

[data-theme="light"] .lsp-text span {
  color: var(--text-muted);
}

.lsp-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: rgba(245, 158, 11, .5);
  direction: rtl;
  margin-left: auto;
}

[data-theme="light"] .lsp-arabic {
  color: var(--text-secondary);
}

.live-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin: 2rem 0;
}

.live-features li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.live-features li::before {
  content: '↗';
  flex-shrink: 0;
  font-size: .9rem;
  color: var(--accent-green);
  font-weight: 700;
  margin-top: .05rem;
}

/* ─── REPORTS ─── */
.reports-section {
  padding: 8rem 2rem;
  background: var(--bg-tertiary);
}

[data-theme="light"] .reports-section {
  background: var(--bg-tertiary);
}

.reports-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.reports-header {
  text-align: center;
  margin-bottom: 5rem;
}

.reports-header .section-sub {
  margin: 0 auto;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.report-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all .3s;
}

.report-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 161, 114, .25);
}

[data-theme="light"] .report-card {
  background: var(--bg-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.report-role-pill {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.rp-admin {
  background: rgba(196, 161, 114, .12);
  color: var(--accent-green);
  border: 1px solid rgba(196, 161, 114, .25);
}

.rp-teacher {
  background: rgba(245, 158, 11, .12);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, .25);
}

.rp-student {
  background: rgba(59, 130, 246, .12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, .25);
}

.report-title {
  font-family: 'Cinzel', serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem;
}

.report-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.report-stat {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.rs-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.rs-label {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
  width: 120px;
  flex-shrink: 0;
}

.rs-bar {
  flex: 1;
  height: 5px;
  background: var(--bg-card-alt);
  border-radius: 3px;
  margin: 0 .8rem;
  overflow: hidden;
}

[data-theme="light"] .rs-bar {
  background: var(--bg-tertiary);
}

.rs-fill {
  height: 100%;
  border-radius: 3px;
}

.rs-fill.green {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
}

.rs-fill.gold {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-yellow));
}

.rs-fill.blue {
  background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
}

.rs-val {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: .78rem;
  white-space: nowrap;
}

/* ─── SOCIAL PROOF ─── */
.social-section {
  padding: 8rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.social-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 161, 114, .08), transparent 60%);
}

.social-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.social-header {
  text-align: center;
  margin-bottom: 5rem;
}

.social-header .section-sub {
  margin: 0 auto;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .3s;
}

.testimonial:hover {
  background: var(--bg-card-hover);
  border-color: rgba(196, 161, 114, .2);
}

[data-theme="light"] .testimonial {
  background: var(--bg-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: .9rem;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.ta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Cinzel', serif;
}

.ta-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .15rem;
}

.ta-role {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── FINAL CTA ─── */
.final-cta {
  padding: 10rem 2rem;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .final-cta {
  background: var(--competition-container);
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(196, 161, 114, .1), transparent 70%);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.final-arabic {
  font-family: 'Amiri', serif;
  font-size: 3rem;
  color: rgba(245, 158, 11, .4);
  direction: rtl;
  margin-bottom: 1.5rem;
  display: block;
}

[data-theme="light"] .final-arabic {
  color: var(--text-muted);
}

.final-cta h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1rem;
}

[data-theme="light"] .final-cta h2 {
  color: black;
}

.final-cta h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .final-cta h2 em {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.final-cta p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

[data-theme="light"] .final-cta p {
  color: var(--text-muted);
}

.final-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.final-cta-note {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}

[data-theme="light"] .final-cta-note {
  color: var(--text-muted);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 3px;
  opacity: .5;
}

/* ─── REVEAL ─── */
/* .reveal { opacity:0; transform:translateY(30px); transition:opacity .7s,transform .7s; }
  .reveal.visible { opacity:1; transform:none; } */

/* ─── RESPONSIVE ─── */
@media(max-width:900px) {

  .roles-grid,
  .programs-grid,
  .features-grid,
  .reports-grid,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .hiw-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hiw-steps::before {
    display: none;
  }

  .family-inner,
  .live-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  nav {
    padding: 0 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .lesson-parts,
  .sabaq-parts {
    grid-template-columns: 1fr;
  }
}