/* ================= Courses page (e-learning design) ================= */
body.courses-page{background:
  radial-gradient(700px 420px at 100% 40%,rgba(60,120,255,.16),transparent 70%),
  linear-gradient(#eaf1ff,#f2f6ff 40%,#f6f9ff);background-attachment:scroll}

/* ---- dark header on top of the hero ---- */
.header.dark{position:relative;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid rgba(255,255,255,.08)}
.header.dark .wordmark{color:#fff}
.header.dark .wordmark b{color:#3d8bff}
.header.dark .nav{color:#fff}
.header.dark .nav a.active{padding:8px 20px;border-radius:14px;color:#fff;background:linear-gradient(180deg,#2d63f2,#1239c0);box-shadow:0 8px 20px -8px rgba(45,99,242,.9)}
.header.dark .nav a.active::after{display:none}
.header.dark .menu-btn{color:#fff}

/* ---- hero ---- */
.c-top{position:relative;overflow:hidden;padding-bottom:96px;background:
  radial-gradient(430px 430px at -4% 58%,rgba(32,214,255,.95),rgba(20,140,255,.4) 48%,transparent 72%),
  radial-gradient(900px 520px at 80% -10%,rgba(48,110,255,.38),transparent 70%),
  linear-gradient(180deg,#030c33 0%,#05206a 55%,#0a3cc0 100%)}
.c-top::after{content:"";position:absolute;inset-inline:0;bottom:0;height:130px;background:linear-gradient(to bottom,rgba(234,241,255,0),#eaf1ff 92%);pointer-events:none}
.c-hero{position:relative;z-index:1;display:grid;grid-template-columns:1.2fr .8fr;gap:20px;align-items:center;padding-top:34px}
.c-eyebrow{display:inline-flex;align-items:center;gap:12px;padding:11px 24px;border-radius:40px;font-weight:800;font-size:18px;color:#fff;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.22);box-shadow:0 14px 30px -18px rgba(0,0,0,.6)}
.c-eyebrow svg{width:26px;height:26px;fill:#fff}
.c-hero h1{margin-top:22px;font-size:47px;line-height:1.25;font-weight:900;color:#fff;letter-spacing:0}
.c-hero h1 span{color:#ffc928}
.c-hero p{margin-top:14px;max-width:560px;font-size:21px;line-height:1.75;font-weight:500;color:#cfe0ff}
.c-hero-art{justify-self:start;width:100%;max-width:560px}
.c-hero-art img{width:100%;height:auto;filter:drop-shadow(0 30px 40px rgba(0,10,60,.5))}

/* ---- feature strip ---- */
.c-stats{position:relative;z-index:3;margin-top:-62px;display:grid;grid-template-columns:repeat(4,1fr);padding:22px 8px;border-radius:26px;
  background:rgba(255,255,255,.96);box-shadow:0 30px 60px -30px rgba(10,40,150,.55),0 0 0 1px rgba(255,255,255,.7)}
.c-stat{display:flex;align-items:center;justify-content:center;gap:14px;padding:4px 14px;border-inline-start:1.5px solid #dbe5fb}
.c-stat:first-child{border-inline-start:0}
.c-stat svg{width:38px;height:38px;fill:#1c52e8;flex:none}
.c-stat strong{font-size:18px;font-weight:900;color:var(--navy);line-height:1.35;white-space:nowrap}

/* ---- layout ---- */
.c-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;column-gap:30px;row-gap:22px;margin-top:30px;padding-bottom:70px;align-items:start}
.c-search-wrap{grid-column:1;grid-row:1}
.c-list{grid-column:1;grid-row:2;display:grid;gap:14px}
.c-side{grid-column:2;grid-row:2;display:grid;gap:20px}

.c-search{display:flex;align-items:stretch;height:56px;border-radius:16px;background:#fff;border:2px solid #c3d4fb;box-shadow:0 14px 28px -22px rgba(28,82,232,.7);overflow:hidden}
.c-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 5px rgba(28,82,232,.12)}
.c-search-btn{flex:none;width:58px;border:0;cursor:pointer;display:grid;place-items:center;background:linear-gradient(180deg,#2d63f2,#1239c0)}
.c-search-btn svg{width:26px;height:26px;fill:#fff}
.c-search input{flex:1;min-width:0;border:0;outline:0;background:none;padding:0 20px;font-family:inherit;font-size:18px;font-weight:600;color:var(--navy)}
.c-search input::placeholder{color:#7384b3;font-weight:600}

/* ---- lesson cards ---- */
.c-card{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;width:100%;text-align:right;padding:12px 18px 12px 12px;border-radius:20px;border:0;cursor:pointer;font-family:inherit;color:inherit;
  background:linear-gradient(180deg,#fff,#f5f8ff);box-shadow:0 14px 34px -24px rgba(20,60,170,.55),0 0 0 1px rgba(255,255,255,.9);transition:transform .2s,box-shadow .2s}
.c-card:hover{transform:translateY(-2px);box-shadow:0 22px 40px -22px rgba(20,60,170,.7),0 0 0 1px rgba(255,255,255,.9)}
.c-card:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.c-card.sk{height:126px;cursor:default;background:linear-gradient(90deg,#e6edff,#f3f6ff,#e6edff);background-size:200% 100%;animation:sk 1.4s linear infinite}
@keyframes sk{to{background-position:-200% 0}}
.c-play{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#4b86ff,#1c52e8 60%,#1239c0);box-shadow:0 12px 22px -8px rgba(28,82,232,.8),inset 0 1px 0 rgba(255,255,255,.4)}
.c-play svg{width:24px;height:24px;fill:#fff;margin-right:-2px}
.c-body h3{font-size:25px;font-weight:900;line-height:1.35;color:var(--navy)}
.c-body p{margin-top:6px;font-size:15.5px;font-weight:500;line-height:1.75;color:#26345f;max-width:600px}
.c-empty{padding:40px 10px;text-align:center;font-weight:700;color:var(--muted);font-size:18px}

.thumb{position:relative;width:206px;aspect-ratio:206/110;border-radius:14px;overflow:hidden;flex:none;
  background:radial-gradient(70% 90% at 72% 18%,#2a6bf0 0,rgba(42,107,240,0) 70%),linear-gradient(140deg,#0b2f95 0%,#071c63 60%,#051247 100%);
  box-shadow:0 12px 24px -14px rgba(5,18,71,.9),inset 0 0 0 1px rgba(255,255,255,.07)}
.thumb::after{content:"";position:absolute;inset-inline:6%;bottom:8%;height:14%;border-radius:50%;background:radial-gradient(closest-side,rgba(70,140,255,.55),transparent);filter:blur(4px)}
.thumb>img.cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumb>img.icon{position:absolute;z-index:1;inset:5% 6% 7% 6%;margin:auto;width:auto;height:auto;max-width:92%;max-height:90%;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(0,0,0,.35))}
.thumb .no{position:absolute;z-index:2;top:0;inset-inline-start:0;padding:5px 15px 6px;border-radius:0 0 14px 0;font-weight:900;font-size:21px;line-height:1.2;color:#fff;
  background:linear-gradient(180deg,#2d63f2,#1a47d1);box-shadow:0 6px 14px -6px rgba(0,0,0,.6)}
.thumb .dur{position:absolute;z-index:2;bottom:8px;inset-inline-start:8px;display:inline-flex;align-items:center;gap:6px;direction:ltr;padding:4px 11px 4px 5px;border-radius:30px;
  font-family:Poppins,Tajawal,sans-serif;font-weight:600;font-size:13px;color:#fff;background:rgba(6,16,60,.78);backdrop-filter:blur(3px)}
.thumb .dur i{width:18px;height:18px;border-radius:50%;background:#fff;display:grid;place-items:center}
.thumb .dur i svg{width:10px;height:10px;fill:#0a1a58;margin-left:1px}

/* ---- sidebar ---- */
.side-card{border-radius:24px;padding:22px 22px 24px;box-shadow:0 18px 40px -26px rgba(20,60,170,.6),0 0 0 1px rgba(255,255,255,.9)}
.side-card h2{font-weight:900}
.side-trophy{text-align:center;color:#fff;background:radial-gradient(90% 60% at 50% 0%,#1744b8,transparent 70%),linear-gradient(180deg,#0a2a86,#061b60 70%,#04144a);padding-top:18px}
.side-trophy>img{width:70%;max-width:230px;margin:0 auto;filter:drop-shadow(0 16px 20px rgba(0,0,0,.4))}
.side-trophy h2{margin-top:8px;font-size:30px;line-height:1.4;color:#fff}
.side-trophy h2 span{color:#ffc928}
.side-trophy ul{list-style:none;margin:16px 6px 20px;display:grid;gap:12px;text-align:right}
.side-trophy li{display:flex;align-items:center;gap:12px;font-weight:700;font-size:18px;color:#e7eeff}
.side-trophy li svg{width:30px;height:30px;flex:none}
.side-trophy li circle{fill:#2d73ff}
.side-trophy li path{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.side-cta{display:inline-flex;align-items:center;justify-content:center;gap:14px;width:100%;height:58px;border:0;border-radius:40px;cursor:pointer;font-family:inherit;font-weight:900;font-size:22px;color:#0b1a4f;
  background:linear-gradient(180deg,#ffd84a,#ffb300);box-shadow:0 16px 28px -12px rgba(255,179,0,.75),inset 0 2px 0 rgba(255,255,255,.55);transition:transform .2s}
.side-cta:hover{transform:translateY(-2px)}
.side-cta svg{width:20px;height:20px;fill:#0b1a4f}

.side-path,.side-goal{background:linear-gradient(180deg,#fff,#f4f8ff)}
.side-path h2{display:flex;align-items:center;justify-content:flex-start;gap:12px;font-size:24px;color:var(--navy);margin-bottom:14px}
.side-path h2 svg{width:30px;height:30px;fill:#1c52e8;order:-1}
.side-path ul{list-style:none;display:grid;gap:12px}
.side-path li{display:flex;align-items:center;gap:12px;font-weight:700;font-size:15.5px;color:#26345f}
.side-path .ico{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#f1f3f8,#d9dfec);box-shadow:inset 0 -2px 0 rgba(0,0,0,.08);font-weight:900;font-size:19px;color:#0b1a4f}
.side-path .ico svg{width:19px;height:19px;fill:#0b1a4f}
.side-path .ico.star{background:none;box-shadow:none}
.side-path .ico.star svg{width:32px;height:32px;fill:#ffb400;filter:drop-shadow(0 4px 4px rgba(200,130,0,.4))}
.side-goal{text-align:center}
.side-goal>img{width:55%;max-width:170px;margin:0 auto 6px;filter:drop-shadow(0 14px 14px rgba(20,60,170,.3))}
.side-goal h2{font-size:24px;color:var(--navy)}
.side-goal p{margin-top:8px;font-size:16.5px;font-weight:500;line-height:1.8;color:#26345f}

/* ================= responsive ================= */
@media (max-width:1100px){
  .c-hero h1{font-size:38px}
  .c-hero p{font-size:17px}
  .c-eyebrow{font-size:16px}
  .c-layout{grid-template-columns:minmax(0,1fr) 280px;column-gap:22px}
  .c-stat strong{font-size:14.5px}.c-stat svg{width:30px;height:30px}.c-stat{gap:10px;padding-inline:8px}
  .thumb{width:190px}
  .c-body h3{font-size:21px}
}
@media (max-width:900px){
  .c-hero{grid-template-columns:1fr;text-align:center;padding-top:20px;gap:6px}
  .c-hero p{margin-inline:auto}
  .c-hero-art{justify-self:center;max-width:420px;order:2}
  .c-top{padding-bottom:70px}
  .c-stats{grid-template-columns:1fr 1fr;row-gap:16px;margin-top:-44px}
  .c-stat:nth-child(3){border-inline-start:0}
  .c-layout{grid-template-columns:1fr}
  .c-search-wrap,.c-list,.c-side{grid-column:1}
  .c-side{grid-row:3;grid-template-columns:1fr 1fr}
  .side-trophy{grid-column:1/-1}
}
@media (max-width:1080px){
  /* header dropdown stays light */
  .header.dark .nav{color:var(--navy)}
  .header.dark .nav a.active{padding:14px 0;border-radius:0;background:none;box-shadow:none;color:var(--blue)}
  .header.dark .nav-cta-mobile{color:#fff}
}
@media (max-width:640px){
  .c-hero h1{font-size:34px}
  .c-eyebrow{font-size:15px;padding:9px 18px}
  .c-hero p{font-size:16px}
  .c-stats{padding:16px 6px;border-radius:20px}
  .c-stat{flex-direction:column;gap:6px;text-align:center;padding:2px 8px}
  .c-stat strong{font-size:14px;white-space:normal}
  .c-card{grid-template-columns:1fr auto;grid-template-areas:"thumb thumb" "body play";gap:12px 14px;padding:12px}
  .c-card .thumb{grid-area:thumb;width:100%}
  .c-card .c-body{grid-area:body}
  .c-card .c-play{grid-area:play;width:52px;height:52px;align-self:start;margin-top:4px}
  .c-body h3{font-size:21px}
  .c-body p{font-size:15.5px}
  .c-side{grid-template-columns:1fr}
  .side-trophy h2{font-size:26px}
}
