:root{
  /* الهوية الكحلية والذهبية المستوحاة من الشعار */
  --navy:#082B5C;
  --navy-dark:#031B3D;
  --navy-deep:#010F2C;
  --navy-light:#153E75;
  --navy-accent:#1C4B84;
  --navy-soft:#EEF3F9;
  --navy-soft-2:#E1EAF4;
  --gold:#D49A4A;
  --gold-dark:#9A5B18;
  --gold-light:#E8BC78;
  --gold-soft:#FCF4E7;
  --gold-border:#E9CCA2;

  /* أسماء قديمة محفوظة حتى لا يتعطل HTML الحالي */
  --blue:var(--navy);
  --blue2:var(--navy-dark);
  --blue3:var(--navy-light);
  --blue-soft:var(--navy-soft);
  --blue-soft-2:var(--navy-soft-2);

  /* النصوص والخلفيات المتناغمة */
  --ink:#10233D;
  --ink-2:#263B54;
  --muted:#627187;
  --bg:#F7F9FC;
  --bg-soft:#FBFCFE;
  --line:#E2E8F0;
  --line-strong:#D5DEE9;
  --white:#fff;

  /* حالات النظام */
  --success:#167a55;
  --danger:#b4233b;
  --warning:#D49953;

  /* ظلال كحلية هادئة */
  --shadow-xs:0 2px 10px rgba(19,32,51,.05);
  --shadow-sm:0 8px 24px rgba(19,32,51,.07);
  --shadow:0 16px 40px rgba(19,32,51,.09);
  --shadow-lg:0 24px 70px rgba(19,32,51,.13);

  --radius-sm:12px;
  --radius:18px;
  --radius-lg:26px;
  --transition:.22s ease;
}
*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scrollbar-color:#BCC8D6 #EEF2F6;
}

body{
  margin:0;
  font-family:Tahoma,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body::selection{
  background:#E8EEF5;
  color:#0F2F60;
}

a{
  color:inherit;
  text-decoration:none;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

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

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

button,a{
  -webkit-tap-highlight-color:transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:3px solid rgba(15,47,96,.22);
  outline-offset:2px;
}

/* =========================
   Announcement
========================= */

.announcement{
  min-height:40px;
  padding:6px 52px;
  background:linear-gradient(
    90deg,
    #011D44,
    #0F2F60 55%,
    #173F7A
  );
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  font-size:13px;
  font-weight:700;
  letter-spacing:.1px;
}

.announcement button{
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:rgba(255,255,255,.10);
  color:white;
  width:30px;
  height:30px;
  border-radius:50%;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}

.announcement button:hover{
  background:rgba(255,255,255,.20);
  transform:translateY(-50%) rotate(3deg);
}

/* =========================
   Header
========================= */

.site-header{
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(226,232,240,.8);
  box-shadow:0 7px 30px rgba(19,32,51,.045);
}

.header-inner{
  max-width:1240px;
  margin:auto;
  min-height:84px;
  padding:11px 20px;
  display:flex;
  align-items:center;
  gap:20px;
}

.brand{
  flex:0 0 auto;
}

.brand img{
  width:138px;
  height:auto;
  transition:transform var(--transition);
}

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

.main-nav{
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.nav-link{
  font-size:14px;
  font-weight:700;
  color:#405168;
  padding:10px 11px;
  border-radius:10px;
  border-bottom:0;
  position:relative;
}

.nav-link::after{
  content:"";
  position:absolute;
  right:11px;
  left:11px;
  bottom:4px;
  height:2px;
  border-radius:999px;
  background:var(--gold);
  transform:scaleX(0);
  transition:transform var(--transition);
}

.nav-link:hover,
.nav-link.active{
  color:var(--blue);
  background:#F4F7FB;
}

.nav-link:hover::after,
.nav-link.active::after{
  transform:scaleX(1);
}

.nav-dropdown{
  position:relative;
}

.nav-dropdown>button{
  background:transparent;
  border:0;
  cursor:pointer;
}

.nav-dropdown-menu{
  display:none;
  position:absolute;
  right:0;
  top:44px;
  width:228px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:8px;
  z-index:70;
  transform-origin:top right;
  animation:menuIn .16s ease both;
}

@keyframes menuIn{
  from{
    opacity:0;
    transform:translateY(8px) scale(.98)
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1)
  }
}

.nav-dropdown-menu a{
  display:block;
  padding:10px 11px;
  border-radius:10px;
  font-size:13px;
  color:#526379;
}

.nav-dropdown-menu a:hover{
  background:#EEF3F8;
  color:var(--blue);
  transform:translateX(-2px);
}

.nav-dropdown:hover .nav-dropdown-menu{
  display:block;
}

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

.global-search{
  position:relative;
  width:258px;
}

.global-search input{
  width:100%;
  height:44px;
  background:#F7F9FC;
  border:1px solid #EAF0F6;
  border-radius:13px;
  padding:10px 38px 10px 12px;
  outline:none;
  color:var(--ink);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.global-search input::placeholder{
  color:#8A98A8;
}

.global-search input:focus{
  border-color:#9FB4CC;
  background:#fff;
  box-shadow:0 0 0 4px rgba(15,47,96,.08);
}

.global-search>span{
  position:absolute;
  right:12px;
  top:9px;
  color:#8290A1;
  font-size:20px;
  pointer-events:none;
}

.suggestions{
  position:absolute;
  top:51px;
  right:0;
  left:0;
  background:white;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:15px;
  display:none;
  overflow:hidden;
  z-index:80;
  max-height:340px;
  overflow-y:auto;
}

.suggestions.show{
  display:block;
  animation:menuIn .16s ease both;
}

.suggestions a{
  display:block;
  padding:11px 13px;
  border-bottom:1px solid #EDF1F5;
  font-size:13px;
}

.suggestions a:last-child{
  border-bottom:0;
}

.suggestions a:hover{
  background:#F3F6FA;
  color:var(--blue);
}

.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:11px;
  width:42px;
  height:42px;
  place-items:center;
  font-size:25px;
  cursor:pointer;
  color:var(--ink);
}

.cart-link{
  position:relative;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:11px;
  display:grid;
  place-items:center;
  font-size:20px;
  background:#fff;
}

.cart-link:hover{
  border-color:#B9C9DA;
  background:#F8FAFC;
  color:var(--blue);
}

.cart-link b{
  position:absolute;
  top:-7px;
  right:-7px;
  background:var(--danger);
  color:#fff;
  border:2px solid #fff;
  border-radius:20px;
  min-width:20px;
  height:20px;
  line-height:16px;
  text-align:center;
  font-size:10px;
  box-shadow:0 4px 10px rgba(180,35,59,.25);
}

/* =========================
   Buttons
========================= */

.btn{
  border:1px solid transparent;
  border-radius:12px;
  min-height:44px;
  padding:10px 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font-weight:800;
  font-size:14px;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

.btn.small{
  min-height:38px;
  padding:8px 14px;
  font-size:13px;
  border-radius:10px;
}

.btn-primary{
  background:linear-gradient(
    135deg,
    var(--blue),
    #123B73
  );
  color:#fff;
  box-shadow:0 8px 18px rgba(15,47,96,.18);
}

.btn-primary:hover{
  background:linear-gradient(
    135deg,
    var(--blue2),
    #012553
  );
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(15,47,96,.24);
}

.btn-outline{
  background:#fff;
  color:var(--blue);
  border-color:#AFC2D6;
}

.btn-outline:hover{
  background:#F3F6FA;
  border-color:var(--blue);
  transform:translateY(-1px);
}

.btn-light{
  background:#fff;
  color:var(--ink);
  border-color:var(--line);
  box-shadow:var(--shadow-xs);
}

.btn-light:hover{
  border-color:#CDD8E4;
  background:#fbfdff;
  transform:translateY(-1px);
}

/* =========================
   Layout
========================= */

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

.section{
  padding:78px 0;
}

.section.soft{
  background:linear-gradient(
    180deg,
    #F8FAFC,
    #F7F9FC
  );
  border-top:1px solid #F0F4F8;
  border-bottom:1px solid #F0F4F8;
}

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

.section-head h2{
  font-size:30px;
  line-height:1.35;
  letter-spacing:-.3px;
  margin:0;
  color:#15253A;
}

.section-head p{
  margin:6px 0 0;
  color:var(--muted);
  max-width:680px;
}

/* =========================
   Home Hero
========================= */

.home-hero{
  position:relative;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(15,47,96,.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(212,153,83,.10),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #fff,
      #F8FAFC
    );
  overflow:hidden;
  border-bottom:1px solid #E9EEF4;
}

.home-hero::before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  right:-190px;
  top:-170px;
  border:1px solid rgba(15,47,96,.08);
  box-shadow:
    0 0 0 45px rgba(15,47,96,.025),
    0 0 0 90px rgba(15,47,96,.015);
}

.home-hero .wrap{
  width:min(1180px,calc(100% - 32px));
  margin:auto;
  min-height:580px;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  align-items:center;
  gap:56px;
  position:relative;
  z-index:1;
}

.home-hero h1{
  font-size:clamp(40px,4.2vw,58px);
  line-height:1.22;
  letter-spacing:-1.1px;
  margin:0 0 18px;
  color:#12233A;
}

.home-hero h1 span{
  color:var(--blue);
  position:relative;
}

.home-hero h1 span::after{
  content:"";
  position:absolute;
  right:0;
  left:0;
  bottom:-5px;
  height:7px;
  border-radius:999px;
  background:rgba(15,47,96,.12);
  z-index:-1;
}

.home-hero p{
  font-size:18px;
  color:#68788A;
  max-width:620px;
  line-height:1.95;
}

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

.hero-visual{
  position:relative;
  isolation:isolate;
  padding:18px;
}

.hero-visual::before{
  content:"";
  position:absolute;
  inset:11% 7%;
  background:
    radial-gradient(
      circle at 30% 25%,
      #EAF0F6,
      #DCE5EF 58%,
      #CEDBE8
    );
  border-radius:44% 56% 52% 48% / 48% 44% 56% 52%;
  z-index:-2;
}

.hero-visual::after{
  content:"";
  position:absolute;
  width:82%;
  height:18%;
  left:9%;
  bottom:2%;
  background:rgba(15,47,96,.14);
  filter:blur(28px);
  border-radius:50%;
  z-index:-3;
}

.hero-visual img{
  position:relative;
  z-index:1;
  max-height:470px;
  margin:auto;
  filter:drop-shadow(
    0 22px 34px rgba(15,47,96,.12)
  );
}

/* =========================
   Features
========================= */

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.feature{
  background:linear-gradient(
    180deg,
    #fff,
    #FCFDFE
  );
  border:1px solid var(--line);
  padding:28px;
  border-radius:22px;
  box-shadow:var(--shadow-xs);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  position:relative;
  overflow:hidden;
}

.feature::before{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:90px;
  height:90px;
  background:radial-gradient(
    circle at top right,
    rgba(15,47,96,.07),
    transparent 70%
  );
}

.feature:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-sm);
  border-color:#D6E0EA;
}

.feature .icon{
  width:56px;
  height:56px;
  border-radius:17px;
  background:linear-gradient(
    145deg,
    #EEF3F8,
    #DCE6F0
  );
  color:var(--blue);
  display:grid;
  place-items:center;
  font-size:25px;
  margin-bottom:16px;
  box-shadow:
    inset 0 0 0 1px rgba(15,47,96,.08);
}

.feature h3{
  margin:0 0 8px;
  font-size:18px;
  color:#27384C;
}

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

/* =========================
   Grids
========================= */

.university-strip,
.cards-grid,
.teacher-grid,
.blog-grid,
.stats-grid,
.story-grid{
  display:grid;
  gap:20px;
}

.university-strip{
  grid-template-columns:repeat(5,1fr);
}

.uni-card{
  background:linear-gradient(
    180deg,
    #fff,
    #fbfdff
  );
  border:1px solid var(--line);
  border-radius:19px;
  padding:18px 14px;
  text-align:center;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  box-shadow:var(--shadow-xs);
}

.uni-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-sm);
  border-color:#CEDAE7;
}

.uni-card img{
  width:120px;
  height:120px;
  object-fit:contain;
  margin:auto;
  padding:7px;
  border-radius:16px;
  background:#fff;
}

.uni-card p{
  margin:13px 0 0;
  font-weight:800;
  font-size:14px;
  color:#485A70;
}

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

.course-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:21px;
  overflow:hidden;
  box-shadow:var(--shadow-xs);
  display:flex;
  flex-direction:column;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.course-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
  border-color:#D9E2EB;
}

.card-media{
  height:218px;
  position:relative;
  background:linear-gradient(
    135deg,
    #F3F6F9,
    #EEF2F6
  );
  overflow:hidden;
}

.card-media::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:34%;
  background:linear-gradient(
    180deg,
    transparent,
    rgba(12,30,52,.09)
  );
  pointer-events:none;
}

.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}

.course-card:hover .card-media img{
  transform:scale(1.055);
}

.status{
  position:absolute;
  top:13px;
  right:13px;
  z-index:2;
  color:#fff;
  border-radius:999px;
  padding:6px 11px;
  font-size:11px;
  font-weight:800;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  backdrop-filter:blur(6px);
}

.status.open{
  background:rgba(22,163,106,.94);
}

.status.closed{
  background:rgba(180,35,59,.94);
}

.card-body{
  padding:18px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.card-body h3{
  font-size:17px;
  line-height:1.65;
  margin:4px 0 10px;
  color:#24364B;
}

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

.card-body .meta{
  color:#7A8898;
}

.rating{
  font-size:13px;
  color:var(--gold);
  font-weight:800;
}

.card-footer{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid #EDF1F5;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.card-footer strong{
  font-size:15px;
  white-space:nowrap;
  color:#0F2F60;
}

.card-footer del{
  color:var(--danger);
  font-size:11px;
  margin-left:5px;
}

.teacher-grid{
  grid-template-columns:repeat(5,1fr);
}

.teacher-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px 16px;
  background:#fff;
  text-align:center;
  box-shadow:var(--shadow-xs);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.teacher-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-sm);
  border-color:#D5DFEA;
}

.teacher-card img{
  width:116px;
  height:116px;
  border-radius:50%;
  margin:0 auto 12px;
  object-fit:cover;
  border:5px solid #F1F5F9;
  box-shadow:0 8px 22px rgba(22,43,68,.10);
}

.teacher-card h3{
  font-size:16px;
  margin:6px 0;
  color:#283A4F;
}

.teacher-card p{
  margin:2px;
  color:var(--muted);
  font-size:13px;
}

/* =========================
   Stats
========================= */

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

.stat{
  position:relative;
  overflow:hidden;
  background:linear-gradient(
    145deg,
    #0F2F60,
    #173F7A
  );
  color:#fff;
  border-radius:22px;
  padding:31px 20px;
  text-align:center;
  box-shadow:
    0 14px 32px rgba(15,47,96,.19);
}

.stat::after{
  content:"";
  position:absolute;
  width:115px;
  height:115px;
  border-radius:50%;
  left:-45px;
  top:-55px;
  background:rgba(255,255,255,.09);
}

.stat strong{
  display:block;
  font-size:38px;
  line-height:1.2;
  margin-bottom:4px;
}

/* =========================
   Join
========================= */

.join-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.join-box{
  border-radius:26px;
  padding:42px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(15,47,96,.12),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #F4F7FA,
      #E9EFF6
    );
  min-height:300px;
  position:relative;
  overflow:hidden;
  border:1px solid #E8EEF5;
}

.join-box.alt{
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(245,158,11,.12),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #FFF9F0,
      #FBF0DC
    );
  border-color:#EED7AE;
}

.join-box h2{
  font-size:31px;
  line-height:1.35;
  margin-top:0;
  color:#283A4F;
}

.join-box ul{
  padding-right:20px;
  color:#607186;
}

.join-box li{
  margin:7px 0;
}

/* =========================
   App Section
========================= */

.app-section{
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(15,47,96,.10),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #F7F9FC,
      #E9EFF6
    );
  border:1px solid #DCE5EF;
  border-radius:30px;
  padding:46px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}

.app-section img{
  max-height:370px;
  margin:auto;
  filter:drop-shadow(
    0 24px 30px rgba(15,47,96,.14)
  );
}

/* =========================
   Page Hero
========================= */

.page-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(
      circle at 18% 25%,
      rgba(15,47,96,.08),
      transparent 27%
    ),
    radial-gradient(
      circle at 82% 75%,
      rgba(212,153,83,.08),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #F4F7FB,
      #fff
    );
  padding:80px 20px 74px;
  text-align:center;
  border-bottom:1px solid var(--line);
}

.page-hero>div{
  max-width:820px;
  margin:auto;
  position:relative;
  z-index:1;
}

.page-hero h1{
  font-size:44px;
  line-height:1.3;
  letter-spacing:-.6px;
  margin:8px 0;
  color:#15253A;
}

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

.eyebrow{
  color:var(--blue);
  font-weight:900;
  font-size:12px;
  letter-spacing:.4px;
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  background:#E9EFF6;
}

/* =========================
   Toolbar
========================= */

.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:28px;
  padding:12px;
  border:1px solid var(--line);
  background:#FBFCFE;
  border-radius:16px;
}

.toolbar input,
.toolbar select{
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:11px;
  min-height:44px;
  padding:10px 13px;
  min-width:220px;
  outline:none;
  color:var(--ink);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.toolbar input:focus,
.toolbar select:focus{
  border-color:#9CB2CA;
  box-shadow:
    0 0 0 4px rgba(15,47,96,.07);
}

/* =========================
   Forms
========================= */

.form-card{
  width:min(720px,calc(100% - 32px));
  margin:58px auto;
  background:white;
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow);
  padding:36px;
}

.form-card.narrow{
  max-width:560px;
}

.form-card h1,
.form-card h2{
  text-align:center;
  margin-top:0;
  color:#293C52;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px;
}

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

.field.full{
  grid-column:1/-1;
}

.field label{
  font-weight:800;
  font-size:13px;
  color:#405168;
}

.field input,
.field select,
.field textarea{
  border:1px solid #D9E2EB;
  border-radius:12px;
  min-height:46px;
  padding:11px 13px;
  outline:none;
  background:#fff;
  color:var(--ink);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.field input:hover,
.field select:hover,
.field textarea:hover{
  border-color:#CCD8E4;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:#4B6F9E;
  box-shadow:0 0 0 4px #F2F6FA;
}

.field textarea{
  min-height:140px;
  resize:vertical;
}

.helper{
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

.auth-split{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:8px 0 20px;
  font-size:13px;
}

/* =========================
   FAQ
========================= */

.faq-list{
  max-width:900px;
  margin:auto;
}

.faq-group-title{
  color:var(--blue);
  margin:36px 0 13px;
}

.faq-item{
  border:1px solid var(--line);
  border-radius:15px;
  margin:11px 0;
  background:#fff;
  overflow:hidden;
  box-shadow:var(--shadow-xs);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.faq-item:hover{
  border-color:#D4DEE8;
}

.faq-q{
  width:100%;
  text-align:right;
  padding:17px 19px;
  background:#fff;
  border:0;
  color:#3D5067;
  font-weight:800;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.faq-q span{
  transition:transform var(--transition);
}

.faq-a{
  display:none;
  padding:0 19px 19px;
  color:var(--muted);
  border-top:1px solid transparent;
}

.faq-item.open{
  border-color:#CBD8E5;
  box-shadow:var(--shadow-sm);
}

.faq-item.open .faq-a{
  display:block;
  border-top-color:#EEF2F6;
  padding-top:15px;
}

.faq-item.open .faq-q{
  color:var(--blue);
  background:#fbfdff;
}

.faq-item.open .faq-q span{
  transform:rotate(45deg);
}

/* =========================
   Blog
========================= */

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

.blog-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px;
  background:#fff;
  box-shadow:var(--shadow-xs);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.blog-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-sm);
  border-color:#D8E2EC;
}

.blog-card time{
  color:var(--blue);
  font-size:12px;
  font-weight:800;
}

.blog-card h3{
  line-height:1.65;
  color:#2A3D53;
}

.blog-card p{
  color:var(--muted);
}

/* =========================
   Stories
========================= */

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

.story{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:27px;
  box-shadow:var(--shadow-xs);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

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

.story .avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  background:linear-gradient(
    145deg,
    #ECF2F8,
    #DDE7F1
  );
  color:var(--blue);
  display:grid;
  place-items:center;
  font-size:28px;
  box-shadow:
    inset 0 0 0 1px rgba(15,47,96,.08);
}

.story p{
  color:var(--muted);
}

/* =========================
   Content
========================= */

.content-box{
  max-width:900px;
  margin:52px auto;
  padding:0 20px;
}

.content-box h2{
  margin-top:38px;
  color:#293C52;
}

.content-box p,
.content-box li{
  color:#5C6D82;
}

/* =========================
   Steps
========================= */

.steps{
  counter-reset:step;
  display:grid;
  gap:15px;
}

.step{
  position:relative;
  padding:22px 75px 22px 22px;
  border:1px solid var(--line);
  border-radius:17px;
  background:#fff;
  box-shadow:var(--shadow-xs);
}

.step::before{
  counter-increment:step;
  content:counter(step);
  position:absolute;
  right:19px;
  top:19px;
  width:40px;
  height:40px;
  border-radius:13px;
  background:linear-gradient(
    145deg,
    var(--blue),
    #173F7A
  );
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  box-shadow:
    0 8px 18px rgba(15,47,96,.19);
}

/* =========================
   Course Detail
========================= */

.course-detail{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:38px;
  align-items:start;
}

.detail-image{
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#F7F9FC;
  box-shadow:var(--shadow-sm);
}

.detail-image img{
  width:100%;
  max-height:450px;
  object-fit:cover;
}

.detail-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:29px;
  box-shadow:var(--shadow);
  position:sticky;
  top:105px;
}

.detail-panel h1{
  font-size:31px;
  line-height:1.5;
  color:#273A50;
}

.price-big{
  font-size:28px;
  color:var(--blue);
  font-weight:900;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}

.chip{
  background:#F3F6FA;
  border:1px solid #D4DFEA;
  color:#173F7A;
  border-radius:999px;
  padding:6px 11px;
  font-size:12px;
  font-weight:700;
}

.tabs{
  display:flex;
  gap:9px;
  margin:32px 0 16px;
  flex-wrap:wrap;
}

.tab{
  padding:10px 15px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  cursor:pointer;
  transition:all var(--transition);
}

.tab:hover{
  border-color:#C3D0DE;
  background:#F7F9FC;
  color:var(--blue);
}

/* =========================
   Cart
========================= */

.cart-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.cart-table th,
.cart-table td{
  padding:14px;
  border-bottom:1px solid var(--line);
  text-align:right;
}

.cart-table th{
  background:#F8FAFC;
  color:#4C5F75;
  font-size:13px;
}

.cart-table tr:last-child td{
  border-bottom:0;
}

.cart-summary{
  max-width:420px;
  margin:28px 0 0 auto;
  border:1px solid var(--line);
  padding:22px;
  border-radius:17px;
  background:#fff;
  box-shadow:var(--shadow-xs);
}

/* =========================
   Quiz
========================= */

.quiz-box{
  max-width:780px;
  margin:auto;
}

.question{
  border:1px solid var(--line);
  border-radius:17px;
  padding:20px;
  margin:13px 0;
  background:white;
  box-shadow:var(--shadow-xs);
}

.question label{
  display:block;
  margin:9px 0;
  color:#526379;
}

.result-box{
  display:none;
  border-radius:20px;
  border:1px solid #D3DEE9;
  background:linear-gradient(
    145deg,
    #F3F6FA,
    #E7EEF5
  );
  padding:28px;
  text-align:center;
  margin-top:22px;
}

.result-box.show{
  display:block;
  animation:menuIn .2s ease both;
}

/* =========================
   Pre-footer
========================= */

.prefooter{
  width:min(1180px,calc(100% - 32px));
  margin:68px auto 40px;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(255,255,255,.15),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #0A2854,
      #173F7A
    );
  color:white;
  border-radius:26px;
  padding:34px 39px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  box-shadow:
    0 20px 50px rgba(15,47,96,.20);
  position:relative;
  z-index:2;
  overflow:hidden;
}

.prefooter::after{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  left:-55px;
  bottom:-95px;
}

.prefooter h2{
  margin:0;
  font-size:27px;
}

.prefooter p{
  margin:7px 0 0;
  color:#E9EFF6;
}

.prefooter .actions{
  display:flex;
  gap:10px;
  position:relative;
  z-index:1;
}

/* =========================
   Footer
========================= */

.footer{
  background:
    radial-gradient(
      circle at 10% 0,
      rgba(15,47,96,.11),
      transparent 24%
    ),
    #0A1626;
  color:#D9E2EC;
  margin-top:60px;
  padding:62px 20px 22px;
}

.footer-grid{
  max-width:1180px;
  margin:auto;
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:40px;
}

.footer-logo{
  width:132px;
  filter:brightness(0) invert(1);
  margin-bottom:16px;
}

.footer h4{
  color:white;
  margin-top:0;
  margin-bottom:15px;
  font-size:15px;
}

.footer a{
  display:block;
  margin:7px 0;
  color:#BECBDC;
  font-size:14px;
}

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

.footer small{
  color:#94A4B7;
}

.copyright{
  max-width:1180px;
  margin:38px auto 0;
  padding-top:21px;
  border-top:1px solid rgba(255,255,255,.10);
  text-align:center;
  font-size:12px;
  color:#8FA0B4;
}

/* =========================
   Floating UI
========================= */

.floating-help{
  position:fixed;
  left:22px;
  bottom:22px;
  width:60px;
  height:60px;
  border-radius:18px;
  background:linear-gradient(
    145deg,
    #0F2F60,
    #173F7A
  );
  color:#fff;
  display:grid;
  place-items:center;
  font-size:26px;
  font-weight:bold;
  box-shadow:
    0 16px 34px rgba(15,47,96,.30);
  z-index:40;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.floating-help:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 38px rgba(15,47,96,.34);
}

.toast{
  position:fixed;
  left:25px;
  bottom:95px;
  background:#14243A;
  color:#fff;
  padding:13px 18px;
  border-radius:12px;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:.25s;
  z-index:100;
  box-shadow:var(--shadow);
}

.toast.show{
  opacity:1;
  transform:none;
}

.empty{
  text-align:center;
  padding:48px 28px;
  border:1px dashed #C8D3DF;
  border-radius:20px;
  background:#FBFCFE;
  color:var(--muted);
}

.hidden{
  display:none!important;
}

/* =========================
   Tablet
========================= */

@media(max-width:1050px){

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

  .header-inner{
    flex-wrap:wrap;
    gap:12px;
  }

  .menu-toggle{
    display:grid;
    margin-right:auto;
  }

  .main-nav{
    display:none;
    width:100%;
    order:4;
    flex-direction:column;
    align-items:stretch;
    padding:10px 0 4px;
    gap:3px;
  }

  .main-nav.open{
    display:flex;
    animation:menuIn .18s ease both;
  }

  .main-nav .nav-link{
    width:100%;
    padding:11px 13px;
  }

  .main-nav.open .nav-dropdown-menu{
    position:static;
    box-shadow:none;
    border:0;
    width:100%;
    padding:5px 16px 7px 5px;
    background:#f8fbff;
    border-radius:12px;
  }

  .main-nav.open
  .nav-dropdown:hover
  .nav-dropdown-menu{
    display:block;
  }

  .header-actions{
    margin-right:0;
    flex:1;
    justify-content:flex-end;
  }

  .global-search{
    width:min(330px,42vw);
  }

  .home-hero .wrap{
    grid-template-columns:1fr;
    min-height:auto;
    padding:62px 0;
    gap:34px;
    text-align:center;
  }

  .home-hero p{
    margin-right:auto;
    margin-left:auto;
  }

  .hero-actions{
    justify-content:center;
  }

  .hero-visual{
    order:-1;
  }

  .hero-visual img{
    max-height:330px;
  }

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

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

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

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

  .detail-panel{
    position:static;
  }
}

/* =========================
   Mobile
========================= */

@media(max-width:700px){

  .announcement{
    font-size:11px;
    min-height:38px;
    padding:6px 44px;
  }

  .site-header{
    position:relative;
    backdrop-filter:none;
  }

  .header-inner{
    gap:9px;
    padding:10px 14px;
  }

  .brand img{
    width:112px;
  }

  .menu-toggle{
    width:40px;
    height:40px;
  }

  .header-actions{
    width:100%;
    order:3;
    gap:8px;
  }

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

  .global-search{
    width:auto;
    flex:1;
  }

  .global-search input{
    height:42px;
  }

  .cart-link{
    flex:0 0 40px;
    width:40px;
    height:40px;
  }

  .home-hero .wrap{
    padding:45px 0 50px;
    gap:26px;
  }

  .home-hero h1{
    font-size:36px;
    letter-spacing:-.5px;
  }

  .home-hero p{
    font-size:16px;
    line-height:1.9;
  }

  .hero-visual{
    padding:4px;
  }

  .hero-visual img{
    max-height:285px;
  }

  .hero-actions .btn{
    flex:1 1 150px;
  }

  .section{
    padding:52px 0;
  }

  .section-head{
    align-items:flex-start;
    flex-direction:column;
    gap:13px;
    margin-bottom:23px;
  }

  .section-head h2{
    font-size:24px;
  }

  .feature-grid,
  .cards-grid,
  .teacher-grid,
  .blog-grid,
  .story-grid,
  .stats-grid,
  .join-split,
  .course-detail,
  .app-section,
  .footer-grid,
  .form-grid{
    grid-template-columns:1fr;
  }

  .university-strip{
    grid-template-columns:repeat(2,1fr);
    gap:13px;
  }

  .uni-card{
    padding:14px 9px;
  }

  .uni-card img{
    width:100px;
    height:100px;
  }

  .card-media{
    height:205px;
  }

  .stats-grid{
    gap:13px;
  }

  .stat{
    padding:25px 18px;
  }

  .join-box{
    padding:29px 24px;
    min-height:0;
  }

  .join-box h2{
    font-size:26px;
  }

  .app-section{
    padding:28px 24px;
    gap:24px;
  }

  .page-hero{
    padding:60px 18px 56px;
  }

  .page-hero h1{
    font-size:33px;
  }

  .page-hero p{
    font-size:15px;
  }

  .form-card{
    padding:24px 20px;
    border-radius:20px;
    margin:35px auto;
  }

  .prefooter{
    flex-direction:column;
    text-align:center;
    padding:29px 23px;
    margin-top:48px;
    border-radius:22px;
  }

  .prefooter .actions{
    width:100%;
    flex-wrap:wrap;
    justify-content:center;
  }

  .course-detail{
    gap:21px;
  }

  .detail-panel{
    padding:22px;
  }

  .detail-panel h1{
    font-size:26px;
  }

  .toolbar{
    padding:10px;
  }

  .toolbar input,
  .toolbar select{
    width:100%;
    min-width:0;
  }

  .cart-table{
    font-size:12px;
    display:block;
    overflow-x:auto;
    white-space:nowrap;
  }

  .footer{
    padding-top:48px;
  }

  .footer-grid{
    gap:28px;
  }

  .floating-help{
    left:16px;
    bottom:16px;
    width:54px;
    height:54px;
    border-radius:16px;
  }

  .toast{
    left:16px;
    right:16px;
    bottom:82px;
    text-align:center;
  }
}

/* =========================
   Very Small Screens
========================= */

@media(max-width:420px){

  .container,
  .home-hero .wrap,
  .prefooter{
    width:min(100% - 24px,1180px);
  }

  .home-hero h1{
    font-size:32px;
  }

  .university-strip{
    grid-template-columns:1fr 1fr;
  }

  .uni-card p{
    font-size:12px;
  }

  .section-head h2{
    font-size:22px;
  }

  .page-hero h1{
    font-size:29px;
  }

  .btn{
    padding-right:16px;
    padding-left:16px;
  }
}

/* =========================
   Reduced Motion
========================= */

@media(prefers-reduced-motion:reduce){

  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* =========================================================
   PREMIUM FOOTER
   A structured, brand-led finish shared across all pages.
========================================================= */

.prefooter{
  position:relative;
  z-index:5;
  margin-bottom:40px;
}

.footer{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  margin-top:0;
  padding:118px 20px 22px;
  background:
    radial-gradient(circle at 8% 15%,rgba(200,138,56,.13),transparent 25%),
    radial-gradient(circle at 92% 100%,rgba(23,75,127,.34),transparent 30%),
    linear-gradient(145deg,#03162d 0%,#062142 58%,#082b54 100%);
}

.footer::before{
  content:"";
  position:absolute;
  z-index:2;
  top:0;
  right:0;
  left:0;
  height:3px;
  background:linear-gradient(90deg,transparent 4%,var(--gold) 28%,var(--gold-light) 50%,var(--gold) 72%,transparent 96%);
  opacity:.9;
}

.footer::after{
  content:"";
  position:absolute;
  z-index:-1;
  top:82px;
  left:-95px;
  width:300px;
  height:300px;
  border:1px solid rgba(230,186,117,.11);
  border-radius:50%;
  box-shadow:
    0 0 0 42px rgba(230,186,117,.025),
    0 0 0 90px rgba(230,186,117,.018);
  pointer-events:none;
}

.footer-grid{
  position:relative;
  z-index:1;
  width:min(calc(100% - 40px),1200px);
  display:grid;
  grid-template-columns:minmax(300px,1.4fr) repeat(3,minmax(150px,.72fr));
  align-items:stretch;
  gap:18px;
}

.footer-grid > div{
  min-width:0;
}

.footer-grid > div:first-child{
  position:relative;
  padding:30px;
  overflow:hidden;
  background:
    radial-gradient(circle at 0 0,rgba(230,186,117,.12),transparent 34%),
    rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.11);
  border-radius:23px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 18px 45px rgba(0,0,0,.12);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.footer-grid > div:first-child::before{
  content:"معك نحو النجاح";
  position:absolute;
  top:22px;
  left:22px;
  padding:5px 10px;
  color:var(--gold-light);
  background:rgba(230,186,117,.08);
  border:1px solid rgba(230,186,117,.18);
  border-radius:999px;
  font-size:10px;
  font-weight:800;
}

.footer-grid > div:first-child::after{
  content:"";
  position:absolute;
  right:-42px;
  bottom:-55px;
  width:145px;
  height:145px;
  border:30px solid rgba(255,255,255,.025);
  border-radius:50%;
  pointer-events:none;
}

.footer-grid > div:not(:first-child){
  position:relative;
  padding:24px 20px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:19px;
  background:rgba(255,255,255,.025);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.footer-grid > div:not(:first-child):hover{
  background:rgba(255,255,255,.045);
  border-color:rgba(230,186,117,.16);
  transform:translateY(-2px);
}

.footer-logo{
  width:144px;
  margin:0 0 21px;
  padding:6px;
  background:#fff;
  border:1px solid rgba(255,255,255,.9);
  border-radius:13px;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
}

.footer-grid > div:first-child p{
  max-width:410px;
  margin:0 0 21px;
  color:#d8e2ed;
  font-size:13.5px;
  line-height:1.95;
}

.footer-grid > div:first-child small{
  position:relative;
  z-index:1;
  display:block;
  max-width:410px;
  padding-top:16px;
  color:#94a8bd;
  border-top:1px solid rgba(255,255,255,.09);
  font-size:10.5px;
  line-height:1.9;
}

.footer h4{
  position:relative;
  margin:0 0 17px;
  padding:0 15px 12px 0;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:14px;
  font-weight:800;
}

.footer h4::before{
  content:"";
  position:absolute;
  top:8px;
  right:0;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--gold-light);
  box-shadow:0 0 0 4px rgba(230,186,117,.08);
}

.footer h4::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-1px;
  width:42px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
}

.footer a{
  position:relative;
  width:100%;
  min-height:36px;
  margin:1px 0;
  padding:7px 13px 7px 30px;
  display:flex;
  align-items:center;
  color:#bdcad8;
  border:1px solid transparent;
  border-radius:9px;
  font-size:12.5px;
  line-height:1.55;
}

.footer a::before{
  content:"";
  flex:0 0 5px;
  width:5px;
  height:5px;
  margin-left:9px;
  border-radius:50%;
  background:#617991;
  transition:background var(--transition),box-shadow var(--transition);
}

.footer a::after{
  content:"←";
  position:absolute;
  left:10px;
  margin:0;
  color:var(--gold-light);
  font-size:12px;
  opacity:0;
  transform:translateX(5px);
  transition:opacity var(--transition),transform var(--transition);
}

.footer a:hover{
  padding-right:16px;
  color:#fff;
  background:rgba(255,255,255,.055);
  border-color:rgba(255,255,255,.055);
  transform:none;
}

.footer a:hover::before{
  background:var(--gold-light);
  box-shadow:0 0 0 4px rgba(230,186,117,.08);
}

.footer a:hover::after{
  opacity:1;
  transform:translateX(0);
}

.copyright{
  position:relative;
  z-index:1;
  width:min(calc(100% - 40px),1200px);
  min-height:56px;
  margin:24px auto 0;
  padding:17px 54px 0 20px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  color:#849ab0;
  border-top:1px solid rgba(255,255,255,.09);
  font-size:10.5px;
  line-height:1.8;
  text-align:center;
}

.copyright::before{
  content:"©";
  position:absolute;
  top:12px;
  right:8px;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  color:var(--gold-light);
  background:rgba(230,186,117,.07);
  border:1px solid rgba(230,186,117,.13);
  border-radius:9px;
  font-size:13px;
  font-weight:800;
}

@media(max-width:950px){
  .footer-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .footer-grid > div:first-child{
    grid-column:1/-1;
  }

  .footer-grid > div:first-child p,
  .footer-grid > div:first-child small{
    max-width:680px;
  }
}

@media(max-width:700px){
  .prefooter{
    margin-bottom:30px;
  }

  .footer{
    margin-top:0;
    padding:74px 10px 16px;
  }

  .footer::after{
    top:150px;
    left:-180px;
  }

  .footer-grid{
    width:calc(100% - 8px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .footer-grid > div:first-child{
    grid-column:1/-1;
    padding:24px 20px;
    border-radius:19px;
  }

  .footer-grid > div:first-child::before{
    top:18px;
    left:18px;
  }

  .footer-logo{
    width:132px;
    margin:0 0 18px;
  }

  .footer-grid > div:first-child p{
    margin-bottom:17px;
    font-size:13px;
  }

  .footer-grid > div:not(:first-child){
    display:block;
    padding:18px 14px;
    border-radius:15px;
  }

  .footer-grid > div:last-child{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:10px;
  }

  .footer-grid > div:last-child h4{
    grid-column:1/-1;
  }

  .footer h4{
    margin-bottom:12px;
    padding-bottom:10px;
    font-size:13.5px;
  }

  .footer a{
    min-height:38px;
    padding:7px 11px 7px 23px;
    border-bottom:0;
    font-size:12px;
  }

  .footer a::after{
    left:7px;
  }

  .copyright{
    width:calc(100% - 8px);
    min-height:0;
    margin-top:16px;
    padding:15px 42px 0 8px;
    justify-content:flex-start;
    text-align:right;
  }

  .copyright::before{
    right:3px;
  }
}

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

  .footer-grid > div,
  .footer-grid > div:first-child,
  .footer-grid > div:last-child{
    grid-column:1;
  }

  .footer-grid > div:last-child{
    grid-template-columns:1fr;
  }

  .footer-grid > div:last-child h4{
    grid-column:1;
  }

  .footer-grid > div:not(:first-child){
    padding:18px 16px;
  }
}

@media(hover:none){
  .footer-grid > div:not(:first-child):hover{
    transform:none;
  }
}

/* =========================================================
   HEADER / TOP BAR PREMIUM OVERRIDE
   ألصقه في آخر style.css
========================================================= */

/* الشريط العلوي */
.announcement{
  min-height:36px;
  padding:8px 52px;
  background:linear-gradient(90deg,#011D44 0%,#0F2F60 45%,#173F7A 100%);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  font-size:12px;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:0 8px 24px rgba(15,47,96,.18);
}

.announcement button{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  transition:all .22s ease;
}

.announcement button:hover{
  background:rgba(255,255,255,.24);
  transform:translateY(-50%) scale(1.06);
}

/* الهيدر العام */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:linear-gradient(180deg,#F8FAFC 0%,#ffffff 100%);
  border-bottom:1px solid #E9EEF4;
  box-shadow:none;
  padding:14px 0 16px;
}

/* حاوية الهيدر الرئيسية */
.header-inner{
  max-width:1240px;
  min-height:94px;
  margin:auto;
  padding:16px 22px;
  display:flex;
  align-items:center;
  gap:18px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(228,235,243,.95);
  border-radius:24px;
  box-shadow:
    0 18px 44px rgba(19,32,51,.07),
    0 2px 8px rgba(19,32,51,.04);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

/* الشعار */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}

.brand img{
  width:150px;
  height:auto;
  transition:transform .22s ease;
}

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

/* القائمة */
.main-nav{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px;
  background:#f8fbff;
  border:1px solid #E4EAF1;
  border-radius:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  white-space:nowrap;
}

/* الروابط */
.nav-link{
  min-height:44px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  font-size:14px;
  font-weight:800;
  color:#4A5C72;
  border:0;
  background:transparent;
  position:relative;
  transition:
    background .22s ease,
    color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.nav-link::after{
  display:none;
}

.nav-link:hover{
  background:#EEF3F8;
  color:#0F2F60;
  transform:translateY(-1px);
}

.nav-link.active{
  background:linear-gradient(180deg,#EEF3F8 0%,#E4EBF3 100%);
  color:#011D44;
  box-shadow:
    inset 0 0 0 1px rgba(15,47,96,.08),
    0 8px 18px rgba(15,47,96,.08);
}

/* زر القائمة المنسدلة */
.nav-dropdown{
  position:relative;
}

.nav-dropdown > button{
  min-height:44px;
  padding:0 16px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:#4A5C72;
  font-weight:800;
  cursor:pointer;
  transition:all .22s ease;
}

.nav-dropdown > button:hover{
  background:#EEF3F8;
  color:#0F2F60;
}

/* القائمة المنسدلة */
.nav-dropdown-menu{
  top:50px;
  right:0;
  width:230px;
  padding:9px;
  border:1px solid #E4EAF1;
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 40px rgba(19,32,51,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.nav-dropdown-menu a{
  display:block;
  padding:11px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  color:#526379;
  transition:all .2s ease;
}

.nav-dropdown-menu a:hover{
  background:#EEF3F8;
  color:#0F2F60;
  transform:translateX(-2px);
}

/* مجموعة الإجراءات اليسرى */
.header-actions{
  margin-right:auto;
  display:flex;
  align-items:center;
  gap:12px;
}

/* البحث */
.global-search{
  position:relative;
  width:320px;
}

.global-search input{
  width:100%;
  height:48px;
  padding:0 46px 0 18px;
  border-radius:16px;
  border:1px solid #DDE5ED;
  background:#fff;
  color:#132033;
  font-size:14px;
  box-shadow:0 10px 22px rgba(19,32,51,.05);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

.global-search input::placeholder{
  color:#8B99A9;
  font-weight:600;
}

.global-search input:focus{
  border-color:#AFC0D2;
  box-shadow:
    0 0 0 4px rgba(15,47,96,.08),
    0 14px 28px rgba(19,32,51,.06);
  background:#fff;
}

.global-search > span{
  position:absolute;
  right:15px;
  top:13px;
  color:#8795A6;
  font-size:18px;
  pointer-events:none;
}

/* اقتراحات البحث */
.suggestions{
  top:56px;
  border:1px solid #E4EAF1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 36px rgba(19,32,51,.10);
  overflow:hidden;
}

.suggestions a{
  padding:12px 14px;
  font-size:13px;
  color:#526379;
  border-bottom:1px solid #EFF3F7;
}

.suggestions a:last-child{
  border-bottom:0;
}

.suggestions a:hover{
  background:#F4F7FB;
  color:#0F2F60;
}

/* أزرار الهيدر */
.btn{
  min-height:46px;
  padding:0 20px;
  border-radius:14px;
  font-size:14px;
  font-weight:800;
  letter-spacing:0;
}

/* زر أساسي */
.btn-primary{
  background:linear-gradient(135deg,#0F2F60 0%,#173F7A 100%);
  color:#fff;
  border:1px solid transparent;
  box-shadow:0 12px 22px rgba(15,47,96,.18);
}

.btn-primary:hover{
  background:linear-gradient(135deg,#011D44 0%,#0F2F60 100%);
  transform:translateY(-2px);
  box-shadow:0 16px 28px rgba(15,47,96,.24);
}

/* زر Outline */
.btn-outline{
  background:#fff;
  color:#0F2F60;
  border:1px solid #D5DEE8;
  box-shadow:0 8px 18px rgba(19,32,51,.05);
}

.btn-outline:hover{
  background:#f8fbff;
  color:#0F2F60;
  border-color:#C2CFDD;
  transform:translateY(-1px);
}

/* السلة */
.cart-link{
  position:relative;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  border:1px solid #DCE4EC;
  color:#405168;
  font-size:21px;
  box-shadow:0 8px 18px rgba(19,32,51,.05);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    color .22s ease,
    background .22s ease;
}

.cart-link:hover{
  color:#0F2F60;
  background:#f8fbff;
  border-color:#C3D0DE;
  transform:translateY(-2px);
  box-shadow:0 14px 24px rgba(19,32,51,.08);
}

.cart-link b{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  border:2px solid #fff;
  background:#c43a4f;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:16px;
  text-align:center;
  box-shadow:0 6px 12px rgba(196,58,79,.28);
}

/* زر القائمة في الجوال */
.menu-toggle{
  width:42px;
  height:42px;
  border:1px solid #DDE5ED;
  border-radius:12px;
  background:#fff;
  color:#27384E;
  box-shadow:0 8px 16px rgba(19,32,51,.05);
}

/* تحسينات للجوال والتابلت */
@media(max-width:1050px){

  .site-header{
    padding:10px 0 14px;
  }

  .header-inner{
    min-height:auto;
    padding:14px 16px;
    border-radius:20px;
    gap:12px;
  }

  .main-nav{
    width:100%;
    order:4;
    padding:10px;
    border-radius:18px;
    background:#fff;
    border:1px solid #E2E8F0;
    box-shadow:none;
  }

  .main-nav.open{
    display:flex;
    animation:headerDrop .18s ease both;
  }

  @keyframes headerDrop{
    from{
      opacity:0;
      transform:translateY(-8px);
    }
    to{
      opacity:1;
      transform:translateY(0);
    }
  }

  .main-nav .nav-link,
  .nav-dropdown > button{
    width:100%;
    justify-content:flex-start;
    padding:12px 14px;
    min-height:46px;
  }

  .main-nav.open .nav-dropdown-menu{
    position:static;
    width:100%;
    margin-top:6px;
    background:#f8fbff;
    border:0;
    box-shadow:none;
    padding:6px;
  }

  .header-actions{
    margin-right:0;
    flex:1;
    justify-content:flex-end;
  }

  .global-search{
    width:min(330px,42vw);
  }
}

@media(max-width:700px){

  .announcement{
    min-height:34px;
    font-size:11px;
    padding:6px 40px;
  }

  .site-header{
    position:relative;
    padding:8px 0 12px;
  }

  .header-inner{
    padding:12px;
    border-radius:18px;
    gap:10px;
  }

  .brand img{
    width:118px;
  }

  .header-actions{
    width:100%;
    order:3;
    gap:8px;
  }

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

  .global-search{
    width:auto;
    flex:1;
  }

  .global-search input{
    height:44px;
    border-radius:14px;
    font-size:13px;
  }

  .cart-link{
    width:42px;
    height:42px;
    border-radius:12px;
    font-size:19px;
  }

  .menu-toggle{
    width:40px;
    height:40px;
  }

  .main-nav{
    border-radius:16px;
    padding:8px;
  }
}

/* =========================================================
   BRAND PALETTE — NAVY / GOLD
   توحيد ألوان الواجهة مع ألوان الشعار
========================================================= */

body::selection{
  background:var(--gold-soft);
  color:var(--navy-dark);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline-color:rgba(212,154,74,.48);
}

.announcement{
  background:linear-gradient(
    90deg,
    var(--navy-deep),
    var(--navy) 52%,
    var(--navy-light)
  );
  border-bottom:2px solid var(--gold);
  box-shadow:0 8px 24px rgba(8,43,92,.18);
}

.site-header{
  border-bottom-color:rgba(212,154,74,.20);
}

.header-inner{
  border-color:rgba(212,154,74,.24);
}

.nav-link:hover,
.nav-dropdown > button:hover,
.nav-dropdown-menu a:hover,
.suggestions a:hover{
  background:var(--gold-soft);
  color:var(--navy);
}

.nav-link.active{
  background:linear-gradient(180deg,#FFF9F0,var(--gold-soft));
  color:var(--navy-dark);
  box-shadow:
    inset 0 -3px 0 var(--gold),
    0 8px 18px rgba(8,43,92,.07);
}

.global-search input:focus,
.toolbar input:focus,
.toolbar select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(212,154,74,.14);
}

.btn-primary{
  background:linear-gradient(135deg,var(--navy),var(--navy-light));
  border-color:rgba(232,188,120,.42);
  box-shadow:0 12px 22px rgba(8,43,92,.20);
}

.btn-primary:hover{
  background:linear-gradient(135deg,var(--navy-dark),var(--navy));
  border-color:var(--gold-light);
  box-shadow:0 16px 28px rgba(8,43,92,.26);
}

.btn-outline{
  color:var(--navy);
  border-color:var(--gold-border);
}

.btn-outline:hover{
  background:var(--gold-soft);
  border-color:var(--gold);
  color:var(--navy-dark);
}

.home-hero{
  background:
    radial-gradient(circle at 15% 20%,rgba(8,43,92,.09),transparent 28%),
    radial-gradient(circle at 85% 75%,rgba(212,154,74,.16),transparent 32%),
    linear-gradient(180deg,#fff,#F8FAFC);
}

.home-hero h1 span::after{
  background:rgba(212,154,74,.32);
}

.hero-visual::before{
  background:radial-gradient(
    circle at 30% 25%,
    #FFF8EE,
    var(--gold-soft) 38%,
    var(--navy-soft-2)
  );
}

.eyebrow{
  color:var(--gold-dark);
  background:var(--gold-soft);
  border:1px solid var(--gold-border);
}

.section-head h2{
  position:relative;
  display:inline-block;
}

.section-head h2::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-9px;
  width:54px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
}

.feature::before{
  background:radial-gradient(
    circle at top right,
    rgba(212,154,74,.15),
    transparent 70%
  );
}

.feature .icon{
  color:var(--navy);
  background:linear-gradient(145deg,#FFF9F0,var(--gold-soft));
  box-shadow:inset 0 0 0 1px var(--gold-border);
}

.feature:hover,
.uni-card:hover,
.course-card:hover,
.teacher-card:hover,
.blog-card:hover,
.story:hover{
  border-color:var(--gold-border);
}

.rating,
.blog-card time{
  color:var(--gold-dark);
}

.teacher-card img{
  border-color:var(--gold-soft);
}

.story .avatar{
  color:var(--navy);
  background:linear-gradient(145deg,#FFF9F0,var(--gold-soft));
  box-shadow:inset 0 0 0 1px var(--gold-border);
}

.join-box.alt{
  background:
    radial-gradient(circle at 90% 10%,rgba(212,154,74,.20),transparent 34%),
    linear-gradient(145deg,#FFF9F0,var(--gold-soft));
  border-color:var(--gold-border);
}

.page-hero{
  background:
    radial-gradient(circle at 18% 25%,rgba(8,43,92,.09),transparent 27%),
    radial-gradient(circle at 82% 75%,rgba(212,154,74,.15),transparent 30%),
    linear-gradient(135deg,var(--navy-soft),#fff);
}

.form-card,
.detail-panel,
.cart-summary,
.question{
  border-top:3px solid var(--gold-border);
}

.faq-item.open{
  border-color:var(--gold-border);
}

.faq-item.open .faq-q{
  color:var(--navy);
  background:var(--gold-soft);
}

.step::before{
  background:linear-gradient(145deg,var(--navy),var(--navy-light));
  border:2px solid var(--gold-light);
  box-shadow:0 8px 18px rgba(8,43,92,.20);
}

.chip{
  color:var(--navy);
  background:var(--gold-soft);
  border-color:var(--gold-border);
}

.prefooter{
  background:
    radial-gradient(circle at 15% 15%,rgba(232,188,120,.24),transparent 27%),
    linear-gradient(135deg,var(--navy-dark),var(--navy-light));
  box-shadow:0 20px 50px rgba(8,43,92,.24);
}

.footer{
  background:
    radial-gradient(circle at 10% 0,rgba(212,154,74,.13),transparent 26%),
    var(--navy-deep);
}

.footer-logo{
  width:145px;
  padding:7px;
  border-radius:14px;
  background:#fff;
  filter:none;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.footer h4,
.footer a:hover{
  color:var(--gold-light);
}

.floating-help{
  background:linear-gradient(145deg,var(--navy),var(--navy-light));
  border:2px solid var(--gold-light);
  box-shadow:0 16px 34px rgba(8,43,92,.32);
}

/* =========================================================
   RESPONSIVE EXPERIENCE
   واجهة احترافية للأجهزة اللوحية والجوال
========================================================= */

.mobile-nav-actions{
  display:none;
}

.nav-dropdown.open .nav-dropdown-menu{
  display:block;
}

@media(max-width:1050px){

  html{
    scroll-padding-top:112px;
  }

  body{
    overflow-x:hidden;
    overflow-x:clip;
  }

  .site-header{
    position:sticky;
    top:0;
    padding:8px 0;
    background:rgba(248,250,252,.96);
    box-shadow:0 8px 28px rgba(8,43,92,.08);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }

  .header-inner{
    width:calc(100% - 24px);
    min-height:auto;
    margin:auto;
    padding:8px 10px;
    gap:10px;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(16,35,61,.07);
  }

  .brand{
    position:static;
    width:148px;
    height:auto;
    overflow:visible;
    border-radius:0;
    background:transparent;
    flex:0 0 148px;
  }

  .brand img{
    position:static;
    width:148px;
    height:auto;
    max-width:100%;
    object-fit:contain;
    transform:none;
  }

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

  .menu-toggle{
    display:grid;
    flex:0 0 44px;
    width:44px;
    height:44px;
    min-width:44px;
    margin-right:auto;
    border-color:var(--gold-border);
    color:var(--navy);
    font-size:24px;
    line-height:1;
  }

  .menu-toggle[aria-expanded="true"]{
    background:var(--navy);
    border-color:var(--navy);
    color:#fff;
  }

  .main-nav{
    display:none;
    width:100%;
    max-height:calc(100dvh - 150px);
    overflow-y:auto;
    overscroll-behavior:contain;
    order:4;
    flex-basis:100%;
    padding:9px;
    gap:5px;
    border:1px solid var(--gold-border);
    border-radius:16px;
    background:#fff;
    box-shadow:0 14px 34px rgba(16,35,61,.10);
  }

  .main-nav.open{
    display:flex;
  }

  .main-nav .nav-link,
  .nav-dropdown > button{
    width:100%;
    min-height:46px;
    padding:11px 14px;
    justify-content:flex-start;
    text-align:right;
    border-radius:12px;
  }

  .nav-dropdown > button{
    display:flex;
    align-items:center;
    gap:12px;
  }

  .nav-dropdown > button::after{
    content:"⌄";
    margin-right:auto;
    color:var(--gold-dark);
    font-size:18px;
    transition:transform var(--transition);
  }

  .nav-dropdown.open > button::after{
    transform:rotate(180deg);
  }

  .main-nav .nav-dropdown-menu{
    display:none!important;
    position:static;
    width:100%;
    max-height:none;
    margin:5px 0 0;
    padding:6px;
    border:0;
    border-radius:12px;
    background:var(--navy-soft);
    box-shadow:none;
  }

  .main-nav .nav-dropdown.open > .nav-dropdown-menu{
    display:block!important;
  }

  .nav-dropdown-menu a{
    min-height:42px;
    display:flex;
    align-items:center;
  }

  .mobile-nav-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:4px;
    padding-top:10px;
    border-top:1px solid var(--line);
  }

  .mobile-nav-actions .btn{
    width:100%;
    min-width:0;
  }

  .header-actions{
    margin-right:0;
    min-width:0;
    flex:1;
    justify-content:flex-end;
  }

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

  .global-search{
    width:min(360px,48vw);
    min-width:0;
  }
}

@media(max-width:700px){

  html{
    scroll-padding-top:132px;
  }

  body{
    background:#fff;
  }

  .announcement{
    min-height:32px;
    padding:5px 38px;
    font-size:10.5px;
  }

  .announcement span{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .announcement button{
    left:8px;
    width:26px;
    height:26px;
    font-size:17px;
  }

  .site-header{
    padding:6px 0;
  }

  .header-inner{
    width:calc(100% - 16px);
    padding:7px 8px;
    gap:8px;
    border-radius:16px;
  }

  .brand{
    width:128px;
    height:auto;
    flex-basis:128px;
  }

  .brand img{
    width:128px;
    height:auto;
  }

  .menu-toggle{
    flex-basis:44px;
    width:44px;
    height:44px;
    border-radius:12px;
  }

  .header-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) 44px;
    width:100%;
    flex-basis:100%;
    order:3;
    gap:8px;
  }

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

  .global-search{
    width:100%;
  }

  .global-search input{
    height:44px;
    padding-right:42px;
    border-radius:12px;
    font-size:16px;
    box-shadow:none;
  }

  .global-search > span{
    top:11px;
    right:13px;
  }

  .suggestions{
    top:50px;
    max-height:52vh;
    border-radius:13px;
  }

  .cart-link{
    width:44px;
    height:44px;
    border-radius:12px;
    font-size:19px;
    box-shadow:none;
  }

  .main-nav{
    max-height:calc(100dvh - 150px);
    margin-top:0;
    padding:8px;
    border-radius:14px;
  }

  .container,
  .home-hero .wrap,
  .prefooter{
    width:calc(100% - 24px);
  }

  .home-hero .wrap{
    min-height:auto;
    padding:36px 0 42px;
    gap:30px;
    text-align:right;
  }

  .home-hero h1{
    margin-bottom:14px;
    font-size:clamp(29px,8.5vw,35px);
    line-height:1.34;
    letter-spacing:-.35px;
  }

  .home-hero p{
    margin:0;
    font-size:15.5px;
    line-height:1.85;
  }

  .home-hero .eyebrow{
    margin-bottom:12px;
  }

  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    width:100%;
    margin-top:22px;
  }

  .hero-actions .btn{
    width:100%;
    min-height:48px;
  }

  .hero-visual{
    order:0;
    width:min(100%,290px);
    margin:auto;
    padding:0;
  }

  .hero-visual img{
    max-height:235px;
  }

  .section{
    padding:44px 0;
  }

  .section-head{
    gap:16px;
    margin-bottom:26px;
  }

  .section-head h2{
    font-size:23px;
    line-height:1.45;
  }

  .section-head p{
    font-size:14px;
    line-height:1.8;
  }

  .section-head > .btn{
    align-self:stretch;
    min-height:44px;
  }

  .feature-grid,
  .cards-grid,
  .teacher-grid,
  .blog-grid,
  .story-grid,
  .join-split,
  .course-detail,
  .app-section,
  .form-grid{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
  }

  .feature{
    padding:22px 20px;
    border-radius:18px;
  }

  .feature .icon{
    width:50px;
    height:50px;
    border-radius:15px;
    margin-bottom:13px;
  }

  .university-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .uni-card{
    min-width:0;
    padding:12px 7px;
    border-radius:16px;
  }

  .uni-card img{
    width:82px;
    height:82px;
  }

  .uni-card p{
    margin-top:9px;
    font-size:12px;
    line-height:1.55;
  }

  .course-card{
    border-radius:18px;
  }

  .card-media{
    height:auto;
    aspect-ratio:16/9;
  }

  .card-body{
    padding:16px;
  }

  .card-body h3{
    font-size:16px;
  }

  .card-footer{
    flex-wrap:wrap;
    gap:10px;
  }

  .card-footer .btn{
    min-height:42px;
  }

  .teacher-card{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    column-gap:14px;
    row-gap:2px;
    align-items:center;
    padding:15px;
    text-align:right;
    border-radius:17px;
  }

  .teacher-card img{
    grid-row:1/4;
    width:76px;
    height:76px;
    margin:0;
    border-width:4px;
  }

  .teacher-card h3,
  .teacher-card p{
    margin:0;
  }

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

  .stat{
    padding:22px 10px;
    border-radius:17px;
  }

  .stat strong{
    font-size:31px;
  }

  .join-box{
    min-height:0;
    padding:26px 21px;
    border-radius:20px;
  }

  .join-box h2{
    font-size:24px;
  }

  .app-section{
    padding:25px 20px;
    border-radius:22px;
  }

  .app-section img{
    max-height:250px;
  }

  .page-hero{
    padding:46px 16px 42px;
  }

  .page-hero h1{
    font-size:clamp(27px,8vw,32px);
    line-height:1.4;
  }

  .page-hero p{
    font-size:14.5px;
    line-height:1.8;
  }

  .toolbar{
    gap:8px;
    padding:9px;
    border-radius:14px;
  }

  .toolbar input,
  .toolbar select,
  .field input,
  .field select,
  .field textarea{
    width:100%;
    min-width:0;
    font-size:16px;
  }

  .form-card{
    width:calc(100% - 20px);
    margin:24px auto;
    padding:22px 17px;
    border-radius:18px;
  }

  .form-card h1,
  .form-card h2{
    font-size:25px;
    line-height:1.45;
  }

  .field input[type="checkbox"],
  .question input[type="radio"]{
    width:20px;
    height:20px;
    min-height:0;
    vertical-align:middle;
  }

  .auth-split{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .content-box{
    margin:34px auto;
    padding:0 14px;
  }

  .content-box h2{
    margin-top:30px;
    font-size:22px;
  }

  .steps{
    gap:11px;
  }

  .step{
    padding:19px 65px 19px 16px;
  }

  .step::before{
    right:14px;
    top:16px;
    width:38px;
    height:38px;
  }

  .course-detail{
    gap:17px;
  }

  .detail-image,
  .detail-panel{
    border-radius:18px;
  }

  .detail-panel{
    padding:20px 17px;
  }

  .detail-panel h1{
    font-size:24px;
  }

  .price-big{
    font-size:25px;
  }

  .tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    padding-bottom:5px;
    scrollbar-width:thin;
  }

  .tab{
    flex:0 0 auto;
    scroll-snap-align:start;
  }

  .cart-table{
    display:block;
    overflow:visible;
    border:0;
    background:transparent;
    white-space:normal;
  }

  .cart-table thead{
    display:none;
  }

  .cart-table tbody,
  .cart-table tr,
  .cart-table td{
    display:block;
    width:100%;
  }

  .cart-table tr{
    margin-bottom:12px;
    padding:8px 14px;
    border:1px solid var(--line);
    border-top:3px solid var(--gold-border);
    border-radius:15px;
    background:#fff;
    box-shadow:var(--shadow-xs);
  }

  .cart-table td{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:9px 0;
    border-bottom:1px solid var(--line);
    text-align:left;
  }

  .cart-table td::before{
    flex:0 0 auto;
    color:var(--muted);
    font-size:12px;
    font-weight:800;
  }

  .cart-table td:nth-child(1)::before{content:"الدورة"}
  .cart-table td:nth-child(2)::before{content:"المعلم"}
  .cart-table td:nth-child(3)::before{content:"السعر"}

  .cart-table td:last-child{
    border-bottom:0;
  }

  .cart-table td:last-child::before{
    content:"";
  }

  .cart-table td:last-child .btn{
    width:100%;
  }

  .cart-summary{
    max-width:none;
    margin-top:18px;
    padding:18px;
  }

  .cart-summary .btn{
    width:100%;
  }

  .question{
    padding:17px 15px;
  }

  .question label{
    min-height:42px;
    display:flex;
    align-items:center;
    gap:9px;
    margin:5px 0;
    padding:7px;
    border-radius:9px;
  }

  .prefooter{
    margin-top:42px;
    padding:26px 18px;
    border-radius:20px;
  }

  .prefooter h2{
    font-size:23px;
  }

  .prefooter .actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .prefooter .actions .btn{
    width:100%;
  }

  .footer{
    margin-top:44px;
    padding:34px 12px 18px;
  }

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

  .footer-grid > div:first-child{
    grid-column:1/-1;
    padding:22px 19px;
    border:1px solid rgba(232,188,120,.26);
    border-radius:20px;
    background:
      radial-gradient(circle at 0 0,rgba(212,154,74,.12),transparent 36%),
      rgba(255,255,255,.045);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  }

  .footer-grid > div:not(:first-child){
    min-width:0;
    padding:18px 15px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:17px;
    background:rgba(255,255,255,.035);
  }

  .footer-grid > div:last-child{
    grid-column:1/-1;
  }

  .footer-logo{
    width:min(210px,72vw);
    height:auto;
    max-width:100%;
    margin:0 0 17px auto;
    padding:6px;
    border-radius:13px;
  }

  .footer-grid > div:first-child p{
    max-width:520px;
    margin:0 0 14px;
    color:#D9E2EC;
    font-size:14px;
    line-height:1.9;
  }

  .footer-grid > div:first-child small{
    display:block;
    padding-top:13px;
    border-top:1px solid rgba(255,255,255,.09);
    color:#AFC0D2;
    font-size:11px;
    line-height:1.8;
  }

  .footer h4{
    position:relative;
    margin-bottom:13px;
    padding-bottom:10px;
    font-size:14px;
  }

  .footer h4::after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:34px;
    height:3px;
    border-radius:999px;
    background:var(--gold);
  }

  .footer a{
    min-height:38px;
    margin:1px 0;
    display:flex;
    align-items:center;
    gap:8px;
    padding:5px 0;
    border-bottom:1px solid rgba(255,255,255,.055);
    color:#C8D3DF;
    font-size:13px;
    line-height:1.55;
  }

  .footer a:last-child{
    border-bottom:0;
  }

  .footer a::after{
    content:"←";
    margin-right:auto;
    color:var(--gold-light);
    font-size:13px;
    opacity:.72;
  }

  .copyright{
    margin-top:16px;
    padding:16px 14px 0;
    line-height:1.7;
    color:#9EACBD;
  }

  .floating-help{
    left:12px;
    bottom:max(12px,env(safe-area-inset-bottom));
    width:50px;
    height:50px;
    border-radius:15px;
    font-size:23px;
  }

  .toast{
    left:12px;
    right:12px;
    bottom:max(76px,calc(env(safe-area-inset-bottom) + 68px));
    padding:12px 14px;
  }
}

@media(max-width:420px){

  .brand{
    width:116px;
    flex-basis:116px;
  }

  .brand img{
    width:116px;
  }

  .container,
  .home-hero .wrap,
  .prefooter{
    width:calc(100% - 16px);
  }

  .home-hero h1{
    font-size:28px;
  }

  .home-hero p{
    font-size:15px;
  }

  .section{
    padding:38px 0;
  }

  .section-head h2{
    font-size:21px;
  }

  .uni-card img{
    width:72px;
    height:72px;
  }

  .card-footer{
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .card-footer strong{
    order:-1;
    text-align:right;
  }

  .card-footer .btn{
    width:100%;
  }

  .stats-grid{
    gap:8px;
  }

  .stat{
    padding:19px 7px;
  }

  .stat strong{
    font-size:27px;
  }

  .mobile-nav-actions{
    grid-template-columns:1fr;
  }

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

  .footer-grid > div{
    grid-column:1!important;
  }

  .footer-grid > div:not(:first-child){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:14px;
    padding:17px 14px;
  }

  .footer-grid > div:not(:first-child) h4{
    grid-column:1/-1;
  }

  .footer a{
    min-width:0;
    font-size:12.5px;
  }

  .form-card{
    width:calc(100% - 14px);
    padding:20px 14px;
  }
}

@media(hover:none) and (max-width:1050px){

  .feature:hover,
  .uni-card:hover,
  .course-card:hover,
  .teacher-card:hover,
  .blog-card:hover,
  .story:hover,
  .cart-link:hover,
  .btn:hover{
    transform:none;
  }
}

/* =========================================================
   2026 UI REFRESH
   A calmer, lighter interface shared by every page.
========================================================= */

:root{
  --navy:#0b2f5b;
  --navy-dark:#062142;
  --navy-deep:#04172f;
  --navy-light:#174b7f;
  --navy-soft:#edf4fa;
  --navy-soft-2:#dceaf5;
  --gold:#c88a38;
  --gold-dark:#925b17;
  --gold-light:#e6ba75;
  --gold-soft:#fff7ea;
  --gold-border:#eed5ae;
  --ink:#10243c;
  --ink-2:#34475e;
  --muted:#6d7c8d;
  --bg:#f5f7fa;
  --bg-soft:#fafbfd;
  --line:#e4e9ef;
  --line-strong:#d5dde6;
  --surface:#fff;
  --surface-raised:#fff;
  --shadow-xs:0 2px 8px rgba(16,36,60,.045);
  --shadow-sm:0 10px 28px rgba(16,36,60,.07);
  --shadow:0 18px 46px rgba(16,36,60,.09);
  --shadow-lg:0 28px 76px rgba(16,36,60,.13);
  --radius-sm:12px;
  --radius:20px;
  --radius-lg:30px;
  --transition:.2s cubic-bezier(.2,.7,.2,1);
}

html{
  scroll-padding-top:96px;
}

body{
  min-width:320px;
  background:var(--bg);
  color:var(--ink);
  font-family:"Segoe UI",Tahoma,Arial,sans-serif;
  font-size:15px;
  line-height:1.75;
}

main{
  min-height:55vh;
  overflow:hidden;
}

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

.container,
.home-hero .wrap,
.prefooter{
  width:min(calc(100% - 40px),1200px);
}

.announcement{
  min-height:32px;
  padding:5px 48px;
  background:var(--navy-deep);
  border:0;
  box-shadow:none;
  font-size:11.5px;
  font-weight:650;
  letter-spacing:0;
}

.announcement::before{
  content:"";
  width:6px;
  height:6px;
  margin-left:9px;
  border-radius:50%;
  background:var(--gold-light);
  box-shadow:0 0 0 4px rgba(230,186,117,.12);
}

.announcement button{
  left:14px;
  width:24px;
  height:24px;
  background:transparent;
  font-size:17px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:60;
  padding:0;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(213,221,230,.82);
  box-shadow:0 8px 30px rgba(16,36,60,.045);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
}

.header-inner{
  position:relative;
  width:min(calc(100% - 40px),1240px);
  max-width:none;
  min-height:76px;
  margin:auto;
  padding:9px 0;
  gap:14px;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  backdrop-filter:none;
}

.brand img{
  width:126px;
}

.main-nav{
  gap:2px;
  padding:3px;
  background:transparent;
  border:0;
  border-radius:14px;
  box-shadow:none;
}

.nav-link,
.nav-dropdown > button{
  min-height:40px;
  padding:0 13px;
  border-radius:11px;
  color:#42566d;
  font-size:13.5px;
  font-weight:700;
}

.nav-link:hover,
.nav-dropdown > button:hover{
  background:var(--navy-soft);
  color:var(--navy);
  transform:none;
}

.nav-link.active{
  background:var(--navy-soft);
  color:var(--navy-dark);
  box-shadow:inset 0 0 0 1px rgba(11,47,91,.06);
}

.nav-link.active::before{
  content:"";
  position:absolute;
  right:13px;
  left:13px;
  bottom:3px;
  height:2px;
  border-radius:999px;
  background:var(--gold);
}

.nav-dropdown-menu{
  top:46px;
  width:250px;
  padding:8px;
  border-color:var(--line);
  border-radius:16px;
  box-shadow:0 20px 50px rgba(16,36,60,.14);
}

.nav-dropdown-menu a{
  min-height:41px;
  display:flex;
  align-items:center;
  padding:9px 11px;
  border-radius:10px;
  font-weight:650;
}

.header-actions{
  gap:8px;
}

.global-search{
  width:clamp(190px,20vw,270px);
}

.global-search input{
  height:42px;
  padding:0 40px 0 13px;
  border-color:#e0e6ed;
  border-radius:12px;
  background:#f7f9fb;
  box-shadow:none;
  font-size:13px;
}

.global-search input:focus{
  background:#fff;
  transform:none;
}

.global-search > span{
  top:9px;
  right:12px;
  color:#7f8ea0;
  font-size:18px;
}

.suggestions{
  top:48px;
  border-radius:14px;
  box-shadow:0 18px 45px rgba(16,36,60,.14);
}

.btn{
  min-height:44px;
  padding:0 19px;
  gap:8px;
  border-radius:12px;
  font-size:13.5px;
  font-weight:750;
}

.btn.small{
  min-height:40px;
  padding:0 15px;
  border-radius:11px;
  font-size:12.5px;
}

.btn-primary{
  background:var(--navy);
  border-color:var(--navy);
  box-shadow:0 9px 20px rgba(11,47,91,.16);
}

.btn-primary:hover{
  background:var(--navy-dark);
  border-color:var(--navy-dark);
  transform:translateY(-1px);
  box-shadow:0 12px 25px rgba(11,47,91,.22);
}

.btn-outline,
.btn-light{
  background:#fff;
  color:var(--navy);
  border-color:var(--line-strong);
  box-shadow:none;
}

.btn-outline:hover,
.btn-light:hover{
  background:var(--navy-soft);
  color:var(--navy-dark);
  border-color:#bdcbd9;
  transform:translateY(-1px);
}

.cart-link{
  width:42px;
  height:42px;
  border-color:var(--line);
  border-radius:12px;
  box-shadow:none;
}

.cart-link:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-xs);
}

.section{
  padding:78px 0;
}

.section.soft{
  background:#eef3f7;
  border-block:1px solid rgba(213,221,230,.65);
}

.section-head{
  align-items:flex-end;
  margin-bottom:32px;
}

.section-head h2{
  max-width:760px;
  margin:0;
  color:var(--ink);
  font-size:clamp(28px,3vw,39px);
  line-height:1.35;
  letter-spacing:-.5px;
}

.section-head h2::after{
  bottom:-11px;
  width:46px;
  height:3px;
}

.section-head p{
  max-width:720px;
  margin-top:18px;
  color:var(--muted);
  font-size:15px;
}

.home-hero{
  isolation:isolate;
  background:
    radial-gradient(circle at 11% 18%,rgba(200,138,56,.12),transparent 25%),
    linear-gradient(145deg,#f7fafc 0%,#fff 46%,#eef4f9 100%);
  border-bottom:1px solid rgba(213,221,230,.65);
}

.home-hero::before{
  top:auto;
  right:auto;
  bottom:-130px;
  left:-80px;
  width:360px;
  height:360px;
  background:radial-gradient(circle,rgba(11,47,91,.08),transparent 68%);
  filter:none;
}

.home-hero .wrap{
  min-height:610px;
  padding:70px 0;
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
  gap:70px;
}

.home-hero .wrap > div:first-child{
  position:relative;
  z-index:2;
}

.home-hero h1{
  max-width:690px;
  margin:14px 0 20px;
  color:var(--ink);
  font-size:clamp(42px,4.5vw,62px);
  line-height:1.22;
  letter-spacing:-1.2px;
}

.home-hero h1 span{
  color:var(--navy);
}

.home-hero h1 span::after{
  height:12px;
  bottom:3px;
  background:rgba(200,138,56,.26);
}

.home-hero p{
  max-width:650px;
  color:#52657b;
  font-size:16.5px;
  line-height:1.95;
}

.eyebrow{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 11px;
  color:var(--gold-dark);
  background:rgba(255,247,234,.82);
  border-color:var(--gold-border);
  border-radius:999px;
  font-size:11.5px;
  font-weight:800;
}

.eyebrow::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--gold);
}

.hero-actions{
  gap:10px;
  margin-top:27px;
}

.home-hero .hero-actions .btn{
  min-height:49px;
  padding-inline:23px;
}

.hero-visual{
  min-height:420px;
  display:grid;
  place-items:center;
  padding:40px 32px 18px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.95);
  border-radius:36px;
  box-shadow:
    inset 0 0 0 1px rgba(213,221,230,.55),
    0 30px 80px rgba(16,36,60,.11);
}

.hero-visual::before{
  inset:30px;
  background:
    radial-gradient(circle at 50% 46%,rgba(220,234,245,.9),rgba(255,247,234,.78) 48%,transparent 72%);
}

.hero-visual::after{
  top:26px;
  right:26px;
  width:80px;
  height:80px;
  border:1px solid rgba(200,138,56,.25);
  background:radial-gradient(circle,#d7a761 1.5px,transparent 1.7px);
  background-size:10px 10px;
  border-radius:22px;
  opacity:.72;
}

.hero-visual img{
  width:100%;
  max-height:360px;
  object-fit:contain;
  filter:drop-shadow(0 20px 22px rgba(16,36,60,.15));
}

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

.feature,
.uni-card,
.course-card,
.teacher-card,
.blog-card,
.story{
  background:var(--surface-raised);
  border-color:var(--line);
  box-shadow:var(--shadow-xs);
}

.feature{
  min-height:245px;
  padding:25px;
  border-radius:20px;
}

.feature::before{
  background:linear-gradient(145deg,rgba(237,244,250,.8),transparent 65%);
}

.feature .icon{
  width:48px;
  height:48px;
  margin-bottom:18px;
  border-radius:14px;
  color:var(--navy);
  background:var(--navy-soft);
  box-shadow:inset 0 0 0 1px rgba(11,47,91,.07);
  font-size:21px;
}

.feature h3{
  margin-bottom:8px;
  font-size:17px;
  line-height:1.55;
}

.feature p{
  font-size:13.5px;
  line-height:1.85;
}

.feature:hover,
.uni-card:hover,
.course-card:hover,
.teacher-card:hover,
.blog-card:hover,
.story:hover{
  border-color:#cbd6e1;
  box-shadow:var(--shadow-sm);
  transform:translateY(-4px);
}

.university-strip{
  gap:13px;
}

.uni-card{
  min-width:0;
  padding:18px 10px;
  border-radius:18px;
}

.uni-card img{
  width:92px;
  height:92px;
  padding:7px;
  border-radius:16px;
  background:#fff;
  object-fit:contain;
}

.uni-card p{
  color:var(--ink-2);
  font-size:12.5px;
  font-weight:700;
}

.cards-grid{
  gap:18px;
}

.course-card{
  border-radius:21px;
  overflow:hidden;
}

.card-media{
  height:auto;
  aspect-ratio:16/9;
  background:#eaf0f5;
}

.card-media::after{
  background:linear-gradient(180deg,transparent 48%,rgba(4,23,47,.28));
}

.card-body{
  padding:19px;
}

.card-body h3{
  min-height:51px;
  margin:5px 0 8px;
  font-size:16px;
  line-height:1.6;
}

.card-body p{
  color:#53667c;
  font-size:13px;
}

.rating{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:2px 8px;
  color:#835313;
  background:var(--gold-soft);
  border:1px solid rgba(238,213,174,.75);
  border-radius:999px;
  font-size:11.5px;
  font-weight:800;
}

.status{
  top:13px;
  right:13px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  box-shadow:0 6px 16px rgba(16,36,60,.13);
  backdrop-filter:blur(8px);
}

.card-footer{
  min-height:53px;
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.card-footer strong{
  color:var(--navy-dark);
  font-size:15px;
}

.teacher-card{
  padding:23px 18px;
  border-radius:19px;
}

.teacher-card img{
  width:94px;
  height:94px;
  border:6px solid var(--navy-soft);
}

.story,
.blog-card{
  border-radius:20px;
}

.stats-grid{
  gap:14px;
}

.stat{
  position:relative;
  overflow:hidden;
  padding:30px 18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow-xs);
}

.stat::after{
  top:auto;
  right:0;
  bottom:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,var(--navy),var(--gold));
}

.stat strong{
  color:var(--navy);
  font-size:38px;
}

.join-split{
  gap:18px;
}

.join-box{
  min-height:330px;
  padding:38px;
  border-radius:26px;
  background:
    radial-gradient(circle at 90% 0,rgba(255,255,255,.09),transparent 30%),
    var(--navy-dark);
  box-shadow:0 20px 45px rgba(11,47,91,.17);
}

.join-box.alt{
  background:
    radial-gradient(circle at 90% 0,rgba(200,138,56,.13),transparent 30%),
    #fff;
  border:1px solid var(--gold-border);
  box-shadow:var(--shadow-sm);
}

.join-box li::marker{
  color:var(--gold-light);
}

.join-box.alt li::marker{
  color:var(--gold);
}

.app-section{
  gap:38px;
  padding:42px;
  border:1px solid var(--line);
  border-radius:28px;
  background:
    radial-gradient(circle at 8% 15%,rgba(200,138,56,.10),transparent 26%),
    linear-gradient(145deg,#fff,#eef4f9);
  box-shadow:var(--shadow-sm);
}

.app-section img{
  max-height:340px;
  filter:drop-shadow(0 22px 24px rgba(16,36,60,.15));
}

.page-hero{
  padding:74px 20px 68px;
  background:
    radial-gradient(circle at 12% 20%,rgba(200,138,56,.11),transparent 25%),
    linear-gradient(145deg,#eef4f9,#fff 56%,#f7f9fb);
  border-bottom:1px solid var(--line);
}

.page-hero > div{
  max-width:790px;
}

.page-hero h1{
  margin:10px 0 12px;
  font-size:clamp(34px,4vw,52px);
  line-height:1.3;
  letter-spacing:-.6px;
}

.page-hero p{
  max-width:680px;
  color:var(--muted);
  font-size:16px;
}

.toolbar{
  padding:11px;
  gap:9px;
  border-color:var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-xs);
}

.toolbar input,
.toolbar select,
.field input,
.field select,
.field textarea{
  min-height:48px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:#fbfcfd;
  color:var(--ink);
}

.toolbar input:hover,
.toolbar select:hover,
.field input:hover,
.field select:hover,
.field textarea:hover{
  border-color:#bdc8d4;
  background:#fff;
}

.form-card{
  max-width:920px;
  margin:48px auto;
  padding:34px;
  border:1px solid var(--line);
  border-top:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.form-card.narrow{
  max-width:580px;
}

.form-card h1,
.form-card h2{
  margin-top:0;
  color:var(--ink);
  line-height:1.4;
}

.field label{
  margin-bottom:7px;
  color:#334960;
  font-size:13px;
  font-weight:750;
}

.helper{
  color:var(--muted);
  font-size:12px;
}

.faq-group-title{
  margin:34px 0 13px;
  color:var(--navy);
  font-size:20px;
}

.faq-item{
  margin-bottom:10px;
  border-color:var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-xs);
}

.faq-q{
  min-height:60px;
  padding:15px 18px;
}

.faq-item.open{
  border-color:#cfdae4;
  box-shadow:var(--shadow-sm);
}

.faq-item.open .faq-q{
  background:var(--navy-soft);
}

.content-box{
  max-width:940px;
  color:var(--ink-2);
}

.course-detail{
  align-items:start;
  gap:30px;
}

.detail-image,
.detail-panel{
  border:1px solid var(--line);
  border-radius:23px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.detail-image{
  overflow:hidden;
}

.detail-panel{
  top:108px;
  padding:29px;
  border-top:1px solid var(--line);
}

.detail-panel h1{
  font-size:clamp(27px,3vw,38px);
  line-height:1.42;
}

.price-big{
  color:var(--navy);
}

.chip{
  min-height:31px;
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  color:#405a72;
  background:#f5f8fa;
  border-color:var(--line);
  border-radius:999px;
}

.tabs{
  gap:7px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f7f9fb;
}

.tab{
  min-height:41px;
  display:inline-flex;
  align-items:center;
  padding:6px 13px;
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow-xs);
}

.steps{
  gap:12px;
}

.step{
  padding:20px 70px 20px 20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-xs);
}

.step::before{
  width:40px;
  height:40px;
  border:0;
  background:var(--navy);
  box-shadow:0 8px 18px rgba(11,47,91,.17);
}

.cart-table{
  overflow:hidden;
  border-color:var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-xs);
}

.cart-table th{
  padding:14px;
  background:#f5f8fa;
  color:#40556d;
}

.cart-table td{
  padding:16px 14px;
}

.cart-summary,
.question,
.result-box{
  border-color:var(--line);
  border-top:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-xs);
}

.question label{
  border:1px solid transparent;
  transition:background var(--transition),border-color var(--transition);
}

.question label:hover{
  background:var(--navy-soft);
  border-color:var(--navy-soft-2);
}

.prefooter{
  margin-top:70px;
  padding:34px 38px;
  border:1px solid rgba(230,186,117,.28);
  border-radius:25px;
  background:
    radial-gradient(circle at 8% 18%,rgba(230,186,117,.17),transparent 25%),
    var(--navy-dark);
  box-shadow:0 20px 50px rgba(6,33,66,.18);
}

.prefooter::after{
  width:170px;
  height:170px;
  background:radial-gradient(circle,rgba(255,255,255,.08),transparent 68%);
}

.prefooter h2{
  font-size:27px;
}

.footer{
  margin-top:70px;
  padding:58px 20px 20px;
  background:var(--navy-deep);
}

.footer-grid{
  width:min(calc(100% - 40px),1200px);
  gap:42px;
}

.footer-logo{
  width:138px;
  padding:5px;
  border-radius:11px;
}

.footer h4{
  margin-bottom:16px;
  color:#fff;
  font-size:14px;
}

.footer a{
  width:max-content;
  max-width:100%;
  color:#b8c6d6;
  font-size:13px;
}

.copyright{
  width:min(calc(100% - 40px),1200px);
  margin-top:36px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.09);
}

.floating-help{
  left:22px;
  bottom:max(22px,env(safe-area-inset-bottom));
  width:50px;
  height:50px;
  border:1px solid rgba(230,186,117,.75);
  border-radius:15px;
  background:var(--navy);
  box-shadow:0 14px 32px rgba(6,33,66,.26);
}

.floating-help:hover{
  background:var(--navy-dark);
  transform:translateY(-3px);
}

.toast{
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:var(--navy-deep);
  box-shadow:0 16px 40px rgba(6,33,66,.22);
}

@media(max-width:1120px) and (min-width:1051px){
  .header-inner{
    width:calc(100% - 28px);
    gap:9px;
  }

  .brand img{
    width:112px;
  }

  .global-search{
    width:190px;
  }

  .nav-link,
  .nav-dropdown > button{
    padding-inline:10px;
  }

  .header-actions{
    gap:6px;
  }

  .header-actions .btn.small{
    padding-inline:11px;
  }
}

@media(max-width:1050px){
  body.menu-open{
    overflow:hidden;
  }

  html{
    scroll-padding-top:86px;
  }

  .site-header{
    padding:0;
  }

  .header-inner{
    width:min(calc(100% - 28px),960px);
    min-height:70px;
    padding:8px 0;
    gap:10px;
    border:0;
    border-radius:0;
    box-shadow:none;
  }

  .brand,
  .brand img{
    width:124px;
  }

  .brand{
    flex-basis:124px;
  }

  .menu-toggle{
    order:2;
    margin-right:auto;
    width:42px;
    height:42px;
    flex-basis:42px;
    border-color:var(--line-strong);
    border-radius:12px;
    box-shadow:none;
  }

  .main-nav{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    left:0;
    width:100%;
    max-height:min(70vh,560px);
    margin:0;
    padding:9px;
    gap:4px;
    border:1px solid var(--line);
    border-radius:17px;
    background:rgba(255,255,255,.98);
    box-shadow:0 22px 55px rgba(16,36,60,.16);
  }

  .main-nav.open{
    display:flex;
  }

  .main-nav .nav-link,
  .nav-dropdown > button{
    min-height:46px;
  }

  .main-nav .nav-dropdown-menu{
    background:#f3f7fa;
  }

  .mobile-nav-actions{
    gap:8px;
  }

  .header-actions{
    order:3;
    margin-right:0;
  }

  .global-search{
    width:min(370px,44vw);
  }

  .home-hero .wrap{
    min-height:auto;
    padding:60px 0;
    gap:38px;
    grid-template-columns:1fr;
  }

  .home-hero .wrap > div:first-child{
    max-width:760px;
    margin:auto;
    text-align:center;
  }

  .home-hero p{
    margin-inline:auto;
  }

  .hero-actions{
    justify-content:center;
  }

  .hero-visual{
    order:-1;
    width:min(100%,610px);
    min-height:360px;
    margin:auto;
  }

  .hero-visual img{
    max-height:310px;
  }

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

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

@media(max-width:700px){
  html{
    scroll-padding-top:130px;
  }

  body{
    font-size:14px;
  }

  .announcement{
    min-height:30px;
    padding:4px 36px;
    font-size:10px;
  }

  .announcement::before{
    display:none;
  }

  .announcement button{
    left:7px;
  }

  .header-inner{
    width:calc(100% - 20px);
    min-height:0;
    padding:7px 0 9px;
    gap:7px;
  }

  .brand,
  .brand img{
    width:112px;
  }

  .brand{
    flex-basis:112px;
  }

  .menu-toggle{
    width:40px;
    height:40px;
    flex-basis:40px;
  }

  .header-actions{
    grid-template-columns:minmax(0,1fr) 42px;
    gap:7px;
  }

  .global-search input{
    height:42px;
    padding-right:40px;
    border-radius:11px;
    background:#f6f8fa;
    font-size:16px;
  }

  .cart-link{
    width:42px;
    height:42px;
  }

  .main-nav{
    top:calc(100% + 5px);
    max-height:calc(100dvh - 145px);
    border-radius:15px;
  }

  .container,
  .home-hero .wrap,
  .prefooter{
    width:calc(100% - 28px);
  }

  .section{
    padding:52px 0;
  }

  .home-hero .wrap{
    padding:38px 0 50px;
    gap:30px;
    text-align:right;
  }

  .home-hero .wrap > div:first-child{
    text-align:right;
  }

  .home-hero h1{
    margin:12px 0 15px;
    font-size:clamp(31px,9vw,39px);
    line-height:1.3;
    letter-spacing:-.5px;
  }

  .home-hero p{
    font-size:15px;
    line-height:1.85;
  }

  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

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

  .hero-visual{
    width:100%;
    min-height:0;
    padding:24px 16px 6px;
    border-radius:25px;
  }

  .hero-visual::before{
    inset:16px;
  }

  .hero-visual::after{
    top:15px;
    right:15px;
    width:58px;
    height:58px;
  }

  .hero-visual img{
    max-height:245px;
  }

  .section-head{
    align-items:flex-start;
    gap:16px;
    margin-bottom:27px;
  }

  .section-head h2{
    font-size:24px;
  }

  .section-head p{
    margin-top:16px;
    font-size:14px;
  }

  .section-head > .btn{
    align-self:auto;
  }

  .feature-grid,
  .cards-grid,
  .teacher-grid,
  .blog-grid,
  .story-grid,
  .join-split,
  .course-detail,
  .app-section,
  .form-grid{
    grid-template-columns:minmax(0,1fr);
    gap:13px;
  }

  .feature{
    min-height:0;
    padding:21px;
    border-radius:17px;
  }

  .feature .icon{
    width:46px;
    height:46px;
    margin-bottom:14px;
  }

  .university-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .uni-card{
    padding:13px 7px;
    border-radius:15px;
  }

  .uni-card img{
    width:76px;
    height:76px;
    border-radius:13px;
  }

  .course-card{
    border-radius:17px;
  }

  .card-body{
    padding:16px;
  }

  .card-body h3{
    min-height:0;
  }

  .teacher-card{
    border-radius:16px;
  }

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

  .stat{
    padding:22px 10px;
    border-radius:16px;
  }

  .stat strong{
    font-size:29px;
  }

  .join-box{
    min-height:0;
    padding:27px 21px;
    border-radius:20px;
  }

  .app-section{
    padding:25px 20px;
    border-radius:20px;
  }

  .page-hero{
    padding:50px 16px 45px;
  }

  .page-hero h1{
    font-size:clamp(29px,8.5vw,35px);
  }

  .page-hero p{
    font-size:14.5px;
  }

  .form-card{
    width:calc(100% - 24px);
    margin:28px auto;
    padding:22px 17px;
    border-radius:18px;
  }

  .toolbar{
    padding:8px;
    border-radius:13px;
  }

  .detail-image,
  .detail-panel{
    border-radius:18px;
  }

  .detail-panel{
    padding:20px 17px;
  }

  .tabs{
    border-radius:12px;
  }

  .cart-table tr{
    border-top:1px solid var(--line);
    border-radius:14px;
  }

  .prefooter{
    margin-top:48px;
    padding:27px 19px;
    border-radius:20px;
  }

  .footer{
    margin-top:48px;
    padding:40px 14px 18px;
  }

  .footer-grid,
  .copyright{
    width:calc(100% - 8px);
  }

  .footer-grid{
    gap:12px;
  }

  .floating-help{
    left:12px;
    bottom:max(12px,env(safe-area-inset-bottom));
    width:48px;
    height:48px;
    border-radius:14px;
  }
}

@media(max-width:420px){
  .container,
  .home-hero .wrap,
  .prefooter{
    width:calc(100% - 20px);
  }

  .home-hero h1{
    font-size:30px;
  }

  .section{
    padding:44px 0;
  }

  .section-head h2{
    font-size:22px;
  }

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

  .footer-grid > div:not(:first-child){
    grid-template-columns:1fr;
  }
}

@media(hover:none){
  .feature:hover,
  .uni-card:hover,
  .course-card:hover,
  .teacher-card:hover,
  .blog-card:hover,
  .story:hover,
  .btn:hover,
  .cart-link:hover,
  .floating-help:hover{
    transform:none;
  }
}

/* =========================================================
   VISUAL ORGANIZATION PASS
   Clearer hierarchy, guided entry points and richer depth.
========================================================= */

.home-hero{
  overflow:visible;
}

.home-hero .wrap{
  min-height:650px;
  padding-top:78px;
  padding-bottom:112px;
}

.hero-copy{
  max-width:700px;
}

.hero-copy > p{
  max-width:620px;
}

.hero-trust{
  max-width:680px;
  margin-top:34px;
  padding:18px 0 0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  border-top:1px solid rgba(16,36,60,.1);
}

.hero-trust > div{
  min-width:0;
  padding:0 17px;
}

.hero-trust > div:first-child{
  padding-right:0;
}

.hero-trust > div + div{
  border-right:1px solid rgba(16,36,60,.1);
}

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

.hero-trust strong{
  margin-bottom:2px;
  color:var(--navy-dark);
  font-size:13.5px;
  font-weight:800;
}

.hero-trust span{
  color:var(--muted);
  font-size:11.5px;
  line-height:1.55;
}

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

.hero-visual::before{
  z-index:-1;
}

.hero-note{
  position:absolute;
  z-index:3;
  min-width:168px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink-2);
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.98);
  border-radius:15px;
  box-shadow:
    inset 0 0 0 1px rgba(213,221,230,.7),
    0 16px 38px rgba(16,36,60,.14);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

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

.hero-note span{
  color:var(--muted);
  font-size:10.5px;
  line-height:1.5;
}

.hero-note strong{
  color:var(--navy-dark);
  font-size:13px;
  font-weight:800;
}

.hero-note-top{
  top:46px;
  right:-28px;
  display:block;
}

.hero-note-bottom{
  bottom:34px;
  left:-24px;
}

.hero-note-bottom > b{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--navy);
  border-radius:10px;
  font-size:16px;
  box-shadow:0 7px 16px rgba(11,47,91,.2);
}

.pathways{
  position:relative;
  z-index:6;
  margin-top:-58px;
  padding-bottom:30px;
}

.pathways .container{
  padding:28px;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(213,221,230,.9);
  border-radius:26px;
  box-shadow:0 24px 65px rgba(16,36,60,.12);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.pathways-head{
  margin-bottom:20px;
  padding-bottom:20px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  border-bottom:1px solid var(--line);
}

.pathways-head h2{
  margin:5px 0 0;
  color:var(--ink);
  font-size:25px;
  line-height:1.4;
  letter-spacing:-.3px;
}

.pathways-head > p{
  max-width:500px;
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.75;
}

.section-kicker{
  display:block;
  margin-bottom:7px;
  color:var(--gold-dark);
  font-size:11px;
  font-weight:850;
  letter-spacing:.2px;
}

.section-kicker::before{
  content:"";
  width:20px;
  height:2px;
  margin-left:7px;
  display:inline-block;
  vertical-align:middle;
  border-radius:999px;
  background:var(--gold);
}

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

.path-card{
  position:relative;
  min-height:158px;
  padding:18px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  grid-template-rows:auto 1fr;
  column-gap:12px;
  align-items:start;
  overflow:hidden;
  color:var(--ink);
  background:#f7f9fb;
  border:1px solid #e7ebf0;
  border-radius:17px;
}

.path-card::before{
  content:"";
  position:absolute;
  inset:auto -35px -55px auto;
  width:115px;
  height:115px;
  border:23px solid rgba(11,47,91,.035);
  border-radius:50%;
  transition:transform var(--transition),border-color var(--transition);
}

.path-card:nth-child(2),
.path-card:nth-child(4){
  background:#fbfaf7;
}

.path-number{
  grid-row:1/3;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  color:var(--navy);
  background:#fff;
  border:1px solid var(--line);
  border-radius:11px;
  box-shadow:var(--shadow-xs);
  font-size:11px;
  font-weight:900;
}

.path-card h3{
  margin:0 0 5px;
  color:var(--navy-dark);
  font-size:15px;
  line-height:1.5;
}

.path-card p{
  margin:0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.7;
}

.path-arrow{
  position:absolute;
  left:16px;
  bottom:13px;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  color:var(--navy);
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  font-size:15px;
  transition:color var(--transition),background var(--transition),transform var(--transition);
}

.path-card:hover{
  color:var(--ink);
  background:#fff;
  border-color:#c9d5e1;
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(16,36,60,.08);
}

.path-card:hover::before{
  border-color:rgba(200,138,56,.08);
  transform:scale(1.12);
}

.path-card:hover .path-arrow{
  color:#fff;
  background:var(--navy);
  border-color:var(--navy);
  transform:translateX(-2px);
}

.home-hero + .pathways + .section{
  padding-top:64px;
}

.section-head{
  position:relative;
  padding-bottom:21px;
  border-bottom:1px solid rgba(213,221,230,.85);
}

.section-head::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-1px;
  width:78px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--navy));
}

.section-head h2::after{
  display:none;
}

.section-head h2{
  font-size:clamp(27px,2.8vw,37px);
}

.value-section .feature-grid{
  counter-reset:value-card;
}

.value-section .feature{
  counter-increment:value-card;
  position:relative;
  padding-top:27px;
}

.value-section .feature::after{
  content:"0" counter(value-card);
  position:absolute;
  top:21px;
  left:21px;
  color:#c4ced8;
  font-size:10px;
  font-weight:900;
  letter-spacing:1px;
}

.value-section .feature:nth-child(2),
.value-section .feature:nth-child(5){
  background:linear-gradient(145deg,#fff,#f4f8fb);
}

.universities-section .university-strip{
  position:relative;
}

.universities-section .uni-card{
  min-height:170px;
}

.courses-section .course-card:first-child,
.camps-section .course-card:first-child{
  border-color:rgba(200,138,56,.42);
  box-shadow:0 14px 34px rgba(16,36,60,.09);
}

.courses-section .course-card:first-child .card-media::before,
.camps-section .course-card:first-child .card-media::before{
  content:"مختار لك";
  position:absolute;
  z-index:3;
  top:13px;
  left:13px;
  padding:5px 9px;
  color:var(--navy-dark);
  background:rgba(255,247,234,.94);
  border:1px solid var(--gold-border);
  border-radius:999px;
  font-size:10px;
  font-weight:850;
  backdrop-filter:blur(8px);
}

.teachers-section .teacher-grid{
  gap:13px;
}

.teachers-section .teacher-card{
  min-height:224px;
}

.reviews-section{
  background:
    radial-gradient(circle at 8% 16%,rgba(200,138,56,.08),transparent 24%),
    #fff;
}

.reviews-section .story{
  position:relative;
  padding-top:27px;
}

.reviews-section .story::before{
  content:"“";
  position:absolute;
  top:7px;
  left:17px;
  color:rgba(200,138,56,.26);
  font-family:Georgia,serif;
  font-size:54px;
  line-height:1;
}

.section.soft .join-split{
  position:relative;
}

.app-section h2{
  margin:10px 0 8px;
  color:var(--navy-dark);
  font-size:clamp(27px,3vw,38px);
  line-height:1.4;
}

.app-section p{
  max-width:560px;
  color:var(--muted);
}

.page-hero .eyebrow{
  margin-bottom:5px;
}

.form-card,
.detail-panel,
.content-box,
.toolbar{
  position:relative;
}

.form-card::before,
.detail-panel::before{
  content:"";
  position:absolute;
  top:0;
  right:26px;
  width:64px;
  height:3px;
  border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
}

.course-detail .detail-image{
  background:linear-gradient(145deg,#eef3f7,#fff);
}

.faq-list{
  max-width:900px;
  margin-inline:auto;
}

@keyframes heroRise{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}

.hero-copy > *,
.hero-visual,
.pathways .container{
  animation:heroRise .55s both;
}

.hero-copy > :nth-child(2){animation-delay:.05s}
.hero-copy > :nth-child(3){animation-delay:.1s}
.hero-copy > :nth-child(4){animation-delay:.15s}
.hero-copy > :nth-child(5){animation-delay:.2s}
.hero-visual{animation-delay:.1s}
.pathways .container{animation-delay:.22s}

@media(max-width:1050px){
  .home-hero .wrap{
    padding-top:50px;
    padding-bottom:105px;
  }

  .hero-copy{
    max-width:760px;
  }

  .hero-trust{
    margin-inline:auto;
    text-align:right;
  }

  .hero-note-top{
    right:18px;
  }

  .hero-note-bottom{
    left:18px;
  }

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

  .path-card{
    min-height:135px;
  }
}

@media(max-width:700px){
  .home-hero .wrap{
    padding-top:34px;
    padding-bottom:78px;
  }

  .hero-copy{
    width:100%;
  }

  .hero-trust{
    margin-top:25px;
    padding:9px 14px;
    grid-template-columns:1fr;
    gap:0;
    background:rgba(255,255,255,.7);
    border:1px solid rgba(213,221,230,.85);
    border-radius:15px;
  }

  .hero-trust > div,
  .hero-trust > div:first-child{
    padding:9px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
  }

  .hero-trust > div + div{
    border-top:1px solid var(--line);
    border-right:0;
  }

  .hero-trust strong{
    margin:0;
    font-size:12.5px;
  }

  .hero-trust span{
    text-align:left;
    font-size:10.5px;
  }

  .hero-note{
    min-width:0;
    padding:9px 11px;
    border-radius:12px;
  }

  .hero-note-top{
    display:none;
  }

  .hero-note-bottom{
    right:12px;
    bottom:12px;
    left:auto;
  }

  .hero-note-bottom > b{
    flex-basis:29px;
    width:29px;
    height:29px;
    border-radius:8px;
    font-size:13px;
  }

  .pathways{
    margin-top:-38px;
    padding-bottom:10px;
  }

  .pathways .container{
    width:calc(100% - 20px);
    padding:19px 14px 14px;
    border-radius:20px;
    box-shadow:0 18px 45px rgba(16,36,60,.11);
  }

  .pathways-head{
    margin-bottom:13px;
    padding:0 3px 15px;
    display:block;
  }

  .pathways-head h2{
    font-size:21px;
  }

  .pathways-head > p{
    margin-top:8px;
    font-size:11.5px;
  }

  .pathways-grid{
    grid-template-columns:1fr;
    gap:7px;
  }

  .path-card{
    min-height:0;
    padding:13px;
    grid-template-columns:38px minmax(0,1fr) 30px;
    grid-template-rows:auto;
    align-items:center;
    border-radius:14px;
  }

  .path-number{
    grid-row:auto;
    width:38px;
    height:38px;
    border-radius:10px;
  }

  .path-card h3{
    margin:0;
    font-size:13.5px;
  }

  .path-card p{
    margin-top:2px;
    font-size:10.5px;
  }

  .path-arrow{
    position:static;
    width:28px;
    height:28px;
  }

  .home-hero + .pathways + .section{
    padding-top:52px;
  }

  .section-head{
    padding-bottom:17px;
  }

  .section-kicker{
    margin-bottom:5px;
    font-size:10.5px;
  }

  .section-head h2{
    font-size:23px;
  }

  .value-section .feature::after{
    top:18px;
    left:18px;
  }

  .universities-section .uni-card{
    min-height:145px;
  }

  .teachers-section .teacher-card{
    min-height:0;
  }
}

@media(prefers-reduced-motion:reduce){
  .hero-copy > *,
  .hero-visual,
  .pathways .container{
    animation:none;
  }
}

/* Final footer cascade: keep the premium footer above earlier theme layers. */
.prefooter{
  position:relative;
  z-index:5;
  margin-bottom:40px;
}

.footer{
  margin-top:0;
  padding:118px 20px 22px;
  background:
    radial-gradient(circle at 8% 15%,rgba(200,138,56,.13),transparent 25%),
    radial-gradient(circle at 92% 100%,rgba(23,75,127,.34),transparent 30%),
    linear-gradient(145deg,#03162d 0%,#062142 58%,#082b54 100%);
}

.footer-grid{
  width:min(calc(100% - 40px),1200px);
  grid-template-columns:minmax(300px,1.4fr) repeat(3,minmax(150px,.72fr));
  align-items:stretch;
  gap:18px;
}

.footer-grid > div:first-child{
  padding:30px;
  background:
    radial-gradient(circle at 0 0,rgba(230,186,117,.12),transparent 34%),
    rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.11);
  border-radius:23px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 18px 45px rgba(0,0,0,.12);
}

.footer-grid > div:not(:first-child){
  padding:24px 20px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:19px;
  background:rgba(255,255,255,.025);
}

.footer-logo{
  width:144px;
  margin:0 0 21px;
  padding:6px;
  border-radius:13px;
}

.footer h4{
  margin:0 0 17px;
  padding:0 15px 12px 0;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:14px;
}

.footer a{
  width:100%;
  min-height:36px;
  margin:1px 0;
  padding:7px 13px 7px 30px;
  display:flex;
  color:#bdcad8;
  border:1px solid transparent;
  border-radius:9px;
  font-size:12.5px;
}

.footer a::after{
  position:absolute;
  left:10px;
  margin:0;
}

.copyright{
  width:min(calc(100% - 40px),1200px);
  min-height:56px;
  margin:24px auto 0;
  padding:17px 54px 0 20px;
  display:flex;
  justify-content:center;
  color:#849ab0;
  border-top:1px solid rgba(255,255,255,.09);
  font-size:10.5px;
  text-align:center;
}

@media(max-width:950px){
  .footer-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .footer-grid > div:first-child{
    grid-column:1/-1;
  }
}

@media(max-width:700px){
  .prefooter{
    margin-bottom:30px;
  }

  .footer{
    margin-top:0;
    padding:74px 10px 16px;
  }

  .footer-grid{
    width:calc(100% - 8px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .footer-grid > div:first-child{
    grid-column:1/-1;
    padding:24px 20px;
    border-radius:19px;
  }

  .footer-grid > div:not(:first-child){
    display:block;
    padding:18px 14px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:15px;
    background:rgba(255,255,255,.025);
  }

  .footer-grid > div:last-child{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:10px;
  }

  .footer-grid > div:last-child h4{
    grid-column:1/-1;
  }

  .footer-logo{
    width:132px;
    margin:0 0 18px;
    padding:6px;
  }

  .footer h4{
    margin-bottom:12px;
    padding-bottom:10px;
    font-size:13.5px;
  }

  .footer a{
    width:100%;
    min-height:38px;
    padding:7px 11px 7px 23px;
    border-bottom:0;
    font-size:12px;
  }

  .copyright{
    width:calc(100% - 8px);
    min-height:0;
    margin-top:16px;
    padding:15px 42px 0 8px;
    justify-content:flex-start;
    text-align:right;
  }
}

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

  .footer-grid > div,
  .footer-grid > div:first-child,
  .footer-grid > div:last-child{
    grid-column:1;
  }

  .footer-grid > div:last-child{
    grid-template-columns:1fr;
  }

  .footer-grid > div:last-child h4{
    grid-column:1;
  }
}

/* =========================================================
   WHY HAD — FEATURED VALUE SECTION
========================================================= */

.section.value-section{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:92px 0;
  background:
    radial-gradient(circle at 7% 12%,rgba(200,138,56,.11),transparent 22%),
    radial-gradient(circle at 95% 88%,rgba(11,47,91,.08),transparent 24%),
    linear-gradient(145deg,#f7f9fb 0%,#fff 47%,#f1f5f8 100%);
  border-block:1px solid rgba(213,221,230,.72);
}

.section.value-section::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:60px;
  left:4%;
  width:104px;
  height:104px;
  background:radial-gradient(circle,rgba(11,47,91,.16) 1.5px,transparent 1.8px);
  background-size:13px 13px;
  opacity:.42;
  mask-image:linear-gradient(145deg,#000,transparent 80%);
  -webkit-mask-image:linear-gradient(145deg,#000,transparent 80%);
}

.value-section .container{
  display:grid;
  grid-template-columns:minmax(280px,.72fr) minmax(0,1.55fr);
  gap:22px;
  align-items:start;
}

.value-section .section-head{
  position:sticky;
  top:104px;
  min-height:518px;
  margin:0;
  padding:42px 36px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 5% 5%,rgba(230,186,117,.18),transparent 28%),
    radial-gradient(circle at 90% 90%,rgba(23,75,127,.75),transparent 36%),
    linear-gradient(155deg,#03172f,#0b315e 70%,#174b7f);
  border:1px solid rgba(230,186,117,.22);
  border-radius:30px;
  box-shadow:0 26px 62px rgba(6,33,66,.2);
}

.value-section .section-head::before{
  content:"";
  position:absolute;
  top:30px;
  right:30px;
  width:58px;
  height:58px;
  border:1px solid rgba(230,186,117,.2);
  border-radius:18px;
  background:
    radial-gradient(circle,rgba(230,186,117,.52) 1.4px,transparent 1.7px);
  background-size:10px 10px;
  box-shadow:0 0 0 14px rgba(255,255,255,.018);
}

.value-section .section-head::after{
  right:36px;
  bottom:31px;
  width:72px;
  height:3px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
}

.value-section .section-head > div{
  position:relative;
  z-index:1;
  padding-bottom:28px;
}

.value-section .section-kicker{
  margin-bottom:13px;
  color:var(--gold-light);
  font-size:11px;
}

.value-section .section-kicker::before{
  background:var(--gold-light);
}

.value-section .section-head h2{
  max-width:360px;
  margin:0 0 18px;
  color:#fff;
  font-size:clamp(34px,3.5vw,48px);
  line-height:1.32;
  letter-spacing:-.75px;
}

.value-section .section-head p{
  max-width:370px;
  margin:0;
  color:#cad7e4;
  font-size:14px;
  line-height:1.95;
}

.value-section .feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  counter-reset:value-card;
}

.value-section .feature{
  counter-increment:value-card;
  position:relative;
  min-height:238px;
  padding:25px 24px 23px;
  overflow:hidden;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(213,221,230,.92);
  border-radius:22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 10px 28px rgba(16,36,60,.065);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.value-section .feature::before{
  content:"";
  position:absolute;
  inset:auto -42px -58px auto;
  width:140px;
  height:140px;
  border:28px solid rgba(11,47,91,.028);
  border-radius:50%;
  background:none;
  transition:transform var(--transition),border-color var(--transition);
}

.value-section .feature::after{
  content:"0" counter(value-card);
  position:absolute;
  top:23px;
  left:23px;
  color:#b5c1cd;
  font-size:10px;
  font-weight:900;
  letter-spacing:1.2px;
}

.value-section .feature .icon{
  position:relative;
  z-index:1;
  width:49px;
  height:49px;
  margin:0 0 19px;
  color:var(--navy);
  background:linear-gradient(145deg,#edf4fa,#fff);
  border:1px solid #d9e4ed;
  border-radius:15px;
  box-shadow:0 8px 20px rgba(11,47,91,.08);
  font-size:21px;
}

.value-section .feature h3{
  position:relative;
  z-index:1;
  margin:0 0 8px;
  color:var(--navy-dark);
  font-size:17px;
  line-height:1.55;
}

.value-section .feature p{
  position:relative;
  z-index:1;
  margin:0;
  color:#647588;
  font-size:12.8px;
  line-height:1.85;
}

.value-section .feature:first-child,
.value-section .feature:last-child{
  grid-column:1/-1;
  min-height:196px;
  padding:27px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  grid-template-rows:auto 1fr;
  column-gap:18px;
  align-items:start;
}

.value-section .feature:first-child{
  background:
    radial-gradient(circle at 4% 8%,rgba(200,138,56,.12),transparent 25%),
    linear-gradient(145deg,#fff,#f8fafc);
  border-color:rgba(200,138,56,.34);
}

.value-section .feature:last-child{
  color:#fff;
  background:
    radial-gradient(circle at 5% 0,rgba(230,186,117,.16),transparent 26%),
    linear-gradient(145deg,#0b2f5b,#174b7f);
  border-color:rgba(230,186,117,.24);
  box-shadow:0 18px 40px rgba(11,47,91,.16);
}

.value-section .feature:first-child .icon,
.value-section .feature:last-child .icon{
  grid-row:1/3;
  width:58px;
  height:58px;
  margin:0;
  border-radius:17px;
}

.value-section .feature:first-child h3,
.value-section .feature:last-child h3{
  margin-top:2px;
  font-size:19px;
}

.value-section .feature:first-child p,
.value-section .feature:last-child p{
  max-width:650px;
}

.value-section .feature:last-child .icon{
  color:var(--gold-light);
  background:rgba(255,255,255,.08);
  border-color:rgba(230,186,117,.24);
  box-shadow:none;
}

.value-section .feature:last-child h3{
  color:#fff;
}

.value-section .feature:last-child p{
  color:#d3deea;
}

.value-section .feature:last-child::after{
  color:rgba(255,255,255,.42);
}

.value-section .feature:hover{
  border-color:rgba(200,138,56,.42);
  box-shadow:0 18px 42px rgba(16,36,60,.11);
  transform:translateY(-4px);
}

.value-section .feature:hover::before{
  border-color:rgba(200,138,56,.08);
  transform:scale(1.12);
}

@media(max-width:1050px){
  .section.value-section{
    padding:74px 0;
  }

  .value-section .container{
    grid-template-columns:1fr;
    gap:18px;
  }

  .value-section .section-head{
    position:relative;
    top:auto;
    min-height:0;
    padding:34px;
    align-items:center;
  }

  .value-section .section-head > div{
    max-width:760px;
    padding-bottom:23px;
  }

  .value-section .section-head h2{
    max-width:640px;
    font-size:38px;
  }

  .value-section .section-head p{
    max-width:700px;
  }
}

@media(max-width:700px){
  .section.value-section{
    padding:52px 0;
  }

  .value-section .container{
    gap:12px;
  }

  .value-section .section-head{
    padding:27px 23px;
    border-radius:22px;
  }

  .value-section .section-head::before{
    top:20px;
    right:auto;
    left:20px;
    width:45px;
    height:45px;
    border-radius:14px;
  }

  .value-section .section-head::after{
    right:23px;
    bottom:22px;
    width:54px;
  }

  .value-section .section-head > div{
    padding-bottom:22px;
  }

  .value-section .section-head h2{
    max-width:300px;
    margin-bottom:12px;
    font-size:29px;
  }

  .value-section .section-head p{
    max-width:88%;
    font-size:13px;
    line-height:1.85;
  }

  .value-section .feature-grid{
    grid-template-columns:1fr;
    gap:9px;
  }

  .value-section .feature,
  .value-section .feature:first-child,
  .value-section .feature:last-child{
    grid-column:1;
    min-height:0;
    padding:19px 17px;
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    grid-template-rows:auto 1fr;
    column-gap:13px;
    border-radius:17px;
  }

  .value-section .feature .icon,
  .value-section .feature:first-child .icon,
  .value-section .feature:last-child .icon{
    grid-row:1/3;
    width:48px;
    height:48px;
    margin:0;
    border-radius:14px;
    font-size:19px;
  }

  .value-section .feature h3,
  .value-section .feature:first-child h3,
  .value-section .feature:last-child h3{
    margin:0 0 4px;
    padding-left:27px;
    font-size:14.5px;
  }

  .value-section .feature p,
  .value-section .feature:first-child p,
  .value-section .feature:last-child p{
    grid-column:2;
    font-size:11.5px;
    line-height:1.75;
  }

  .value-section .feature::after{
    top:19px;
    left:17px;
    font-size:9px;
  }
}

@media(hover:none){
  .value-section .feature:hover{
    transform:none;
  }
}

/* =========================================================
   JOIN HAD — TEACHER / STUDENT PATHS
========================================================= */

.section.join-section{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:88px 0 94px;
  background:
    radial-gradient(circle at 4% 8%,rgba(200,138,56,.11),transparent 23%),
    radial-gradient(circle at 96% 92%,rgba(11,47,91,.09),transparent 25%),
    linear-gradient(145deg,#eef3f7,#fff 48%,#f8f4ed);
  border-block:1px solid rgba(213,221,230,.75);
}

.join-section::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:-110px;
  right:50%;
  width:420px;
  height:420px;
  border:1px solid rgba(11,47,91,.055);
  border-radius:50%;
  box-shadow:
    0 0 0 65px rgba(11,47,91,.018),
    0 0 0 130px rgba(11,47,91,.012);
}

.join-intro{
  margin-bottom:30px;
  padding-bottom:24px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);
  gap:34px;
  align-items:end;
  border-bottom:1px solid rgba(213,221,230,.9);
}

.join-intro > div{
  position:relative;
}

.join-intro > div::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-25px;
  width:82px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--navy));
}

.join-intro h2{
  margin:5px 0 0;
  color:var(--ink);
  font-size:clamp(31px,3.8vw,46px);
  line-height:1.35;
  letter-spacing:-.65px;
}

.join-intro > p{
  max-width:520px;
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
}

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

.join-section .join-box{
  position:relative;
  min-height:480px;
  padding:34px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 4% 5%,rgba(230,186,117,.17),transparent 25%),
    radial-gradient(circle at 94% 95%,rgba(23,75,127,.8),transparent 36%),
    linear-gradient(150deg,#03172f,#0b315e 70%,#174b7f);
  border:1px solid rgba(230,186,117,.2);
  border-radius:28px;
  box-shadow:0 24px 56px rgba(6,33,66,.18);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.join-section .join-box::before{
  content:"";
  position:absolute;
  right:-62px;
  bottom:-72px;
  width:210px;
  height:210px;
  border:36px solid rgba(255,255,255,.035);
  border-radius:50%;
  transition:transform var(--transition),border-color var(--transition);
}

.join-section .join-box::after{
  content:"";
  position:absolute;
  top:0;
  right:34px;
  width:74px;
  height:4px;
  border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
}

.join-section .join-box.alt{
  color:var(--ink);
  background:
    radial-gradient(circle at 4% 5%,rgba(200,138,56,.12),transparent 25%),
    radial-gradient(circle at 94% 95%,rgba(220,234,245,.72),transparent 35%),
    linear-gradient(145deg,#fff,#fbf8f2);
  border-color:rgba(200,138,56,.32);
  box-shadow:0 24px 56px rgba(16,36,60,.105);
}

.join-card-head{
  position:relative;
  z-index:1;
  margin-bottom:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.join-label{
  min-height:31px;
  padding:5px 11px;
  display:inline-flex;
  align-items:center;
  color:var(--gold-light);
  background:rgba(230,186,117,.08);
  border:1px solid rgba(230,186,117,.2);
  border-radius:999px;
  font-size:10.5px;
  font-weight:850;
}

.join-box.alt .join-label{
  color:var(--gold-dark);
  background:var(--gold-soft);
  border-color:var(--gold-border);
}

.join-number{
  color:rgba(255,255,255,.42);
  font-size:12px;
  font-weight:900;
  letter-spacing:1.5px;
}

.join-box.alt .join-number{
  color:#a6b2bf;
}

.join-section .join-box h2{
  position:relative;
  z-index:1;
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(28px,3vw,39px);
  line-height:1.35;
  letter-spacing:-.45px;
}

.join-section .join-box.alt h2{
  color:var(--navy-dark);
}

.join-copy{
  position:relative;
  z-index:1;
  max-width:510px;
  margin:0 0 24px;
  color:#c9d6e3;
  font-size:13px;
  line-height:1.85;
}

.join-box.alt .join-copy{
  color:#66778a;
}

.join-section .join-box ul{
  position:relative;
  z-index:1;
  margin:0 0 28px;
  padding:0;
  display:grid;
  gap:8px;
  color:#e4ebf2;
  list-style:none;
}

.join-section .join-box li{
  position:relative;
  min-height:45px;
  margin:0;
  padding:9px 44px 9px 13px;
  display:flex;
  align-items:center;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.075);
  border-radius:12px;
  font-size:12.5px;
  font-weight:650;
}

.join-section .join-box li::before{
  content:"✓";
  position:absolute;
  right:10px;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  color:var(--gold-light);
  background:rgba(230,186,117,.09);
  border:1px solid rgba(230,186,117,.15);
  border-radius:8px;
  font-size:11px;
  font-weight:900;
}

.join-section .join-box.alt ul{
  color:#40556d;
}

.join-section .join-box.alt li{
  background:rgba(237,244,250,.62);
  border-color:#e1e8ef;
}

.join-section .join-box.alt li::before{
  color:var(--navy);
  background:#fff;
  border-color:#d7e1ea;
}

.join-btn{
  position:relative;
  z-index:1;
  width:100%;
  min-height:52px;
  margin-top:auto;
  padding:0 18px;
  display:flex;
  justify-content:space-between;
  color:var(--navy-dark);
  background:#fff;
  border:1px solid rgba(255,255,255,.9);
  border-radius:14px;
  box-shadow:0 12px 25px rgba(0,0,0,.13);
}

.join-btn b{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--navy);
  border-radius:9px;
  font-size:14px;
  transition:transform var(--transition),background var(--transition);
}

.join-box.alt .join-btn{
  color:#fff;
  background:var(--navy);
  border-color:var(--navy);
  box-shadow:0 12px 25px rgba(11,47,91,.18);
}

.join-box.alt .join-btn b{
  color:var(--navy);
  background:#fff;
}

.join-btn:hover{
  color:var(--navy-dark);
  background:var(--gold-soft);
  border-color:var(--gold-border);
  transform:none;
}

.join-box.alt .join-btn:hover{
  color:#fff;
  background:var(--navy-dark);
  border-color:var(--navy-dark);
}

.join-btn:hover b{
  transform:translateX(-3px);
}

.join-section .join-box:hover{
  border-color:rgba(230,186,117,.48);
  transform:translateY(-5px);
  box-shadow:0 30px 68px rgba(6,33,66,.23);
}

.join-section .join-box.alt:hover{
  border-color:rgba(200,138,56,.52);
  box-shadow:0 30px 68px rgba(16,36,60,.14);
}

.join-section .join-box:hover::before{
  border-color:rgba(230,186,117,.06);
  transform:scale(1.1);
}

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

  .join-intro{
    margin-bottom:20px;
    padding-bottom:20px;
    grid-template-columns:1fr;
    gap:12px;
  }

  .join-intro > div::after{
    bottom:-21px;
    width:60px;
  }

  .join-intro h2{
    font-size:32px;
  }

  .join-intro > p{
    max-width:660px;
    font-size:13px;
  }

  .join-section .join-split{
    grid-template-columns:1fr;
    gap:13px;
  }

  .join-section .join-box{
    min-height:0;
    padding:27px 23px;
    border-radius:22px;
  }

  .join-card-head{
    margin-bottom:23px;
  }

  .join-section .join-box h2{
    font-size:29px;
  }

  .join-copy{
    margin-bottom:19px;
  }

  .join-section .join-box ul{
    margin-bottom:22px;
  }
}

@media(max-width:420px){
  .section.join-section{
    padding:52px 0 58px;
  }

  .join-intro h2{
    font-size:27px;
  }

  .join-section .join-box{
    padding:23px 17px;
    border-radius:19px;
  }

  .join-section .join-box h2{
    font-size:25px;
  }

  .join-copy{
    font-size:12px;
  }

  .join-section .join-box li{
    min-height:43px;
    padding-right:41px;
    font-size:11.5px;
  }

  .join-btn{
    min-height:49px;
  }
}

@media(hover:none){
  .join-section .join-box:hover{
    transform:none;
  }
}

/* =========================================================
   STUDENT STORIES — TESTIMONIAL SHOWCASE
========================================================= */

.section.reviews-showcase{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:90px 0 96px;
  background:
    radial-gradient(circle at 5% 10%,rgba(200,138,56,.105),transparent 22%),
    radial-gradient(circle at 95% 88%,rgba(11,47,91,.08),transparent 25%),
    linear-gradient(145deg,#f7f9fb,#fff 52%,#eef3f7);
  border-block:1px solid rgba(213,221,230,.7);
}

.reviews-showcase::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:85px;
  left:5%;
  width:86px;
  height:86px;
  background:radial-gradient(circle,rgba(200,138,56,.28) 1.3px,transparent 1.6px);
  background-size:11px 11px;
  opacity:.55;
  mask-image:linear-gradient(145deg,#000,transparent 82%);
  -webkit-mask-image:linear-gradient(145deg,#000,transparent 82%);
}

.reviews-intro{
  margin-bottom:30px;
  padding-bottom:24px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:30px;
  align-items:end;
  border-bottom:1px solid rgba(213,221,230,.9);
}

.reviews-intro > div{
  position:relative;
}

.reviews-intro > div::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-25px;
  width:82px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--navy));
}

.reviews-intro h2{
  margin:5px 0 8px;
  color:var(--ink);
  font-size:clamp(33px,4vw,48px);
  line-height:1.3;
  letter-spacing:-.7px;
}

.reviews-intro p{
  max-width:680px;
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.85;
}

.reviews-link{
  min-width:188px;
  min-height:48px;
  padding:0 16px;
  display:flex;
  justify-content:space-between;
  color:var(--navy);
  background:#fff;
  border:1px solid #d4dee7;
  border-radius:13px;
  box-shadow:0 8px 20px rgba(16,36,60,.06);
}

.reviews-link b{
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--navy);
  border-radius:8px;
  font-size:13px;
  transition:transform var(--transition),background var(--transition);
}

.reviews-link:hover{
  color:var(--navy-dark);
  background:var(--gold-soft);
  border-color:var(--gold-border);
  transform:translateY(-1px);
}

.reviews-link:hover b{
  background:var(--navy-dark);
  transform:translateX(-3px);
}

.reviews-showcase .story-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr);
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:14px;
}

.reviews-showcase .story{
  position:relative;
  min-height:218px;
  margin:0;
  padding:25px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  text-align:right;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(213,221,230,.92);
  border-radius:22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 12px 30px rgba(16,36,60,.07);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.reviews-showcase .story::before{
  content:"“";
  position:absolute;
  top:9px;
  left:18px;
  color:rgba(200,138,56,.17);
  font-family:Georgia,serif;
  font-size:62px;
  line-height:1;
}

.reviews-showcase .story::after{
  content:"";
  position:absolute;
  right:-50px;
  bottom:-68px;
  width:165px;
  height:165px;
  border:29px solid rgba(11,47,91,.025);
  border-radius:50%;
  pointer-events:none;
  transition:transform var(--transition),border-color var(--transition);
}

.reviews-showcase .story-featured{
  grid-row:1/3;
  min-height:450px;
  padding:34px;
  color:#fff;
  background:
    radial-gradient(circle at 4% 6%,rgba(230,186,117,.17),transparent 25%),
    radial-gradient(circle at 94% 95%,rgba(23,75,127,.82),transparent 37%),
    linear-gradient(150deg,#03172f,#0b315e 70%,#174b7f);
  border-color:rgba(230,186,117,.22);
  box-shadow:0 25px 58px rgba(6,33,66,.2);
}

.reviews-showcase .story-featured::before{
  top:18px;
  left:27px;
  color:rgba(230,186,117,.24);
  font-size:92px;
}

.reviews-showcase .story-featured::after{
  border-color:rgba(255,255,255,.035);
}

.story-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.reviews-showcase .avatar{
  flex:0 0 45px;
  width:45px;
  height:45px;
  margin:0;
  display:grid;
  place-items:center;
  color:var(--navy);
  background:linear-gradient(145deg,#fff,#edf4fa);
  border:1px solid #d7e2eb;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(11,47,91,.08);
  font-size:16px;
  font-weight:900;
}

.story-featured .avatar{
  width:52px;
  height:52px;
  flex-basis:52px;
  color:var(--gold-light);
  background:rgba(255,255,255,.08);
  border-color:rgba(230,186,117,.23);
  box-shadow:none;
}

.story-badge{
  min-height:29px;
  padding:4px 10px;
  display:inline-flex;
  align-items:center;
  color:var(--gold-dark);
  background:var(--gold-soft);
  border:1px solid var(--gold-border);
  border-radius:999px;
  font-size:9.5px;
  font-weight:800;
}

.story-featured .story-badge{
  color:var(--gold-light);
  background:rgba(230,186,117,.08);
  border-color:rgba(230,186,117,.2);
}

.reviews-showcase blockquote{
  position:relative;
  z-index:1;
  flex:1;
  margin:22px 0;
  display:flex;
  align-items:center;
}

.reviews-showcase blockquote p{
  margin:0;
  color:#435970;
  font-size:17px;
  font-weight:700;
  line-height:1.85;
}

.reviews-showcase .story-featured blockquote{
  max-width:650px;
  margin:36px 0;
}

.reviews-showcase .story-featured blockquote p{
  color:#fff;
  font-size:clamp(24px,3vw,34px);
  font-weight:750;
  line-height:1.65;
  letter-spacing:-.35px;
}

.story-meta{
  position:relative;
  z-index:1;
  padding-top:15px;
  border-top:1px solid var(--line);
}

.story-meta h3{
  margin:0 0 2px;
  color:var(--navy-dark);
  font-size:14px;
  line-height:1.5;
}

.story-meta span{
  color:var(--muted);
  font-size:10.5px;
}

.story-featured .story-meta{
  border-color:rgba(255,255,255,.1);
}

.story-featured .story-meta h3{
  color:#fff;
  font-size:16px;
}

.story-featured .story-meta span{
  color:#aebfd0;
}

.reviews-showcase .story:hover{
  border-color:rgba(200,138,56,.42);
  transform:translateY(-4px);
  box-shadow:0 20px 46px rgba(16,36,60,.11);
}

.reviews-showcase .story-featured:hover{
  border-color:rgba(230,186,117,.48);
  box-shadow:0 30px 68px rgba(6,33,66,.24);
}

.reviews-showcase .story:hover::after{
  border-color:rgba(200,138,56,.065);
  transform:scale(1.1);
}

@media(max-width:850px){
  .section.reviews-showcase{
    padding:66px 0 72px;
  }

  .reviews-intro{
    grid-template-columns:1fr;
    gap:16px;
  }

  .reviews-link{
    width:max-content;
  }

  .reviews-showcase .story-grid{
    grid-template-columns:1fr;
    grid-template-rows:auto;
  }

  .reviews-showcase .story-featured{
    grid-row:auto;
    min-height:340px;
  }
}

@media(max-width:700px){
  .section.reviews-showcase{
    padding:54px 0 60px;
  }

  .reviews-intro{
    margin-bottom:18px;
    padding-bottom:19px;
  }

  .reviews-intro > div::after{
    bottom:-20px;
    width:60px;
  }

  .reviews-intro h2{
    font-size:30px;
  }

  .reviews-intro p{
    font-size:13px;
  }

  .reviews-link{
    width:100%;
  }

  .reviews-showcase .story,
  .reviews-showcase .story-featured{
    min-height:0;
    padding:22px 19px;
    border-radius:18px;
  }

  .reviews-showcase .story-featured blockquote{
    margin:28px 0;
  }

  .reviews-showcase .story-featured blockquote p{
    font-size:22px;
  }

  .reviews-showcase blockquote p{
    font-size:15px;
  }
}

@media(max-width:420px){
  .reviews-showcase .story-featured blockquote p{
    font-size:19px;
  }

  .story-badge{
    font-size:9px;
  }
}

@media(hover:none){
  .reviews-showcase .story:hover{
    transform:none;
  }
}


/* ===== FIX PREFooter / Footer overlap ===== */

.prefooter{
  margin-bottom:40px !important;
  z-index:5;
}

.footer{
  margin-top:0 !important;
}
