/* =============================================
   NEXA SKILLS — MAIN STYLESHEET
   nexaskills.lk
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1D9E75;
  --primary-dark: #0F6E56;
  --primary-darker: #085041;
  --primary-light: #E1F5EE;
  --primary-mid: #5DCAA5;
  --accent: #378ADD;
  --accent-light: #E6F1FB;
  --accent-dark: #185FA5;
  --text: #2C2C2A;
  --text-muted: #5F5E5A;
  --text-light: #888780;
  --bg: #ffffff;
  --bg-light: #F8FAF9;
  --bg-tertiary: #F1EFE8;
  --border: rgba(0,0,0,0.09);
  --border-med: rgba(0,0,0,0.14);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --font: 'Sora', sans-serif;
  --font-serif: 'Lora', serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
ul { list-style: none; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* BUTTONS */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; font-family:var(--font); font-weight:500; border:none; cursor:pointer; transition:all 0.2s; text-decoration:none; border-radius:var(--radius-sm); }
.btn-sm { font-size:13px; padding:8px 18px; }
.btn-md { font-size:14px; padding:11px 22px; }
.btn-lg { font-size:15px; padding:14px 32px; }
.btn-primary { background:var(--primary); color:white; }
.btn-primary:hover { background:var(--primary-dark); transform:translateY(-1px); box-shadow:0 4px 12px rgba(29,158,117,0.3); }
.btn-ghost { background:transparent; color:var(--text); border:0.5px solid var(--border-med); }
.btn-ghost:hover { background:var(--bg-tertiary); }
.btn-outline { background:transparent; color:var(--text); border:1.5px solid var(--border-med); }
.btn-outline:hover { border-color:var(--primary); color:var(--primary); }
.btn-white { background:white; color:var(--primary-dark); }
.btn-white:hover { background:var(--primary-light); }
.btn-outline-white { background:transparent; color:white; border:1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background:rgba(255,255,255,0.1); }
.btn-danger { background:#E24B4A; color:white; }
.btn-danger:hover { background:#A32D2D; }

/* ANNOUNCEMENT BAR */
.announcement-bar { background:var(--primary); color:white; text-align:center; padding:9px 20px; font-size:13px; }
.announcement-bar a { color:white; font-weight:600; text-decoration:underline; }

/* NAVBAR */
.navbar { display:flex; align-items:center; justify-content:space-between; padding:0 40px; height:68px; background:rgba(255,255,255,0.96); backdrop-filter:blur(12px); border-bottom:0.5px solid var(--border); position:sticky; top:0; z-index:1000; }
.logo { display:flex; align-items:center; gap:10px; }
.logo-icon { width:36px; height:36px; background:linear-gradient(135deg,var(--primary),var(--primary-dark)); border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.logo-icon svg { width:20px; height:20px; fill:white; }
.logo-text { font-size:18px; font-weight:600; color:var(--text); }
.logo-text span { color:var(--primary); }
.nav-links { display:flex; align-items:center; gap:32px; }
.nav-links a { font-size:14px; color:var(--text-muted); transition:color 0.2s; }
.nav-links a:hover { color:var(--primary); }
.nav-actions { display:flex; align-items:center; gap:10px; }
.ssl-badge { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--primary-dark); background:var(--primary-light); padding:5px 11px; border-radius:20px; font-weight:500; }
.ssl-badge svg { width:11px; height:11px; stroke:var(--primary-dark); fill:none; stroke-width:2.5; }
.menu-toggle { display:none; background:none; border:0.5px solid var(--border); padding:0; border-radius:8px; flex-direction:column; gap:4px; width:38px; height:38px; align-items:center; justify-content:center; cursor:pointer; }
.menu-toggle span { display:block; width:18px; height:2px; background:var(--text); transition:all 0.3s; border-radius:2px; pointer-events:none; }
.menu-toggle.open span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity:0; width:0; }
.menu-toggle.open span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
.mobile-nav { display:none; background:white; border-bottom:0.5px solid var(--border); padding:8px 16px 20px; position:sticky; top:58px; z-index:999; box-shadow:0 8px 24px rgba(0,0,0,0.12); }
.mobile-nav ul { display:flex; flex-direction:column; gap:2px; }
.mobile-nav li a { font-size:15px; font-weight:500; color:var(--text-muted); padding:12px 8px; display:flex; align-items:center; gap:8px; border-radius:8px; transition:all 0.15s; }
.mobile-nav li a:hover, .mobile-nav li a:active { color:var(--primary); background:var(--primary-light); }
.mobile-nav-btns { display:flex; gap:8px; padding-top:8px; }

/* HERO */
.hero { padding:80px 40px 64px; background:linear-gradient(135deg,#f6fffe 0%,#e8f8f3 40%,#eef5fc 100%); position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; top:-100px; right:-100px; width:500px; height:500px; background:radial-gradient(circle,rgba(29,158,117,0.08) 0%,transparent 70%); pointer-events:none; }
.hero-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:white; border:0.5px solid var(--border-med); color:var(--primary-dark); font-size:12px; font-weight:500; padding:6px 14px; border-radius:20px; margin-bottom:20px; box-shadow:var(--shadow-sm); }
.pulse-dot { width:7px; height:7px; background:var(--primary); border-radius:50%; animation:pulse 2s infinite; flex-shrink:0; }
.hero h1 { font-family:var(--font-serif); font-size:42px; line-height:1.2; color:var(--text); margin-bottom:18px; font-weight:600; animation:fadeUp 0.6s ease both; }
.highlight { color:var(--primary); }
.hero-desc { font-size:15px; color:var(--text-muted); line-height:1.75; margin-bottom:32px; max-width:480px; animation:fadeUp 0.6s 0.1s ease both; }
.hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:40px; animation:fadeUp 0.6s 0.2s ease both; }
.hero-stats { display:flex; align-items:center; gap:20px; padding-top:32px; border-top:0.5px solid var(--border); animation:fadeUp 0.6s 0.3s ease both; flex-wrap:wrap; }
.stat-item {}
.stat-num { font-size:24px; font-weight:600; color:var(--text); }
.stat-num span { color:var(--primary); }
.stat-label { font-size:12px; color:var(--text-light); }
.stat-divider { width:1px; height:32px; background:var(--border); }
.hero-visual { position:relative; animation:float 4s ease-in-out infinite; }
.hero-card { background:white; border-radius:20px; border:0.5px solid var(--border); padding:24px; box-shadow:var(--shadow-lg); }
.hero-card-thumb { width:100%; height:140px; background:linear-gradient(135deg,var(--primary),var(--accent)); border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.hero-card-thumb svg { width:48px; height:48px; fill:rgba(255,255,255,0.9); }
.course-tag { font-size:11px; background:var(--primary-light); color:var(--primary-dark); padding:3px 10px; border-radius:5px; display:inline-block; margin-bottom:8px; font-weight:500; }
.hero-card-title { font-size:15px; font-weight:500; margin-bottom:4px; }
.hero-card-meta { font-size:12px; color:var(--text-light); margin-bottom:12px; }
.hero-card-footer { display:flex; justify-content:space-between; align-items:center; }
.hero-card-price { font-size:20px; font-weight:600; color:var(--primary); }
.hero-card-rating { font-size:12px; color:var(--text-muted); }
.floating-card { position:absolute; background:white; border-radius:12px; border:0.5px solid var(--border); padding:10px 16px; font-size:12px; font-weight:500; display:flex; align-items:center; gap:8px; box-shadow:var(--shadow); white-space:nowrap; z-index:10; }
.fc-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.fc-dot.green { background:var(--primary); }
.fc-dot.blue { background:var(--accent); }
.fc-top { top:-16px; right:-8px; }
.fc-bottom { bottom:24px; left:-24px; }

/* TRUST BAR */
.trust-bar { background:white; border-top:0.5px solid var(--border); border-bottom:0.5px solid var(--border); padding:16px 40px; }
.trust-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:center; gap:24px; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap:7px; font-size:13px; color:var(--text-muted); }
.trust-item svg { width:15px; height:15px; stroke:var(--primary); fill:none; stroke-width:2; flex-shrink:0; }
.trust-div { width:1px; height:20px; background:var(--border); }

/* SECTIONS */
.section { padding:80px 40px; }
.section.bg-light { background:var(--bg-light); }
.section-inner { max-width:1100px; margin:0 auto; }
.section-header { text-align:center; margin-bottom:48px; }
.section-tag { font-size:11px; color:var(--primary); font-weight:600; text-transform:uppercase; letter-spacing:2px; margin-bottom:10px; }
.section-title { font-family:var(--font-serif); font-size:32px; color:var(--text); margin-bottom:12px; }
.section-sub { font-size:15px; color:var(--text-muted); max-width:520px; margin:0 auto; line-height:1.7; }

/* CATEGORIES */
.cat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.cat-card,.cat-item { background:white; border:0.5px solid var(--border); border-radius:var(--radius); padding:28px 20px; text-align:center; cursor:pointer; transition:all 0.2s; display:block; text-decoration:none; color:var(--text); }
.cat-card:hover,.cat-item:hover { border-color:var(--primary); transform:translateY(-3px); box-shadow:var(--shadow); }
.cat-icon { width:64px; height:64px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.cat-icon svg { width:24px; height:24px; }
.ci-green { background:var(--primary-light); } .ci-green svg { stroke:var(--primary-dark); }
.ci-purple { background:#EEEDFE; } .ci-purple svg { stroke:#534AB7; }
.ci-blue { background:var(--accent-light); } .ci-blue svg { stroke:var(--accent-dark); }
.ci-pink { background:#FBEAF0; } .ci-pink svg { stroke:#993556; }
.ci-coral { background:#FAECE7; } .ci-coral svg { stroke:#993C1D; }
.ci-amber { background:#FAEEDA; } .ci-amber svg { stroke:#854F0B; }
.ci-teal { background:var(--primary-light); } .ci-teal svg { stroke:var(--primary-darker); }
.ci-gray { background:var(--bg-tertiary); } .ci-gray svg { stroke:#444441; }
.cat-name { font-size:14px; font-weight:500; margin-bottom:4px; }
.cat-count { font-size:12px; color:var(--text-light); }

/* COURSES */
.courses-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.course-card { background:white; border:0.5px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:all 0.25s; }
.course-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--border-med); }
.course-thumb { height:160px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.course-thumb svg { width:40px; height:40px; fill:rgba(255,255,255,0.9); }
.thumb-green { background:linear-gradient(135deg,#1D9E75,#5DCAA5); }
.thumb-purple { background:linear-gradient(135deg,#534AB7,#7F77DD); }
.thumb-blue { background:linear-gradient(135deg,#378ADD,#85B7EB); }
.thumb-coral { background:linear-gradient(135deg,#D85A30,#F0997B); }
.thumb-teal { background:linear-gradient(135deg,#0F6E56,#1D9E75); }
.thumb-amber { background:linear-gradient(135deg,#BA7517,#EF9F27); }
.thumb-pink { background:linear-gradient(135deg,#993556,#ED93B1); }
.thumb-gray { background:linear-gradient(135deg,#5F5E5A,#888780); }
.course-badge { position:absolute; top:12px; left:12px; font-size:10px; font-weight:600; padding:3px 10px; border-radius:5px; text-transform:uppercase; letter-spacing:0.5px; }
.badge-hot { background:#FAECE7; color:#993C1D; }
.badge-new { background:var(--accent-light); color:var(--accent-dark); }
.badge-popular { background:var(--primary-light); color:var(--primary-dark); }
.course-body { padding:18px; }
.course-cat { font-size:11px; color:var(--primary); font-weight:500; margin-bottom:6px; }
.course-title { font-size:14px; font-weight:500; line-height:1.4; margin-bottom:10px; color:var(--text); }
.course-title:hover { color:var(--primary); }
.course-meta { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text-light); margin-bottom:10px; flex-wrap:wrap; }
.lang-badges { display:flex; gap:6px; margin-bottom:12px; flex-wrap:wrap; }
.lang-badge { font-size:10px; background:var(--bg-tertiary); color:var(--text-muted); padding:2px 8px; border-radius:4px; border:0.5px solid var(--border); }
.course-footer { display:flex; align-items:center; justify-content:space-between; padding-top:12px; border-top:0.5px solid var(--border); margin-bottom:12px; }
.price-now { font-size:18px; font-weight:600; color:var(--primary); }
.price-old { font-size:12px; color:var(--text-light); text-decoration:line-through; margin-left:6px; }
.rating { font-size:12px; color:var(--text-muted); }
.btn-enroll { display:block; width:100%; padding:10px; background:var(--primary-light); color:var(--primary-dark); border:none; border-radius:var(--radius-sm); font-size:13px; font-weight:500; font-family:var(--font); cursor:pointer; transition:all 0.2s; text-align:center; }
.btn-enroll:hover { background:var(--primary); color:white; }

/* STEPS */
.steps-grid { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:0; align-items:start; }
.step-item { text-align:center; padding:0 16px; }
.step-num { width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:white; font-size:18px; font-weight:600; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; box-shadow:0 4px 12px rgba(29,158,117,0.3); }
.step-icon { width:56px; height:56px; background:var(--primary-light); border-radius:16px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.step-icon svg { width:26px; height:26px; stroke:var(--primary-dark); }
.step-title { font-size:16px; font-weight:500; margin-bottom:8px; }
.step-desc { font-size:13px; color:var(--text-muted); line-height:1.6; margin-bottom:12px; }
.step-link { font-size:13px; color:var(--primary); font-weight:500; }
.step-arrow { font-size:28px; color:var(--primary-light); margin-top:60px; padding:0 8px; }

/* FEATURES */
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.feature-card { background:white; border:0.5px solid var(--border); border-radius:var(--radius); padding:28px 24px; transition:all 0.2s; }
.feature-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.feature-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.feature-icon svg { width:22px; height:22px; }
.fi-green { background:var(--primary-light); } .fi-green svg { stroke:var(--primary-dark); }
.fi-blue { background:var(--accent-light); } .fi-blue svg { stroke:var(--accent-dark); }
.fi-purple { background:#EEEDFE; } .fi-purple svg { stroke:#534AB7; fill:#534AB7; }
.fi-coral { background:#FAECE7; } .fi-coral svg { stroke:#993C1D; }
.fi-amber { background:#FAEEDA; } .fi-amber svg { stroke:#854F0B; }
.fi-teal { background:var(--primary-light); } .fi-teal svg { stroke:var(--primary-darker); }
.feature-card h3 { font-size:15px; font-weight:500; margin-bottom:8px; }
.feature-card p { font-size:13px; color:var(--text-muted); line-height:1.6; }

/* TESTIMONIALS */
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.testi-card { background:white; border:0.5px solid var(--border); border-radius:var(--radius); padding:24px; }
.testi-stars { color:#EF9F27; font-size:15px; margin-bottom:12px; }
.testi-text { font-size:13px; color:var(--text-muted); line-height:1.7; margin-bottom:16px; font-style:italic; }
.testi-author { display:flex; align-items:center; gap:10px; }
.testi-avatar { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; flex-shrink:0; }
.av-green { background:var(--primary-light); color:var(--primary-dark); }
.av-blue { background:var(--accent-light); color:var(--accent-dark); }
.av-purple { background:#EEEDFE; color:#534AB7; }
.testi-name { font-size:13px; font-weight:500; }
.testi-role { font-size:11px; color:var(--text-light); }

/* FAQ */
.faq-list { max-width:720px; margin:0 auto; }
.faq-item { border-bottom:0.5px solid var(--border); }
.faq-q { width:100%; background:none; border:none; text-align:left; padding:20px 0; font-size:15px; font-weight:500; color:var(--text); font-family:var(--font); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq-q:hover { color:var(--primary); }
.faq-icon { width:24px; height:24px; border-radius:50%; background:var(--bg-tertiary); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:16px; color:var(--text-muted); transition:transform 0.2s; }
.faq-a { font-size:14px; color:var(--text-muted); line-height:1.75; padding-bottom:20px; display:none; }
.faq-item.open .faq-a { display:block; animation:fadeUp 0.2s ease; }
.faq-item.open .faq-icon { transform:rotate(45deg); color:var(--primary); background:var(--primary-light); }

/* CTA */
.cta-section { background:linear-gradient(135deg,var(--primary-darker),var(--primary-dark),var(--primary)); padding:80px 40px; text-align:center; }
.cta-inner { max-width:640px; margin:0 auto; }
.cta-section h2 { font-family:var(--font-serif); font-size:36px; color:white; margin-bottom:14px; }
.cta-section p { font-size:15px; color:rgba(255,255,255,0.75); margin-bottom:32px; line-height:1.7; }
.cta-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.payment-row { margin-top:28px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.payment-label { font-size:12px; color:rgba(255,255,255,0.5); }
.pay-pill { background:rgba(255,255,255,0.12); color:rgba(255,255,255,0.9); font-size:12px; font-weight:500; padding:5px 14px; border-radius:20px; border:1px solid rgba(255,255,255,0.15); }

/* FOOTER */
.footer { background:#1a1a18; color:rgba(255,255,255,0.6); padding:60px 40px 32px; }
.footer-inner { max-width:1100px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-brand p { font-size:13px; line-height:1.7; margin-bottom:16px; }
.footer-logo { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-logo-icon { width:34px; height:34px; background:var(--primary); border-radius:9px; display:flex; align-items:center; justify-content:center; }
.footer-logo-icon svg { width:18px; height:18px; fill:white; }
.footer-logo span { font-size:16px; font-weight:600; color:white; }
.footer-logo span span { color:var(--primary-mid); }
.footer-contacts { font-size:13px; margin-bottom:16px; display:flex; flex-direction:column; gap:6px; }
.footer-ssl { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--primary-mid); background:rgba(29,158,117,0.12); padding:5px 12px; border-radius:20px; }
.footer-ssl svg { width:12px; height:12px; stroke:var(--primary-mid); fill:none; stroke-width:2; }
.footer-col-title { font-size:13px; font-weight:600; color:white; margin-bottom:16px; }
.footer-links { display:flex; flex-direction:column; gap:10px; }
.footer-links a { font-size:13px; color:rgba(255,255,255,0.5); transition:color 0.2s; }
.footer-links a:hover { color:var(--primary-mid); }
.footer-bottom { padding-top:24px; border-top:0.5px solid rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12px; }
.footer-bottom-links { display:flex; gap:16px; }
.footer-bottom-links a { font-size:12px; color:rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color:rgba(255,255,255,0.7); }

/* FORM ELEMENTS */
.form-group { margin-bottom:16px; }
.form-label { font-size:13px; font-weight:500; color:var(--text); margin-bottom:6px; display:block; }
.form-input { width:100%; padding:11px 14px; border:0.5px solid var(--border-med); border-radius:var(--radius-sm); font-size:14px; font-family:var(--font); color:var(--text); transition:border-color 0.2s; background:white; }
.form-input:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(29,158,117,0.1); }
.form-select { width:100%; padding:11px 14px; border:0.5px solid var(--border-med); border-radius:var(--radius-sm); font-size:14px; font-family:var(--font); color:var(--text); background:white; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-check { display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--text-muted); }
.form-check input { margin-top:2px; accent-color:var(--primary); }
.form-check a { color:var(--primary); }
.btn-form { width:100%; padding:13px; background:var(--primary); color:white; border:none; border-radius:var(--radius-sm); font-size:15px; font-weight:500; font-family:var(--font); cursor:pointer; transition:all 0.2s; }
.btn-form:hover { background:var(--primary-dark); }

/* AUTH PAGES */
.auth-page { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#f6fffe,#e8f8f3); padding:40px 20px; }
.auth-card { background:white; border-radius:20px; padding:40px; width:100%; max-width:460px; box-shadow:var(--shadow-lg); border:0.5px solid var(--border); }
.auth-logo { display:flex; align-items:center; gap:8px; margin-bottom:28px; justify-content:center; }
.auth-title { font-family:var(--font-serif); font-size:24px; margin-bottom:6px; text-align:center; }
.auth-sub { font-size:13px; color:var(--text-muted); margin-bottom:28px; text-align:center; }
.auth-secure { display:flex; align-items:center; justify-content:center; gap:6px; font-size:11px; color:var(--text-light); margin-top:20px; }
.auth-secure svg { width:12px; height:12px; stroke:var(--primary); fill:none; stroke-width:2; }
.auth-switch { text-align:center; font-size:13px; color:var(--text-muted); margin-top:16px; }
.auth-switch a { color:var(--primary); }
.divider { text-align:center; font-size:12px; color:var(--text-light); margin:16px 0; position:relative; }
.divider::before { content:''; position:absolute; top:50%; left:0; right:0; height:0.5px; background:var(--border); }
.divider span { background:white; padding:0 12px; position:relative; }

/* DASHBOARD */
.dashboard-layout { display:grid; grid-template-columns:240px 1fr; min-height:calc(100vh - 68px); }
.sidebar { background:white; border-right:0.5px solid var(--border); padding:24px 0; position:sticky; top:68px; height:calc(100vh - 68px); overflow-y:auto; }
.sidebar-user { padding:0 20px 20px; border-bottom:0.5px solid var(--border); margin-bottom:16px; }
.sidebar-avatar { width:48px; height:48px; border-radius:50%; background:var(--primary-light); color:var(--primary-dark); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:600; margin-bottom:10px; }
.sidebar-name { font-size:14px; font-weight:500; }
.sidebar-email { font-size:12px; color:var(--text-light); }
.sidebar-nav { padding:0 12px; }
.sidebar-nav a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:var(--radius-sm); font-size:14px; color:var(--text-muted); transition:all 0.2s; margin-bottom:2px; }
.sidebar-nav a:hover { background:var(--bg-light); color:var(--text); }
.sidebar-nav a.active { background:var(--primary-light); color:var(--primary-dark); font-weight:500; }
.sidebar-nav a svg { width:16px; height:16px; flex-shrink:0; }
.dash-content { padding:32px; background:var(--bg-light); }
.dash-header { margin-bottom:28px; }
.dash-header h1 { font-size:24px; font-weight:600; margin-bottom:4px; }
.dash-header p { font-size:14px; color:var(--text-muted); }
.dash-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px; }
.dash-stat { background:white; border:0.5px solid var(--border); border-radius:var(--radius); padding:20px; }
.dash-stat-label { font-size:12px; color:var(--text-muted); margin-bottom:6px; }
.dash-stat-num { font-size:24px; font-weight:600; color:var(--text); }
.dash-stat-num span { color:var(--primary); }

/* COURSE DETAIL */
.course-detail-layout { display:grid; grid-template-columns:1fr 360px; gap:32px; max-width:1100px; margin:40px auto; padding:0 40px; align-items:start; }
.course-sticky { position:sticky; top:90px; }
.buy-card { background:white; border:0.5px solid var(--border); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow); }
.buy-card-thumb { width:100%; height:180px; border-radius:var(--radius); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.buy-price-big { font-size:32px; font-weight:600; color:var(--primary); }
.buy-price-old { font-size:14px; color:var(--text-light); text-decoration:line-through; margin-left:8px; }
.buy-discount { font-size:12px; background:#FAECE7; color:#993C1D; padding:3px 8px; border-radius:5px; font-weight:600; margin-left:8px; }
.btn-buy-big { width:100%; padding:14px; background:var(--primary); color:white; border:none; border-radius:var(--radius-sm); font-size:16px; font-weight:600; font-family:var(--font); cursor:pointer; transition:all 0.2s; margin:16px 0 12px; display:block; text-align:center; }
.btn-buy-big:hover { background:var(--primary-dark); }
.buy-guarantee { text-align:center; font-size:12px; color:var(--text-light); margin-bottom:16px; }
.buy-features { border-top:0.5px solid var(--border); padding-top:16px; }
.buy-feature { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); padding:6px 0; }
.buy-feature svg { width:14px; height:14px; stroke:var(--primary); fill:none; stroke-width:2; flex-shrink:0; }

/* CHECKOUT */
.checkout-layout { display:grid; grid-template-columns:1fr 380px; gap:32px; max-width:1000px; margin:40px auto; padding:0 40px; align-items:start; }
.checkout-section { background:white; border:0.5px solid var(--border); border-radius:var(--radius-lg); padding:28px; margin-bottom:20px; }
.checkout-section h3 { font-size:16px; font-weight:500; margin-bottom:20px; padding-bottom:14px; border-bottom:0.5px solid var(--border); }
.payment-method { border:0.5px solid var(--border); border-radius:var(--radius-sm); padding:16px; margin-bottom:12px; cursor:pointer; transition:all 0.2s; }
.payment-method:hover { border-color:var(--primary); }
.payment-method.selected { border-color:var(--primary); background:var(--primary-light); }
.payment-method-header { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:500; }
.payment-method-header input { accent-color:var(--primary); }
.order-summary { background:white; border:0.5px solid var(--border); border-radius:var(--radius-lg); padding:24px; position:sticky; top:90px; }
.order-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; font-size:14px; border-bottom:0.5px solid var(--border); }
.order-total { display:flex; justify-content:space-between; align-items:center; padding:14px 0; font-size:16px; font-weight:600; }

/* ALERTS */
.alert { padding:14px 18px; border-radius:var(--radius-sm); font-size:14px; margin-bottom:16px; display:flex; align-items:center; gap:10px; }
.alert-success { background:#EAF3DE; color:#3B6D11; border:0.5px solid #C0DD97; }
.alert-error { background:#FCEBEB; color:#A32D2D; border:0.5px solid #F7C1C1; }
.alert-info { background:var(--accent-light); color:var(--accent-dark); border:0.5px solid #B5D4F4; }
.alert svg { width:16px; height:16px; flex-shrink:0; }

/* PAGE HEADER */
.page-header { background:linear-gradient(135deg,#f6fffe,#e8f8f3); padding:48px 40px; border-bottom:0.5px solid var(--border); }
.page-header-inner { max-width:1100px; margin:0 auto; }
.breadcrumb { font-size:13px; color:var(--text-light); margin-bottom:12px; }
.breadcrumb a { color:var(--primary); }
.page-header h1 { font-family:var(--font-serif); font-size:32px; margin-bottom:8px; }
.page-header p { font-size:15px; color:var(--text-muted); }

/* PROGRESS BAR */
.progress-bar { background:var(--bg-tertiary); border-radius:10px; height:8px; overflow:hidden; }
.progress-fill { height:100%; background:linear-gradient(to right,var(--primary),var(--primary-mid)); border-radius:10px; transition:width 0.3s; }

/* BADGES */
.badge { font-size:11px; font-weight:600; padding:3px 10px; border-radius:5px; }
.badge-green { background:var(--primary-light); color:var(--primary-dark); }
.badge-blue { background:var(--accent-light); color:var(--accent-dark); }
.badge-amber { background:#FAEEDA; color:#854F0B; }
.badge-red { background:#FCEBEB; color:#A32D2D; }

/* VIDEO PLAYER */
.video-container { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:var(--radius); background:#000; }
.video-container iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:none; }

/* TABS */
.tabs { display:flex; gap:0; border-bottom:0.5px solid var(--border); margin-bottom:24px; }
.tab-btn { padding:12px 20px; border:none; background:transparent; font-size:14px; font-family:var(--font); color:var(--text-muted); cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; }
.tab-btn.active { color:var(--primary); border-bottom-color:var(--primary); font-weight:500; }
.tab-content { display:none; }
.tab-content.active { display:block; animation:fadeUp 0.2s ease; }

/* RESPONSIVE */
/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width:1024px) {
  .course-detail-layout { grid-template-columns:1fr; }
  .course-sticky { position:static; }
  .checkout-layout { grid-template-columns:1fr; }
  .dashboard-layout { grid-template-columns:1fr; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */
@media (max-width:768px) {

  /* --- NAVBAR --- */
  .navbar { padding:0 16px; height:58px; }
  .nav-links { display:none; }
  .ssl-badge { display:none; }
  .menu-toggle { display:flex !important; }
  .btn-sm { font-size:12px; padding:7px 12px; }

  /* --- ANNOUNCEMENT --- */
  .announcement-bar { font-size:12px; padding:8px 16px; line-height:1.5; }

  /* --- HERO --- */
  .hero { padding:28px 16px 32px; }
  .hero-inner { grid-template-columns:1fr; gap:0; }
  .hero-visual { display:none; }
  .hero-badge { font-size:12px; padding:5px 12px; margin-bottom:14px; }
  .hero h1 { font-size:28px; line-height:1.25; margin-bottom:14px; }
  .hero-desc { font-size:14px; line-height:1.7; margin-bottom:22px; }
  .hero-cta { flex-direction:column; gap:10px; margin-bottom:28px; }
  .hero-cta .btn { width:100%; justify-content:center; font-size:15px; padding:14px 20px; border-radius:10px; }
  .hero-stats { flex-wrap:nowrap; gap:0; padding-top:22px; border-top:0.5px solid var(--border); justify-content:space-between; }
  .stat-item { flex:1; text-align:center; padding:0 4px; }
  .stat-num { font-size:20px; }
  .stat-label { font-size:11px; margin-top:2px; }
  .stat-divider { width:1px; height:32px; flex-shrink:0; }

  /* --- TRUST BAR --- */
  .trust-bar { padding:10px 16px; }
  .trust-inner { gap:12px; flex-wrap:wrap; justify-content:center; }
  .trust-item { font-size:12px; }
  .trust-div { display:none; }

  /* --- SECTIONS --- */
  .section { padding:40px 16px; }
  .section-header { margin-bottom:24px; }
  .section-title { font-size:22px; }
  .section-sub { font-size:13px; }

  /* --- CATEGORIES --- */
  .cat-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .cat-item { padding:16px 10px; }
  .cat-icon { width:52px!important; height:52px!important; font-size:26px!important; margin-bottom:10px!important; }
  .cat-name { font-size:13px; }

  /* --- COURSES --- */
  .courses-grid { grid-template-columns:1fr; gap:14px; }
  .course-card { border-radius:12px; }

  /* --- FEATURES --- */
  .features-grid { grid-template-columns:1fr; gap:16px; }

  /* --- STEPS --- */
  .steps-grid { grid-template-columns:1fr; gap:16px; }
  .step-arrow { display:none; }

  /* --- TESTIMONIALS --- */
  .testi-grid { grid-template-columns:1fr; }

  /* --- FAQ --- */
  .faq-q { font-size:14px; padding:14px 16px; }

  /* --- CTA SECTION --- */
  .cta-section { padding:40px 16px; }
  .cta-section h2 { font-size:22px; }
  .cta-btns { flex-direction:column; gap:10px; }
  .cta-btns .btn { width:100%; justify-content:center; }

  /* --- FOOTER --- */
  .footer { padding:36px 16px 20px; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; gap:8px; text-align:center; font-size:12px; padding-top:16px; }
  .footer-bottom-links { justify-content:center; flex-wrap:wrap; }

  /* --- AUTH PAGES --- */
  .auth-page { padding:20px 16px; min-height:auto; padding-bottom:40px; }
  .auth-card { padding:24px 18px; border-radius:14px; width:100%; }
  .auth-title { font-size:22px; }
  .auth-sub { font-size:13px; }
  .btn-form { font-size:15px; padding:13px; }
  .form-row { grid-template-columns:1fr; }

  /* --- COURSE DETAIL --- */
  .page-header { padding:24px 16px; }
  .page-header h1 { font-size:22px; }
  .course-detail-layout { padding:16px; gap:16px; }
  .buy-card { padding:18px; border-radius:12px; }
  .buy-price-big { font-size:28px; }
  .tabs { overflow-x:auto; -webkit-overflow-scrolling:touch; white-space:nowrap; }

  /* --- CHECKOUT --- */
  .checkout-layout { padding:16px; gap:16px; }

  /* --- LESSON PLAYER --- */
  .lesson-layout { grid-template-columns:1fr !important; height:auto !important; }
  .lesson-info { padding:14px 16px; }
  .lesson-title { font-size:16px; }
  .lesson-nav { padding:12px 16px; flex-wrap:wrap; gap:8px; }
  .btn-nav { font-size:12px; padding:8px 14px; }
  .lesson-tabs { padding:0 16px; overflow-x:auto; white-space:nowrap; }
  .tab-pane { padding:16px; }

  /* --- CERTIFICATE --- */
  .cert-content { padding:28px 20px; }
  .cert-main-title { font-size:30px; }
  .cert-name { font-size:40px; }
  .cert-course { font-size:18px; }
  .cert-signatures { gap:10px; }
  .cert-footer { padding:14px 20px; flex-direction:column; text-align:center; gap:6px; }

  /* --- ADMIN PANEL --- */
  .layout { grid-template-columns:1fr !important; }
  .sidebar { display:none !important; }
  .stats-grid { grid-template-columns:1fr 1fr !important; }
  .content { padding:16px; }
  table { font-size:11px; }
  th, td { padding:7px 8px; }

  /* --- STUDENT DASHBOARD --- */
  .sb-email { display:none; }
}

/* =============================================
   RESPONSIVE — SMALL PHONES (≤400px)
   ============================================= */
@media (max-width:400px) {
  .hero h1 { font-size:24px; }
  .navbar { padding:0 12px; }
  .hero { padding:22px 12px 26px; }
  .cat-grid { grid-template-columns:1fr 1fr; }
  .stat-num { font-size:18px; }
  .stat-label { font-size:10px; }
  .auth-card { padding:20px 14px; }
  .cert-content { padding:20px 14px; }
  .cert-main-title { font-size:26px; }
  .cert-name { font-size:34px; }
}
