:root{
  --primary:#3158e8;--primary2:#6845d9;--ink:#15213b;--muted:#68758d;--bg:#f4f7fb;
  --surface:#fff;--line:#e4e9f2;--soft:#eef3ff;--good:#16815f;--warn:#b87912;--danger:#b43b45;
  --shadow:0 12px 35px rgba(25,42,80,.07);--radius:18px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'Plus Jakarta Sans',Arial,sans-serif;background:var(--bg);color:var(--ink)}a{color:inherit}
.portal-header{height:76px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(3vw,20px);position:sticky;top:0;z-index:30}
.portal-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800}.portal-brand img{width:142px;max-height:50px;object-fit:contain}.portal-brand span{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border-radius:8px;padding:5px 8px;font-size:11px;letter-spacing:.05em}
.portal-header nav{display:flex;gap:20px;align-items:center}.portal-header nav a{text-decoration:none;font-weight:650;font-size:13px;color:#4c5870}.portal-header nav a:hover{color:var(--primary)}
.pill,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:11px;padding:11px 16px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff!important;text-decoration:none;font-weight:750;cursor:pointer;box-shadow:0 7px 18px rgba(49,88,232,.18)}
.btn.secondary{background:#fff;color:var(--ink)!important;border:1px solid var(--line);box-shadow:none}.btn.ghost{background:var(--soft);color:var(--primary)!important;box-shadow:none}
.portal-main{min-height:calc(100vh - 140px)}.container{max-width:1240px;margin:auto;padding:34px 22px}.container.narrow{max-width:960px}
.breadcrumb{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:13px;margin-bottom:20px}.breadcrumb a{text-decoration:none;color:#4f5f7a}.breadcrumb a:hover{color:var(--primary)}
.eyebrow{font-size:11px;font-weight:850;color:var(--primary);text-transform:uppercase;letter-spacing:.11em}.muted{color:var(--muted);line-height:1.7}.small{font-size:12px;color:var(--muted)}
.page-title{margin:0;font-size:clamp(28px,4vw,44px);line-height:1.1}.page-subtitle{max-width:780px;margin:10px 0 0;color:var(--muted);line-height:1.7}
.course-hero{background:linear-gradient(135deg,#111c38,#273a71 58%,#4d3a9d);color:#fff;border-radius:24px;padding:32px;box-shadow:var(--shadow);position:relative;overflow:hidden}.course-hero:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:-100px;top:-170px;background:rgba(255,255,255,.08)}.course-hero>*{position:relative;z-index:1}.course-hero .eyebrow{color:#bfcaff}.course-hero h1{margin:8px 0 10px;font-size:clamp(30px,4vw,48px);line-height:1.08}.course-hero p{max-width:800px;color:#dbe2f4;line-height:1.7}.hero-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.hero-meta span{border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.08);padding:8px 11px;border-radius:10px;font-size:12px;color:#eef2ff}
.dashboard-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:24px}.dashboard-head h1{margin:4px 0 0;font-size:34px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.card h2,.card h3{margin-top:0}.course-card{display:flex;flex-direction:column;min-height:250px}.course-card .course-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--soft);color:var(--primary);font-weight:850;margin-bottom:18px}.course-card .actions{margin-top:auto}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.stat-box{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px}.stat{font-size:28px;font-weight:850}.stat-label{font-size:12px;color:var(--muted);margin-top:3px}
.progress{height:9px;background:#e8edf6;border-radius:99px;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--primary2));border-radius:99px}.progress-lg{height:11px}.progress-label{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin-bottom:8px}
.course-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start;margin-top:22px}.sidebar{position:sticky;top:94px;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.sidebar-title{padding:18px 18px 13px;border-bottom:1px solid var(--line);font-weight:800}.module-nav{padding:10px}.module-nav details{border:1px solid transparent;border-radius:13px;margin-bottom:7px}.module-nav details[open]{background:#f8faff;border-color:#e3e9fa}.module-nav summary{list-style:none;cursor:pointer;padding:12px;border-radius:11px;font-size:13px;font-weight:750}.module-nav summary::-webkit-details-marker{display:none}.module-nav summary:before{content:'›';display:inline-block;width:20px;color:var(--muted)}.module-nav details[open] summary:before{content:'⌄'}.module-nav a{display:flex;gap:8px;align-items:flex-start;text-decoration:none;padding:9px 12px 9px 32px;font-size:12px;color:#68758d;border-radius:9px}.module-nav a:hover{background:#fff;color:var(--primary)}.module-nav a.active{background:var(--soft);color:var(--primary);font-weight:750}.check{font-size:12px;color:var(--good);margin-left:auto}
.module-head{background:#fff;border:1px solid var(--line);border-radius:20px;padding:27px;box-shadow:var(--shadow);margin-bottom:18px}.module-head h1{margin:7px 0 8px;font-size:34px}.module-head .module-top{display:flex;justify-content:space-between;gap:18px;align-items:start}.module-number{width:48px;height:48px;border-radius:14px;background:var(--soft);color:var(--primary);display:grid;place-items:center;font-weight:850;font-size:13px}
.lesson-list{display:flex;flex-direction:column;gap:10px}.lesson-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px 17px;text-decoration:none;transition:.18s ease;box-shadow:0 5px 20px rgba(25,42,80,.035)}.lesson-card:hover{transform:translateY(-1px);border-color:#cfd8f3;box-shadow:0 10px 25px rgba(25,42,80,.08)}.lesson-no{width:40px;height:40px;border-radius:11px;background:#f1f4fa;color:#63718a;display:grid;place-items:center;font-size:12px;font-weight:850}.lesson-card.done .lesson-no{background:#eaf8f2;color:var(--good)}.lesson-title{font-weight:800;font-size:14px}.lesson-summary{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}.lesson-state{font-size:12px;font-weight:750;color:var(--muted);white-space:nowrap}.lesson-card.done .lesson-state{color:var(--good)}.chev{font-size:20px;color:#9aa5b8}
.action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.action-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;text-decoration:none}.action-card:hover{border-color:#cbd5ef}.action-card strong{display:block;font-size:14px}.action-card span{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:4px}
.lesson-shell{max-width:1000px;margin:auto}.lesson-header{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:var(--shadow);margin-bottom:18px}.lesson-header h1{margin:7px 0 8px;font-size:36px}.lesson-content{background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:var(--shadow);line-height:1.85}.lesson-content h2{font-size:22px;margin:28px 0 9px}.lesson-content h2:first-child{margin-top:0}.lesson-content p{color:#39465f}.lesson-content li{margin:6px 0;color:#39465f}.lesson-content pre{overflow:auto;background:#121a2d;color:#e8eefc;padding:18px;border-radius:12px}.lesson-footer{display:flex;justify-content:space-between;gap:12px;margin-top:18px}
.quiz-q{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin:13px 0;box-shadow:0 6px 20px rgba(25,42,80,.035)}.quiz-q>strong{display:block;line-height:1.55;margin-bottom:10px}.quiz-q label{display:block;padding:10px;border-radius:9px;color:#45526b}.quiz-q label:hover{background:#f6f8fc}.quiz-summary{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.result-ring{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:#eef3ff;color:var(--primary);font-weight:850;font-size:19px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.notice{padding:13px 15px;border-radius:11px;margin:12px 0;background:#eef3ff;color:#28417c}.error{background:#fff0f0;color:var(--danger)}.success{background:#edf9f3;color:var(--good)}
.field{margin:14px 0}.field label{display:block;font-size:13px;font-weight:750;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;padding:12px 13px;border:1px solid #cfd7e6;border-radius:9px;font:inherit;background:#fff}.auth{max-width:540px;margin:52px auto;padding:0 20px}
.portal-footer{text-align:center;padding:28px;color:var(--muted);font-size:12px}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:14px}
@media(max-width:900px){.course-layout{grid-template-columns:1fr}.sidebar{position:static}.action-grid{grid-template-columns:1fr}.grid,.grid3{grid-template-columns:1fr}.dashboard-head{display:block}.stat-row{grid-template-columns:1fr}.module-head .module-top{display:block}.module-number{margin-bottom:14px}}
@media(max-width:700px){.module-actions-heading,.lesson-section-heading{align-items:flex-start;flex-direction:column;gap:8px}.module-actions-wrap,.lesson-section{padding:14px}.portal-header{height:68px}.portal-brand img{width:118px}.portal-header nav{gap:8px}.portal-header nav a:not(.pill){display:none}.container{padding:24px 15px}.course-hero{padding:23px;border-radius:18px}.course-hero h1{font-size:30px}.lesson-card{grid-template-columns:40px minmax(0,1fr);gap:11px}.lesson-state,.chev{display:none}.module-head{padding:21px}.lesson-content{padding:22px}.lesson-header{padding:22px}.lesson-header h1{font-size:29px}.lesson-footer{display:grid;grid-template-columns:1fr}.lesson-footer .btn{width:100%}}

/* =========================================================
   Hover Infotech v11 visual language + Student Portal motion layer
   ========================================================= */
:root{--navy:#0a0f1e;--navy-mid:#111827;--blue:#3b82f6;--blue-bright:#60a5fa;--indigo:#6366f1;--cyan:#06b6d4;--orange:#f97316;--emerald:#10b981;--pink:#ec4899;--white:#fff;--gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;--text:#111827;--text-muted:#6b7280;--gradient-brand:linear-gradient(135deg,#3b82f6,#6366f1,#ec4899);--gradient-cool:linear-gradient(135deg,#06b6d4,#3b82f6)}
body{background:linear-gradient(180deg,#f8fafc 0,#fff 42%,#f8fafc 100%);font-family:'Plus Jakarta Sans',sans-serif}
.portal-header{height:88px;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(59,130,246,.1);box-shadow:0 5px 25px rgba(10,15,30,.05);padding:0 max(4vw,20px);z-index:100;position:sticky;top:0}
.portal-brand img{width:150px;max-height:55px;object-fit:contain}.portal-nav{display:flex;align-items:center;gap:8px}.portal-nav a{padding:10px 13px;border-radius:10px;text-decoration:none;font-weight:700;font-size:13px;color:#4b5563;transition:.25s ease}.portal-nav a:hover,.portal-nav a.active{color:var(--blue);background:rgba(59,130,246,.08)}.portal-nav .pill{background:linear-gradient(135deg,#3b82f6,#6366f1);color:#fff!important;padding:11px 16px;box-shadow:0 7px 20px rgba(59,130,246,.25)}.portal-user-pill{font-size:12px;font-weight:700;color:#374151;background:#f3f4f6;border:1px solid #e5e7eb;padding:9px 12px;border-radius:999px;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portal-main{min-height:calc(100vh - 145px)}.portal-footer{border-top:1px solid #e5e7eb;background:#fff;padding:30px 20px}
.dashboard-page{padding-top:38px}.dashboard-hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:25px;padding:34px 36px;border-radius:24px;background:linear-gradient(135deg,#0a0f1e 0%,#111827 48%,#263b77 100%);color:#fff;overflow:hidden;box-shadow:0 20px 55px rgba(10,15,30,.18);margin-bottom:18px}.dashboard-hero:before{content:"";position:absolute;width:360px;height:360px;border-radius:50%;right:-120px;top:-190px;background:rgba(96,165,250,.14)}.dashboard-hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;left:42%;bottom:-120px;background:rgba(236,72,153,.09)}.dashboard-hero>*{position:relative;z-index:1}.dashboard-hero h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(30px,4vw,48px);line-height:1.08;margin:7px 0 9px}.dashboard-hero p{margin:0;color:#dbe5fa;max-width:760px;line-height:1.7}.dashboard-hero .eyebrow{color:#93c5fd}.profile-avatar{width:76px;height:76px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#3b82f6,#ec4899);font-size:28px;font-weight:900;box-shadow:0 12px 30px rgba(0,0,0,.2);flex:0 0 auto}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 22px}.dashboard-stats .stat-box{display:flex;align-items:center;gap:13px;padding:18px;border-radius:17px;transition:.25s ease}.dashboard-stats .stat-box:hover{transform:translateY(-3px);box-shadow:0 15px 35px rgba(10,15,30,.08)}.stat-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#eff6ff,#eef2ff);font-size:18px;color:#2563eb}.stat-accent{border-color:rgba(59,130,246,.24)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr);gap:20px;align-items:start}.dashboard-section{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:22px;box-shadow:0 8px 30px rgba(10,15,30,.055);margin-bottom:20px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.section-heading h2{font-family:'Space Grotesk',sans-serif;font-size:23px;margin:4px 0 0}.section-count{font-size:12px;color:#64748b;font-weight:750}.status-chip{font-size:11px;font-weight:800;color:#047857;background:#ecfdf5;border:1px solid #bbf7d0;padding:7px 10px;border-radius:999px}
.profile-card{border:1px solid #edf0f5;border-radius:15px;overflow:hidden}.profile-row{display:flex;justify-content:space-between;gap:20px;padding:13px 15px;border-bottom:1px solid #edf0f5;font-size:13px}.profile-row:last-child{border-bottom:0}.profile-row span{color:#6b7280}.profile-row strong{color:#172033;text-align:right}.security-note{margin-top:12px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:11px 13px;color:#64748b;font-size:12px}.security-note a{color:#2563eb;font-weight:750}
.course-dashboard-list{display:grid;gap:13px}.course-dashboard-card{border:1px solid #e5e7eb;border-radius:17px;padding:19px;transition:.28s ease;background:linear-gradient(180deg,#fff,#fcfdff)}.course-dashboard-card:hover{transform:translateY(-3px);border-color:rgba(59,130,246,.3);box-shadow:0 16px 35px rgba(10,15,30,.08)}.course-dashboard-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.course-dashboard-top>span{font-size:11px;color:#64748b}.course-code{font-size:10px;font-weight:900;letter-spacing:.12em;color:#2563eb;background:#eff6ff;border-radius:8px;padding:6px 8px}.course-dashboard-card h3{font-family:'Space Grotesk',sans-serif;font-size:20px;margin:12px 0 5px}.course-dashboard-card p{font-size:13px;color:#64748b;line-height:1.65;margin:0 0 16px}
.performance-card{display:flex;justify-content:space-between;gap:20px;align-items:center;border-radius:16px;padding:17px;background:linear-gradient(135deg,#f8fbff,#f7f5ff);border:1px solid #e8edfa}.performance-main{display:flex;align-items:center;gap:14px}.score-orb{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#3b82f6,#6366f1);color:#fff;font-weight:900;box-shadow:0 10px 25px rgba(59,130,246,.25)}.performance-main strong{font-size:14px}.performance-main p{margin:4px 0 0;color:#64748b;font-size:12px}.latest-score{display:grid;text-align:right;gap:2px}.latest-score span,.latest-score small{font-size:10px;color:#64748b}.latest-score strong{font-size:22px;color:#2563eb}.module-score-list{margin-top:15px;display:grid;gap:11px}.module-score-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(100px,1.2fr) 52px;gap:12px;align-items:center}.module-score-row>div:first-child{display:grid;gap:2px}.module-score-row strong{font-size:12px}.module-score-row span{font-size:10px;color:#94a3b8}.module-score-row b{text-align:right;font-size:12px}.module-score-bar{height:7px;border-radius:99px;background:#e9eef6;overflow:hidden}.module-score-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#06b6d4,#3b82f6,#6366f1)}
.insight-panel{background:linear-gradient(180deg,#fff,#fbfcff)}.suggestion-list{display:grid;gap:10px;margin-top:16px}.suggestion{display:grid;grid-template-columns:32px 1fr;gap:10px;padding:12px;border-radius:14px;border:1px solid #e7ebf2;background:#fff}.suggestion-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#eff6ff;color:#2563eb;font-weight:900}.suggestion.priority{border-color:#fed7aa;background:#fffaf5}.suggestion.priority .suggestion-icon{background:#ffedd5;color:#ea580c}.suggestion.good{border-color:#bbf7d0;background:#f7fff9}.suggestion.good .suggestion-icon{background:#dcfce7;color:#059669}.suggestion strong{font-size:12px}.suggestion p{font-size:11px;line-height:1.55;color:#64748b;margin:4px 0 0}.activity-list{display:grid}.activity-item{display:flex;gap:11px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #edf0f5}.activity-item:last-child{border-bottom:0}.activity-check{width:25px;height:25px;border-radius:8px;background:#ecfdf5;color:#059669;display:grid;place-items:center;font-size:12px;font-weight:900}.activity-item strong,.activity-item small{display:block}.activity-item strong{font-size:12px}.activity-item small{font-size:10px;color:#94a3b8;margin-top:3px}.empty-state{padding:15px;border-radius:12px;background:#f8fafc;color:#64748b;font-size:12px}.next-card{background:linear-gradient(135deg,#0a0f1e,#17213c);color:#fff;border:0}.next-card .eyebrow{color:#93c5fd}.next-card h2{font-family:'Space Grotesk',sans-serif;margin:5px 0}.next-card p{color:#cbd5e1;font-size:12px;line-height:1.65}.next-card .btn{background:linear-gradient(135deg,#3b82f6,#6366f1)}
.reveal{opacity:0;transform:translateY(16px);transition:opacity .65s ease,transform .65s cubic-bezier(.2,.8,.2,1)}.reveal.visible{opacity:1;transform:none}.reveal-child{opacity:0;transform:translateY(10px);transition:.5s ease}.reveal.visible .reveal-child,.reveal-child.visible{opacity:1;transform:none}
.lesson-content>*{opacity:0;transform:translateY(10px);transition:opacity .55s ease,transform .55s ease}.lesson-content>*.content-visible{opacity:1;transform:none}.lesson-content h2{scroll-margin-top:105px}.lesson-content pre,.lesson-content blockquote,.lesson-content table{border-radius:14px}.lesson-content img{border-radius:15px;box-shadow:0 12px 30px rgba(10,15,30,.1)}
@media(max-width:1000px){.dashboard-grid{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.module-actions-heading,.lesson-section-heading{align-items:flex-start;flex-direction:column;gap:8px}.module-actions-wrap,.lesson-section{padding:14px}.portal-header{height:74px;padding:0 15px}.portal-brand img{width:125px}.portal-nav{gap:3px}.portal-nav>a:not(.pill){display:none}.portal-user-pill{max-width:120px}.dashboard-page{padding-top:24px}.dashboard-hero{padding:25px 22px;border-radius:19px}.profile-avatar{width:58px;height:58px;border-radius:17px;font-size:22px}.dashboard-stats{grid-template-columns:1fr 1fr}.dashboard-section{padding:17px;border-radius:17px}.profile-row{display:grid;gap:4px}.profile-row strong{text-align:left}.performance-card{align-items:flex-start;flex-direction:column}.latest-score{text-align:left}.module-score-row{grid-template-columns:1fr 58px}.module-score-bar{grid-column:1/-1;grid-row:2}.module-score-row b{grid-column:2;grid-row:1}.section-heading{align-items:flex-start}.course-dashboard-card .actions{flex-direction:column}.course-dashboard-card .actions .btn{width:100%}}

.action-card b{display:block;margin-top:12px;color:#2563eb;font-size:11px}.action-card{transition:.25s ease}.action-card:hover{transform:translateY(-3px);box-shadow:0 12px 25px rgba(10,15,30,.07)}.module-actions-wrap{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow);margin-bottom:18px}.module-actions-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}.module-actions-heading h2{font-family:'Space Grotesk',sans-serif;font-size:19px;margin:3px 0 0}.module-actions-status{font-size:11px;color:var(--muted);font-weight:750;background:#f5f7fb;border:1px solid #e8edf5;padding:7px 10px;border-radius:999px}.module-actions-wrap .action-grid{margin-top:0}.lesson-section{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow)}.lesson-section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}.lesson-section-heading h2{font-family:'Space Grotesk',sans-serif;font-size:19px;margin:0}.lesson-section-heading span{font-size:11px;color:var(--muted);font-weight:750}.lesson-section .lesson-card{box-shadow:none;background:#fbfcff}.lesson-section .lesson-card:hover{background:#fff}.lesson-section .lesson-list{gap:9px}

/* Student profile tab and account summary */
.profile-actions{display:flex;align-items:center;gap:9px}.profile-tab-button{padding:8px 12px;font-size:11px}.profile-page{padding-top:38px}.profile-page-hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:25px;padding:32px 36px;border-radius:24px;background:linear-gradient(135deg,#0a0f1e 0%,#111827 48%,#263b77 100%);color:#fff;overflow:hidden;box-shadow:0 20px 55px rgba(10,15,30,.16);margin-bottom:20px}.profile-page-hero:before{content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:-110px;top:-180px;background:rgba(96,165,250,.13)}.profile-page-hero>*{position:relative;z-index:1}.profile-page-hero h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(30px,4vw,46px);margin:6px 0 8px}.profile-page-hero p{margin:0;color:#dbe5fa;line-height:1.7}.profile-page-hero .eyebrow{color:#93c5fd}.profile-page-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);gap:20px;align-items:start}.profile-stat-list{display:grid;gap:0;border:1px solid #edf0f5;border-radius:15px;overflow:hidden;margin-top:15px}.profile-stat-list>div{display:flex;justify-content:space-between;gap:15px;padding:14px 15px;border-bottom:1px solid #edf0f5;font-size:13px}.profile-stat-list>div:last-child{border-bottom:0}.profile-stat-list span{color:#6b7280}.profile-stat-list strong{color:#172033}
@media(max-width:1000px){.profile-page-grid{grid-template-columns:1fr}}
@media(max-width:700px){.profile-actions{width:100%;justify-content:space-between}.profile-tab-button{padding:8px 10px}.profile-page-hero{padding:25px 22px;border-radius:19px}.profile-page-hero h1{font-size:30px}.portal-nav .profile-link{display:inline-flex}.portal-nav>a:not(.pill):not(.profile-link){display:none}.portal-user-pill{max-width:105px}}

/* ================================
   Student dashboard v2
   Scoped to .student-dashboard-v2
   ================================ */
.student-dashboard-v2{max-width:1320px;padding-top:30px;padding-bottom:55px}
.student-dashboard-v2 .sd-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:28px;align-items:center;overflow:hidden;padding:38px 40px;margin-bottom:18px;border-radius:28px;background:linear-gradient(128deg,#081325 0%,#122b55 52%,#3158e8 100%);color:#fff;box-shadow:0 24px 70px rgba(24,46,94,.20)}
.student-dashboard-v2 .sd-hero:before{content:"";position:absolute;inset:auto -100px -180px auto;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.20),rgba(255,255,255,0) 68%)}
.student-dashboard-v2 .sd-hero:after{content:"";position:absolute;left:46%;top:-140px;width:340px;height:340px;border:1px solid rgba(255,255,255,.11);border-radius:50%}
.student-dashboard-v2 .sd-hero>*{position:relative;z-index:1}
.student-dashboard-v2 .sd-kicker{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#bfdbfe}
.student-dashboard-v2 .sd-dot{width:8px;height:8px;border-radius:50%;background:#5eead4;box-shadow:0 0 0 5px rgba(94,234,212,.12)}
.student-dashboard-v2 .sd-hero h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(34px,4.7vw,58px);line-height:1.02;letter-spacing:-.035em;margin:12px 0 12px;max-width:820px}
.student-dashboard-v2 .sd-hero p{max-width:760px;margin:0;color:#d6e3f7;line-height:1.72;font-size:14px}
.student-dashboard-v2 .sd-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.student-dashboard-v2 .sd-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border-radius:12px;text-decoration:none;font-size:12px;font-weight:800;transition:.22s ease;border:1px solid transparent}
.student-dashboard-v2 .sd-btn:hover{transform:translateY(-2px)}
.student-dashboard-v2 .sd-btn-primary{background:#fff;color:#163b81;box-shadow:0 12px 30px rgba(5,18,45,.18)}
.student-dashboard-v2 .sd-btn-soft{background:#f7f9fd;color:#24324b;border-color:#e5eaf2}
.student-dashboard-v2 .sd-hero .sd-btn-soft{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.17)}
.student-dashboard-v2 .sd-btn-light{background:#fff;color:#142d57}
.student-dashboard-v2 .sd-btn-small{min-height:40px;padding:9px 13px;font-size:11px}
.student-dashboard-v2 .sd-btn-full{width:100%}
.student-dashboard-v2 .sd-progress-card{display:flex;align-items:center;justify-content:center;gap:17px;min-height:150px;padding:20px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(255,255,255,.09);backdrop-filter:blur(14px)}
.student-dashboard-v2 .sd-progress-ring{width:96px;height:96px;flex:0 0 96px;border-radius:50%;padding:8px;background:conic-gradient(#67e8f9 calc(var(--progress)*1%),rgba(255,255,255,.14) 0)}
.student-dashboard-v2 .sd-progress-ring>div{width:100%;height:100%;border-radius:50%;display:grid;place-content:center;text-align:center;background:#12284c}
.student-dashboard-v2 .sd-progress-ring strong{font-size:24px;line-height:1}.student-dashboard-v2 .sd-progress-ring span{font-size:9px;color:#bfdbfe;margin-top:5px;text-transform:uppercase;letter-spacing:.08em}
.student-dashboard-v2 .sd-progress-copy{display:grid;gap:4px}.student-dashboard-v2 .sd-progress-copy strong{font-size:13px}.student-dashboard-v2 .sd-progress-copy span{font-size:10px;color:#bfdbfe}
.student-dashboard-v2 .sd-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.student-dashboard-v2 .sd-kpi-card{display:flex;align-items:center;gap:13px;min-height:92px;padding:17px 18px;border-radius:18px;background:#fff;border:1px solid #e6ebf2;box-shadow:0 8px 28px rgba(19,38,74,.045)}
.student-dashboard-v2 .sd-kpi-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900;font-size:14px}.student-dashboard-v2 .sd-kpi-card strong{display:block;font-family:'Space Grotesk',sans-serif;font-size:23px;line-height:1}.student-dashboard-v2 .sd-kpi-card span{display:block;margin-top:6px;color:#7b879b;font-size:10px;font-weight:700}
.student-dashboard-v2 .sd-kpi-blue .sd-kpi-icon{background:#edf4ff;color:#2563eb}.student-dashboard-v2 .sd-kpi-violet .sd-kpi-icon{background:#f2efff;color:#6d4ce9}.student-dashboard-v2 .sd-kpi-cyan .sd-kpi-icon{background:#ecfeff;color:#0891b2}.student-dashboard-v2 .sd-kpi-gold .sd-kpi-icon{background:#fff8e6;color:#b7791f}
.student-dashboard-v2 .sd-layout{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(320px,.68fr);gap:18px;align-items:start}
.student-dashboard-v2 .sd-panel{background:#fff;border:1px solid #e6ebf2;border-radius:22px;padding:22px;box-shadow:0 10px 32px rgba(18,38,74,.05);margin-bottom:18px}
.student-dashboard-v2 .sd-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:17px}.student-dashboard-v2 .sd-section-head-compact{align-items:flex-start}.student-dashboard-v2 .sd-overline{display:block;font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:#3158e8}.student-dashboard-v2 .sd-section-head h2,.student-dashboard-v2 .sd-next-card h2{font-family:'Space Grotesk',sans-serif;font-size:22px;letter-spacing:-.02em;margin:5px 0 0}.student-dashboard-v2 .sd-section-meta{font-size:10px;font-weight:750;color:#7c899c;background:#f7f9fc;border:1px solid #e8edf4;padding:7px 10px;border-radius:999px;white-space:nowrap}
.student-dashboard-v2 .sd-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.student-dashboard-v2 .sd-course-card{overflow:hidden;border:1px solid #e4e9f1;border-radius:20px;background:#fff;transition:.25s ease}.student-dashboard-v2 .sd-course-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(23,43,84,.09);border-color:#cdd8ee}
.student-dashboard-v2 .sd-course-banner{position:relative;display:flex;justify-content:space-between;align-items:flex-start;min-height:104px;padding:18px;background:linear-gradient(135deg,#edf4ff,#f5f1ff);overflow:hidden}.student-dashboard-v2 .sd-course-card:nth-child(2n) .sd-course-banner{background:linear-gradient(135deg,#ecfeff,#effcf7)}.student-dashboard-v2 .sd-course-banner:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-28px;bottom:-56px;background:rgba(49,88,232,.08)}
.student-dashboard-v2 .sd-course-emblem{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#fff;border:1px solid rgba(49,88,232,.13);box-shadow:0 8px 22px rgba(49,88,232,.10);font-family:'Space Grotesk',sans-serif;font-size:17px;font-weight:800;color:#3158e8}.student-dashboard-v2 .sd-course-card:nth-child(2n) .sd-course-emblem{color:#0f766e}
.student-dashboard-v2 .sd-course-tags{display:flex;gap:6px;position:relative;z-index:1}.student-dashboard-v2 .sd-course-tags span{font-size:9px;font-weight:850;color:#60708a;background:rgba(255,255,255,.76);border:1px solid rgba(255,255,255,.9);padding:6px 7px;border-radius:8px}
.student-dashboard-v2 .sd-course-body{padding:18px}.student-dashboard-v2 .sd-course-body h3{font-family:'Space Grotesk',sans-serif;font-size:18px;line-height:1.25;margin:0 0 7px}.student-dashboard-v2 .sd-course-body p{font-size:11px;line-height:1.65;color:#758197;margin:0 0 16px;min-height:54px}.student-dashboard-v2 .sd-course-progress-head{display:flex;justify-content:space-between;gap:10px;font-size:9.5px;color:#7a8799;margin-bottom:7px}.student-dashboard-v2 .sd-course-progress-head strong{color:#263a5e}.student-dashboard-v2 .sd-progress-track{height:8px;border-radius:99px;background:#edf1f6;overflow:hidden}.student-dashboard-v2 .sd-progress-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#3158e8,#6e55e8)}.student-dashboard-v2 .sd-course-card:nth-child(2n) .sd-progress-track i{background:linear-gradient(90deg,#06b6d4,#10b981)}
.student-dashboard-v2 .sd-course-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px}.student-dashboard-v2 .sd-text-link{font-size:10px;font-weight:800;color:#61708a;text-decoration:none}.student-dashboard-v2 .sd-text-link:hover{color:#3158e8}
.student-dashboard-v2 .sd-score-summary{display:grid;grid-template-columns:180px 1fr;gap:18px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#f7faff,#f9f7ff);border:1px solid #e8edf5}.student-dashboard-v2 .sd-score-gauge{display:grid;align-content:center;justify-items:center;border-right:1px solid #e3e8f1}.student-dashboard-v2 .sd-score-gauge strong{font-family:'Space Grotesk',sans-serif;font-size:38px;color:#3158e8}.student-dashboard-v2 .sd-score-gauge span{font-size:10px;color:#7a879b}.student-dashboard-v2 .sd-score-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.student-dashboard-v2 .sd-score-facts>div{padding:12px;border-radius:13px;background:#fff;border:1px solid #e8edf4}.student-dashboard-v2 .sd-score-facts span,.student-dashboard-v2 .sd-score-facts small{display:block;color:#8390a2;font-size:9px}.student-dashboard-v2 .sd-score-facts strong{display:block;font-size:18px;margin:4px 0 2px;color:#20324f}.student-dashboard-v2 .sd-module-scores{display:grid;gap:10px;margin-top:16px}.student-dashboard-v2 .sd-score-row{display:grid;grid-template-columns:minmax(170px,1.15fr) minmax(120px,1fr) 45px;gap:12px;align-items:center}.student-dashboard-v2 .sd-score-label{display:grid;gap:2px}.student-dashboard-v2 .sd-score-label strong{font-size:10.5px}.student-dashboard-v2 .sd-score-label span{font-size:8.5px;color:#97a1b0}.student-dashboard-v2 .sd-score-bar{height:7px;border-radius:99px;background:#edf1f6;overflow:hidden}.student-dashboard-v2 .sd-score-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#06b6d4,#3158e8,#6e55e8)}.student-dashboard-v2 .sd-score-row b{text-align:right;font-size:10px;color:#41506a}
.student-dashboard-v2 .sd-profile-head{display:flex;align-items:center;gap:13px;margin-bottom:16px}.student-dashboard-v2 .sd-avatar{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#3158e8,#6e55e8);color:#fff;font-family:'Space Grotesk',sans-serif;font-size:22px;font-weight:800;box-shadow:0 10px 26px rgba(49,88,232,.20)}.student-dashboard-v2 .sd-profile-head h3{font-family:'Space Grotesk',sans-serif;font-size:17px;margin:3px 0 0}.student-dashboard-v2 .sd-profile-head small{font-size:9px;color:#6f7e93}.student-dashboard-v2 .sd-status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#10b981;margin-right:5px;box-shadow:0 0 0 4px rgba(16,185,129,.10)}
.student-dashboard-v2 .sd-profile-list{border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;margin-bottom:14px}.student-dashboard-v2 .sd-profile-list>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:9px;padding:10px 0;border-bottom:1px solid #edf0f5}.student-dashboard-v2 .sd-profile-list>div:last-child{border-bottom:0}.student-dashboard-v2 .sd-profile-list span{font-size:9px;color:#8b97a8}.student-dashboard-v2 .sd-profile-list strong{font-size:9.5px;color:#32415a;overflow-wrap:anywhere;text-align:right}
.student-dashboard-v2 .sd-guidance-list{display:grid;gap:9px}.student-dashboard-v2 .sd-guidance{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:11px;border-radius:14px;border:1px solid #e9edf4;background:#fbfcfe}.student-dashboard-v2 .sd-guidance-mark{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#edf4ff;color:#3158e8;font-size:11px;font-weight:900}.student-dashboard-v2 .sd-guidance.priority{background:#fffaf5;border-color:#fed7aa}.student-dashboard-v2 .sd-guidance.priority .sd-guidance-mark{background:#ffedd5;color:#ea580c}.student-dashboard-v2 .sd-guidance.good{background:#f7fff9;border-color:#c9f2d8}.student-dashboard-v2 .sd-guidance.good .sd-guidance-mark{background:#e7f9ee;color:#0f9f6e}.student-dashboard-v2 .sd-guidance strong{font-size:10.5px}.student-dashboard-v2 .sd-guidance p{font-size:9.5px;line-height:1.55;color:#78869a;margin:4px 0 0}
.student-dashboard-v2 .sd-activity-list{display:grid}.student-dashboard-v2 .sd-activity-item{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid #edf0f5}.student-dashboard-v2 .sd-activity-item:last-child{border-bottom:0}.student-dashboard-v2 .sd-activity-item>span{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;flex:0 0 27px;background:#e9fbf3;color:#0f9f6e;font-size:10px;font-weight:900}.student-dashboard-v2 .sd-activity-item strong{display:block;font-size:10.5px;line-height:1.35}.student-dashboard-v2 .sd-activity-item small{display:block;margin-top:3px;color:#939dad;font-size:8.5px}
.student-dashboard-v2 .sd-empty{padding:13px;border-radius:12px;background:#f7f9fc;border:1px dashed #dfe5ed;color:#7a8799;font-size:10px;line-height:1.55}.student-dashboard-v2 .sd-next-card{position:relative;overflow:hidden;padding:22px;border-radius:22px;background:linear-gradient(145deg,#0d1e3a,#193c73);color:#fff;box-shadow:0 16px 38px rgba(18,42,84,.16)}.student-dashboard-v2 .sd-next-card:after{content:"";position:absolute;right:-60px;top:-70px;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.08)}.student-dashboard-v2 .sd-next-card>*{position:relative;z-index:1}.student-dashboard-v2 .sd-next-card .sd-overline{color:#93c5fd}.student-dashboard-v2 .sd-next-card p{font-size:10.5px;line-height:1.65;color:#c9d8ef;margin:8px 0 16px}
@media(max-width:1080px){.student-dashboard-v2 .sd-layout{grid-template-columns:1fr}.student-dashboard-v2 .sd-side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.student-dashboard-v2 .sd-side-column>*{margin-bottom:0}.student-dashboard-v2 .sd-next-card{grid-column:1/-1}}
@media(max-width:860px){.student-dashboard-v2 .sd-hero{grid-template-columns:1fr}.student-dashboard-v2 .sd-progress-card{justify-content:flex-start}.student-dashboard-v2 .sd-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-dashboard-v2 .sd-score-facts{grid-template-columns:1fr}.student-dashboard-v2 .sd-score-summary{grid-template-columns:150px 1fr}}
@media(max-width:680px){.student-dashboard-v2{padding:20px 14px 40px}.student-dashboard-v2 .sd-hero{padding:26px 22px;border-radius:22px}.student-dashboard-v2 .sd-hero h1{font-size:34px}.student-dashboard-v2 .sd-hero-actions{display:grid}.student-dashboard-v2 .sd-hero-actions .sd-btn{width:100%}.student-dashboard-v2 .sd-kpi-grid{grid-template-columns:1fr 1fr;gap:9px}.student-dashboard-v2 .sd-kpi-card{min-height:82px;padding:13px}.student-dashboard-v2 .sd-kpi-icon{width:36px;height:36px;border-radius:11px}.student-dashboard-v2 .sd-kpi-card strong{font-size:19px}.student-dashboard-v2 .sd-kpi-card span{font-size:9px}.student-dashboard-v2 .sd-panel{padding:17px;border-radius:18px}.student-dashboard-v2 .sd-section-head{align-items:flex-start}.student-dashboard-v2 .sd-section-head h2{font-size:20px}.student-dashboard-v2 .sd-course-grid{grid-template-columns:1fr}.student-dashboard-v2 .sd-course-body p{min-height:0}.student-dashboard-v2 .sd-course-footer{align-items:flex-start;flex-direction:column}.student-dashboard-v2 .sd-score-summary{grid-template-columns:1fr}.student-dashboard-v2 .sd-score-gauge{border-right:0;border-bottom:1px solid #e3e8f1;padding-bottom:14px}.student-dashboard-v2 .sd-score-facts{grid-template-columns:repeat(3,1fr)}.student-dashboard-v2 .sd-score-facts>div{padding:9px}.student-dashboard-v2 .sd-score-facts strong{font-size:15px}.student-dashboard-v2 .sd-score-row{grid-template-columns:1fr 45px}.student-dashboard-v2 .sd-score-bar{grid-column:1/-1;grid-row:2}.student-dashboard-v2 .sd-score-row b{grid-column:2;grid-row:1}.student-dashboard-v2 .sd-side-column{grid-template-columns:1fr}.student-dashboard-v2 .sd-next-card{grid-column:auto}}
@media(max-width:430px){.student-dashboard-v2 .sd-kpi-grid{grid-template-columns:1fr}.student-dashboard-v2 .sd-progress-card{align-items:flex-start;flex-direction:column}.student-dashboard-v2 .sd-score-facts{grid-template-columns:1fr}}

/* Student dashboard readability adjustment: normal text sizing */
.student-dashboard-v2 .sd-kicker{font-size:12px}
.student-dashboard-v2 .sd-hero p{font-size:15px}
.student-dashboard-v2 .sd-btn{font-size:13px}
.student-dashboard-v2 .sd-btn-small{font-size:12px}
.student-dashboard-v2 .sd-progress-ring span{font-size:10.5px}
.student-dashboard-v2 .sd-progress-copy strong{font-size:14px}
.student-dashboard-v2 .sd-progress-copy span{font-size:12px}
.student-dashboard-v2 .sd-kpi-card span{font-size:12px}
.student-dashboard-v2 .sd-overline{font-size:10.5px}
.student-dashboard-v2 .sd-section-meta{font-size:11.5px}
.student-dashboard-v2 .sd-course-tags span{font-size:10.5px}
.student-dashboard-v2 .sd-course-body p{font-size:13px}
.student-dashboard-v2 .sd-course-progress-head{font-size:11.5px}
.student-dashboard-v2 .sd-text-link{font-size:11.5px}
.student-dashboard-v2 .sd-score-gauge span{font-size:11.5px}
.student-dashboard-v2 .sd-score-facts span,
.student-dashboard-v2 .sd-score-facts small{font-size:11px}
.student-dashboard-v2 .sd-score-label strong{font-size:12px}
.student-dashboard-v2 .sd-score-label span{font-size:11px}
.student-dashboard-v2 .sd-score-row b{font-size:11.5px}
.student-dashboard-v2 .sd-profile-head small{font-size:11px}
.student-dashboard-v2 .sd-profile-list span{font-size:11px}
.student-dashboard-v2 .sd-profile-list strong{font-size:11.5px}
.student-dashboard-v2 .sd-guidance strong{font-size:12px}
.student-dashboard-v2 .sd-guidance p{font-size:11.5px}
.student-dashboard-v2 .sd-activity-item strong{font-size:12px}
.student-dashboard-v2 .sd-activity-item small{font-size:10.5px}
.student-dashboard-v2 .sd-empty{font-size:11.5px}
.student-dashboard-v2 .sd-next-card p{font-size:12px}

@media(max-width:680px){
  .student-dashboard-v2 .sd-kpi-card span{font-size:11.5px}
  .student-dashboard-v2 .sd-course-body p{font-size:12.5px}
  .student-dashboard-v2 .sd-profile-list span{font-size:10.5px}
  .student-dashboard-v2 .sd-profile-list strong{font-size:11px}
}

/* Long lesson articles must remain visible at any viewport height. */
article.lesson-content.reveal{opacity:1;transform:none}
