/* ============================================================
   CORSENO — Design tokens & base system
   Signature: the "open ring" motif from the logo mark, reused as
   progress indicators, section markers and card corners.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --navy: #0b1130;
  --navy-2: #141b42;
  --navy-soft: #232a55;
  --blue: #2f5bff;
  --blue-light: #6d8bff;
  --blue-dim: #e7ecff;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #10132b;
  --muted: #5b6072;
  --muted-2: #8b8fa3;
  --line: #e7e8f1;
  --gold: #c9a227;
  --success: #1c9a5b;
  --success-bg: #e7f7ef;
  --danger: #e0483e;
  --danger-bg: #fdecea;
  --warn-bg: #fff6e0;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11,17,48,.06), 0 1px 1px rgba(11,17,48,.04);
  --shadow: 0 8px 24px rgba(11,17,48,.08);
  --shadow-lg: 0 20px 50px rgba(11,17,48,.16);
  --container: 1160px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0 0 .5em; line-height:1.15; letter-spacing:-.01em; }
p{ margin:0 0 1em; color: var(--muted); }
ul{ padding-left:1.1em; }
button{ font-family: inherit; }
:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow{ max-width: 760px; margin:0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:600; font-size:15px; padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--navy); color:#fff; }
.btn-primary:hover{ background: #060a1e; box-shadow: 0 6px 18px rgba(11,17,48,.25); }
.btn-accent{ background: var(--blue); color:#fff; }
.btn-accent:hover{ background:#2149e0; box-shadow: 0 6px 18px rgba(47,91,255,.35); }
.btn-outline{ background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover{ background: var(--navy); color:#fff; }
.btn-ghost{ background: transparent; color: var(--navy); border-color: transparent; }
.btn-ghost:hover{ background: rgba(11,17,48,.06); }
.btn-sm{ padding: 8px 16px; font-size:13px; }
.btn-lg{ padding: 15px 30px; font-size:16px; }
.btn-block{ width:100%; }
.btn-danger{ background: var(--danger); color:#fff; }
.btn-danger:hover{ opacity:.9; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- Navbar ---------- */
.navbar{
  position: sticky; top:0; z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* Blur applied via a pseudo-element instead of directly on .navbar.
   backdrop-filter/filter/transform on .navbar would make it the containing
   block for any position:fixed descendant (like the mobile #navLinks menu),
   breaking full-screen fixed positioning on mobile. Keeping it off .navbar
   itself avoids that while preserving the same translucent look. */
.navbar::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background: rgba(246,247,251,.85); backdrop-filter: blur(10px);
}
.navbar-inner{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; font-size:20px; color: var(--navy); }
.brand img{ height:34px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-size:14.5px; font-weight:600; color: var(--ink); position:relative; padding: 6px 0; }
.nav-links a:hover{ color: var(--blue); }
.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-user{ display:flex; align-items:center; gap:10px; }
.avatar-badge{
  width:36px; height:36px; border-radius:50%; background: var(--blue); color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; font-family: var(--font-display);
}
/* Log in / Get started shown inside the mobile slide-out menu only — hidden on desktop
   so they don't duplicate the copies rendered in .nav-actions. */
.nav-links-auth{ display:none; }
@media (max-width: 900px){
  .nav-links{ position:fixed; inset: 74px 0 0 0; background: var(--surface); flex-direction:column; padding: 30px 24px; gap:22px; transform: translateX(100%); transition: transform .25s ease; overflow-y:auto; }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display:block; }
  .nav-links-auth{ display:flex; gap:10px; margin-top:10px; }
  /* Hide the top-bar Log in / Get started on mobile — they live in the slide-out menu instead. */
  .nav-actions > a.btn-ghost, .nav-actions > a.btn-accent{ display:none; }
}

/* ---------- Hero / signature ring motif ---------- */
.ring-mark{ position:relative; display:inline-block; }
.ring-mark svg{ display:block; }

.hero{
  position: relative; overflow:hidden;
  background: var(--navy);
  color:#fff;
  padding: 84px 0 100px;
}
.hero::before{
  content:''; position:absolute; right:-160px; top:-160px; width:560px; height:560px; border-radius:50%;
  border: 90px solid rgba(255,255,255,.05);
}
.hero::after{
  content:''; position:absolute; left:-120px; bottom:-200px; width:420px; height:420px; border-radius:50%;
  border: 60px solid rgba(47,91,255,.15);
}
.hero-grid{ position:relative; z-index:2; display:grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--blue-light); margin-bottom:18px;
}
.hero h1{ font-size: clamp(34px, 4.6vw, 56px); color:#fff; margin-bottom:20px; }
.hero p.lead{ font-size:18px; color: rgba(255,255,255,.78); max-width:520px; margin-bottom: 30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:34px; margin-top:44px; flex-wrap:wrap; }
.hero-stat b{ display:block; font-family:var(--font-display); font-size:26px; color:#fff; }
.hero-stat span{ font-size:13px; color: rgba(255,255,255,.6); }

.hero-visual{ position:relative; }
.hero-card{
  background:#fff; border-radius: var(--radius-lg); padding:26px; color: var(--ink); box-shadow: var(--shadow-lg);
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero{ padding: 60px 0 70px; text-align:center; }
  .hero-actions{ justify-content:center; }
  .hero p.lead{ margin-left:auto; margin-right:auto; }
  .hero-stats{ justify-content:center; }
}

/* ---------- Sections ---------- */
.section{ padding: 76px 0; }
.section-tight{ padding: 48px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap: 20px; margin-bottom: 40px; flex-wrap:wrap; }
.section-head h2{ font-size: clamp(26px,3vw,34px); }
.section-head p{ margin:0; max-width:520px; }
.section-alt{ background: var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.tag{
  display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  color: var(--blue); background: var(--blue-dim); padding: 6px 12px; border-radius:999px; margin-bottom:14px;
}

/* ---------- Grids & cards ---------- */
.grid{ display:grid; gap:24px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; } }

.card{ background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }

.course-card{ display:flex; flex-direction:column; height:100%; }
.course-thumb{
  height:150px; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); position:relative; display:flex; align-items:center; justify-content:center;
}
.course-thumb .thumb-mark{ opacity:.4; }
.course-thumb .badge-level{
  position:absolute; top:12px; left:12px; background: rgba(255,255,255,.15); color:#fff; font-size:11px; font-weight:700;
  padding:4px 10px; border-radius:999px; backdrop-filter: blur(4px);
}
.course-thumb .badge-price{
  position:absolute; top:12px; right:12px; background:#fff; color: var(--navy); font-size:12px; font-weight:800;
  padding:5px 10px; border-radius:999px;
}
.course-body{ padding:18px 18px 20px; display:flex; flex-direction:column; flex:1; }
.course-cat{ font-size:11.5px; font-weight:700; color: var(--blue); text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px; }
.course-title{ font-family: var(--font-display); font-size:17px; font-weight:600; margin-bottom:8px; }
.course-meta{ display:flex; align-items:center; gap:12px; font-size:12.5px; color: var(--muted-2); margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }
.rating-stars{ color:#e8a53d; font-size:13px; }
.price-row{ display:flex; align-items:baseline; gap:8px; margin-top:10px; }
.price-now{ font-family:var(--font-display); font-weight:700; font-size:19px; color: var(--navy); }
.price-old{ text-decoration: line-through; color: var(--muted-2); font-size:13px; }
.price-free{ color: var(--success); font-weight:700; }

/* Internship card */
.intern-card{ padding:22px; display:flex; flex-direction:column; gap:12px; }
.intern-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.pill{ display:inline-block; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px; background: var(--blue-dim); color: var(--blue); }
.pill-outline{ background:transparent; border:1px solid var(--line); color: var(--muted); }
.seats-bar{ height:6px; border-radius:999px; background: var(--line); overflow:hidden; }
.seats-bar > span{ display:block; height:100%; background: var(--blue); }

/* ---------- Icon ring (feature list) ---------- */
.icon-ring{
  width:52px; height:52px; border-radius:50%; border:2.5px solid var(--blue); display:flex; align-items:center; justify-content:center;
  font-size:22px; margin-bottom:16px; color: var(--navy); position:relative;
}
.icon-ring::after{ content:''; position:absolute; width:9px; height:9px; background: var(--blue); top:-3px; right:2px; transform:rotate(20deg); clip-path: polygon(0 0,100% 20%,60% 100%,0% 80%); }

.feature{ padding: 6px 0; }
.feature h3{ font-size:17px; margin-bottom:8px; }
.feature p{ font-size:14.5px; margin:0; }

/* ---------- Steps ---------- */
.steps{ display:grid; grid-template-columns: repeat(4,1fr); gap:0; position:relative; }
.step{ text-align:center; padding: 0 16px; position:relative; }
.step-num{
  width:44px; height:44px; border-radius:50%; background: var(--navy); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; margin: 0 auto 16px;
}
.steps .step:not(:last-child)::after{
  content:''; position:absolute; top:22px; left:calc(50% + 30px); width:calc(100% - 60px); height:2px; background: var(--line);
}
@media (max-width: 800px){ .steps{ grid-template-columns:1fr; gap:36px; } .steps .step::after{ display:none; } }

/* ---------- Testimonials ---------- */
.testi{ padding:24px; }
.testi-stars{ color:#e8a53d; margin-bottom:10px; }
.testi-quote{ font-size:15px; color: var(--ink); margin-bottom:16px; }
.testi-person{ display:flex; align-items:center; gap:10px; }
.testi-avatar{ width:38px; height:38px; border-radius:50%; background: var(--blue-dim); color: var(--blue); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.testi-person b{ display:block; font-size:13.5px; }
.testi-person span{ font-size:12px; color: var(--muted-2); }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--navy), #182055 60%, var(--navy));
  border-radius: var(--radius-lg); padding: 56px; color:#fff; text-align:center; position:relative; overflow:hidden;
}
.cta-band::before{ content:''; position:absolute; right:-100px; top:-100px; width:280px; height:280px; border-radius:50%; border:50px solid rgba(255,255,255,.06); }
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,.75); max-width:520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer{ background: var(--navy); color: rgba(255,255,255,.7); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; }
.footer .brand{ color:#fff; margin-bottom:14px; }
.footer h4{ color:#fff; font-size:14px; margin-bottom:16px; }
.footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.footer a{ font-size:13.5px; color: rgba(255,255,255,.65); }
.footer a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); margin-top:40px; padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12.5px; }
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:7px; color: var(--ink); }
.form-control{
  width:100%; padding: 12px 14px; border-radius: var(--radius-sm); border:1.5px solid var(--line); background:#fff;
  font-size:14.5px; font-family: inherit; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus{ border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); outline:none; }
textarea.form-control{ resize: vertical; min-height:110px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.form-hint{ font-size:12.5px; color: var(--muted-2); margin-top:6px; }
.auth-shell{ min-height: calc(100vh - 74px); display:flex; align-items:center; justify-content:center; padding: 50px 20px; background: var(--bg); }
.auth-card{ width:100%; max-width:420px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.auth-card h1{ font-size:24px; }
.auth-switch{ text-align:center; font-size:14px; margin-top:18px; color: var(--muted); }
.auth-switch a{ color: var(--blue); font-weight:600; }

/* ---------- Alerts / toasts ---------- */
.alert{ padding:13px 16px; border-radius: var(--radius-sm); font-size:14px; margin-bottom:16px; }
.alert-error{ background: var(--danger-bg); color: var(--danger); }
.alert-success{ background: var(--success-bg); color: var(--success); }
.alert-info{ background: var(--blue-dim); color: var(--blue); }
.alert-warn{ background: var(--warn-bg); color:#8a6b0d; }

#toast-root{ position: fixed; top:20px; right:20px; z-index:1000; display:flex; flex-direction:column; gap:10px; }
.toast{
  background: var(--navy); color:#fff; padding: 13px 18px; border-radius: 10px; font-size:14px; box-shadow: var(--shadow);
  min-width:240px; animation: toast-in .2s ease;
}
.toast.error{ background: var(--danger); }
.toast.success{ background: var(--success); }
@keyframes toast-in{ from{ opacity:0; transform: translateY(-8px); } to{ opacity:1; transform:none; } }

/* ---------- Badges / status ---------- */
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px; }
.badge-success{ background: var(--success-bg); color: var(--success); }
.badge-warn{ background: var(--warn-bg); color:#8a6b0d; }
.badge-danger{ background: var(--danger-bg); color: var(--danger); }
.badge-muted{ background: var(--line); color: var(--muted); }

/* ---------- Dashboard layout ---------- */
.dash{ display:grid; grid-template-columns: 250px 1fr; gap:0; min-height: calc(100vh - 74px); }
.dash-sidebar{ background:#fff; border-right:1px solid var(--line); padding: 28px 18px; }
.dash-sidebar a{ display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:10px; font-size:14px; font-weight:600; color: var(--muted); margin-bottom:4px; }
.dash-sidebar a:hover{ background: var(--bg); color: var(--ink); }
.dash-sidebar a.active{ background: var(--navy); color:#fff; }
.dash-main{ padding: 34px; max-width: 1080px; }
.dash-head{ margin-bottom: 28px; }
.dash-head h1{ font-size:26px; }
@media (max-width: 900px){ .dash{ grid-template-columns:1fr; } .dash-sidebar{ display:flex; overflow-x:auto; gap:6px; padding:14px; border-right:none; border-bottom:1px solid var(--line); } .dash-sidebar a{ white-space:nowrap; margin-bottom:0; } }

.stat-card{ background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:22px; }
.stat-card b{ display:block; font-family: var(--font-display); font-size:28px; margin-bottom:4px; }
.stat-card span{ font-size:13px; color: var(--muted-2); }

table.data-table{ width:100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
table.data-table th, table.data-table td{ text-align:left; padding: 13px 16px; font-size:13.5px; border-bottom:1px solid var(--line); }
table.data-table th{ background: var(--bg); font-weight:700; color: var(--muted); text-transform:uppercase; font-size:11.5px; letter-spacing:.04em; }
table.data-table tr:last-child td{ border-bottom:none; }
.table-wrap{ overflow-x:auto; border-radius: var(--radius); }

.progress-track{ height:8px; border-radius:999px; background: var(--line); overflow:hidden; }
.progress-track > span{ display:block; height:100%; background: var(--blue); border-radius:999px; }

.tabs{ display:flex; gap:6px; border-bottom:1px solid var(--line); margin-bottom:24px; flex-wrap:wrap; }
.tab-btn{ background:none; border:none; padding:11px 16px; font-weight:600; font-size:14px; color: var(--muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; }
.tab-btn.active{ color: var(--navy); border-color: var(--blue); }

.modal-backdrop{ position:fixed; inset:0; background: rgba(11,17,48,.5); z-index:200; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal{ background:#fff; border-radius: var(--radius-lg); padding: 28px; max-width:520px; width:100%; max-height:88vh; overflow-y:auto; box-shadow: var(--shadow-lg); }
.modal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.modal-close{ background:none; border:none; font-size:22px; cursor:pointer; color: var(--muted); line-height:1; }

.empty-state{ text-align:center; padding: 60px 20px; color: var(--muted-2); }
.empty-state .icon-ring{ margin: 0 auto 18px; }

.skeleton{ background: linear-gradient(90deg, var(--line) 25%, #f0f1f7 37%, var(--line) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius:8px; }
@keyframes shimmer{ 0%{ background-position: 100% 0; } 100%{ background-position:0 0; } }

.divider{ height:1px; background: var(--line); border:none; margin: 28px 0; }

.breadcrumb{ font-size:13px; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--blue); }
