
:root{
  --navy:#0a3264;
  --navy2:#0f4f90;
  --blue:#1264b3;
  --green:#18804f;
  --gold:#b67b16;
  --ink:#1f2b37;
  --muted:#6d7f90;
  --line:#d8e3ee;
  --bg:#f4f7fa;
  --white:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; direction:rtl; background:var(--bg); color:var(--ink);
  font-family:"Segoe UI",Tahoma,Arial,sans-serif;
}
a{text-decoration:none;color:inherit}
.topbar{
  min-height:66px;background:linear-gradient(90deg,#082a55,#0f4d88);color:#fff;
  display:flex;align-items:center;justify-content:space-between;padding:10px 22px;
  box-shadow:0 3px 14px rgba(0,0,0,.12);position:sticky;top:0;z-index:30
}
.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800}
.logo{
  width:44px;height:44px;border:1px solid #ffffff55;border-radius:11px;
  display:grid;place-items:center;background:#ffffff0d;font-size:23px
}
.toplinks{display:flex;gap:8px}
.toplinks a{padding:8px 12px;border:1px solid #ffffff40;border-radius:9px;background:#ffffff0b}
.shell{
  max-width:1500px;margin:auto;padding:20px;
  display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px
}
.sidebar{
  background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;
  align-self:start;position:sticky;top:88px;box-shadow:0 4px 16px rgba(10,45,80,.05)
}
.side-title{
  color:var(--navy);font-size:22px;font-weight:900;margin:0 0 14px;
  display:flex;align-items:center;justify-content:space-between
}
.semester{
  border:1px solid #dce6ef;border-radius:13px;overflow:hidden;margin-bottom:12px
}
.semester-button{
  width:100%;border:0;background:#edf5fb;color:var(--navy);font:inherit;font-weight:900;
  padding:13px 14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;text-align:right
}
.semester-button:hover{background:#e4f0fa}
.semester-list{padding:8px;background:#fff}
.course-link{
  display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;
  padding:11px;border-radius:10px;border:1px solid #e1e8ef;margin:7px 0
}
.course-link:hover{background:#f4f8fc;border-color:#a9c7e2}
.course-link.active{background:linear-gradient(90deg,#0c5bae,#0a3f80);color:#fff;border-color:#0c5bae}
.course-icon{
  width:38px;height:38px;border-radius:9px;background:#edf5fb;color:var(--blue);
  display:grid;place-items:center;font-weight:900
}
.active .course-icon{background:#ffffff1a;color:#fff}
.side-note{
  margin-top:16px;padding:14px;border-right:4px solid var(--green);
  background:#f3faf6;border-radius:10px;color:#405261;font-size:14px;line-height:1.8
}
main{min-width:0}
.hero{
  background:linear-gradient(135deg,#fff,#eef5fb);
  border:1px solid var(--line);border-radius:20px;padding:30px;
  display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;
  box-shadow:0 4px 16px rgba(10,45,80,.04)
}
.eyebrow{color:var(--green);font-weight:900}
.hero h1{color:var(--navy);font-size:40px;margin:5px 0 10px;line-height:1.25}
.hero p{font-size:17px;color:var(--muted);line-height:2;margin:0}
.visual{
  min-height:260px;border-radius:18px;background:linear-gradient(145deg,#0e3158,#174f82);
  position:relative;overflow:hidden;display:grid;place-items:center
}
.monitor{
  width:250px;height:150px;border:8px solid #dceaf7;border-radius:14px;
  background:#10283c;position:relative;box-shadow:0 20px 35px rgba(0,0,0,.18)
}
.monitor:after{content:"";position:absolute;width:90px;height:10px;background:#dceaf7;bottom:-28px;left:72px;border-radius:4px}
.screen-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:20px}
.screen-grid span{height:36px;border-radius:7px;background:#ffffff16;border:1px solid #ffffff2e}
.screen-grid span:nth-child(2),.screen-grid span:nth-child(6){background:#2a8a6755}
.section-title{
  margin:26px 0 12px;color:var(--navy);font-size:25px;font-weight:900;
  display:flex;align-items:center;gap:10px
}
.section-title:after{content:"";height:2px;background:#dbe6ef;flex:1}
.course-card{
  background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px;
  display:grid;grid-template-columns:90px 1fr auto;gap:18px;align-items:center;
  box-shadow:0 4px 14px rgba(10,45,80,.04)
}
.bigicon{
  width:86px;height:86px;border-radius:20px;background:#edf5fb;color:var(--blue);
  display:grid;place-items:center;font-size:34px;font-weight:900
}
.course-card h2{margin:0;color:var(--navy);font-size:26px}
.course-card p{margin:5px 0 0;color:var(--muted);line-height:1.8}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.tag{padding:5px 10px;border:1px solid #cdddeb;border-radius:999px;background:#f7fafc;color:var(--navy);font-size:13px;font-weight:800}
.openbtn{
  background:var(--navy);color:#fff;padding:11px 17px;border-radius:10px;font-weight:800;white-space:nowrap
}
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.quick{
  background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px
}
.quick .qicon{font-size:30px;margin-bottom:8px}
.quick h3{margin:0 0 5px;color:var(--navy)}
.quick p{margin:0;color:var(--muted);line-height:1.8;font-size:14px}
.footer{
  margin-top:25px;color:#718394;font-size:13px;text-align:center;padding:20px
}
@media(max-width:1000px){
  .shell{grid-template-columns:1fr}.sidebar{position:static}.hero{grid-template-columns:1fr}
  .course-card{grid-template-columns:1fr;text-align:center}.bigicon{margin:auto}.quick-grid{grid-template-columns:1fr}
}

.algo-icon{width:62px;height:62px;display:block}
.course-icon .algo-icon{width:28px;height:28px}
.bigicon .algo-icon{width:58px;height:58px}
