@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800;900;1000&display=swap');
:root{--bg:#fff;--surface:#fff;--surface-2:#f7f7fa;--text:#292a31;--muted:#777d89;--line:#e4e5e9;--primary:#5b16e8;--primary-2:#7b43f5;--shadow:0 8px 28px rgba(30,25,55,.06);--green:#50c83c;--yellow:#ffbd13;--red:#ed5555;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'Nunito Sans',Arial,sans-serif;font-size:16px;line-height:1.5;transition:background .2s,color .2s}body.dark{--bg:#111218;--surface:#1b1d26;--surface-2:#222530;--text:#f2f3f7;--muted:#a1a5b1;--line:#343744;--shadow:0 8px 28px rgba(0,0,0,.2)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}.container{width:min(1200px,calc(100% - 48px));margin-inline:auto}.site-header{height:78px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:50}.nav-wrap{height:100%;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:9px;font-weight:1000;font-size:29px;letter-spacing:-1.2px;white-space:nowrap}.brand-mark{width:34px;height:34px;border-radius:11px;background:var(--primary-2);color:#fff;display:grid;place-items:center;font-size:21px;transform:rotate(-7deg)}.main-nav{display:flex;align-items:center;gap:8px}.nav-link{padding:8px 18px;border-radius:13px;font-weight:800;display:flex;align-items:center;gap:10px;white-space:nowrap}.nav-link:hover,.nav-link.active{background:var(--surface-2);color:var(--primary)}.nav-emoji{font-size:17px}.nav-tools{display:flex;align-items:center;gap:10px}.icon-btn,.menu-toggle{width:42px;height:42px;border:0;background:transparent;border-radius:12px;color:var(--text);font-size:20px;cursor:pointer}.icon-btn:hover,.menu-toggle:hover{background:var(--surface-2)}.menu-toggle{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 22px;border-radius:13px;border:0;font-weight:900;cursor:pointer;transition:.2s;min-height:48px}.btn:hover{transform:translateY(-2px);filter:brightness(1.04)}.btn-primary{background:var(--primary);color:white;box-shadow:0 4px 0 #3f0ba9}.btn-soft{background:var(--surface-2);color:var(--text);border:1px solid var(--line)}.btn-light{background:white;color:#4b11c8}.btn-danger-soft{background:#fff0f0;color:#d63b3b;border:1px solid #ffdada}.btn-block{width:100%}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:55px;padding-block:78px 65px;min-height:535px}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:1000;color:var(--primary);display:inline-flex;align-items:center;gap:8px}.live-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #50c83c20}.hero h1{font-size:clamp(42px,5.2vw,68px);line-height:1.04;letter-spacing:-2.8px;margin:18px 0}.gradient-text{color:var(--primary)}.hero-copy>p,.page-intro>p,.section-heading p{color:var(--muted);font-size:17px;max-width:550px}.hero-actions{display:flex;gap:13px;flex-wrap:wrap;margin-top:28px}.hero-proof{display:flex;align-items:center;gap:13px;margin-top:35px}.avatar-stack{display:flex;padding-left:4px}.avatar-stack i{font-style:normal;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#e6dcff;color:#4b11c8;border:2px solid var(--bg);margin-left:-5px;font-size:11px;font-weight:900}.avatar-stack i:nth-child(2){background:#d8f5d4;color:#237b1b}.avatar-stack i:nth-child(3){background:#ffe8c9;color:#9c5b00}.hero-proof b,.hero-proof small{display:block}.hero-proof small{color:var(--muted)}.hero-visual{min-height:360px;position:relative;display:grid;place-items:center}.visual-glow{position:absolute;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,#e9ddff,transparent 70%);filter:blur(8px)}.typing-preview{position:relative;width:min(100%,475px);background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:23px;box-shadow:0 22px 65px rgba(55,29,112,.12);transform:rotate(1.5deg)}.preview-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:15px;font-size:13px}.preview-top>span:first-child{display:flex;gap:5px}.preview-top i{width:8px;height:8px;background:#ff827b;border-radius:50%}.preview-top i:nth-child(2){background:#ffc75e}.preview-top i:nth-child(3){background:#67ce66}.preview-text{font-size:20px;line-height:1.9;padding:28px 4px;color:var(--muted)}mark{background:#eee5ff;color:var(--primary);border-radius:4px;padding:2px}.preview-stats{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:17px}.preview-stats div>*{display:block}.preview-stats small{font-size:10px;color:var(--muted);font-weight:800}.preview-stats b{font-size:20px}.preview-stats b small{display:inline}.green-text{color:var(--green)}.preview-progress{height:7px;border-radius:9px;background:var(--surface-2);margin-top:20px;overflow:hidden}.preview-progress span{display:block;width:67%;height:100%;background:var(--primary);border-radius:9px}.float-card{position:absolute;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:12px 15px;box-shadow:var(--shadow);font-size:14px}.float-card small{display:block;color:var(--muted);font-size:11px}.float-one{top:25px;right:-5px}.float-two{bottom:18px;left:-5px}.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);padding:23px 28px;background:var(--surface-2);border-radius:18px;gap:15px}.trust-strip div{text-align:center;border-right:1px solid var(--line)}.trust-strip div:last-child{border:0}.trust-strip b,.trust-strip small{display:block}.trust-strip b{font-size:20px}.trust-strip small{color:var(--muted)}.section{padding-block:76px}.section-tint{background:var(--surface-2)}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-heading h2,.cta h2{font-size:34px;letter-spacing:-1px;margin:6px 0}.section-heading p{margin:5px 0 0;font-size:15px}.text-link{font-weight:900;color:var(--primary)}.job-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.job-card,.course-card,.feature-card,.panel,.filter-panel,.result-card{background:var(--surface);border:3px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 0 rgba(0,0,0,.025)}.job-card{padding:22px;transition:.2s}.job-card:hover,.course-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#c9b6ff}.job-icon{width:49px;height:49px;border-radius:15px;background:var(--surface-2);display:grid;place-items:center;font-size:26px;margin-bottom:16px}.job-card h3{margin:0 0 5px;font-size:18px}.job-card p{margin:0;color:var(--muted);font-size:13px;min-height:40px}
/* ===== 3D PURPLE BUTTON (No Gray) ===== */
.job-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  
  /* Sizing */
  width: 100%;
  padding: 0.6rem 1.5rem;
  margin-top: auto; /* Pushes the button to the bottom of the card */
  border-radius: 8px;
  
  /* Typography */
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary); /* Purple text */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  
  /* Default 3D Styling (Soft Purple) */
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--primary) 5%, var(--surface)) 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
  
  /* The bottom shadow creates the thick 3D base */
  box-shadow: 
    0 4px 0 color-mix(in srgb, var(--primary) 15%, var(--line)), 
    0 5px 10px rgba(91, 22, 232, 0.05);
  
  /* Smooth transition */
  transition: all 0.15s ease;
  cursor: pointer;
}

/* Hover State (Turns Solid Vibrant Purple) */
.job-card a:hover {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 0 color-mix(in srgb, var(--primary) 60%, black), 
    0 8px 16px rgba(91, 22, 232, 0.3);
}

/* Click/Active State (Button presses down) */
.job-card a:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 color-mix(in srgb, var(--primary) 60%, black), 
    0 3px 6px rgba(91, 22, 232, 0.2);
}

/* Ensure the icon inherits the text color */
.job-card a i {
  color: inherit;
}

/* ===== DARK MODE OVERRIDES ===== */
body.dark .job-card a {
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--primary) 10%, var(--surface)) 100%);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  color: var(--primary-2); /* Brighter purple text for dark mode */
  box-shadow: 
    0 4px 0 color-mix(in srgb, var(--primary) 20%, black), 
    0 5px 10px rgba(0,0,0,0.2);
}

body.dark .job-card a:hover {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 
    0 6px 0 color-mix(in srgb, var(--primary) 60%, black), 
    0 8px 16px rgba(0,0,0,0.4);
}

body.dark .job-card a:active {
  box-shadow: 
    0 2px 0 color-mix(in srgb, var(--primary) 60%, black), 
    0 3px 6px rgba(0,0,0,0.3);
}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.course-card{padding:21px;transition:.2s;display:flex;flex-direction:column;min-height:215px}.course-card-top{display:flex;justify-content:space-between;align-items:center}.course-mini-icon{width:43px;height:43px;border-radius:13px;background:#eee7ff;color:var(--primary);display:grid;place-items:center;font-size:21px}.course-card h3{font-size:18px;margin:15px 0 4px}.course-card p{font-size:13px;color:var(--muted);margin:0;flex:1}.course-meta{display:flex;align-items:center;justify-content:space-between;margin-top:17px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.course-meta b{color:var(--primary)}.difficulty{font-size:11px;font-weight:1000;border-radius:30px;padding:5px 10px}.difficulty.easy{background:#e5f8e2;color:#26921b}.difficulty.moderate{background:#fff3ce;color:#9b6b00}.difficulty.hard{background:#ffe4e4;color:#c83737}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{padding:26px}.feature-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:23px}.purple{background:#eee5ff;color:var(--primary)}.green{background:#e5f8e2;color:#26921b}.orange{background:#fff0d8;color:#c47a00}.feature-card h3{margin:17px 0 5px}.feature-card p{color:var(--muted);margin:0;font-size:14px}.cta{margin-block:10px 75px;padding:36px 42px;border-radius:22px;background:linear-gradient(115deg,#4b0fcb,#7b3df0);color:white;display:flex;align-items:center;justify-content:space-between;gap:25px}.cta .eyebrow{color:#d8c8ff}.cta h2{margin:7px 0}.cta p{margin:0;color:#e5d9ff}.site-footer{border-top:1px solid var(--line);background:var(--surface-2);padding:48px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:35px}.footer-brand p{color:var(--muted);max-width:320px;font-size:14px}.footer-col h4{margin:0 0 13px}.footer-col a{display:block;color:var(--muted);font-size:14px;margin:8px 0}.footer-col a:hover{color:var(--primary)}.footer-bottom{border-top:1px solid var(--line);margin-top:35px;padding-top:17px;display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.page-main{padding-block:42px 75px}.page-intro{text-align:center;padding:28px 0 38px}.page-intro h1{font-size:clamp(34px,4vw,48px);letter-spacing:-1.6px;margin:8px 0}.page-intro p{margin:0 auto}.catalog-layout{display:grid;grid-template-columns:245px 1fr;gap:25px;align-items:start}.filter-panel{padding:22px;position:sticky;top:98px}.filter-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.filter-head h3{margin:0}.link-button{border:0;background:none;color:var(--primary);font-weight:900;cursor:pointer}.field-label{display:block;font-size:13px;font-weight:900;margin:17px 0 8px}.select-control,.search-control,.input-control{width:100%;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);padding:11px 12px;outline:none}.select-control:focus,.search-control:focus,.input-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px #5b16e81a}.difficulty-options{display:grid;gap:12px}.difficulty-options label{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer}.difficulty-options input{accent-color:var(--primary)}.difficulty-dot{width:9px;height:9px;border-radius:50%}.difficulty-dot.easy{background:var(--green)}.difficulty-dot.moderate{background:var(--yellow)}.difficulty-dot.hard{background:var(--red)}.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.catalog-toolbar b,.catalog-toolbar small{display:block}.catalog-toolbar small{color:var(--muted);font-size:12px}.toolbar-actions{display:flex;gap:9px}.search-control{min-width:210px}.sort-select{width:155px}.catalog-results .course-grid{grid-template-columns:repeat(2,1fr)}.empty-state{text-align:center;padding:55px 15px;border:1px dashed var(--line);border-radius:18px}.empty-state>div{font-size:42px;color:var(--muted)}.empty-state p{color:var(--muted)}.hidden{display:none!important}.breadcrumbs{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:13px;margin-bottom:25px}.breadcrumbs a:hover{color:var(--primary)}.breadcrumbs b{color:var(--text)}.detail-hero{display:grid;grid-template-columns:auto 1fr auto;gap:25px;align-items:center;padding:30px;border:1px solid var(--line);border-radius:22px;background:var(--surface-2)}.detail-icon{width:88px;height:88px;border-radius:24px;background:#e9e0ff;display:grid;place-items:center;font-size:43px}.detail-copy h1{font-size:34px;margin:4px 0}.detail-copy p{color:var(--muted);margin:0}.detail-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:30px;font-size:11px;font-weight:900}.pill-green{background:#e5f8e2;color:#26921b}.pill-neutral{background:var(--surface-2);color:var(--muted)}.detail-start{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:160px}.detail-start small{color:var(--muted);font-size:10px;font-weight:900}.detail-start>b{font-size:20px;margin-bottom:8px}.detail-columns{display:grid;grid-template-columns:1.6fr 1fr;gap:22px;margin-top:25px}.panel{padding:25px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.panel-heading h2,.panel h2{margin:3px 0;font-size:23px}.lesson-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.lesson-row:last-child{border:0}.lesson-number{width:38px;height:38px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;font-weight:900;color:var(--primary)}.lesson-row div:nth-child(2){flex:1}.lesson-row b,.lesson-row small{display:block}.lesson-row small{color:var(--muted)}.lesson-row a{color:var(--primary);font-weight:900;font-size:13px}.course-info ul{padding-left:19px;color:var(--muted);line-height:2}.info-note{background:var(--surface-2);border-radius:12px;padding:13px;font-size:13px;color:var(--muted);margin:20px 0}.typing-main{max-width:1100px}.typing-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 25px}.typing-title h1{font-size:35px;margin:3px 0}.typing-title p{color:var(--muted);margin:0}.test-config{display:flex;align-items:center;gap:35px;margin-bottom:17px;padding:17px 22px}.test-config>div{display:flex;flex-direction:column;gap:5px}.test-config small,.stat-card small{font-size:10px;letter-spacing:.7px;font-weight:1000;color:var(--muted)}.test-config .select-control{width:135px;padding:7px}.test-config .btn{margin-left:auto}.test-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:17px}.stat-card{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:15px 18px}.stat-card b{display:block;font-size:25px;margin-top:3px}.stat-card em,.result-card em{font-size:12px;font-style:normal;color:var(--muted)}.passage-panel{padding:22px}.passage-heading{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:13px}.passage-heading b{color:var(--text);font-size:15px}.passage-display{padding:20px;background:var(--surface-2);border-radius:13px;font-size:18px;line-height:2;min-height:145px;letter-spacing:.1px;user-select:none}.passage-display span.correct{color:#299d35}.passage-display span.incorrect{color:#e34343;background:#ffe5e5;border-radius:3px}.passage-display span.current{border-bottom:2px solid var(--primary)}.typing-input{margin-top:15px;width:100%;min-height:150px;resize:vertical;border:1.5px solid var(--line);border-radius:13px;background:var(--surface);color:var(--text);padding:16px;font-size:17px;line-height:1.7;outline:none}.typing-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #5b16e81a}.typing-input:disabled{background:var(--surface-2);cursor:not-allowed}.typing-help{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin-top:9px}.test-actions{display:flex;justify-content:space-between;margin-top:17px}.result-main{max-width:900px}.result-banner{text-align:center;padding:35px 0}.result-check{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#e5f8e2;color:#26921b;font-size:32px;font-weight:1000;margin:0 auto 18px}.result-banner h1{font-size:42px;margin:7px 0}.result-banner p{color:var(--muted);margin:0}.result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.result-card{padding:22px;text-align:center}.result-card small,.result-card span{display:block;color:var(--muted);font-size:11px;font-weight:900}.result-card b{display:block;font-size:31px;margin:8px 0}.result-card.primary-result{background:#f0eaff;border-color:#dfd1ff}.result-card.primary-result b{color:#5012d3}.result-feedback{text-align:center;margin-top:20px}.result-feedback p{color:var(--muted)}.result-actions{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.admin-intro{text-align:left;padding-bottom:20px}.admin-intro p{margin:0}.admin-tabs{display:flex;gap:7px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:20px}.tab-btn{padding:12px 17px;border:0;background:transparent;color:var(--muted);font-weight:900;white-space:nowrap;cursor:pointer;border-bottom:3px solid transparent}.tab-btn.active{color:var(--primary);border-color:var(--primary)}.admin-panel{display:none}.admin-panel.active{display:block}.admin-two{display:grid;grid-template-columns: minmax(280px,.85fr) 1.15fr;gap:20px;align-items:start}.admin-form{display:grid;gap:13px}.admin-form label{font-size:13px;font-weight:900;display:grid;gap:6px}.admin-form textarea{resize:vertical}.admin-list{display:grid;gap:9px;margin-top:15px}.admin-item{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px}.admin-item>div:first-child{flex:1;min-width:0}.admin-item b,.admin-item small{display:block;overflow-wrap:anywhere}.admin-item small{color:var(--muted)}.admin-item button{border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:8px;padding:7px 9px;cursor:pointer}.content-form{max-width:650px}.backup-panel{max-width:700px}.backup-panel p{color:var(--muted)}.backup-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.file-button{cursor:pointer}.muted{color:var(--muted)}.small{font-size:12px}
@media(max-width:980px){.main-nav{gap:0}.nav-link{padding:8px 18px;font-size:14px}.hero{gap:25px}.job-grid{grid-template-columns:repeat(2,1fr)}.catalog-layout{grid-template-columns:210px 1fr}.footer-grid{grid-template-columns:2fr 1fr 1fr}.footer-col:last-child{display:none}}
@media(max-width:720px){.container{width:min(100% - 30px,600px)}.site-header{height:68px}.brand{font-size:25px}.menu-toggle{display:block}.main-nav{display:none;position:absolute;top:67px;left:0;right:0;background:var(--surface);border-bottom:1px solid var(--line);padding:12px 15px 18px;flex-direction:column;align-items:stretch;box-shadow:var(--shadow)}.main-nav.open{display:flex}.nav-link{padding:13px}.nav-tools .icon-btn{width:36px}.hero{grid-template-columns:1fr;padding-block:50px 38px;gap:20px}.hero h1{font-size:48px}.hero-visual{min-height:300px}.visual-glow{width:280px;height:280px}.typing-preview{padding:17px}.preview-text{font-size:16px;padding:20px 3px}.float-one{right:0;top:0}.float-two{left:0;bottom:0}.trust-strip{grid-template-columns:repeat(2,1fr);padding:18px 10px}.trust-strip div:nth-child(2){border:0}.trust-strip b{font-size:17px}.section{padding-block:52px}.section-heading{align-items:flex-start}.section-heading h2{font-size:28px}.section-heading>.text-link{font-size:12px;white-space:nowrap;margin-top:12px}.course-grid,.feature-grid{grid-template-columns:1fr}.job-grid{gap:11px}.job-card{padding:16px}.job-card p{min-height:0}.cta{padding:27px;display:block}.cta .btn{margin-top:20px}.footer-grid{grid-template-columns:1fr 1fr;gap:25px}.footer-brand{grid-column:1/-1}.footer-col:last-child{display:block}.footer-bottom{gap:10px;flex-direction:column}.page-main{padding-top:25px}.page-intro{padding:15px 0 25px}.catalog-layout{grid-template-columns:1fr}.filter-panel{position:static}.catalog-results .course-grid{grid-template-columns:1fr}.catalog-toolbar{align-items:stretch;flex-direction:column}.toolbar-actions{width:100%}.search-control{min-width:0;flex:1}.sort-select{width:135px}.detail-hero{grid-template-columns:auto 1fr;padding:20px;gap:15px}.detail-icon{width:62px;height:62px;font-size:30px;border-radius:17px}.detail-copy h1{font-size:25px}.detail-start{grid-column:1/-1;border-top:1px solid var(--line);padding-top:15px;display:grid;grid-template-columns:1fr auto;align-items:center}.detail-start small{grid-column:1}.detail-start>b{margin:0}.detail-start .btn{grid-column:2;grid-row:1/3}.detail-columns{grid-template-columns:1fr}.typing-title{align-items:flex-start;flex-direction:column}.typing-title h1{font-size:29px}.test-config{display:grid;grid-template-columns:1fr 1fr;gap:14px}.test-config .btn{margin:0;grid-column:1/-1}.test-stats{grid-template-columns:repeat(2,1fr)}.stat-card{padding:12px}.stat-card b{font-size:22px}.passage-display{font-size:16px;padding:15px}.typing-input{min-height:125px}.result-grid{grid-template-columns:repeat(2,1fr)}.result-banner h1{font-size:34px}.admin-two{grid-template-columns:1fr}.admin-item{flex-wrap:wrap}.admin-item>div:first-child{flex-basis:70%}}
@media(max-width:390px){.nav-tools{gap:0}.hero h1{font-size:42px}.job-grid{grid-template-columns:1fr 1fr}.job-card h3{font-size:16px}.job-icon{width:42px;height:42px}.toolbar-actions{flex-wrap:wrap}.search-control,.sort-select{width:100%}.detail-start .btn{font-size:12px;padding:10px}.result-card{padding:15px}.result-card b{font-size:25px}}
.hero-heading {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  text-align: left;
}

.gradient-text {
  /* Using your primary purple theme colors for the gradient */
  background: linear-gradient(90deg, var(--primary), var(--primary-2), #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--primary-2);
  font-weight: 400;
  animation: cursor-blink 0.9s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 1.9rem; }
}
/* =========================================
   SIDEBAR / FILTER PANEL STYLES
   ========================================= */
/* =========================================
   FILTER PANEL STYLES
   ========================================= */

.filter-panel {
    /* Layout */
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.5rem;
    position: sticky;
    top: 2rem; /* Keeps filters visible while scrolling courses */
    
    /* Appearance */
    background-color: var(--surface);
    border: 3px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Header Area (Title + Clear Button) */
.filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--surface-2);
}

.filter-head h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* Clear All Button */
.filter-panel .link-button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-panel .link-button:hover {
    background-color: var(--surface-2);
    color: var(--primary-2);
}

/* Labels */
.filter-panel .field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

/* Dropdowns (Select controls) */
.filter-panel .select-control {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    font-size: 0.875rem;
    color: var(--text);
    background-color: var(--surface);
    border: 3px solid var(--line);
    border-radius: 8px;
    appearance: none;
    /* Custom SVG Chevron (Colored with var(--muted) hex) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23777d89'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-panel .select-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 22, 232, 0.15);
}

.filter-panel .select-control:hover {
    border-color: var(--muted);
}

/* Difficulty Checkboxes Area */
.filter-panel .difficulty-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-panel .difficulty-options label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    gap: 0.75rem;
    transition: color 0.2s ease;
}

.filter-panel .difficulty-options label:hover {
    color: var(--text);
}

/* Custom Checkbox Design */
.filter-panel .difficulty-options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background-color: var(--surface);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
}

.filter-panel .difficulty-options input[type="checkbox"]:hover {
    border-color: var(--primary);
}

.filter-panel .difficulty-options input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Checkmark inside custom checkbox */
.filter-panel .difficulty-options input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Colored Dots */
.filter-panel .difficulty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px var(--surface); /* creates a subtle cutout effect */
}

.filter-panel .difficulty-dot.easy {
    background-color: var(--green);
}

.filter-panel .difficulty-dot.moderate {
    background-color: var(--yellow);
}

.filter-panel .difficulty-dot.hard {
    background-color: var(--red);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .filter-panel {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        /* Optional: Turn into a horizontal bar on mobile */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        align-items: end;
    }
    
    .filter-head {
        grid-column: 1 / -1;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: -0.5rem;
    }
}

/* =========================================
   CATALOG TOOLBAR STYLES
   ========================================= */

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--line);
}

/* --- Left Side: Text --- */
.catalog-toolbar > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.catalog-toolbar b#result-count {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.catalog-toolbar small {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 400;
}

/* --- Right Side: Actions --- */
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Base styles for both search and select */
.toolbar-actions .search-control,
.toolbar-actions .select-control {
    height: 42px;
    font-size: 0.875rem;
    color: var(--text);
    background-color: var(--surface);
    border: 2.5px solid var(--line);
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.toolbar-actions .search-control:focus,
.toolbar-actions .select-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 22, 232, 0.15);
}

.toolbar-actions .search-control:hover,
.toolbar-actions .select-control:hover {
    border-color: var(--muted);
}

/* --- Search Input --- */
.toolbar-actions .search-control {
    width: 240px;
    padding: 0 1rem 0 2.75rem; /* Left padding for the icon */
    background-color: var(--surface-2);
    
    /* Custom SVG Search Icon (Colored with var(--muted) hex) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23777d89'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.875rem center;
    background-size: 1.25em;
}

.toolbar-actions .search-control:focus {
    background-color: var(--surface);
}

/* --- Sort Select --- */
.toolbar-actions .sort-select {
    width: auto;
    min-width: 160px;
    padding: 0 2.5rem 0 1rem;
    appearance: none;
    cursor: pointer;
    
    /* Custom SVG Chevron (Colored with var(--muted) hex) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23777d89'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-actions .search-control {
        width: 100%;
    }
    
    .toolbar-actions .sort-select {
        width: 100%;
    }
}

/* ============================================
   TYPING TEST SETTINGS & LAYOUT FIXES
   ============================================ */

/* Prevent body horizontal scroll */
body[data-page="typing"] {
  overflow-x: hidden;
}
/* ============================================
   SETTINGS PANEL
   ============================================ */
.settings-panel {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, .05);
}

.settings-header h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.settings-header i { color: var(--primary); }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.config-item label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--muted);
  text-transform: uppercase;
}
.config-item b { font-size: 1.1rem; color: var(--text); }

.select-control {
  width: 100%;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  font-size: .95rem;
  color: var(--text);
  cursor: pointer;
}
.select-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

/* ============================================
   CUSTOM PASSAGE INPUT
   ============================================ */
.custom-passage-wrapper {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.custom-passage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.custom-passage-header label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.custom-textarea {
  width: 100%;
  min-height: 80px;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
}
.custom-textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.btn-sm {
  padding: .4rem .8rem;
  font-size: .8rem;
}

/* ============================================
   SETTINGS ACTIONS
   ============================================ */
.settings-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ============================================
   PASSAGE DISPLAY
   ============================================ */
.passage-wrapper {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  max-width: 100%;
  overflow: hidden;
}

.passage-display {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--muted);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.passage-display .correct {
  color: var(--green);
}
.passage-display .incorrect {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 15%, var(--surface));
  border-radius: 4px;
}
.passage-display .current {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border-radius: 4px;
  color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-actions { flex-direction: column; gap: 1rem; align-items: stretch; }
  .custom-passage-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ============================================
   DYNAMIC SETTINGS & CUSTOM UI
   ============================================ */
[style*="display: none;"] {
  display: none !important;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.custom-passage-wrapper {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.custom-passage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.custom-passage-header label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

.select-control option {
  padding: .5rem;
}

.passage-placeholder {
  color: var(--muted);
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--text) 60%, transparent);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   MODAL CONTENT
   ============================================ */
.modal-content {
  background: var(--surface);
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
}
.modal-close:hover { color: var(--red); }

/* ============================================
   MODAL SEARCH
   ============================================ */
.modal-search {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.modal-search i {
  color: var(--muted);
  margin-right: .75rem;
}
.modal-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}
.modal-search input::placeholder { color: var(--muted); }

/* ============================================
   MODAL FILTERS
   ============================================ */
.modal-filters {
  display: flex;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  flex: 1;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

/* Difficulty color mapping uses your theme greens/yellows/reds */
.filter-btn.easy {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 30%, var(--line));
}
.filter-btn.moderate {
  color: var(--yellow);
  border-color: color-mix(in srgb, var(--yellow) 40%, var(--line));
}
.filter-btn.hard {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
}

.filter-btn.active.easy {
  background: var(--green);
  color: var(--surface);
  border-color: var(--green);
}
.filter-btn.active.moderate {
  background: var(--yellow);
  color: var(--text);
  border-color: var(--yellow);
}
.filter-btn.active.hard {
  background: var(--red);
  color: var(--surface);
  border-color: var(--red);
}

/* ============================================
   MODAL LIST
   ============================================ */
.modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.modal-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.modal-item:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}
.modal-item.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.modal-item-text {
  font-size: .9rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.modal-item-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-style: italic;
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.btn-block { width: 100%; }
.text-left {
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: .5rem;
}

/* ============================================
   PREMIUM SETTINGS GRID STYLING
   ============================================ */

/* 1. Grid Layout */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 2. Labels */
.config-item label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 3. Shared Button & Select Styles */
.custom-input-btn,
.custom-select,
.custom-input {
  width: 100%;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Hover & Focus States */
.custom-input-btn:hover,
.custom-select:hover,
.custom-input:hover {
  border-color: var(--muted);
}

.custom-input-btn:focus-visible,
.custom-select:focus,
.custom-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* 4. Custom Button Specifics */
.custom-input-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  cursor: pointer;
  text-align: left;
}
.custom-input-btn .btn-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.custom-input-btn .btn-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); font-size: 0.8rem; }

/* 5. Custom Select Dropdown */
.select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 2.5rem 0 1rem;
  cursor: pointer;
}
.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  pointer-events: none;
}

/* 6. Custom Number Input */
.input-wrapper {
  position: relative;
  width: 100%;
}
.custom-input {
  padding: 0 1rem 0 2.5rem;
}
.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

/* Hide number input spinners */
.custom-input::-webkit-outer-spin-button,
.custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-input[type=number] {
  -moz-appearance: textfield;
}

/* 7. Active State */
.custom-input-btn.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--primary);
}
.custom-input-btn.active .text-primary { color: var(--primary); }
.custom-input-btn.active .text-muted { color: var(--primary); }
/* ===== 3D PURPLE VIEW COURSE BUTTON ===== */
.course-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  
  /* Previous smaller size */
  padding: 0.3rem 1.5rem;
  border-radius: 0.5rem;
  
  /* Typography */
  font-weight: 600;
  font-size: 0.9rem; /* Kept text size reasonable for the smaller padding */
  color: #ffffff;
  text-decoration: none;
  
  /* Dynamic 3D Styling using your Primary Purple */
  background: linear-gradient(180deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 85%, black) 100%);
  border: 1px solid transparent;
  
  /* The bottom shadow creates the thick 3D base */
  box-shadow: 0 4px 0 color-mix(in srgb, var(--primary) 70%, black), 0 6px 12px rgba(0,0,0,0.1);
  
  /* Smooth transition */
  transition: all 0.15s ease;
  cursor: pointer;
}

/* Hover State */
.course-meta a:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 90%, white) 0%, var(--primary) 100%);
  border-color: var(--primary-2);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--primary) 70%, black), 0 8px 16px rgba(91, 22, 232, 0.3);
}

/* Click/Active State (Button presses down) */
.course-meta a:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--primary) 70%, black), 0 3px 6px rgba(0,0,0,0.1);
}

/* Ensure the icon inherits the white text color */
.course-meta a i {
  color: inherit;
}
.btn-start-practice {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 12px auto 0;
  padding: 12px 24px;
  
  /* Typography */
  /* font-family: 'Inter', system-ui, -apple-system, sans-serif; */
  font-size: 18px;
  font-weight: 800;
  color: #ffffff; /* White text always looks best on green */
  text-align: center;
  text-decoration: none;
  /* text-transform: uppercase; */
  /* letter-spacing: 0.5px; */
  
  /* Dynamic 3D Styling using your Green variable */
  background: linear-gradient(180deg, var(--green) 0%, color-mix(in srgb, var(--green) 85%, black) 100%);
  border-radius: 12px;
  border: none;
  
  /* The bottom shadow uses a 25% darker shade of your green */
  box-shadow: 
    0 6px 0 color-mix(in srgb, var(--green) 75%, black), 
    0 8px 15px rgba(0, 0, 0, 0.15);
  
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

/* Hover Effect */
.btn-start-practice:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 90%, white) 0%, var(--green) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 0 color-mix(in srgb, var(--green) 75%, black), 
    0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Active (Click) Effect */
.btn-start-practice:active {
  transform: translateY(4px);
  box-shadow: 
    0 2px 0 color-mix(in srgb, var(--green) 75%, black), 
    0 4px 10px rgba(0, 0, 0, 0.1);
}
/* ===== SIMPLE ICON + TEXT BADGE ===== */
.pill-sets {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted); /* Uses your theme's muted color */
  background: transparent;
  padding: 0;
  border: none;
  transition: color 0.2s ease;
}

.pill-sets i {
  font-size: 15px;
  color: color-mix(in srgb, var(--muted) 85%, var(--text)); /* Slightly darker than the text */
}

/* Optional: Hover effect */
.pill-sets:hover {
  color: var(--text);
}

.pill-sets:hover i {
  color: var(--primary); /* Icon turns brand purple on hover */
}
/* =========================================
   DIFFICULTY LEVEL BADGES (Compact & Pill-shaped)
   ========================================= */

/* Base badge style - Applied to ALL level classes */
.level-easy,
.level-moderate, .level-medium,
.level-hard, .level-high,
.course-level,
.lesson-level,
#detail-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;        /* Smaller size */
  border-radius: 100px;     /* Pill shape */
  font-size: 11px;          /* Smaller text */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent; /* Prevents jumping */
}

/* Colored dot - Applied to ALL level classes */
.level-easy::before,
.level-moderate::before, .level-medium::before,
.level-hard::before, .level-high::before,
.course-level::before,
.lesson-level::before,
#detail-level::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* =========================================
   EASY - Green
   ========================================= */
.level-easy,
.course-level.easy,
.lesson-level.easy,
#detail-level.level-easy,
#detail-level.easy {
  color: #2f8a1f;
  background: rgba(80, 200, 60, 0.12);
  border-color: rgba(80, 200, 60, 0.35);
}

[data-theme="dark"] .level-easy,
[data-theme="dark"] .course-level.easy,
[data-theme="dark"] .lesson-level.easy,
[data-theme="dark"] #detail-level.level-easy,
[data-theme="dark"] #detail-level.easy {
  color: #7ee86a;
  background: rgba(80, 200, 60, 0.18);
  border-color: rgba(80, 200, 60, 0.4);
}

/* =========================================
   MODERATE / MEDIUM - Yellow/Amber
   ========================================= */
.level-moderate, .level-medium,
.course-level.moderate, .course-level.medium,
.lesson-level.moderate, .lesson-level.medium,
#detail-level.level-moderate, #detail-level.moderate,
#detail-level.level-medium, #detail-level.medium {
  color: #9a6b00;
  background: rgba(255, 189, 19, 0.15);
  border-color: rgba(255, 189, 19, 0.45);
}

[data-theme="dark"] .level-moderate, [data-theme="dark"] .level-medium,
[data-theme="dark"] .course-level.moderate, [data-theme="dark"] .course-level.medium,
[data-theme="dark"] .lesson-level.moderate, [data-theme="dark"] .lesson-level.medium,
[data-theme="dark"] #detail-level.level-moderate, [data-theme="dark"] #detail-level.moderate,
[data-theme="dark"] #detail-level.level-medium, [data-theme="dark"] #detail-level.medium {
  color: #ffd447;
  background: rgba(255, 189, 19, 0.18);
  border-color: rgba(255, 189, 19, 0.45);
}

/* =========================================
   HARD / HIGH - Red
   ========================================= */
.level-hard, .level-high,
.course-level.hard, .course-level.high,
.lesson-level.hard, .lesson-level.high,
#detail-level.level-hard, #detail-level.hard,
#detail-level.level-high, #detail-level.high {
  color: #b32424;
  background: rgba(237, 85, 85, 0.12);
  border-color: rgba(237, 85, 85, 0.4);
}

[data-theme="dark"] .level-hard, [data-theme="dark"] .level-high,
[data-theme="dark"] .course-level.hard, [data-theme="dark"] .course-level.high,
[data-theme="dark"] .lesson-level.hard, [data-theme="dark"] .lesson-level.high,
[data-theme="dark"] #detail-level.level-hard, [data-theme="dark"] #detail-level.hard,
[data-theme="dark"] #detail-level.level-high, [data-theme="dark"] #detail-level.high {
  color: #ff8080;
  background: rgba(237, 85, 85, 0.2);
  border-color: rgba(237, 85, 85, 0.45);
}