/* =====================================================
   LearnHub LMS — Mobile-first responsive stylesheet
   ===================================================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;line-height:1.6;color:#333;background:#f5f7fa;min-width:320px}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit}

/* Layout */
.container{max-width:860px;margin:0 auto;padding:0 16px}
.page-content{padding:1.5rem 16px}

/* Navbar */
.navbar{background:#2c3e50;padding:0;position:sticky;top:0;z-index:200;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:56px}
.logo{    gap: 15px;
    font-size: 1.7em;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    text-transform: uppercase;
    align-items: center;}
.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{color:#ccc;padding:6px 10px;border-radius:6px;font-size:.88rem;transition:background .2s,color .2s;white-space:nowrap}
.nav-links a:hover{background:#3d5166;color:#fff}
.lang-switch{background:rgba(255,255,255,.12)!important;color:#fff!important;font-weight:700!important;font-size:.78rem!important;padding:4px 10px!important;border-radius:20px!important}
.lang-switch:hover{background:rgba(255,255,255,.25)!important}
.burger{display:none;flex-direction:column;justify-content:center;gap:5px;background:none;border:none;cursor:pointer;padding:8px;width:42px;height:42px;flex-shrink:0}
.burger span{display:block;height:2px;background:#fff;border-radius:2px;transition:transform .3s,opacity .3s}

/* Flash */
.flash{padding:.75rem 1rem;text-align:center;font-weight:500;font-size:.9rem}
.flash-success{background:#d1e7dd;color:#0f5132}
.flash-error{background:#f8d7da;color:#842029}

/* Hero */
.hero{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3.5rem 16px;text-align:center}
.hero h1{font-size:clamp(1.6rem,5vw,3rem);margin-bottom:.8rem}
.hero p{font-size:clamp(.95rem,2.5vw,1.2rem);margin-bottom:1.8rem;opacity:.9}

/* Sections */
.section{padding:3rem 0}
.section-alt{background:#fff}
.contact{background:#2c3e50;color:#fff}
.contact .section-title{color:#fff}
.section-title{text-align:center;font-size:clamp(1.4rem,4vw,2rem);margin-bottom:1.8rem;color:#2c3e50}
.section-sub{margin:1.5rem 0 1rem;font-size:1.2rem;color:#2c3e50}

/* Courses grid */
.courses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:1.5rem}
.course-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.09);transition:transform .25s,box-shadow .25s}
.course-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.15)}
.course-thumb{height:160px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-size:3.5rem}
.course-card img{width:100%;height:210px;object-fit:cover}
.course-body{padding:1.2rem}
.course-body h3{margin-bottom:.4rem;font-size:1.05rem}
.course-body p{color:#666;font-size:.88rem;margin-bottom:.8rem}
.course-desc{color:#666;margin-bottom:1.5rem}

/* Meta tags */
.meta-tags{display:flex;flex-wrap:wrap;gap:.4rem}
.tag{background:#f0f0f0;border-radius:20px;padding:3px 10px;font-size:.78rem;color:#555}

/* Benefits */
.benefits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:1.5rem}
.benefit-card{text-align:center;padding:1.8rem 1.2rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.07)}
.benefit-icon{font-size:2.5rem;margin-bottom:.8rem}

/* Contact */
.contact-row{display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem;margin-top:1.2rem}
.contact-item{font-size:1rem;opacity:.9}

/* Auth */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem 16px;background:linear-gradient(135deg,#667eea,#764ba2)}
.auth-box{background:#fff;border-radius:14px;padding:2rem 1.5rem;width:100%;max-width:420px;box-shadow:0 12px 40px rgba(0,0,0,.2)}
.auth-box h2{margin-bottom:1.4rem;font-size:1.5rem;text-align:center;color:#2c3e50}
.auth-link{text-align:center;margin-top:1rem;color:#666;font-size:.9rem}
.auth-link a{color:#3498db}


.about-body-text{
        width: 80%;
    /* display: flex; */
    padding: 30px;
    position: relative;
    left: 50%;
    margin-left: -40%;
}

/* Forms */
.form-group{margin-bottom:.9rem}
.form-group label{display:block;font-weight:600;margin-bottom:5px;color:#444;font-size:.88rem}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:9px 12px;border:1px solid #ccc;border-radius:7px;font-size:.95rem;transition:border .2s;-webkit-appearance:none;appearance:none;background:#fff;color:#333}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#3498db}
.form-group textarea{resize:vertical;min-height:80px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.filter-row{display:flex;flex-wrap:wrap;gap:.8rem;margin-bottom:1rem;align-items:center}
.filter-row select{padding:8px 12px;border:1px solid #ccc;border-radius:7px;font-size:.9rem;background:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center}
.submit-form{margin-top:1.2rem}

/* Buttons */
.btn{display:inline-block;padding:9px 20px;border:none;border-radius:7px;cursor:pointer;font-size:.95rem;font-weight:500;transition:all .2s;text-align:center;-webkit-tap-highlight-color:transparent}
.btn-primary{background:#3498db;color:#fff}
.btn-primary:hover{background:#217dbb}
.btn-secondary{background:#6c757d;color:#fff}
.btn-secondary:hover{background:#545b62}
.btn-lg{font-size:1.1rem;padding:13px 30px}
.btn-sm{display:inline-block;padding:5px 12px;border:1px solid #ddd;border-radius:5px;cursor:pointer;background:#f8f9fa;color:#333;font-size:.82rem;-webkit-tap-highlight-color:transparent}
.btn-sm:hover{background:#e2e6ea}
.btn-block{width:100%}
.btn-sm.btn-success{background:#27ae60;color:#fff;border-color:#27ae60}
.btn-sm.btn-warning{background:#f39c12;color:#fff;border-color:#f39c12}
.btn-sm.btn-danger{background:#e74c3c;color:#fff;border-color:#e74c3c}
.back-btn{margin-bottom:1rem}

/* Badges */
.badge{display:inline-block;padding:3px 9px;border-radius:20px;font-size:.76rem;font-weight:600;white-space:nowrap}
.badge-pending{background:#fff3cd;color:#856404}
.badge-approved{background:#d1e7dd;color:#0f5132}
.badge-blocked{background:#f8d7da;color:#842029}
.badge-submitted{background:#cfe2ff;color:#084298}
.badge-reviewed{background:#d1e7dd;color:#0f5132}
.badge-returned{background:#fff3cd;color:#856404}
.badge-active{background:#d1e7dd;color:#0f5132}
.badge-inactive,.badge-hidden{background:#e2e3e5;color:#383d41}
.badge-draft{background:#e2e3e5;color:#383d41}
.badge-published{background:#d1e7dd;color:#0f5132}

/* Alerts */
.alert{padding:.85rem 1rem;border-radius:7px;margin-bottom:1rem;font-size:.9rem}
.alert-success{background:#d1e7dd;color:#0f5132;border:1px solid #badbcc}
.alert-error{background:#f8d7da;color:#842029;border:1px solid #f5c2c7}

/* Footer */
footer{background:#2c3e50;color:#aaa;text-align:center;padding:1.2rem 16px;font-size:.88rem}

/* Student stats */
.stats-row{display:flex;gap:1rem;margin:1.2rem 0;flex-wrap:wrap}
.stat-card{background:#fff;border-radius:10px;padding:1.2rem 1.5rem;text-align:center;box-shadow:0 2px 10px rgba(0,0,0,.08);min-width:130px;flex:1}
.stat-num{font-size:2.4rem;font-weight:700;color:#3498db}
.stat-label{color:#777;font-size:.88rem;margin-top:.3rem}

/* Progress */
.progress-bar{height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden;margin:.8rem 0 .4rem}
.progress-fill{height:100%;background:linear-gradient(90deg,#3498db,#2980b9);border-radius:4px;transition:width .4s}
.progress-text{font-size:.84rem;color:#666;margin-bottom:.8rem}

/* Tabs */
.tabs{display:flex;border-bottom:2px solid #e0e0e0;margin-bottom:1.2rem}
.tab-btn{flex:1;padding:.7rem .5rem;background:none;border:none;cursor:pointer;font-size:.92rem;color:#666;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .2s}
.tab-btn.active{color:#3498db;border-bottom-color:#3498db;font-weight:600}

/* Cards */
.card{background:#fff;border-radius:10px;padding:1.2rem;box-shadow:0 2px 10px rgba(0,0,0,.07);margin-bottom:1rem}
.card h3{margin-bottom:.4rem;font-size:1rem}
.text-muted{color:#666;font-size:.9rem;margin-bottom:.5rem}
.lesson-content{background:#f8f9fa;border-left:3px solid #3498db;padding:.9rem 1rem;margin:.9rem 0;border-radius:0 8px 8px 0;color:#444;font-size:.92rem}
.grade-box{background:#d1e7dd;border-radius:7px;padding:.75rem 1rem;margin:.8rem 0;font-size:.92rem}
.info-text{color:#666;font-style:italic;margin-top:.8rem;font-size:.9rem}
.success-text{color:#27ae60;font-weight:600;margin-top:.8rem}

/* Modals — bottom sheet on mobile */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;z-index:1000;padding:0}
.modal-box{background:#fff;border-radius:14px 14px 0 0;padding:1.5rem;width:100%;max-height:90vh;overflow-y:auto}
.modal-box h3{margin-bottom:1rem;font-size:1.2rem}

/* Admin layout */
.admin-wrap{display:flex;min-height:100vh;position:relative}
.admin-burger{display:none;position:fixed;top:12px;left:12px;z-index:400;background:#2c3e50;color:#fff;border:none;border-radius:7px;width:42px;height:42px;font-size:1.3rem;cursor:pointer;-webkit-tap-highlight-color:transparent}
.admin-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:299}
.admin-overlay.show{display:block}
.admin-nav{width:220px;background:#2c3e50;color:#fff;position:fixed;top:0;left:0;height:100vh;overflow-y:auto;z-index:300;display:flex;flex-direction:column;flex-shrink:0}
.admin-logo{padding:1rem;font-size:1rem;font-weight:700;border-bottom:1px solid #34495e}
.admin-nav ul{list-style:none;padding:.4rem 0;flex:1}
.admin-nav li a{display:block;padding:.68rem 1rem;color:#bdc3c7;font-size:.88rem;transition:background .2s,color .2s}
.admin-nav li a:hover{background:#34495e;color:#fff}
.admin-nav li a.active{background:#3498db;color:#fff;font-weight:600}
.admin-lang{padding:.8rem 1rem;border-top:1px solid #34495e}
.admin-content{flex:1;margin-left:220px;padding:1.5rem;min-height:100vh;background:#f5f7fa}
.admin-content h1{margin-bottom:1.2rem;color:#2c3e50;font-size:1.5rem}
.admin-content h2{margin:1.2rem 0 .7rem;color:#34495e;font-size:1.05rem;border-bottom:1px solid #e0e0e0;padding-bottom:.4rem}

/* Admin stats */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem}
.stats-grid .stat-card{min-width:unset}
.stats-grid .stat-card.pending .stat-num{color:#e67e22}

/* Tables */
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.07)}
.tbl{width:100%;background:#fff;border-collapse:collapse;white-space:nowrap}
.tbl thead{background:#2c3e50;color:#fff}
.tbl th,.tbl td{padding:.75rem .9rem;text-align:left;font-size:.86rem;border-bottom:1px solid #e9ecef}
.tbl tbody tr:hover{background:#f8f9fa}
.tbl .actions{white-space:nowrap}
.tbl-empty{text-align:center;color:#999;padding:1.5rem}

/* Benefit rows */
.benefit-row{display:flex;gap:6px;align-items:center;margin-bottom:8px;flex-wrap:wrap}
.benefit-row input{flex:1;min-width:80px}

/* ── Tablet ≤900px ── */
@media(max-width:900px){
  .admin-nav{left:-220px;transition:left .28s ease}
  .admin-nav.open{left:0}
  .admin-content{margin-left:0;padding:1rem;padding-top:60px}
  .admin-burger{display:flex;align-items:center;justify-content:center}
  .stats-grid{grid-template-columns:1fr 1fr}
}

/* ── Mobile ≤600px ── */
@media(max-width:600px){
  .burger{display:flex}
  .nav-links{display:none;flex-direction:column;align-items:stretch;position:absolute;top:56px;left:0;right:0;background:#2c3e50;padding:.5rem 0;z-index:199;border-top:1px solid #34495e}
  .nav-links.open{display:flex}
  .nav-links a{padding:.7rem 1rem;margin:0;border-radius:0;font-size:.95rem;min-height:44px;display:flex;align-items:center}
  .nav-inner{position:relative}
  .hero{padding:2.5rem 16px}
  .section{padding:2rem 0}
  .auth-box{padding:1.5rem 1rem;border-radius:10px}
  .form-row{grid-template-columns:1fr}
  .card{padding:1rem}
  .modal{align-items:flex-end}
  .modal-box{border-radius:14px 14px 0 0;max-height:85vh}
  .tbl th,.tbl td{padding:.6rem .7rem;font-size:.82rem}
  .stats-grid{grid-template-columns:1fr 1fr;gap:.75rem}
  .admin-content{padding:.9rem;padding-top:58px}
  .tab-btn{font-size:.84rem;padding:.6rem .3rem;min-height:44px;display:flex;align-items:center;justify-content:center}
  .stat-num{font-size:2rem}
  .actions .btn-sm{margin-bottom:4px}
  .filter-row{flex-direction:column;align-items:stretch}
  .filter-row select,.filter-row .btn{width:100%;min-height:44px}
  .btn-row{flex-direction:column}
  .btn-row .btn,.btn-row .btn-sm{width:100%;text-align:center;justify-content:center}
  .back-btn{display:block;text-align:center}
  .btn,.btn-sm{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .admin-nav li a{min-height:44px;display:flex;align-items:center}
}

/* ── Very small ≤360px ── */
@media(max-width:360px){
  .logo{font-size:1rem}
  .courses-grid,.benefits-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr}
}

/* Desktop modal (centered) */
@media(min-width:601px){
  .modal{align-items:center;padding:1rem}
  .modal-box{border-radius:14px;max-width:580px;max-height:90vh}
}

/* ── Quiz & Assignment styles ─────────────────────────────────────────── */
.badge-quiz { background:#e8f4fd; color:#1a7abf; }
.badge-lab  { background:#fef9e7; color:#b7950b; }

.asgn-header { display:flex; align-items:center; gap:.6rem; margin-bottom:.4rem; flex-wrap:wrap; }
.asgn-header h3 { margin:0; }

.template-box { margin-top:1.5rem; padding:1rem 1.2rem; background:#fff;
                border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.07); }
.template-box h3 { margin-bottom:.4rem; font-size:1rem; }
.template-box p  { color:#666; font-size:.88rem; margin-bottom:.8rem; }

/* Quiz form */
.quiz-header   { margin-bottom:1.5rem; }
.best-result   { display:flex; align-items:center; gap:.8rem; margin-top:.8rem;
                 padding:.7rem 1rem; background:#fff; border-radius:8px;
                 box-shadow:0 2px 8px rgba(0,0,0,.07); flex-wrap:wrap; }
.best-label    { font-weight:600; color:#555; }
.best-score    { font-size:1.2rem; font-weight:700; color:#2c3e50; }
.best-attempts { color:#999; font-size:.88rem; }

.pct-color-green  { color:#27ae60; font-weight:700; }
.pct-color-orange { color:#f39c12; font-weight:700; }
.pct-color-red    { color:#e74c3c; font-weight:700; }

/* Result box */
.quiz-result-box { text-align:center; padding:2rem 1rem; border-radius:14px;
                   margin-bottom:1.5rem; }
.pct-bg-green  { background:linear-gradient(135deg,#d5f5e3,#abebc6); }
.pct-bg-orange { background:linear-gradient(135deg,#fef9e7,#fdebd0); }
.pct-bg-red    { background:linear-gradient(135deg,#fdedec,#fadbd8); }
.result-score  { font-size:3rem; font-weight:800; color:#2c3e50; }
.result-pct    { font-size:2rem; font-weight:700; margin:.3rem 0; }
.result-label  { font-size:1.3rem; }

/* Quiz question */
.quiz-form     { margin-top:1rem; }
.quiz-question { background:#fff; border-radius:10px; padding:1.2rem;
                 margin-bottom:1rem; box-shadow:0 2px 8px rgba(0,0,0,.07); }
.q-header      { display:flex; justify-content:space-between; align-items:center;
                 margin-bottom:.8rem; }
.q-num         { display:inline-flex; align-items:center; justify-content:center;
                 width:32px; height:32px; border-radius:50%; background:#3498db;
                 color:#fff; font-weight:700; font-size:.9rem; flex-shrink:0; }
.q-weight      { font-size:.8rem; color:#999; background:#f0f0f0;
                 padding:2px 8px; border-radius:12px; }
.q-text        { font-size:1rem; font-weight:600; color:#2c3e50; margin-bottom:.8rem;
                 line-height:1.5; }
.q-options     { display:flex; flex-direction:column; gap:.5rem; }
.q-option      { display:flex; align-items:center; gap:.8rem; padding:.7rem 1rem;
                 border:2px solid #e0e0e0; border-radius:8px; cursor:pointer;
                 transition:all .2s; -webkit-tap-highlight-color:transparent; }
.q-option:hover { border-color:#3498db; background:#f0f8ff; }
.q-option.active { border-color:#3498db; background:#ebf5fb; }
.q-option input[type=radio] { width:18px; height:18px; flex-shrink:0; cursor:pointer; }
.opt-letter-badge { display:inline-flex; align-items:center; justify-content:center;
                    width:28px; height:28px; border-radius:50%; background:#ecf0f1;
                    font-weight:700; font-size:.85rem; flex-shrink:0; }
.q-option.active .opt-letter-badge { background:#3498db; color:#fff; }
.opt-text      { flex:1; font-size:.93rem; }

.quiz-footer   { display:flex; align-items:center; justify-content:space-between;
                 flex-wrap:wrap; gap:1rem; margin-top:1.5rem; padding:1rem;
                 background:#fff; border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,.07); }
.quiz-progress { font-size:.95rem; color:#555; }

/* Review */
.quiz-review-item { background:#fff; border-radius:10px; padding:1rem;
                    margin-bottom:.8rem; border-left:4px solid #e0e0e0; }
.review-ok    { border-left-color:#27ae60; }
.review-wrong { border-left-color:#e74c3c; }
.review-q     { display:flex; gap:.6rem; font-weight:600; margin-bottom:.6rem; }
.review-num   { color:#3498db; flex-shrink:0; }
.review-answers { display:flex; flex-direction:column; gap:.3rem; margin-bottom:.5rem; }
.review-opt   { display:flex; align-items:center; gap:.6rem; padding:.4rem .7rem;
                border-radius:6px; background:#f8f9fa; font-size:.9rem; }
.opt-correct  { background:#d5f5e3; }
.opt-wrong    { background:#fadbd8; }
.opt-icon     { font-weight:700; margin-left:auto; flex-shrink:0; }
.review-explanation { font-size:.88rem; color:#666; background:#fef9e7;
                      padding:.5rem .8rem; border-radius:6px; margin-top:.4rem; }

/* History */
.quiz-history summary { cursor:pointer; font-weight:600; padding:.5rem 0;
                        color:#3498db; font-size:.95rem; }

@media(max-width:600px) {
  .quiz-footer { flex-direction:column; align-items:stretch; }
  .quiz-footer .btn { width:100%; }
  .result-score { font-size:2.2rem; }
  .result-pct   { font-size:1.5rem; }
}

/* ── Student profile ──────────────────────────────────────────────────── */
.student-link { color: #3498db; font-weight: 600; text-decoration: none; }
.student-link:hover { text-decoration: underline; }

.stat-mini { font-size: .9rem; color: #666; }

.profile-card {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); margin-bottom: 1.5rem;
}
.profile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}
.profile-label { font-size: .8rem; color: #999; font-weight: 600;
                 text-transform: uppercase; letter-spacing: .04em; }

.profile-section {
  background: #fff; border-radius: 12px; padding: 1.4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07); margin-bottom: 1.2rem;
}
.profile-section-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.profile-section-header h2 { margin: 0; font-size: 1.15rem; color: #2c3e50; }

.avg-badge {
  font-size: 1.1rem; font-weight: 800;
  background: #f8f9fa; padding: 4px 14px;
  border-radius: 20px;
}

.section-sub-h3 {
  font-size: .9rem; color: #666; text-transform: uppercase;
  letter-spacing: .05em; margin: 1rem 0 .5rem;
  border-bottom: 1px solid #e0e0e0; padding-bottom: .3rem;
}

.lessons-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.lesson-chip {
  background: #eaf3fb; color: #2471a3; border-radius: 20px;
  padding: 4px 12px; font-size: .84rem;
}

@media (max-width: 600px) {
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-section { padding: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════════ */

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a1a2e;
  min-height: 480px;
  user-select: none;
}

/* Each slide */
.slide {
  display: none;
  position: relative;
  width: 100%;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;  /* fallback when no image */
  animation: slideIn .6s ease;
}
.slide.active { display: flex; align-items: center; justify-content: center; }

@keyframes slideIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* Gradient overlay when no image */
.slide:not([style*="background-image"]) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.slide-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  line-height: 1.2;
}

.slide-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.slide-btn {

    display: inline-block;
    background: #ed8b09;
    color: #f6f7f8;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 36px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
    transition: transform .2s, box-shadow .2s, background .2s;
    text-decoration: none;
    text-transform: uppercase;
}
.nav-center{
    color: #f59c26;
    font-size: 1.5em;
    font-weight: 700;
    font-family: trebuchet MS;
}
.slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
  background: #0941e1;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}
.slider-arrow:hover { background: rgba(255,255,255,.35); transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 18px; }
.slider-next { right: 18px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Mobile */
@media (max-width: 600px) {
  .slider, .slide { min-height: 340px; }
  .slider-arrow { width: 40px; height: 40px; font-size: 1.6rem; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .slide-content { padding: 2rem 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════ */

.about-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    overflow: hidden;
    justify-content: center;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.50);
}
.about-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
}
.about-hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.about-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .92;
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
  line-height: 1.7;
}

/* Stats bar */
.about-stats-bar {
  background: #2c3e50;
  padding: 2rem 0;
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
    padding: 20px 0 40px 0px;
}
.about-stat-value {
    font-size: 3.4rem;
    /* font-weight: 800; */
    color: #3498db;
    line-height: 1;
}
.about-stat-label {
  font-size: .9rem;
  color: #bdc3c7;
  margin-top: .4rem;
}

/* Mission / Vision grid */
.about-mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.about-mv-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  text-align: center;
}
.about-mv-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.about-mv-card h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: .8rem;
}
.about-mv-card p {
  color: #666;
  line-height: 1.7;
}

/* Logo in navbar */
.logo-img {
  height: 38px;
  max-width: 180px;
  object-fit: contain;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .about-hero { min-height: 240px; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .about-mv-grid { grid-template-columns: 1fr; }
  .logo-img { height: 30px; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Hero: full-width image, title only ── */
.about-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1d4ed8 100%);
  overflow: hidden;
  text-align: center;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 50, 0.55);
  z-index: 1;
}
.about-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.about-hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
  margin-bottom: .8rem;
}
.about-hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,.88);
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  margin: 0;
}

/* ── 2. Body text: white bg, clean typography ── */
.about-body-section {
  background: #fff;
  padding: 4rem 0 3rem;
}
.about-body-text {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #374151;
    text-align: left;
    position: relative;
    margin-left: -40%;
}
.about-body-text p + p,
.about-body-text br + br { margin-top: .6rem; }
.about-body-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── 3. Stats: blue gradient, white ── */
.about-stats-section {
  background: linear-gradient(120deg, #1d4ed8 0%, #0284c7 55%, #38bdf8 100%);
  padding: 3.5rem 0;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.about-stat-value {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.about-stat-label {
  font-size: .95rem;
  color: rgba(255,255,255,.82);
  margin-top: .5rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
}

/* ── 4. Mission & Vision: light grey ── */
.about-mv-section {
  background: #f0f4ff;
  padding: 4rem 0;
}
.about-mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.about-mv-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.2rem 2rem;
  box-shadow: 0 4px 24px rgba(29,78,216,.1);
  text-align: center;
  border-top: 4px solid #3b82f6;
  transition: transform .25s, box-shadow .25s;
}
.about-mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(29,78,216,.17);
}
.about-mv-icon { font-size: 3.2rem; margin-bottom: 1rem; }
.about-mv-card h2 { font-size: 1.3rem; color: #1e3a8a; margin-bottom: .8rem; }
.about-mv-card p  { color: #555; line-height: 1.75; font-size: .97rem; }

/* ── Logo in navbar ── */
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-img  { height: 38px; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.logo-text { font-size: 1.15rem; font-weight: 700; color: #fff; white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .about-hero         { min-height: 300px; }
  .about-hero-content { padding: 2.5rem 1rem; }
  .about-body-section { padding: 2.5rem 0 2rem; }
  .about-body-text    { font-size: 1rem; }
  .about-stats-grid   { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .about-stat-value   { font-size: 2.2rem; }
  .about-mv-grid      { grid-template-columns: 1fr; }
  .logo-img  { height: 30px; }
  .logo-text { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   REGISTRATION PAGE — 2-column layout
   ═══════════════════════════════════════════════════════════ */

.reg-page-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
}

.reg-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.5rem 2rem;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 16px 60px rgba(0,0,0,.22);
}

.reg-title {
  font-size: 1.6rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1.4rem;
}

/* Two columns */
.reg-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

/* Left column stretches so agree stays at bottom */
.reg-col {
  display: flex;
  flex-direction: column;
}

.reg-col-title {
  font-size: .9rem;
  font-weight: 700;
  color: #3498db;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #ebf5fb;
}
.reg-col-title small {
  font-size: .78rem;
  font-weight: 400;
  color: #aaa;
  text-transform: none;
  letter-spacing: 0;
  margin-left: .3rem;
}

/* Fields */
.reg-field {
  margin-bottom: .9rem;
}
.reg-field label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}
.reg-field input[type=text],
.reg-field input[type=email],
.reg-field input[type=password],
.reg-field input[type=number] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: .95rem;
  transition: border .2s;
  box-sizing: border-box;
  background: #fff;
  color: #333;
  -webkit-appearance: none;
}
.reg-field input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,.12);
}

/* Captcha */
.captcha-field { margin-top: .4rem; }
.captcha-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .3rem;
}
.captcha-eq {
display: inline-flex;
    align-items: center;
    /* background: #2c3e50; */
    color: #666564;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    letter-spacing: .08em;
    white-space: nowrap;
}
.captcha-input {
  width: 100px !important;
  text-align: center;
  font-size: 1.1rem !important;
  font-weight: 700;
}

/* Course checklist */
.courses-check-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  padding: .5rem .6rem;
  background: #f8fafc;
  flex: 1;
}
.course-check-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .5rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s;
  font-weight: normal;
  margin: 0;
}
.course-check-item:hover { background: #ebf5fb; }
.course-check-item input[type=checkbox] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #3498db;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}
.course-check-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.course-check-title { font-weight: 600; font-size: .9rem; color: #2c3e50; }
.course-check-meta  { font-size: .76rem; color: #999; }

/* Agree checkbox — in left column */
.reg-agree {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  cursor: pointer;
  font-weight: normal;
}
.reg-agree-cb {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  flex-shrink: 0;
  margin-top: .15rem;
  cursor: pointer;
  accent-color: #3498db;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}
.reg-agree-text {
  font-size: .88rem;
  color: #555;
  line-height: 1.55;
}
.reg-agree-text a {
  color: #3498db;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bottom: centered submit + links */
.reg-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}
.reg-submit {
  width: 100%;
  max-width: 320px;
  font-size: 1.05rem;
  padding: .9rem;
  margin: 0 auto .8rem;
  display: block;
}

/* Legal links */
.reg-legal-links {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
  font-size: .8rem;
  color: #aaa;
}
.reg-legal-links a { color: #3498db; }
.reg-legal-links span { color: #ddd; }

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
  .reg-box  { padding: 1.5rem 1rem; border-radius: 10px; }
  .reg-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .courses-check-list { max-height: 200px; }
  .captcha-row { flex-wrap: wrap; }
  .reg-submit { max-width: 100%; }
}