
/* NaRa Academy v0.5 — Student Course Player */
:root{
  --nara-bg:#f7f3ec;
  --nara-card:#fff;
  --nara-text:#33271f;
  --nara-muted:#887d72;
  --nara-line:#e4d8cb;
  --nara-dark:#1d1510;
  --nara-gold:#bc8d31;
  --nara-soft:#eee5da;
  --nara-success:#2f7440;
}
.student-shell{max-width:1180px;margin:0 auto;padding:22px 18px 90px}
.student-top{
  display:flex;justify-content:space-between;gap:16px;align-items:center;
  padding:6px 0 24px;
}
.student-brand{font:700 31px Georgia,serif;text-decoration:none;color:var(--nara-text)}
.student-brand span{color:var(--nara-gold)}
.student-top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.student-link{color:var(--nara-text);text-decoration:none;font-weight:800}
.student-lang{display:flex;gap:5px;flex-wrap:wrap}
.student-lang a{
  text-decoration:none;border:1px solid var(--nara-line);border-radius:999px;
  padding:7px 10px;background:#fff;font-weight:800;font-size:13px
}
.student-lang a.active{background:var(--nara-dark);color:#fff;border-color:var(--nara-dark)}
.student-eyebrow{font-size:12px;letter-spacing:.18em;font-weight:900;color:#9a7132}
.student-title{
  font-family:Georgia,serif;font-size:clamp(42px,7vw,72px);
  line-height:.98;margin:10px 0 20px;color:var(--nara-text)
}
.student-card{
  background:var(--nara-card);border:1px solid var(--nara-line);
  border-radius:22px;padding:20px
}
.student-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px}
.student-progress-head{display:flex;justify-content:space-between;gap:12px;align-items:end}
.student-progress-bar{
  height:12px;background:#eee7df;border-radius:999px;overflow:hidden;margin:12px 0 8px
}
.student-progress-bar i{display:block;height:100%;background:var(--nara-gold);border-radius:999px}
.student-muted{color:var(--nara-muted)}
.student-course-card{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;
  padding:18px 0;border-bottom:1px solid #eee
}
.student-course-card:last-child{border-bottom:0}
.student-btn{
  display:inline-flex;justify-content:center;align-items:center;gap:6px;
  min-height:44px;padding:10px 15px;border-radius:12px;border:1px solid var(--nara-line);
  background:#fff;color:var(--nara-text);text-decoration:none;font-weight:900;cursor:pointer
}
.student-btn.dark{background:var(--nara-dark);color:#fff;border-color:var(--nara-dark)}
.student-btn.gold{background:var(--nara-gold);color:#fff;border-color:var(--nara-gold)}
.module-section{margin:22px 0 0}
.module-title{
  font-family:Georgia,serif;font-size:28px;margin:0 0 10px;color:var(--nara-text)
}
.lesson-row{
  display:flex;justify-content:space-between;gap:14px;align-items:center;
  padding:14px 0;border-top:1px solid #eee;text-decoration:none;color:inherit
}
.lesson-row-main{display:flex;gap:12px;align-items:flex-start;min-width:0}
.lesson-state{
  width:30px;height:30px;flex:0 0 30px;border-radius:50%;
  display:grid;place-items:center;background:var(--nara-soft);font-weight:900
}
.lesson-state.done{background:#e7f4ea;color:var(--nara-success)}
.lesson-state.current{background:var(--nara-gold);color:#fff}
.lesson-name{font-weight:900}
.lesson-meta{font-size:13px;color:var(--nara-muted);margin-top:3px}
.course-aside{position:sticky;top:16px;height:max-content}
.course-aside h3{font-family:Georgia,serif;font-size:24px;margin-top:0}
.course-aside a{
  display:flex;gap:9px;padding:10px;border-radius:10px;text-decoration:none;color:inherit
}
.course-aside a.active{background:var(--nara-soft);font-weight:900}
.lesson-nav-list{max-height:60vh;overflow:auto}
.student-lesson-main .nara-block{background:#fff;border:1px solid var(--nara-line)}
.student-lesson-main .nara-player{box-shadow:0 10px 30px rgba(42,31,22,.08)}
.lesson-footer{
  display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;
  margin:22px 0 10px
}
.lesson-complete-form{margin:0}
.resume-box{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:16px}
.expiry-note{font-size:13px;color:var(--nara-muted);margin-top:6px}
@media(max-width:850px){
  .student-shell{padding:16px 14px 80px}
  .student-top{align-items:flex-start;flex-direction:column}
  .student-grid{grid-template-columns:1fr}
  .course-aside{position:static;order:2}
  .student-course-card{grid-template-columns:1fr}
  .student-course-card .student-btn{width:100%}
  .student-title{font-size:clamp(40px,13vw,62px)}
  .lesson-row{align-items:flex-start}
  .lesson-row > .student-muted{display:none}
  .resume-box{align-items:stretch;flex-direction:column}
  .resume-box .student-btn{width:100%}
}


/* NaRa Academy v0.10 — Student Catalog */
.catalog-lead{max-width:760px;font-size:19px;line-height:1.55;color:var(--nara-muted);margin:-4px 0 28px}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.catalog-card{background:#fff;border:1px solid var(--nara-line);border-radius:22px;overflow:hidden;display:flex;flex-direction:column}
.catalog-cover{position:relative;display:block;aspect-ratio:16/10;background:#f1e9df;overflow:hidden}
.catalog-cover img,.my-course-cover img,.course-info-cover img,.course-student-cover img{width:100%;height:100%;object-fit:cover;display:block}
.catalog-cover-placeholder{height:100%;min-height:160px;display:grid;place-items:center;background:linear-gradient(135deg,#241913,#f0e2c4);color:#fff;font:700 27px Georgia,serif;text-align:center;padding:20px}
.catalog-cover-placeholder span{color:#d6a83b}
.catalog-cover-placeholder.large{min-height:300px;font-size:38px}
.catalog-access-badge{position:absolute;right:12px;top:12px;background:#e7f4ea;color:var(--nara-success);padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900}
.catalog-body{padding:18px;display:flex;flex:1;flex-direction:column}
.catalog-meta{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:9px}
.catalog-meta span{padding:5px 8px;border-radius:999px;background:var(--nara-soft);font-size:12px;font-weight:800;color:#665b52}
.catalog-card h2{font-family:Georgia,serif;font-size:26px;line-height:1.05;margin:2px 0 10px}
.catalog-card h2 a{text-decoration:none;color:inherit}
.catalog-card p{color:#6e6258;line-height:1.45;margin:0 0 14px}
.catalog-facts{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 16px}
.catalog-facts span{font-size:13px;color:#776c63;border:1px solid var(--nara-line);border-radius:999px;padding:6px 9px;background:#fff}
.catalog-bottom{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-top:auto}
.catalog-price strong{display:block;font-size:22px}
.catalog-price del{color:var(--nara-muted);font-size:13px}
.course-info-hero,.course-student-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:24px;align-items:center;margin-bottom:22px}
.course-info-cover,.course-student-cover{border-radius:22px;overflow:hidden;border:1px solid var(--nara-line);background:#fff;aspect-ratio:16/11}
.course-info-lead{font-size:20px;line-height:1.5;color:#6f635a;max-width:760px;margin:-4px 0 16px}
.course-info-cta{display:flex;gap:18px;align-items:center;margin-top:20px;flex-wrap:wrap}
.course-info-price strong{font-size:30px;margin-right:8px}
.course-info-price del{color:var(--nara-muted)}
.course-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.course-info-grid .student-card:first-child{grid-column:1/-1}
.course-section-title{font-family:Georgia,serif;font-size:34px;margin:7px 0 16px}
.course-rich-text{font-size:18px;line-height:1.65}
.course-bullet-list{margin:0;padding-left:22px;display:grid;gap:10px;line-height:1.5}
.student-course-card-v10{grid-template-columns:170px minmax(0,1fr) auto}
.my-course-cover{display:block;aspect-ratio:16/10;border-radius:16px;overflow:hidden;background:#eee5da}
.my-course-content h3{font-family:Georgia,serif;font-size:28px;margin:2px 0 8px}
.my-course-description{margin:0 0 10px;color:#6f635a;line-height:1.4}
.course-student-hero .student-title{margin-bottom:14px}
@media(max-width:950px){
 .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .course-info-hero,.course-student-hero{grid-template-columns:1fr}
 .course-info-cover,.course-student-cover{max-width:680px;width:100%}
 .student-course-card-v10{grid-template-columns:140px minmax(0,1fr)}
 .student-course-card-v10>.student-btn{grid-column:1/-1}
}
@media(max-width:650px){
 .catalog-grid{grid-template-columns:1fr}
 .catalog-bottom{align-items:stretch;flex-direction:column}
 .catalog-bottom .student-btn{width:100%}
 .course-info-grid{grid-template-columns:1fr}
 .course-info-grid .student-card:first-child{grid-column:auto}
 .student-course-card-v10{grid-template-columns:1fr}
 .my-course-cover{max-height:220px}
 .student-course-card-v10>.student-btn{grid-column:auto}
 .course-info-lead{font-size:17px}
}


/* NaRa Academy v0.11 — Progress & Learning UX */
.learning-state{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;white-space:nowrap}
.learning-state.not_started{background:#eee8e1;color:#74695f}
.learning-state.in_progress{background:#fff1cf;color:#8a641c}
.learning-state.completed{background:#e7f4ea;color:#2f7440}
.learning-state-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 7px}
.learning-state-row strong{font-size:18px}
.course-progress-number{font-size:34px}
.student-progress-bar.big{height:14px}
.progress-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 4px}
.progress-summary span{border:1px solid var(--nara-line);border-radius:14px;padding:12px;text-align:center;background:#fbf8f3}
.progress-summary b{display:block;font-size:23px}
.progress-summary small{display:block;color:var(--nara-muted);margin-top:3px}
.module-progress-section{padding:16px 0 8px}
.module-progress-head{display:flex;justify-content:space-between;align-items:end;gap:12px}
.module-progress-value{font-size:22px;font-weight:900}
.student-progress-bar.module-bar{height:7px;margin:8px 0 5px}
.module-progress-caption{font-size:12px;color:var(--nara-muted);margin-bottom:10px}
.lesson-row-v11{border-radius:14px;margin:5px 0;border:1px solid transparent}
.lesson-row-v11.in_progress{background:#fffaf0;border-color:#eddfbd}
.lesson-row-v11.completed{background:#f6fbf7}
.lesson-status-text{font-size:12px;font-weight:900;white-space:nowrap}
.lesson-status-text.completed{color:#2f7440}
.lesson-status-text.in_progress{color:#9a7132}
.lesson-status-text.not_started{color:#8a8178}
.lesson-kicker-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.lesson-course-progress{padding:14px 18px;margin-bottom:18px}
.lesson-completion-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--nara-line);border-radius:22px;padding:20px;margin:24px 0}
.lesson-completion-card>div{display:flex;align-items:center;gap:12px}
.lesson-completion-card b{font-size:18px}
.completion-check{width:44px;height:44px;border-radius:50%;background:#e7f4ea;color:#2f7440;display:grid;place-items:center;font-size:25px;font-weight:900;flex:0 0 auto}
.aside-progress{display:flex;justify-content:space-between;align-items:center}
.lesson-nav-module{font-size:12px;font-weight:900;margin:14px 8px 5px}
.lesson-nav-list a{align-items:flex-start}
.nav-state{width:22px;flex:0 0 22px;font-weight:900;text-align:center}
.nav-state.completed{color:#2f7440}
.nav-state.in_progress{color:#bc8d31}
.nav-lesson-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.nav-lesson-copy b{font-size:14px}
.nav-lesson-copy small{font-size:11px;color:var(--nara-muted)}
@media(max-width:650px){
 .progress-summary{grid-template-columns:1fr 1fr 1fr}
 .progress-summary span{padding:10px 5px}
 .progress-summary b{font-size:20px}
 .lesson-completion-card{align-items:stretch;flex-direction:column}
 .lesson-completion-card .student-btn,.lesson-completion-card form,.lesson-completion-card form .student-btn{width:100%}
 .lesson-status-text{display:none}
}

/* NaRa Academy v0.12 — My Learning Route */
.learning-route-hero{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px;align-items:center;margin:0 0 18px;background:linear-gradient(135deg,#fff 0%,#fbf6ed 100%);overflow:hidden}
.route-hero-copy h2{font-family:Georgia,serif;font-size:38px;line-height:1.05;margin:7px 0 8px}
.route-hero-copy>p{margin:0;color:var(--nara-muted);font-size:16px;line-height:1.5;max-width:720px}
.route-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:18px}
.route-context span{display:flex;flex-direction:column;gap:4px;border:1px solid var(--nara-line);border-radius:14px;padding:11px 12px;background:rgba(255,255,255,.72);min-width:0}
.route-context small{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--nara-muted);font-weight:900}
.route-context b{font-size:14px;line-height:1.3;overflow:hidden;text-overflow:ellipsis}
.route-hero-action{display:flex;flex-direction:column;align-items:center;gap:14px}
.route-hero-action .student-btn{width:100%}
.route-ring{--route-pct:0;width:142px;height:142px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--nara-gold) calc(var(--route-pct) * 1%),#eee7df 0);position:relative}
.route-ring:before{content:"";position:absolute;inset:11px;border-radius:50%;background:#fff}
.route-ring span{position:relative;z-index:1;display:flex;flex-direction:column;text-align:center}
.route-ring b{font:700 31px Georgia,serif}
.route-ring small{font-size:11px;color:var(--nara-muted);font-weight:900;text-transform:uppercase}
.route-card-head{display:flex;justify-content:space-between;gap:14px;align-items:end;margin-bottom:6px}
.route-card-head .course-section-title{margin-bottom:8px}
.learning-route-track{position:relative;padding:4px 0 0}
.route-stage{display:grid;grid-template-columns:46px minmax(0,1fr);gap:13px;position:relative;padding:9px 0 14px}
.route-stage:not(:last-child):before{content:"";position:absolute;left:22px;top:50px;bottom:-8px;width:2px;background:#e4d8cb}
.route-stage.completed:not(:last-child):before{background:#8ab897}
.route-stage-marker{position:relative;z-index:2;display:flex;justify-content:center}
.route-stage-marker span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f1ebe4;border:2px solid #ddd0c4;color:#7d7168;font-weight:900}
.route-stage.completed .route-stage-marker span{background:#e7f4ea;border-color:#9fc7a8;color:#2f7440}
.route-stage.current .route-stage-marker span{background:var(--nara-gold);border-color:var(--nara-gold);color:#fff;box-shadow:0 0 0 6px #f8edcf}
.route-stage-body{border:1px solid var(--nara-line);border-radius:18px;padding:15px 16px;background:#fff}
.route-stage.current .route-stage-body{background:#fffaf0;border-color:#e4c982;box-shadow:0 8px 24px rgba(80,55,20,.06)}
.route-stage.completed .route-stage-body{background:#f8fcf8}
.route-stage-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.route-stage-top small{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--nara-muted);font-weight:900}
.route-stage-top em{font-style:normal;font-size:11px;font-weight:900;color:#8c8177}
.route-stage.current .route-stage-top em{color:#9a7132}
.route-stage.completed .route-stage-top em{color:#2f7440}
.route-stage h3{font-family:Georgia,serif;font-size:23px;margin:5px 0 8px}
.route-stage-progress{display:flex;align-items:center;gap:11px}
.route-stage-progress .student-progress-bar{margin:4px 0;flex:1}
.route-stage-progress>span{font-size:12px;color:var(--nara-muted);white-space:nowrap}
.route-current-lesson{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;margin-top:11px;padding:11px 12px;border-radius:13px;background:#fff4d9;text-decoration:none;color:inherit}
.route-current-lesson small{grid-column:1;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#947128;font-weight:900}
.route-current-lesson b{grid-column:1;font-size:14px}
.route-current-lesson span{grid-column:2;grid-row:1/3;font-size:22px;color:var(--nara-gold)}
@media(max-width:850px){
 .learning-route-hero{grid-template-columns:1fr}
 .route-hero-action{display:grid;grid-template-columns:120px minmax(0,1fr);justify-items:stretch}
 .route-ring{width:110px;height:110px;justify-self:center}
 .route-context{grid-template-columns:1fr}
}
@media(max-width:650px){
 .route-hero-copy h2{font-size:31px}
 .route-hero-action{grid-template-columns:1fr}
 .route-ring{width:120px;height:120px}
 .route-card-head{align-items:stretch;flex-direction:column}
 .route-card-cta{width:100%}
 .route-stage{grid-template-columns:38px minmax(0,1fr);gap:9px}
 .route-stage:not(:last-child):before{left:18px}
 .route-stage-marker span{width:34px;height:34px}
 .route-stage-body{padding:13px}
 .route-stage-progress{align-items:stretch;flex-direction:column;gap:2px}
 .route-stage-progress>span{white-space:normal}
}


/* NaRa Academy v0.12.1 — Mobile Design Polish */
body{background:var(--nara-bg);color:var(--nara-text)}
.student-shell{padding-top:18px}
.student-card{box-shadow:0 14px 38px rgba(55,39,24,.045)}
.student-top{border-bottom:1px solid rgba(188,141,49,.13);margin-bottom:28px}
.student-brand{letter-spacing:-.025em}
.student-brand span{font-weight:700}
.student-link{padding:9px 4px}
.student-lang a{min-width:44px;text-align:center;transition:.18s ease}
.student-lang a:hover{border-color:#c8b79f}
.student-title{letter-spacing:-.035em;max-width:900px}
.learning-route-hero{position:relative;border-color:#decfb9;padding:26px 28px;border-radius:28px;box-shadow:0 18px 45px rgba(77,51,23,.07)}
.learning-route-hero:after{content:"";position:absolute;right:-70px;top:-80px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(188,141,49,.14),rgba(188,141,49,0) 68%);pointer-events:none}
.route-hero-copy,.route-hero-action{position:relative;z-index:1}
.route-hero-copy h2{font-size:42px;letter-spacing:-.025em}
.route-context{gap:10px}
.route-context span{border-color:#e5d8c7;background:#fff;box-shadow:0 6px 16px rgba(62,45,29,.035)}
.route-context small{display:block;margin-bottom:1px}
.route-context b{display:block;white-space:normal;overflow:visible;text-overflow:clip}
.route-ring{box-shadow:0 10px 28px rgba(85,60,25,.08)}
.route-ring:before{box-shadow:inset 0 0 0 1px #f0e6db}
.route-hero-action .student-btn{min-height:50px;border-radius:15px;font-size:15px;box-shadow:0 9px 20px rgba(188,141,49,.16)}
.student-progress-head{padding-bottom:4px}
.student-progress-head h2{letter-spacing:-.02em}
.student-course-card-v10{margin-top:10px;padding:20px 0}

@media(max-width:850px){
  .student-top{padding-bottom:18px;margin-bottom:24px;gap:14px}
  .student-top-actions{width:100%;justify-content:space-between;gap:12px}
  .student-lang{flex-wrap:nowrap;gap:7px}
  .student-lang a{padding:9px 11px;font-size:14px}
  .student-title{font-size:clamp(42px,12vw,58px);margin:8px 0 14px}
  .student-muted{font-size:16px}
  .learning-route-hero{padding:23px 22px;gap:20px}
  .route-hero-copy h2{font-size:36px}
  .route-context{grid-template-columns:1fr 1fr}
  .route-context span:first-child{grid-column:1/-1}
  .route-hero-action{grid-template-columns:104px minmax(0,1fr);align-items:center;gap:16px}
  .route-ring{width:102px;height:102px}
  .route-ring b{font-size:25px}
}

@media(max-width:650px){
  .student-shell{padding:12px 14px 68px}
  .student-top{margin-bottom:22px}
  .student-brand{font-size:29px}
  .student-top-actions{align-items:center}
  .student-lang{gap:6px;overflow-x:auto;padding-bottom:1px;max-width:calc(100% - 68px)}
  .student-lang a{min-width:45px;padding:9px 10px}
  .student-link{font-size:14px;white-space:nowrap}
  .student-eyebrow{font-size:11px;letter-spacing:.17em}
  .student-title{font-size:45px;line-height:.98;margin:8px 0 12px}
  .learning-route-hero{border-radius:24px;padding:21px 18px;margin-top:18px}
  .route-hero-copy h2{font-size:32px;line-height:1.04;margin:8px 0 10px}
  .route-hero-copy>p{font-size:15px;line-height:1.5}
  .route-context{display:flex;flex-direction:column;gap:8px;margin-top:16px}
  .route-context span{padding:11px 12px;border-radius:13px}
  .route-context small{font-size:10px}
  .route-context b{font-size:14px;line-height:1.35}
  .route-hero-action{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;margin-top:2px}
  .route-ring{width:78px;height:78px}
  .route-ring:before{inset:7px}
  .route-ring b{font-size:20px}
  .route-ring small{font-size:8px}
  .route-hero-action .student-btn{min-height:52px;padding:11px 14px;font-size:15px}
  .student-card{border-radius:24px;padding:18px}
  .student-progress-head{align-items:center;gap:12px}
  .student-progress-head>div{min-width:0}
  .student-progress-head h2{font-size:31px!important;line-height:1!important;margin-top:5px!important}
  .student-progress-head .student-btn{min-width:108px;padding:9px 12px}
  .student-course-card-v10{padding-top:18px}
  .my-course-content h3{font-size:25px}
}

@media(max-width:390px){
  .student-title{font-size:41px}
  .student-lang a{min-width:42px;padding:8px 8px}
  .student-top-actions{gap:8px}
  .route-hero-copy h2{font-size:29px}
  .route-hero-action{grid-template-columns:1fr}
  .route-ring{width:86px;height:86px;justify-self:center}
  .student-progress-head{align-items:stretch;flex-direction:column}
  .student-progress-head .student-btn{width:100%}
}

/* NaRa Academy v0.13 — Dynamic Course Design */
.student-course-card-v10{--course-accent:var(--nara-gold)}
.student-course-card-v10 .student-progress-bar i{background:var(--course-accent)}
.student-course-card-v10>.student-btn.gold{background:var(--course-accent);border-color:var(--course-accent)}
.student-course-card-v10 .learning-state.in_progress{color:#7d5c17;background:color-mix(in srgb,var(--course-accent) 16%,white)}
.catalog-cover img,.my-course-cover img{object-fit:cover}
