/*
Theme Name: Korprovet Pro
Theme URI: https://korprovet.se
Author: Korprovet
Author URI: https://korprovet.se
Description: Standalone driving theory theme with a homepage built for theory practice and a verified private-instructor search/marketplace.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: korprovet-pro
*/

:root{
    --navy: #142638;
    --navy-800: #0F1E2E;
    --navy-line: #2A3F55;
    --navy-muted: #7C93AC;
    --navy-muted-2: #5A7089;
    --yellow: #fecb00;
    --yellow-wash: rgba(254,203,0,0.12);
    --pink: #C00156;
    --pink-ink: #FBEAF0;
    --ink: #1b2733;
    --ink-secondary: #5b6b7a;
    --ink-muted: #8a97a3;
    --surface: #ffffff;
    --surface-2: #f5f7f9;
    --border: #e4e8ec;
    --border-strong: #cfd6dc;
    --success: #3B6D11;
    --star: #EF9F27;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --container: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.55;
    font-size: 16px;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-weight: 600; line-height: 1.25; }
p{ margin: 0; }
button, input, select, textarea{ font-family: inherit; font-size: 15px; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 64px 0; }
.section-tight{ padding: 40px 0; }
.eyebrow{ display:inline-block; font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.eyebrow.c-blue{ color:#185FA5; }
.eyebrow.c-pink{ color: var(--pink); }
.section-title{ font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.015em; }
.section-sub{ font-size: 15px; color: var(--ink-secondary); margin: 0 0 28px; max-width: 560px; }
.section-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:28px; }
.section-head > div .section-sub{ margin-bottom:0; }
.view-all-link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
    padding-top: 38px;
    flex-shrink: 0;
    transition: gap .15s;
}
.view-all-link:hover{ gap: 10px; color: var(--pink); }
.view-all-link i{ font-size: 14px; }

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary{ background: var(--yellow); color: var(--navy); }
.btn-primary:hover{ background: #e8b800; }
.btn-ghost-dark{ background: transparent; color: var(--yellow); border-color: rgba(254,203,0,0.5); }
.btn-ghost-dark:hover{ background: rgba(254,203,0,0.08); }
.btn-accent{ background: var(--pink); color: var(--pink-ink); width: 100%; }
.btn-accent:hover{ background: #a30047; }
.btn-outline{ background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover{ background: var(--surface-2); }
.btn-dark{ background: var(--navy); color: var(--yellow); }
.btn-dark:hover{ background: var(--navy-800); }
.btn-block{ width: 100%; }

/* Header */
.site-header{ background: var(--navy); position: sticky; top: 0; z-index: 40; }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height: 80px; }
.brand{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:17px; color: var(--yellow); text-decoration:none; }
.brand-mark{ width:28px; height:28px; border-radius:7px; background: var(--yellow); display:flex; align-items:center; justify-content:center; }
.brand-mark i{ color: var(--navy); font-size:16px; }
.brand--text-logo{ gap:0; text-decoration:none; line-height:1; }
.logo-kör,
.logo-provet{
    font-family: 'Barlow Condensed', Inter, sans-serif;
    font-weight: 800;
    font-size: 36px;
    letter-spacing: -0.5px;
    line-height: 1;
    text-transform: uppercase;
}
.logo-kör{ color: #ffffff; }
.logo-provet{ color: var(--yellow); }
.main-nav{ display:flex; align-items:center; gap:32px; }
.main-nav a{ font-size:16px; color: #cfe0f2; }
.main-nav a:hover{ color: var(--yellow); }
.header-actions{ display:flex; align-items:center; gap:12px; }
.nav-toggle{ display:none; background:none; border:none; color: var(--yellow); font-size:22px; cursor:pointer; }

@media (max-width: 860px){
    .main-nav{ display:none; }
    .nav-toggle{ display:inline-flex; }
    .site-header.nav-open .main-nav{
        display:flex; flex-direction:column; align-items:flex-start; gap:0;
        position:absolute; top:80px; left:0; right:0; background: var(--navy);
        border-top: 1px solid var(--navy-line); padding: 8px 24px 16px;
    }
    .site-header.nav-open .main-nav a{ padding: 10px 0; width:100%; border-bottom: 1px solid var(--navy-line); }
}

/* Hero */
.hero{
    background: var(--navy);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before{
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 100% 50%, rgba(254,203,0,.09) 0%, transparent 55%),
        radial-gradient(ellipse 600px 500px at 0% 100%, rgba(192,1,86,.06) 0%, transparent 55%);
    pointer-events: none;
}
.hero::after{
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.hero .container{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 52px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(254,203,0,.9);
    background: rgba(254,203,0,.08);
    border: 1px solid rgba(254,203,0,.22);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 22px;
}
.hero-badge-dot{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    flex-shrink: 0;
    animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse{
    0%, 100%{ opacity:1; transform:scale(1); }
    50%{ opacity:.3; transform:scale(.75); }
}
.hero h1{
    font-size: 50px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.13;
    letter-spacing: -.025em;
}
.h1-accent{ color: var(--yellow); }
.hero-lead{
    font-size: 16px;
    color: #8fa8bf;
    margin: 0 0 32px;
    max-width: 460px;
    line-height: 1.7;
}
.hero-ctas{ display:flex; gap:12px; margin-bottom:44px; flex-wrap:wrap; }
.btn-hero{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: var(--radius);
}
.hero-stats{
    display: flex;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat{ display:flex; flex-direction:column; gap:3px; flex:1; }
.hero-stat-num{ font-size:26px; font-weight:800; color:var(--yellow); letter-spacing:-.01em; line-height:1; }
.hero-stat-label{ font-size:11px; color:var(--navy-muted); text-transform:uppercase; letter-spacing:.06em; }
.hero-stat-div{ width:1px; height:36px; background:rgba(255,255,255,.1); margin:0 20px; flex-shrink:0; }

.search-card{
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 56px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.1);
    border-top: 3px solid var(--yellow);
}
.search-card h2{
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}
.search-card .search-card-sub{
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}
.search-trust-item{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #1a9e5c;
    font-weight: 600;
}
.search-trust-item svg{ flex-shrink:0; }
.search-field{
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 14px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.search-field:focus-within{
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(20,38,56,.08);
}
.search-field i{ color: var(--ink-muted); font-size: 17px; flex-shrink:0; }
.search-field input, .search-field select{
    border: none;
    outline: none;
    flex: 1;
    padding: 14px 0;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
}
.search-field select{ cursor:pointer; }

@media (max-width: 860px){
    .hero{ padding:52px 0 60px; }
    .hero .container{ grid-template-columns: 1fr; gap:36px; }
    .hero h1{ font-size:36px; }
}
@media (max-width: 480px){
    .hero h1{ font-size:30px; }
    .hero-stat-num{ font-size:22px; }
    .hero-stat-div{ margin:0 14px; }
}
@media (max-width: 680px){
    .section-head{ flex-direction:column; gap:8px; }
    .view-all-link{ padding-top:0; }
    .cta-banner{ padding:24px 20px; gap:16px; }
    .cta-banner-icon{ width:48px; height:48px; border-radius:12px; }
    .cta-banner-icon i{ font-size:22px; }
    .cta-banner h3{ font-size:18px; }
    .cta-banner-btn{ width:100%; justify-content:center; }
}

/* Trust strip */
.trust-strip{ text-align:center; padding: 28px 0; border-bottom: 1px solid var(--border); }
.trust-strip p.label{ font-size:12px; color: var(--ink-muted); margin:0 0 12px; }
.trust-badges{ display:flex; justify-content:center; gap:28px; flex-wrap:wrap; color: var(--ink-secondary); font-size:13px; }
.trust-badges span{ display:flex; align-items:center; gap:6px; }
.trust-badges i{ font-size:16px; }

/* Grids */
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap:16px; }
@media (max-width: 860px){
    .grid-4{ grid-template-columns: repeat(2,1fr); }
    .grid-3{ grid-template-columns: 1fr; }
    .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
    .grid-4{ grid-template-columns: 1fr; }
}

/* Topic cards */
.topic-card{
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    background: var(--surface);
}
.topic-card:hover{
    box-shadow: 0 10px 32px rgba(20,38,56,.1);
    transform: translateY(-4px);
    border-color: transparent;
}
.topic-icon{
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.topic-icon i{ font-size: 20px; }
.topic-card h3{ font-size: 15px; font-weight: 700; margin: 0 0 5px; color: var(--ink); }
.topic-count{ font-size: 12px; color: var(--ink-secondary); margin: 0; }
.topic-card-arrow{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    transition: color .15s, gap .15s;
}
.topic-card:hover .topic-card-arrow{ color: var(--navy); gap: 9px; }
.topic-card-arrow i{ font-size: 13px; }

/* Mock exam CTA banner */
.cta-banner{
    background: var(--navy);
    background-image: radial-gradient(ellipse 700px 400px at 100% 50%, rgba(254,203,0,.07) 0%, transparent 60%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-banner-icon{
    width: 60px;
    height: 60px;
    background: rgba(254,203,0,.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cta-banner-icon i{ font-size: 28px; color: var(--yellow); }
.cta-banner-body{ flex: 1; min-width: 200px; }
.cta-banner h3{ color: #fff; font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.cta-banner p{ color: #8fa8bf; font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.cta-banner-pills{ display: flex; gap: 10px; flex-wrap: wrap; }
.cta-banner-pills span{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(254,203,0,.85);
    background: rgba(254,203,0,.1);
    border: 1px solid rgba(254,203,0,.18);
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: .02em;
}
.cta-banner-pills i{ font-size: 12px; }
.cta-banner-btn{
    background: var(--yellow);
    color: var(--navy);
    height: 50px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: background .15s, transform .15s;
    text-decoration: none;
}
.cta-banner-btn:hover{ background: #e6b700; transform: translateY(-1px); }

/* Filter chips */
.filter-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.filter-chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface);
    border-radius: 99px;
    padding: 6px 14px;
    color: var(--ink-secondary);
    border: 1px solid var(--border);
    cursor: default;
    transition: background .15s, border-color .15s, color .15s;
}
.filter-chip i{ font-size: 13px; }

/* Instructor section */
.section-instructors{
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.instructor-list{ display:flex; flex-direction:column; gap:10px; }
.inst-view-all{ text-align:center; margin-top:28px; }

/* Instructor cards */
.instructor-card{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.instructor-card:hover{
    box-shadow: 0 8px 28px rgba(20,38,56,.09);
    transform: translateY(-2px);
    border-color: transparent;
}
.instructor-left{ display:flex; align-items:center; gap:16px; }
.instructor-avatar{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #dde8f5;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0C447C;
    font-size: 15px;
    flex-shrink: 0;
    letter-spacing: .02em;
}
.instructor-info{ display:flex; flex-direction:column; gap:4px; }
.instructor-name{
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--ink);
}
.instructor-name i{ color: #1a9e5c; font-size: 16px; }
.instructor-meta{
    font-size: 12px;
    color: var(--ink-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin: 0;
}
.instructor-meta i{ font-size: 12px; color: var(--ink-muted); }
.inst-sep{ color: var(--border-strong); }
.instructor-right{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.instructor-rating{
    font-size: 13px;
    color: var(--ink-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}
.instructor-rating .ti-star-filled{ color: var(--star); }
.instructor-rating .ti-star{ color: var(--ink-muted); }
.inst-reviews{ font-size: 12px; color: var(--ink-muted); }
.inst-no-rating{ font-size: 12px; color: var(--ink-muted); font-style: italic; }
.instructor-price{
    font-size: 15px;
    color: var(--navy);
    margin: 0;
}
.instructor-price strong{ font-weight: 800; }
.instructor-price span{ font-size:12px; color:var(--ink-muted); font-weight:400; }
.inst-view-link{
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    opacity: 0;
    transition: opacity .15s, gap .15s;
}
.inst-view-link i{ font-size: 11px; }
.instructor-card:hover .inst-view-link{ opacity: 1; gap: 6px; }

/* Free section */
.section-free{
    background: var(--navy);
    background-image:
        radial-gradient(ellipse 700px 500px at 0% 0%,   rgba(254,203,0,.08) 0%, transparent 55%),
        radial-gradient(ellipse 500px 400px at 100% 100%, rgba(192,1,86,.06)  0%, transparent 55%);
    position: relative;
    overflow: hidden;
}
.section-free::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.free-card{
    text-align: center;
    position: relative;
    z-index: 1;
}
.free-card-header{ position: relative; z-index: 1; }
.free-badge{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--yellow);
    padding: 7px 18px;
    border-radius: 99px;
    margin-bottom: 28px;
}
.free-badge i{ font-size: 14px; }
.free-title{
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.13;
    margin: 0 0 18px;
}
.free-sub{
    font-size: 16px;
    color: #8fa8bf;
    max-width: 500px;
    margin: 0 auto 52px;
    line-height: 1.7;
}
.free-features{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 52px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.free-feature-item{
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: background .2s, border-color .2s;
}
.free-feature-item:hover{
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
}
.free-feature-icon{
    width: 42px;
    height: 42px;
    background: rgba(254,203,0,.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.free-feature-icon i{ font-size: 20px; color: var(--yellow); }
.free-feature-item strong{ display:block; font-size:14px; font-weight:700; color:#fff; margin-bottom:4px; line-height:1.3; }
.free-feature-item span{ font-size:12px; color:#8fa8bf; line-height:1.5; }
.free-cta{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}
.free-trust{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}
.free-trust i{ font-size: 14px; color: #22c55e; }
.free-trust span{ color: rgba(255,255,255,.18); }

@media (max-width: 860px){
    .free-title{ font-size: 32px; }
    .free-features{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px){
    .free-title{ font-size: 26px; }
    .free-sub{ font-size: 14px; }
    .free-features{ grid-template-columns: 1fr; }
}

/* Testimonials */
.testi-header{ margin-bottom: 40px; }
.testi-overall{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.testi-stars-row{ color: var(--star); font-size: 16px; display:flex; gap:2px; }
.testi-overall-label{ font-size: 13px; color: var(--ink-secondary); }
.testi-grid{ align-items: stretch; }
.testi-grid-single{ display:flex; justify-content:center; }
.testi-grid-single .testimonial-card{ max-width:420px; width:100%; }
.testi-star-on{ color:var(--star); font-size:16px; }
.testi-star-off{ color:#d1d5db; font-size:16px; }
.testimonial-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 28px 28px 28px;
    padding-top: 64px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover{
    box-shadow: 0 10px 32px rgba(20,38,56,.08);
    transform: translateY(-3px);
}
.testi-qmark{
    font-size: 56px;
    line-height: 1;
    color: var(--yellow);
    font-family: Georgia, serif;
    position: absolute;
    top: 16px;
    left: 24px;
    opacity: .5;
}
.testimonial-stars{
    color: var(--star);
    font-size: 14px;
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}
.testimonial-quote{
    font-size: 15px;
    color: var(--ink);
    line-height: 1.65;
    margin: 0 0 24px;
    flex: 1;
}
.testi-author{
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.testi-avatar{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}
.testi-author-info strong{ display:block; font-size:14px; font-weight:700; color:var(--ink); }
.testi-author-info span{ font-size:12px; color:var(--ink-secondary); }

@media(max-width:860px){
    .testi-grid{ grid-template-columns: 1fr; }
}

/* FAQ */
.section-faq{
    background: #e8f0f8;
    border-top: 1px solid #d0dde9;
    border-bottom: 1px solid #d0dde9;
}
.faq-container{ max-width: 780px; }

/* FAQ page */
.faq-page-hero{
    background: var(--navy);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}
.faq-page-hero::before{
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 100% 50%, rgba(254,203,0,.09) 0%, transparent 55%),
        radial-gradient(ellipse 400px 400px at 0% 100%, rgba(192,1,86,.06) 0%, transparent 55%);
    pointer-events: none;
}
.faq-page-hero::after{
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.faq-page-hero .container{ position: relative; z-index: 1; max-width: 780px; }
.faq-page-eyebrow{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin: 0 0 14px;
}
.faq-page-title{
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0 0 16px;
}
.faq-page-sub{
    font-size: 16px;
    color: #8fa8bf;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 560px;
}
.faq-page-search{
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    padding: 0 18px;
    max-width: 480px;
    transition: background .15s, border-color .15s;
}
.faq-page-search:focus-within{
    background: rgba(255,255,255,.12);
    border-color: rgba(254,203,0,.5);
}
.faq-page-search i{ color: rgba(255,255,255,.4); font-size: 18px; flex-shrink: 0; }
.faq-page-search input{
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 15px;
    color: #fff;
}
.faq-page-search input::placeholder{ color: rgba(255,255,255,.35); }

.faq-page-body{ padding: 52px 0 80px; background: var(--surface-2); }
.faq-page-body .faq-container{ margin: 0 auto; }
.faq-count{ font-size: 12px; color: var(--ink-muted); margin: 0 0 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.faq-no-results{ text-align: center; color: var(--ink-secondary); font-size: 14px; padding: 32px 0; }
.faq-no-results a{ color: var(--navy); font-weight: 600; }

.faq-cta-box{
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.faq-cta-icon{
    width: 52px;
    height: 52px;
    background: var(--yellow-wash);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-cta-icon i{ font-size: 24px; color: var(--navy); }
.faq-cta-box > div{ flex: 1; min-width: 180px; }
.faq-cta-box h3{ font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.faq-cta-box p{ font-size: 13px; color: var(--ink-secondary); margin: 0; }

@media(max-width: 600px){
    .faq-page-title{ font-size: 30px; }
    .faq-cta-box{ padding: 20px; }
    .faq-cta-box .btn{ width: 100%; justify-content: center; }
}
.faq-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.faq-header-sub{
    font-size: 13px;
    color: var(--ink-secondary);
    text-align: right;
    line-height: 1.6;
    flex-shrink: 0;
    padding-top: 36px;
    margin: 0;
}
.faq-header-sub a{ color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .15s; }
.faq-header-sub a:hover{ text-decoration-color: var(--navy); }
.faq-list{
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.faq-item{ border-bottom: 1px solid var(--border); }
.faq-item:last-child{ border-bottom: none; }
.faq-question{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: var(--surface);
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.faq-question span{ flex: 1; }
.faq-question:hover{ background: var(--surface-2); }
.faq-item.open .faq-question{
    color: var(--navy);
    background: rgba(254,203,0,.04);
}
.faq-question i{
    font-size: 18px;
    color: var(--ink-muted);
    flex-shrink: 0;
    transition: transform .25s ease, color .15s;
}
.faq-item.open .faq-question i{
    transform: rotate(180deg);
    color: var(--navy);
}
.faq-answer{
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-item.open .faq-answer{ max-height: 600px; }
.faq-answer-inner{
    padding: 4px 24px 20px 20px;
    margin: 0 24px 20px 24px;
    border-left: 3px solid var(--yellow);
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.75;
}
.faq-answer-inner p{ margin: 0; }

@media(max-width: 600px){
    .faq-header{ flex-direction: column; gap: 8px; }
    .faq-header-sub{ text-align: left; padding-top: 0; }
    .faq-question{ padding: 16px 18px; font-size: 14px; }
    .faq-answer-inner{ margin: 0 18px 18px 18px; }
}

/* Instructor CTA — two-path layout */
.icta-section{
    background: var(--navy);
    background-image:
        radial-gradient(ellipse 800px 600px at 100% 50%, rgba(254,203,0,.07) 0%, transparent 55%),
        radial-gradient(ellipse 500px 400px at 0% 100%,  rgba(192,1,86,.05)  0%, transparent 55%);
    position: relative;
    overflow: hidden;
}
.icta-section::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.icta-section .container{ position:relative; z-index:1; }
.icta-intro{ text-align:center; max-width:640px; margin:0 auto 52px; }
.icta-eyebrow{
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 18px;
}
.icta-title{
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.025em;
    line-height: 1.18;
    margin: 0 0 16px;
}
.icta-lead{
    font-size: 15px;
    color: #8fa8bf;
    line-height: 1.75;
    margin: 0;
}

/* Two-path cards */
.icta-paths{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.icta-path{
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.icta-path-head{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.icta-path-icon{
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(254,203,0,.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.icta-path-icon i{ font-size: 20px; color: var(--yellow); }
.icta-path-icon--vol{ background: rgba(34,197,94,.12); }
.icta-path-icon--vol i{ color: #4ade80; }
.icta-path-name{ display:block; font-size:16px; font-weight:800; color:#fff; margin-bottom:6px; }
.icta-path-tag{
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.icta-path-tag--paid{ background: rgba(254,203,0,.15); color: var(--yellow); }
.icta-path-tag--free{ background: rgba(34,197,94,.12); color: #4ade80; }

.icta-path-items{
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; flex-direction: column; gap: 10px;
    flex: 1;
}
.icta-path-items li{
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5;
}
.icta-path-items i{ color: #22c55e; font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.icta-path-btn{
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; height: 46px; padding: 0 22px;
    border-radius: var(--radius); font-size: 14px; font-weight: 700;
    text-decoration: none; transition: background .15s, transform .15s;
}
.icta-path-btn--pro{ background: var(--yellow); color: var(--navy); }
.icta-path-btn--pro:hover{ background: #e6b700; transform: translateY(-1px); }
.icta-path-btn--vol{
    background: transparent;
    color: #4ade80;
    border: 1.5px solid rgba(34,197,94,.35);
}
.icta-path-btn--vol:hover{ background: rgba(34,197,94,.08); transform: translateY(-1px); }

/* Footer trust strip */
.icta-footer-strip{
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 32px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.icta-footer-strip span{
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,.45);
}
.icta-footer-strip i{ font-size: 15px; color: rgba(255,255,255,.3); }

@media(max-width: 900px){
    .icta-paths{ grid-template-columns: 1fr; }
    .icta-title{ font-size: 30px; }
}
@media(max-width: 480px){
    .icta-title{ font-size: 26px; }
    .icta-path-btn{ width: 100%; }
    .icta-footer-strip{ gap: 18px; flex-direction: column; align-items: center; }
}

/* Volunteer instructor badge on card */
.inst-volunteer-badge{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
}
.inst-volunteer-badge i{ font-size: 12px; }
.instructor-price--free{ margin: 0; }

/* ── Become an Instructor page ──────────────────────────────────────────── */
.bi-hero{
    background: var(--navy);
    background-image:
        radial-gradient(ellipse 800px 500px at 100% 50%, rgba(254,203,0,.09) 0%, transparent 55%),
        radial-gradient(ellipse 500px 400px at 0%  100%, rgba(192,1,86,.06) 0%, transparent 55%);
    padding: 64px 0 72px;
    position: relative; overflow: hidden;
}
.bi-hero::before{
    content:''; position:absolute; inset:0;
    background-image: radial-gradient(circle, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 28px 28px; pointer-events:none;
}
.bi-hero-inner{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    position: relative; z-index:1;
}
.bi-eyebrow{ font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--yellow); display:block; margin-bottom:16px; }
.bi-title{ font-size:44px; font-weight:800; color:#fff; letter-spacing:-.025em; line-height:1.13; margin:0 0 18px; }
.bi-lead{ font-size:16px; color:#8fa8bf; line-height:1.7; margin:0 0 24px; }
.bi-hero-perks{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.bi-hero-perks li{ display:flex; align-items:center; gap:10px; font-size:14px; color:rgba(255,255,255,.75); }
.bi-hero-perks i{ color:#22c55e; font-size:16px; }
.bi-hero-steps{ display:flex; flex-direction:column; gap:0; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:8px 0; }
.bi-step{ display:flex; align-items:flex-start; gap:16px; padding:16px 24px; border-bottom:1px solid rgba(255,255,255,.06); }
.bi-step:last-child{ border-bottom:none; }
.bi-step-num{ width:28px; height:28px; border-radius:50%; background:var(--yellow); color:var(--navy); font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.bi-step strong{ display:block; font-size:13px; font-weight:700; color:#fff; margin-bottom:2px; }
.bi-step span{ font-size:12px; color:#8fa8bf; }

/* Form section */
.bi-form-section{ background:var(--surface-2); padding:56px 0 80px; }
.bi-form-container{ max-width:760px; margin:0 auto; }

/* Success */
.bi-success{ text-align:center; padding:64px 32px; background:var(--surface); border:1px solid var(--border); border-radius:20px; }
.bi-success-icon{ font-size:56px; color:#22c55e; margin-bottom:20px; }
.bi-success h2{ font-size:28px; font-weight:800; margin:0 0 12px; }
.bi-success p{ font-size:15px; color:var(--ink-secondary); margin:0 0 28px; }

/* Error banner */
.bi-error-banner{ display:flex; align-items:flex-start; gap:12px; background:#fef2f2; border:1px solid #fecaca; border-radius:var(--radius); padding:14px 18px; margin-bottom:24px; font-size:14px; color:#991b1b; }
.bi-error-banner i{ font-size:18px; flex-shrink:0; margin-top:1px; }

/* Type chooser */
.bi-type-section{ margin-bottom:16px; }
.bi-type-heading{ font-size:16px; font-weight:700; color:var(--ink); margin:0 0 14px; }
.bi-type-options{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.bi-type-card{
    display:block; border:2px solid var(--border); border-radius:var(--radius-lg);
    padding:20px; cursor:pointer; transition:border-color .15s, background .15s;
}
.bi-type-card input[type="radio"]{ display:none; }
.bi-type-card:hover{ border-color:var(--navy); background:var(--surface-2); }
.bi-type-card--active{ border-color:var(--navy) !important; background:#edf2f8 !important; }
.bi-type-card-body{ display:flex; align-items:flex-start; gap:14px; }
.bi-type-icon{
    width:40px; height:40px; border-radius:10px; flex-shrink:0;
    background:rgba(20,38,56,.1); display:flex; align-items:center; justify-content:center;
}
.bi-type-icon i{ font-size:18px; color:var(--navy); }
.bi-type-icon--vol{ background:rgba(34,197,94,.1); }
.bi-type-icon--vol i{ color:#16a34a; }
.bi-type-text strong{ display:block; font-size:15px; font-weight:800; color:var(--ink); margin-bottom:6px; }
.bi-type-text p{ font-size:12px; color:var(--ink-secondary); line-height:1.55; margin:0; }
.bi-type-tag{
    display:inline-block; font-size:10px; font-weight:700; letter-spacing:.06em;
    text-transform:uppercase; padding:2px 8px; border-radius:20px; margin-bottom:6px;
}
.bi-type-tag--paid{ background:#fef3c7; color:#92400e; }
.bi-type-tag--free{ background:#dcfce7; color:#166534; }

/* Trafiklärare conditional fields */
.bi-trafiklar-fields{ padding:0; }

/* Handledare law notice */
.bi-law-notice{
    display:flex; align-items:flex-start; gap:14px;
    background:#eff6ff; border:1px solid #bfdbfe; border-radius:var(--radius);
    padding:16px 18px; margin-bottom:18px;
}
.bi-law-notice i{ font-size:20px; color:#2563eb; flex-shrink:0; margin-top:1px; }
.bi-law-notice strong{ display:block; font-size:13px; font-weight:700; color:#1e3a5f; margin-bottom:4px; }
.bi-law-notice p{ font-size:12px; color:#374151; line-height:1.6; margin:0; }

@media(max-width:560px){
    .bi-type-options{ grid-template-columns:1fr; }
    .bi-type-heading{ font-size:15px; }
}

/* Form sections */
.bi-section{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:32px; margin-bottom:16px; }
.bi-section-head{ display:flex; align-items:flex-start; gap:16px; margin-bottom:28px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.bi-section-num{ width:32px; height:32px; border-radius:50%; background:var(--navy); color:var(--yellow); font-size:14px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.bi-section-head h2{ font-size:17px; font-weight:700; margin:0 0 4px; }
.bi-section-head p{ font-size:13px; color:var(--ink-secondary); margin:0; }
.bi-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.bi-field{ margin-bottom:18px; }
.bi-field:last-child{ margin-bottom:0; }
.bi-field-sm input{ max-width:200px; }
.bi-field label{ display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:6px; }
.bi-req{ color:var(--pink); }
.bi-hint{ display:block; font-size:12px; color:var(--ink-muted); margin-top:5px; }
.bi-hint-inline{ font-size:11px; color:var(--ink-muted); font-weight:400; }
.bi-char-count{ margin-top:4px; }
.bi-field input[type="text"],
.bi-field input[type="email"],
.bi-field input[type="tel"],
.bi-field input[type="number"],
.bi-field input[type="password"],
.bi-field textarea{
    width:100%; padding:11px 14px; border:1.5px solid var(--border);
    border-radius:var(--radius); font-size:14px; color:var(--ink);
    background:#fff; transition:border-color .15s, box-shadow .15s; box-sizing:border-box;
}
.bi-field input:focus,
.bi-field textarea:focus{
    outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(20,38,56,.07);
}
.bi-field textarea{ resize:vertical; }

/* Price */
.bi-price-wrap{ display:flex; align-items:center; gap:10px; }
.bi-price-wrap input{ max-width:160px; }
.bi-price-unit{ font-size:14px; color:var(--ink-secondary); white-space:nowrap; }

/* Photo upload */
.bi-photo-upload{ display:flex; align-items:center; gap:20px; }
.bi-photo-preview{
    width:80px; height:80px; border-radius:50%; background:var(--surface-2); border:2px solid var(--border);
    display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden;
}
.bi-photo-preview i{ font-size:32px; color:var(--ink-muted); }
.bi-photo-info{ display:flex; flex-direction:column; gap:6px; }

/* City autocomplete picker */
.bi-city-picker{ position:relative; }
.bi-city-input-wrap{
    display:flex; align-items:center; gap:10px;
    padding:0 14px;
    border:1.5px solid var(--border); border-radius:var(--radius-sm);
    background:#fff; transition:border-color .15s;
}
.bi-city-input-wrap i{ font-size:16px; color:#94a3b8; flex-shrink:0; }
.bi-city-picker:focus-within .bi-city-input-wrap{ border-color:var(--navy); }
.bi-city-search{
    border:none; outline:none; font-size:14px; color:var(--ink);
    width:100%; padding:12px 0; background:transparent;
}
.bi-city-search::placeholder{ color:#94a3b8; }
.bi-city-dropdown{
    position:absolute; top:calc(100% + 4px); left:0; right:0;
    background:#fff; border:1.5px solid var(--border);
    border-radius:var(--radius-sm); box-shadow:0 8px 24px rgba(0,0,0,.08);
    list-style:none; margin:0; padding:6px 0; z-index:50; display:none;
}
.bi-city-dropdown li{
    padding:10px 16px; font-size:14px; color:var(--ink); cursor:pointer;
}
.bi-city-dropdown li:hover{ background:var(--surface); color:var(--navy); }
.bi-city-chips{
    display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;
}
.bi-city-chip{
    display:inline-flex; align-items:center; gap:6px;
    background:var(--navy); color:#fff;
    font-size:13px; font-weight:600;
    padding:5px 10px 5px 12px; border-radius:20px;
}
.bi-city-chip button{
    background:none; border:none; color:rgba(255,255,255,.6);
    font-size:15px; line-height:1; cursor:pointer; padding:0;
    display:flex; align-items:center;
}
.bi-city-chip button:hover{ color:#fff; }

/* Checkboxes / radios */
.bi-checkboxes, .bi-radios{ display:flex; flex-wrap:wrap; gap:10px; }
.bi-check-label, .bi-radio-label{
    display:inline-flex; align-items:center; gap:8px; padding:8px 14px;
    border:1.5px solid var(--border); border-radius:var(--radius-sm);
    font-size:13px; cursor:pointer; transition:border-color .15s, background .15s;
}
.bi-check-label:hover, .bi-radio-label:hover{ border-color:var(--navy); background:var(--surface-2); }
.bi-check-label input:checked ~ span,
.bi-check-label:has(input:checked),
.bi-radio-label:has(input:checked){ border-color:var(--navy); background:#edf2f8; }

/* File upload boxes */
.bi-upload-box{
    border:2px dashed var(--border); border-radius:var(--radius); padding:24px 16px;
    display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;
    cursor:pointer; transition:border-color .15s, background .15s; position:relative;
}
.bi-upload-box:hover{ border-color:var(--navy); background:var(--surface-2); }
.bi-upload-box--has-file{ border-color:#22c55e; background:#f0fdf4; border-style:solid; }
.bi-upload-box input[type="file"]{ position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; }
.bi-upload-box i{ font-size:28px; color:var(--ink-muted); }
.bi-upload-label{ font-size:13px; font-weight:600; color:var(--navy); }
.bi-file-name{ display:block; margin-top:6px; font-size:12px; color:#16a34a; font-weight:600; min-height:16px; }

/* Submit section */
.bi-section-submit{ display:flex; flex-direction:column; gap:16px; align-items:flex-start; }
.bi-agree-label{ font-size:13px; color:var(--ink-secondary); cursor:pointer; }
.bi-agree-label input{ margin-right:8px; }
.bi-submit-btn{
    background:var(--yellow); color:var(--navy); height:52px; padding:0 32px;
    font-size:16px; font-weight:700; border-radius:var(--radius); border:none;
    display:inline-flex; align-items:center; gap:8px; cursor:pointer; transition:background .15s, transform .15s;
}
.bi-submit-btn:hover:not(:disabled){ background:#e6b700; transform:translateY(-1px); }
.bi-submit-btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }
.bi-submit-note{ font-size:12px; color:var(--ink-muted); margin:0; }

@media(max-width:860px){
    .bi-hero-inner{ grid-template-columns:1fr; gap:36px; }
    .bi-title{ font-size:32px; }
    .bi-hero-steps{ display:none; }
}
@media(max-width:600px){
    .bi-grid-2{ grid-template-columns:1fr; }
    .bi-cred-options{ grid-template-columns:1fr; }
    .bi-section{ padding:20px; }
    .bi-title{ font-size:26px; }
}

/* ── Auth — split-page layout (login) ───────────────────────────────────── */
body:has(.auth-split-page){
    background: linear-gradient(to right, var(--navy) 50%, #f5f7f9 50%);
}
.auth-split-page{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
}

/* Left: dark navy panel */
.auth-split-left{
    background: var(--navy);
    background-image:
        radial-gradient(ellipse 700px 500px at 110% 20%, rgba(254,203,0,.08) 0%, transparent 55%),
        radial-gradient(ellipse 400px 400px at -10% 80%, rgba(192,1,86,.06) 0%, transparent 55%);
    position: relative;
    overflow: hidden;
    padding: 48px 56px 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end; /* push content towards centre */
}
.auth-split-left::before{
    content:''; position:absolute; inset:0;
    background-image: radial-gradient(circle, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px; pointer-events:none;
}
.auth-split-left-inner{ position:relative; z-index:1; max-width: 460px; width:100%; }

.auth-split-brand{
    display: inline-flex; align-items: center;
    margin-bottom: 52px; text-decoration: none;
}
.auth-split-brand .logo-kör,
.auth-split-brand .logo-provet{ font-size: 44px; }
.auth-split-brand:hover{ opacity: .85; }
.auth-logo-dot{
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--yellow); display: inline-block; flex-shrink: 0;
}
.auth-split-copy{ margin-bottom: 36px; }
.auth-split-title{
    font-size: 36px; font-weight: 800; color: #fff;
    letter-spacing: -.025em; line-height: 1.2; margin: 0 0 14px;
}
.auth-split-lead{ font-size: 15px; color: #8fa8bf; line-height: 1.7; margin: 0; }

/* Benefits list */
.auth-split-perks{
    list-style: none; padding: 0; margin: 0 0 40px;
    display: flex; flex-direction: column; gap: 20px;
}
.auth-split-perks li{
    display: flex; align-items: flex-start; gap: 14px;
}
.auth-perk-icon{
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(254,203,0,.12);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-perk-icon i{ font-size: 17px; color: var(--yellow); }
.auth-split-perks strong{ display:block; font-size:14px; font-weight:700; color:#fff; margin-bottom:3px; }
.auth-split-perks span{ font-size:12px; color:#8fa8bf; line-height:1.5; }

/* Stats strip */
.auth-split-stats{
    display: flex; align-items: center; gap: 0;
    padding: 18px 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
}
.auth-split-stat{ flex: 1; text-align: center; }
.auth-split-stat strong{ display:block; font-size:18px; font-weight:800; color:var(--yellow); line-height:1; margin-bottom:4px; }
.auth-split-stat span{ font-size:11px; color:#8fa8bf; text-transform:uppercase; letter-spacing:.06em; }
.auth-split-stat-sep{ width:1px; background:rgba(255,255,255,.1); align-self:stretch; margin:0 4px; }

/* Right: white sign-in panel */
.auth-split-right{
    background: #f5f7f9;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* push card towards centre */
    justify-content: center;
    padding: 48px 40px 48px 56px;
    gap: 16px;
}
.auth-split-card{
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 32px rgba(0,0,0,.07);
}
.auth-split-card-head{ margin-bottom: 28px; }
.auth-split-card-head h2{
    font-size: 22px; font-weight: 800; color: var(--ink);
    margin: 0 0 6px; letter-spacing: -.02em;
}
.auth-split-card-head p{ font-size: 13px; color: var(--ink-secondary); margin: 0; }

/* Alert */
.auth-alert{
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 20px;
}
.auth-alert--error{ background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.auth-alert i{ flex-shrink:0; font-size:16px; margin-top:1px; }

/* Google button */
.auth-google-btn{
    display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 100%; height: 52px;
    border: 1.5px solid #dadce0; border-radius: var(--radius);
    background: #fff; font-size: 15px; font-weight: 600; color: #3c4043;
    text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.auth-google-btn:hover{
    border-color: #aaa;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

/* Trust note */
.auth-split-trust{
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 14px;
    font-size: 11px; color: #94a3b8;
}
.auth-split-trust i{ font-size: 13px; color: #22c55e; }

/* Instructor separate box */
.auth-instructor-box{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.auth-instructor-box-icon{
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: #eef2ff;
    display: flex; align-items: center; justify-content: center;
}
.auth-instructor-box-icon i{ font-size: 17px; color: #4f46e5; }
.auth-instructor-box-text{ flex: 1; min-width: 0; }
.auth-instructor-box-text strong{ display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.auth-instructor-box-text span{ font-size: 11px; color: #94a3b8; line-height: 1.4; }
.auth-instructor-box-btn{
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
    font-size: 12px; font-weight: 700; color: var(--navy);
    text-decoration: none; white-space: nowrap;
    transition: gap .15s;
}
.auth-instructor-box-btn:hover{ gap: 7px; }

/* Email/password login form on login page */
.auth-divider{
    display: flex; align-items: center; gap: 12px;
    color: #94a3b8; font-size: 12px; margin: 20px 0;
}
.auth-divider::before,.auth-divider::after{
    content:''; flex:1; height:1px; background: #e2e8f0;
}
.auth-field{ margin-bottom: 14px; }
.auth-field label{ display:block; font-size:12px; font-weight:600; color:var(--ink-secondary); margin-bottom:5px; }
.auth-field input{
    width:100%; padding:10px 14px; border:1.5px solid var(--border);
    border-radius: 8px; font-size:14px; color:var(--ink);
    background:#fff; transition: border-color .15s;
    box-sizing: border-box;
}
.auth-field input:focus{ outline:none; border-color: var(--navy); }
.auth-email-btn{
    width:100%; padding:12px; border:none; border-radius:10px;
    background: var(--navy); color:#fff; font-size:15px; font-weight:700;
    cursor:pointer; transition: background .15s; margin-top:4px;
}
.auth-email-btn:hover{ background:#0f2640; }
.auth-email-btn:disabled{ opacity:.6; cursor:not-allowed; }

/* Back link */
.auth-split-back{
    font-size: 12px; color: #94a3b8; text-align: center;
}
.auth-split-back a{
    display: inline-flex; align-items: center; gap: 4px;
    color: #64748b; text-decoration: none; transition: color .15s;
}
.auth-split-back a:hover{ color: var(--navy); }
.auth-split-back i{ font-size: 13px; }

/* Responsive */
@media(max-width: 860px){
    .auth-split-page{ grid-template-columns: 1fr; }
    .auth-split-left{ display: none; }
    .auth-split-right{ min-height: 100vh; background: var(--navy); }
    .auth-split-card{ box-shadow: none; }
}
@media(max-width: 480px){
    .auth-split-right{ padding: 32px 16px; }
    .auth-split-card{ padding: 28px 20px; border-radius: var(--radius); }
}

/* Footer */
.site-footer{ background: var(--navy); padding: 44px 0 20px; }
.footer-brand{ margin-bottom: 12px; }
.footer-brand .logo-kör,
.footer-brand .logo-provet{ font-size: 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:24px; margin-bottom:28px; }
.footer-col p.col-title{ font-size:12px; font-weight:600; color:#cfe0f2; margin:0 0 10px; }
.footer-col a, .footer-col p.desc{ display:block; font-size:12px; color: var(--navy-muted); margin-bottom:8px; }
.footer-bottom{ border-top:1px solid var(--navy-line); padding-top:16px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.footer-bottom p{ font-size:12px; color: var(--navy-muted-2); }
.footer-legal{ display:flex; gap:16px; }
.newsletter-row{ display:flex; gap:8px; max-width:360px; margin-top:14px; }
.newsletter-row input{ flex:1; height:40px; border-radius: var(--radius-sm); border:1px solid var(--navy-line); background: var(--navy-800); color:#e6f1fb; padding:0 12px; }
.newsletter-row button{ height:40px; }

@media (max-width: 860px){
    .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
    .footer-grid{ grid-template-columns: 1fr; }
}

/* Archive / search results page */
.page-header-band{ background: var(--navy); padding: 32px 0; }
.page-header-band h1{ color: var(--yellow); font-size:24px; margin:0 0 6px; }
.page-header-band p{ color: var(--navy-muted); font-size:13px; }
.filters-bar{ background: var(--surface-2); border-radius: var(--radius-lg); padding:18px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin: 24px 0 28px; }
.filters-bar .search-field{ margin-bottom:0; background: var(--surface); min-width:160px; flex:1; }
.results-count{ font-size:13px; color: var(--ink-secondary); margin-bottom:16px; }
.pagination{ display:flex; gap:6px; justify-content:center; margin-top:28px; }
.pagination a, .pagination span{ display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; border:1px solid var(--border); border-radius: var(--radius-sm); font-size:13px; }
.pagination .current{ background: var(--navy); color: var(--yellow); border-color: var(--navy); }
.empty-state{ text-align:center; padding: 48px 0; color: var(--ink-secondary); }

/* ── My Account Page ──────────────────────────────────────────────────────── */
.kp-account-page{ padding: 40px 0 64px; min-height: 70vh; background: var(--surface-2); }

/* Hero */
.kpa-hero{ display:flex; align-items:center; gap:20px; background:var(--navy); border-radius:var(--radius-lg); padding:28px 32px; margin-bottom:28px; flex-wrap:wrap; }
.kpa-avatar{ width:56px; height:56px; border-radius:50%; background:var(--yellow); color:var(--navy); font-size:18px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.kpa-name{ color:#fff; font-size:20px; font-weight:700; margin:0 0 4px; }
.kpa-email{ color:var(--navy-muted); font-size:13px; margin:0; }
.kpa-logout{ margin-left:auto; background:rgba(255,255,255,.08); color:rgba(255,255,255,.7); border:1px solid rgba(255,255,255,.15); border-radius:var(--radius-sm); padding:7px 16px; font-size:13px; font-weight:500; transition:background .15s; }
.kpa-logout:hover{ background:rgba(255,255,255,.14); color:#fff; }

/* Header account pill */
.kp-header-account{ display:flex; align-items:center; gap:8px; background:transparent; border:1.5px solid var(--yellow); border-radius:20px; padding:4px 14px 4px 4px; transition:background .15s,border-color .15s; text-decoration:none; }
.kp-header-account:hover{ background:rgba(254,203,0,.10); border-color:var(--yellow); }
.kp-header-avatar{ width:28px; height:28px; border-radius:50%; background:var(--yellow); color:var(--navy); font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.kp-header-name{ color:var(--yellow); font-size:13px; font-weight:600; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Summary stats */
.kpa-stats-row{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:28px; }
.kpa-stat-card{ flex:1; min-width:120px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; display:flex; flex-direction:column; gap:4px; }
.kpa-stat-val{ font-size:28px; font-weight:800; color:var(--navy); }
.kpa-stat-label{ font-size:11px; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.06em; }
.kpa-stat-green .kpa-stat-val{ color:#1a9e5c; }
.kpa-stat-red   .kpa-stat-val{ color:#d93025; }
.kpa-stat-yellow .kpa-stat-val{ color:#c07d00; }

/* Two-column layout */
.kpa-two-col{ display:grid; grid-template-columns: 1fr 340px; gap:24px; align-items:start; }
.kpa-section-title{ font-size:15px; font-weight:700; color:var(--navy); margin:0 0 14px; text-transform:uppercase; letter-spacing:.05em; }

/* Test cards */
.kpa-tests-list{ display:flex; flex-direction:column; gap:10px; }
.kpa-test-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; display:flex; align-items:center; gap:16px; transition:box-shadow .15s; }
.kpa-test-card:hover{ box-shadow:0 2px 12px rgba(0,0,0,.08); }
.kpa-test-info{ flex:1; }
.kpa-test-name{ font-size:15px; font-weight:600; color:var(--navy); display:block; margin-bottom:4px; }
.kpa-test-name:hover{ color:var(--pink); }
.kpa-test-meta{ font-size:12px; color:var(--ink-muted); display:flex; flex-wrap:wrap; gap:4px; align-items:center; }
.kpa-not-started{ color:var(--ink-muted); font-style:italic; }
.kpa-dot{ color:var(--border-strong); }
.kpa-test-right{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex-shrink:0; }
.kpa-pass-fail{ display:flex; gap:6px; }
.kpa-badge{ display:inline-block; padding:3px 9px; border-radius:20px; font-size:11px; font-weight:700; }
.kpa-badge-pass{ background:#e8f8ef; color:#1a9e5c; }
.kpa-badge-fail{ background:#fef2f2; color:#d93025; }
.kpa-take-btn{ font-size:13px; font-weight:600; color:var(--pink); white-space:nowrap; }
.kpa-take-btn:hover{ text-decoration:underline; }
.kpa-limit-tag{ font-size:11px; color:var(--ink-muted); background:var(--surface-2); border:1px solid var(--border); border-radius:20px; padding:3px 10px; }

/* Activity feed */
.kpa-activity-list{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.kpa-activity-item{ display:flex; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--border); }
.kpa-activity-item:last-child{ border-bottom:none; }
.kpa-activity-icon{ width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0; }
.kpa-act-pass{ background:#e8f8ef; color:#1a9e5c; }
.kpa-act-fail{ background:#fef2f2; color:#d93025; }
.kpa-activity-body{ flex:1; min-width:0; }
.kpa-activity-name{ font-size:13px; font-weight:600; color:var(--navy); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpa-activity-name:hover{ color:var(--pink); }
.kpa-activity-meta{ font-size:11px; color:var(--ink-muted); margin-top:2px; }
.kpa-activity-badge{ font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; flex-shrink:0; }
.kpa-empty{ color:var(--ink-muted); font-size:14px; }

@media (max-width:900px){
    .kpa-two-col{ grid-template-columns:1fr; }
    .kpa-stats-row .kpa-stat-card{ min-width:calc(50% - 6px); }
}
@media (max-width:560px){
    .kpa-hero{ padding:20px; gap:14px; }
    .kpa-stats-row .kpa-stat-card{ min-width:calc(50% - 6px); padding:14px; }
    .kpa-stat-val{ font-size:22px; }
    .kpa-test-card{ flex-direction:column; align-items:flex-start; }
    .kpa-test-right{ flex-direction:row; align-items:center; }
}

/* ── Study Plan — Exam Countdown & Today's Focus ─────────────────────────── */
.kpa-study-section{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:20px;
    margin-bottom:28px;
    align-items:start;
}
@media(max-width:820px){ .kpa-study-section{ grid-template-columns:1fr; } }

/* Countdown card */
.kpa-countdown-card{
    background:var(--navy);
    border-radius:var(--radius-lg);
    padding:28px 24px;
    color:#fff;
    min-height:180px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.kpa-countdown-inner{ display:flex; flex-direction:column; gap:16px; }
.kpa-cd-days-wrap{ display:flex; align-items:baseline; gap:8px; }
.kpa-cd-num{ font-size:64px; font-weight:800; color:#FECB00; line-height:1; }
.kpa-cd-unit{ font-size:20px; font-weight:600; color:rgba(255,255,255,.7); }
.kpa-cd-label{ font-size:12px; color:rgba(255,255,255,.55); text-transform:uppercase; letter-spacing:.08em; margin-bottom:2px; }
.kpa-cd-date{ font-size:16px; font-weight:600; color:#fff; margin-bottom:10px; }
.kpa-readiness-wrap{ display:flex; flex-direction:column; gap:5px; }
.kpa-readiness-bar-bg{ background:rgba(255,255,255,.18); border-radius:99px; height:7px; overflow:hidden; }
.kpa-readiness-bar-fill{ height:100%; border-radius:99px; background:#FECB00; transition:width .5s; }
.kpa-readiness-label{ font-size:12px; color:rgba(255,255,255,.7); }
.kpa-cd-change-link{
    background:none;
    border:none;
    color:rgba(255,255,255,.5);
    font-size:12px;
    cursor:pointer;
    padding:0;
    text-decoration:underline;
    margin-top:4px;
    text-align:left;
}
.kpa-cd-change-link:hover{ color:rgba(255,255,255,.85); }
.kpa-cd-form-inner{ display:flex; flex-direction:column; gap:10px; }
.kpa-cd-form-label{ font-size:13px; color:rgba(255,255,255,.7); margin:0; }
.kpa-date-input{
    width:100%;
    padding:9px 12px;
    border-radius:var(--radius);
    border:1.5px solid rgba(255,255,255,.25);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:14px;
    box-sizing:border-box;
}
.kpa-date-input:focus{ outline:none; border-color:#FECB00; }
.kpa-cd-form-btns{ display:flex; gap:8px; }
.kpa-cd-save-btn{
    flex:1;
    background:#FECB00;
    color:#142638;
    border:none;
    border-radius:var(--radius);
    padding:9px 14px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:background .15s;
}
.kpa-cd-save-btn:hover{ background:#e8b800; }
.kpa-cd-cancel-btn{
    background:none;
    border:1.5px solid rgba(255,255,255,.25);
    color:rgba(255,255,255,.75);
    border-radius:var(--radius);
    padding:9px 14px;
    font-size:13px;
    cursor:pointer;
}
.kpa-cd-cancel-btn:hover{ border-color:rgba(255,255,255,.5); }
.kpa-cd-err{ font-size:12px; color:#ffaaaa; margin:0; }
.kpa-cd-nodate{ text-align:center; }
.kpa-cd-nodate-icon{ font-size:32px; margin-bottom:8px; }
.kpa-cd-nodate-title{ font-size:16px; font-weight:700; color:#fff; margin:0 0 6px; }
.kpa-cd-nodate-sub{ font-size:13px; color:rgba(255,255,255,.65); margin:0 0 14px; line-height:1.5; }

/* Today's Focus */
.kpa-focus-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:24px 28px;
}
.kpa-focus-title{
    font-size:16px;
    font-weight:700;
    color:var(--navy);
    margin:0 0 18px;
    display:flex;
    align-items:center;
    gap:10px;
}
.kpa-focus-urgent{
    font-size:11px;
    font-weight:700;
    background:#fef2f2;
    color:#d93025;
    padding:2px 10px;
    border-radius:20px;
    letter-spacing:.04em;
}
.kpa-focus-tasks{ display:flex; flex-direction:column; gap:12px; }
.kpa-task{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:14px 16px;
    border-radius:10px;
    border:1px solid var(--border);
}
.kpa-task-read    { border-left:3px solid #185FA5; background:#f5f9ff; }
.kpa-task-practice{ border-left:3px solid #C00156; background:#fff5f9; }
.kpa-task-flash   { border-left:3px solid #854F0B; background:#fffbf5; }
.kpa-task-icon{ font-size:22px; flex-shrink:0; margin-top:1px; }
.kpa-task-body{ display:flex; flex-direction:column; gap:3px; }
.kpa-task-title{ font-size:14px; font-weight:700; color:var(--navy); }
.kpa-task-sub{ font-size:13px; color:var(--ink-muted); }
.kpa-task-link{ font-size:13px; font-weight:600; color:#185FA5; margin-top:4px; }
.kpa-task-link:hover{ text-decoration:underline; }

/* This Week strip */
.kpa-week-section{ margin-bottom:28px; }
.kpa-week-strip{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:8px;
    overflow-x:auto;
}
@media(max-width:700px){ .kpa-week-strip{ grid-template-columns:repeat(4,minmax(90px,1fr)); } }
.kpa-day-cell{
    border:1px solid var(--border);
    border-radius:10px;
    padding:12px 8px;
    text-align:center;
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:12px;
    color:var(--ink-muted);
}
.kpa-day-name{ font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.kpa-day-date{ font-size:11px; color:var(--ink-muted); margin-bottom:4px; }
.kpa-day-icon{ font-size:22px; }
.kpa-day-act{ font-size:11px; font-weight:700; }
.kpa-day-sub{ font-size:10px; color:var(--ink-muted); line-height:1.3; }
.kpa-day-read     { background:#f5f9ff; border-color:#185FA5; }
.kpa-day-read .kpa-day-act { color:#185FA5; }
.kpa-day-practice { background:#fff5f9; border-color:#C00156; }
.kpa-day-practice .kpa-day-act { color:#C00156; }
.kpa-day-flash    { background:#fffbf5; border-color:#854F0B; }
.kpa-day-flash .kpa-day-act { color:#854F0B; }
.kpa-day-mock     { background:#f0fdf4; border-color:#1a9e5c; }
.kpa-day-mock .kpa-day-act { color:#1a9e5c; }
.kpa-day-today{
    box-shadow:0 0 0 2px var(--navy);
    border-color:var(--navy) !important;
}
.kpa-day-today .kpa-day-name{ color:var(--navy); }

/* Single instructor */
.instructor-profile{ display:grid; grid-template-columns: 220px 1fr; gap:32px; }
.instructor-photo{ width:100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); object-fit:cover; background: var(--surface-2); }
.instructor-header{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.instructor-tags{ display:flex; gap:8px; flex-wrap:wrap; margin: 14px 0 18px; }
@media (max-width: 700px){
    .instructor-profile{ grid-template-columns: 1fr; }
    .instructor-photo{ max-width:200px; }
}

/* ── Practice Tests Page ─────────────────────────────────────────────────── */
.kpt-hero{ background:var(--navy); padding:52px 0 48px; }
.kpt-hero-title{ font-size:36px; color:#fff; margin:0 0 10px; }
.kpt-hero-sub{ font-size:16px; color:var(--navy-muted); max-width:520px; line-height:1.6; }
.kpt-hero-cta{ display:inline-block; margin-top:20px; }

.kpt-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media(max-width:900px){ .kpt-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .kpt-grid{ grid-template-columns:1fr; } }

.kpt-card{ border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:var(--surface); display:flex; flex-direction:column; transition:box-shadow .2s,transform .2s; }
.kpt-card:hover{ box-shadow:0 8px 28px rgba(20,38,56,.10); transform:translateY(-3px); }
.kpt-card-accent{ height:4px; flex-shrink:0; }
.kpt-card-body{ padding:22px; display:flex; flex-direction:column; flex:1; gap:0; }

.kpt-card-top{ display:flex; align-items:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.kpt-icon-wrap{ width:38px; height:38px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.kpt-cat-chip{ font-size:11px; font-weight:600; color:var(--ink-secondary); background:var(--surface-2); border:1px solid var(--border); border-radius:20px; padding:2px 10px; }
.kpt-free-badge{ font-size:11px; font-weight:700; color:var(--success); background:#EAF3DE; border-radius:20px; padding:2px 10px; margin-left:auto; }

.kpt-card-title{ font-size:17px; font-weight:700; margin:0 0 7px; line-height:1.3; }
.kpt-card-title a{ color:var(--ink); transition:color .15s; }
.kpt-card-title a:hover{ color:var(--pink); }
.kpt-card-excerpt{ font-size:13px; color:var(--ink-secondary); line-height:1.55; margin:0 0 14px; }

.kpt-meta-row{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.kpt-chip{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:500; color:var(--ink-secondary); background:var(--surface-2); border:1px solid var(--border); border-radius:20px; padding:3px 10px; }
.kpt-chip i{ font-size:13px; }

.kpt-attempts{ margin-bottom:16px; }
.kpt-bar-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.kpt-bar-label{ font-size:12px; color:var(--ink-muted); }
.kpt-passed-badge{ display:inline-flex; align-items:center; gap:3px; font-size:11px; font-weight:700; color:var(--success); background:#EAF3DE; border-radius:20px; padding:2px 8px; }
.kpt-passed-badge i{ font-size:11px; }
.kpt-attempts-bar{ height:5px; background:var(--border); border-radius:4px; overflow:hidden; }
.kpt-attempts-fill{ height:100%; background:var(--navy); border-radius:4px; transition:width .4s; }
.kpt-attempts-fill.kpt-bar-full{ background:var(--pink); }

.kpt-card-footer{ margin-top:auto; padding-top:16px; border-top:1px solid var(--border); display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.kpt-cta-btn{ display:inline-block; font-size:14px; font-weight:600; padding:9px 22px; border-radius:var(--radius); transition:background .15s; white-space:nowrap; }
.kpt-cta-primary{ background:var(--pink); color:#fff; }
.kpt-cta-primary:hover{ background:#a30149; color:#fff; }
.kpt-cta-disabled{ background:var(--surface-2); color:var(--ink-muted); border:1px solid var(--border); cursor:not-allowed; }
.kpt-results-link{ font-size:13px; color:var(--navy-muted-2); text-decoration:underline; }
.kpt-results-link:hover{ color:var(--navy); }

/* ── Theory Article (single-theory.php) ──────────────────────────────────── */
.th-hero{ padding:40px 0 36px; }
.th-breadcrumb{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--navy-muted); margin-bottom:20px; }
.th-breadcrumb a{ color:var(--navy-muted); text-decoration:none; }
.th-breadcrumb a:hover{ color:var(--yellow); }
.th-breadcrumb span{ opacity:.5; }
.th-cat-badge{ display:inline-block; font-size:11px; font-weight:700; border-radius:20px; padding:3px 12px; margin-bottom:12px; }
.th-hero-title{ font-size:30px; color:#fff; margin:0 0 10px; line-height:1.25; }
.th-hero-sub{ font-size:15px; color:var(--navy-muted); max-width:600px; line-height:1.6; }
.th-hero-meta{ display:flex; gap:20px; margin-top:14px; }
.th-hero-meta span{ display:flex; align-items:center; gap:5px; font-size:13px; color:var(--navy-muted); }
.th-hero-meta i{ font-size:14px; }

.th-layout{ display:grid; grid-template-columns:1fr 300px; gap:32px; align-items:start; }
@media(max-width:860px){
    .th-layout{ grid-template-columns:1fr; gap:16px; }
    /* sidebar cards stay above the article, the ad moves below it */
    .th-layout > .th-sidebar{ display:contents; }
    .th-sidebar > *{ order:-1; }
    .th-sidebar > .th-ad{ order:1; margin-top:16px; }
    .th-article{ margin:16px 0; }
}

/* Article prose */
.th-article{ min-width:0; }
.th-content{ font-size:16px; line-height:1.75; color:var(--ink); }
.th-content h3{ font-size:18px; font-weight:700; color:var(--navy); margin:28px 0 10px; padding-bottom:6px; border-bottom:2px solid var(--border); }
.th-content h3:first-child{ margin-top:0; }
.th-content p{ margin:0 0 14px; }
.th-content ul,.th-content ol{ margin:0 0 14px; padding-left:22px; }
.th-content li{ margin-bottom:6px; }
.th-content strong{ color:var(--navy); font-weight:700; }
.th-content em{ color:var(--ink-secondary); }

/* Prev/next nav */
.th-article-nav{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:36px; padding-top:24px; border-top:1px solid var(--border); }
.th-nav-link{ display:flex; flex-direction:column; gap:4px; padding:14px 16px; border:1px solid var(--border); border-radius:var(--radius); transition:border-color .15s,background .15s; }
.th-nav-link:hover{ border-color:var(--border-strong); background:var(--surface-2); }
.th-nav-next{ text-align:right; }
.th-nav-dir{ font-size:12px; color:var(--ink-muted); display:flex; align-items:center; gap:4px; }
.th-nav-next .th-nav-dir{ justify-content:flex-end; }
.th-nav-title{ font-size:13px; font-weight:600; color:var(--navy); line-height:1.3; }
@media(max-width:560px){ .th-article-nav{ grid-template-columns:1fr; } }

/* Sidebar cards */
.th-sidebar{ display:flex; flex-direction:column; gap:16px; }
.th-side-card{ border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; background:var(--surface); }
.th-side-title{ font-size:13px; font-weight:700; color:var(--navy); text-transform:uppercase; letter-spacing:.05em; margin:0 0 12px; }

.th-test-cta{ background:var(--navy); border-color:var(--navy); }
.th-test-cta .th-side-title{ color:rgba(255,255,255,.6); }
.th-side-icon{ width:36px; height:36px; border-radius:9px; background:rgba(254,203,0,.15); display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--yellow); margin-bottom:12px; }
.th-side-sub{ font-size:13px; color:var(--navy-muted); margin:0 0 14px; line-height:1.5; }
.th-side-btn{ display:block; background:var(--yellow); color:var(--navy); font-size:13px; font-weight:700; padding:9px 14px; border-radius:var(--radius); text-align:center; transition:background .15s; }
.th-side-btn:hover{ background:#e8b800; color:var(--navy); }

.th-sibling-list{ display:flex; flex-direction:column; gap:2px; }
.th-sibling-list li a{ display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--ink-secondary); padding:5px 0; transition:color .15s; line-height:1.4; }
.th-sibling-list li a:hover{ color:var(--navy); }
.th-sibling-list i{ font-size:14px; flex-shrink:0; margin-top:1px; }
.th-all-link{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--navy); font-weight:600; }

/* ── Mark as Read (single-theory.php) ───────────────────────────────────── */
.th-mark-wrap{
    margin:32px 0 0;
    padding:20px 24px;
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    display:flex;
    flex-direction:column;
    gap:14px;
}
.th-cat-progress{ display:flex; flex-direction:column; gap:6px; }
.th-cat-progress-bar{
    background:var(--border);
    border-radius:99px;
    height:8px;
    overflow:hidden;
}
.th-cat-progress-fill{
    height:100%;
    border-radius:99px;
    background:var(--green,#1a9e5c);
    transition:width .4s ease;
}
.th-cat-progress-label{ font-size:13px; color:var(--ink-muted); }
.th-mark-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 20px;
    border:2px solid var(--border-strong,#ccc);
    border-radius:var(--radius);
    background:var(--surface);
    color:var(--navy);
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:background .15s, border-color .15s, color .15s;
    align-self:flex-start;
}
.th-mark-btn svg{ width:18px; height:18px; flex-shrink:0; }
.th-mark-btn:hover{ border-color:var(--navy); }
.th-mark-btn.th-mark-done{
    background:#ecfdf5;
    border-color:#1a9e5c;
    color:#1a9e5c;
}
.th-mark-btn:disabled{ opacity:.6; cursor:not-allowed; }

/* ── Reading Progress (account page) ────────────────────────────────────── */
.kpa-reading-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:16px;
    margin-bottom:20px;
}
.kpa-rp-card{
    border:1px solid var(--border,#e4e8ec);
    border-radius:12px;
    padding:18px 20px;
    background:#fff;
    display:flex;
    flex-direction:column;
    gap:10px;
}
.kpa-rp-card.kpa-rp-done{ border-color:#1a9e5c; background:#f0fdf4; }
.kpa-rp-top{ display:flex; align-items:center; gap:8px; }
.kpa-rp-name{ font-size:14px; font-weight:600; color:#142638; flex:1; }
.kpa-rp-badge{
    font-size:10px;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase;
    padding:2px 8px;
    border-radius:20px;
    white-space:nowrap;
}
.kpa-rp-badge-done     { background:#ecfdf5; color:#1a9e5c; }
.kpa-rp-badge-progress { background:#fff7e6; color:#b85c00; }
.kpa-rp-badge-none     { background:#f5f7f9; color:#5b6b7a; }
.kpa-rp-counts{ font-size:13px; color:#5b6b7a; }
.kpa-rp-counts strong{ color:#142638; font-weight:700; }
.kpa-rp-bar-fill{
    height:100%;
    border-radius:99px;
    background:#1a9e5c;
    transition:width .4s ease;
}
.kpa-rp-link{
    font-size:12px;
    font-weight:600;
    color:#185FA5;
    margin-top:2px;
}
.kpa-rp-link:hover{ text-decoration:underline; }

/* ── Saved Questions (account page) ─────────────────────────────────────── */
.kpa-saved-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:16px;
}
.kpa-saved-count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#f5a623;
    color:#fff;
    font-size:12px;
    font-weight:700;
    margin-left:6px;
}
.kpa-saved-study-btn{ background:var(--navy) !important; color:#FECB00 !important; }
.kpa-saved-study-btn:hover{ background:#0d1e2e !important; }
.kpa-saved-list{ display:flex; flex-direction:column; gap:8px; }
.kpa-saved-card{
    border:1px solid var(--border,#e4e8ec);
    border-radius:10px;
    background:#fff;
    overflow:hidden;
}
.kpa-saved-card[open]{ border-color:#f5a623; }
.kpa-saved-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 18px;
    cursor:pointer;
    list-style:none;
    flex-wrap:wrap;
}
.kpa-saved-summary::-webkit-details-marker{ display:none; }
.kpa-saved-summary::after{
    content:'▸';
    font-size:13px;
    color:var(--ink-muted,#5b6b7a);
    flex-shrink:0;
    transition:transform .2s;
}
.kpa-saved-card[open] .kpa-saved-summary::after{ transform:rotate(90deg); }
.kpa-saved-q{
    font-size:14px;
    font-weight:600;
    color:#142638;
    flex:1;
    line-height:1.4;
}
.kpa-saved-cat-tag{
    font-size:11px;
    font-weight:600;
    color:#5b6b7a;
    background:#f5f7f9;
    border-radius:20px;
    padding:2px 10px;
    white-space:nowrap;
    flex-shrink:0;
}
.kpa-saved-body{ padding:0 18px 16px; display:flex; flex-direction:column; gap:10px; }
.kpa-saved-answer{
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:12px 14px;
    background:#f0fdf4;
    border-radius:8px;
    font-size:14px;
    color:#142638;
}
.kpa-saved-answer-label{ font-size:11px; font-weight:700; color:#1a9e5c; text-transform:uppercase; letter-spacing:.05em; }
.kpa-saved-expl{
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:12px 14px;
    background:#fffbf0;
    border-radius:8px;
    font-size:13px;
    color:#5b6b7a;
    line-height:1.55;
}
.kpa-saved-expl-label{ font-size:11px; font-weight:700; color:#b85c00; text-transform:uppercase; letter-spacing:.05em; }

/* Saved button in flashcard category grid */
.fc-cat-saved{ border-color:#f5a623 !important; }
.fc-cat-saved .fc-cat-icon{ color:#f5a623 !important; }
.fc-cat-saved:disabled{ opacity:.45; cursor:not-allowed; }

/* ── Theory Archive (archive-theory.php) ─────────────────────────────────── */
.eyebrow.c-yellow{ color:var(--yellow); }

/* Hero */
.thy-hero{
    background: var(--navy);
    background-image:
        radial-gradient(ellipse 800px 500px at 100% 50%, rgba(254,203,0,.09) 0%, transparent 55%),
        radial-gradient(ellipse 500px 400px at 0%  100%, rgba(192,1,86,.06) 0%, transparent 55%);
    padding:52px 0 44px;
    position:relative; overflow:hidden;
}
.thy-hero::before{
    content:''; position:absolute; inset:0;
    background-image: radial-gradient(circle, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 28px 28px; pointer-events:none;
}
.thy-hero > .container{ position:relative; z-index:1; }
.thy-hero-title{ font-size:38px; color:#fff; margin:0 0 10px; }
.thy-hero-sub{ font-size:16px; color:var(--navy-muted); max-width:560px; line-height:1.6; margin:0 0 20px; }
.thy-hero-stats{ display:flex; flex-wrap:wrap; gap:20px; }
.thy-hero-stats span{ display:flex; align-items:center; gap:6px; font-size:14px; color:rgba(255,255,255,.55); }
.thy-hero-stats i{ font-size:15px; color:var(--yellow); }

/* Filter bar */
.thy-filter-bar{ background:var(--surface); border-bottom:1px solid var(--border); position:sticky; top:68px; z-index:20; }
.thy-filter-scroll{ display:flex; align-items:center; gap:6px; overflow-x:auto; padding:12px 0; scrollbar-width:none; }
.thy-filter-scroll::-webkit-scrollbar{ display:none; }
.thy-filter-btn{ flex-shrink:0; display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--ink-secondary); background:var(--surface-2); border:1px solid var(--border); border-radius:20px; padding:6px 14px; cursor:pointer; transition:all .15s; white-space:nowrap; }
.thy-filter-btn:hover{ border-color:var(--border-strong); color:var(--ink); }
.thy-filter-btn.thy-filter-active{ background:var(--navy); color:#fff; border-color:var(--navy); }
.thy-filter-btn.thy-filter-active .thy-filter-count{ background:rgba(255,255,255,.2); color:#fff; }
.thy-filter-count{ font-size:11px; font-weight:700; background:var(--border); color:var(--ink-muted); border-radius:20px; padding:1px 7px; }

/* Category section */
.thy-cat-section{ margin-bottom:48px; }
.thy-cat-header{ display:flex; align-items:center; gap:14px; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.thy-cat-icon{ width:44px; height:44px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.thy-cat-title{ font-size:20px; font-weight:700; margin:0 0 2px; }
.thy-cat-sub{ font-size:13px; color:var(--ink-muted); margin:0; }

/* ── Theory archive — topic category cards ───────────────────────────────── */
.thy-cat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media(max-width:900px){ .thy-cat-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .thy-cat-grid{ grid-template-columns:1fr; } }

.thy-topic-card{ display:flex; flex-direction:column; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:var(--surface); text-decoration:none; color:inherit; transition:box-shadow .2s,transform .2s; }
.thy-topic-card:hover{ box-shadow:0 10px 32px rgba(20,38,56,.11); transform:translateY(-4px); border-color:var(--border-strong); }
.thy-topic-accent{ height:4px; flex-shrink:0; }
.thy-topic-body{ padding:24px; display:flex; flex-direction:column; flex:1; gap:0; }

.thy-topic-icon{ width:52px; height:52px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:14px; flex-shrink:0; }
.thy-topic-count{ display:inline-block; font-size:11px; font-weight:700; border-radius:20px; padding:2px 10px; margin-bottom:10px; align-self:flex-start; }
.thy-topic-name{ font-size:18px; font-weight:700; color:var(--ink); margin:0 0 8px; line-height:1.25; }
.thy-topic-card:hover .thy-topic-name{ color:var(--navy); }
.thy-topic-desc{ font-size:13px; color:var(--ink-secondary); line-height:1.6; margin:0 0 18px; flex:1; }
.thy-topic-cta{ display:flex; align-items:center; gap:5px; font-size:13px; font-weight:700; margin-top:auto; }
.thy-topic-cta i{ font-size:14px; transition:transform .15s; }
.thy-topic-card:hover .thy-topic-cta i{ transform:translateX(4px); }

/* ── Taxonomy category page (per-topic article grid) ─────────────────────── */
.thy-breadcrumb{ margin-bottom:20px; }
.thy-breadcrumb a{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--navy-muted); text-decoration:none; transition:color .15s; }
.thy-breadcrumb a:hover{ color:var(--yellow); }
.thy-taxhero-inner{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.thy-taxhero-icon{ width:60px; height:60px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:28px; flex-shrink:0; }
.thy-test-pill{ display:inline-flex; align-items:center; gap:7px; margin-left:auto; background:var(--yellow); color:var(--navy); font-size:13px; font-weight:700; padding:9px 18px; border-radius:20px; transition:background .15s; white-space:nowrap; }
.thy-test-pill:hover{ background:#e8b800; color:var(--navy); }
@media(max-width:600px){ .thy-test-pill{ margin-left:0; } }

/* ── Article cards grid (used on taxonomy page) ──────────────────────────── */
.thy-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media(max-width:900px){ .thy-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .thy-grid{ grid-template-columns:1fr; } }

.thy-card{ display:flex; flex-direction:column; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:var(--surface); text-decoration:none; color:inherit; transition:box-shadow .2s,transform .2s; }
.thy-card:hover{ box-shadow:0 8px 28px rgba(20,38,56,.10); transform:translateY(-3px); border-color:var(--border-strong); }
.thy-card-accent{ height:4px; flex-shrink:0; }
.thy-card-body{ padding:20px; display:flex; flex-direction:column; flex:1; }
.thy-card-top{ display:flex; align-items:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.thy-card-icon{ width:36px; height:36px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.thy-card-cat{ font-size:11px; font-weight:700; border-radius:20px; padding:2px 10px; }
.thy-card-title{ font-size:15px; font-weight:700; color:var(--ink); line-height:1.35; margin:0 0 8px; }
.thy-card:hover .thy-card-title{ color:var(--navy); }
.thy-card-excerpt{ font-size:13px; color:var(--ink-secondary); line-height:1.55; margin:0; flex:1; }
.thy-card-footer{ display:flex; align-items:center; justify-content:space-between; margin-top:14px; padding-top:12px; border-top:1px solid var(--border); }
.thy-card-time{ display:flex; align-items:center; gap:4px; font-size:12px; color:var(--ink-muted); }
.thy-card-time i{ font-size:13px; }
.thy-card-cta{ display:flex; align-items:center; gap:3px; font-size:13px; font-weight:600; color:var(--navy); }
.thy-card-cta i{ font-size:14px; transition:transform .15s; }
.thy-card:hover .thy-card-cta i{ transform:translateX(3px); }

/* ── Account: Category Performance ──────────────────────────────────────── */
.kpa-cat-section{ margin:0 0 40px; }
.kpa-cat-empty{ text-align:center; padding:32px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); }
.kpa-cat-empty p{ margin:0 0 16px; color:var(--ink-secondary); }

.kpa-cat-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; margin-bottom:20px; }

.kpa-cat-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px; display:flex; flex-direction:column; gap:8px; transition:box-shadow .2s; }
.kpa-cat-card:hover{ box-shadow:0 4px 18px rgba(20,38,56,.1); }
.kpa-cat-strong{ border-left:4px solid #16a34a; }
.kpa-cat-ok{ border-left:4px solid #f59e0b; }
.kpa-cat-weak{ border-left:4px solid #dc2626; }
.kpa-cat-none{ border-left:4px solid #d1d5db; opacity:.75; }

.kpa-cat-top{ display:flex; align-items:center; gap:8px; }
.kpa-cat-icon{ font-size:20px; flex-shrink:0; }
.kpa-cat-name{ font-size:13px; font-weight:700; color:var(--ink); flex:1; line-height:1.3; }
.kpa-cat-badge{ font-size:10px; font-weight:700; border-radius:20px; padding:2px 8px; white-space:nowrap; }
.kpa-cat-badge-strong{ background:#dcfce7; color:#15803d; }
.kpa-cat-badge-ok{ background:#fef3c7; color:#b45309; }
.kpa-cat-badge-weak{ background:#fee2e2; color:#b91c1c; }
.kpa-cat-badge-none{ background:#f3f4f6; color:#6b7280; }

.kpa-cat-pct{ font-size:28px; font-weight:800; color:var(--ink); line-height:1; }
.kpa-cat-pct-none{ color:var(--ink-muted); font-size:24px; }

.kpa-cat-bar-bg{ background:#e5e7eb; border-radius:6px; height:8px; overflow:hidden; }
.kpa-cat-bar-fill{ height:100%; border-radius:6px; transition:width .5s ease; }
.kpa-cat-bar-strong{ background:#16a34a; }
.kpa-cat-bar-ok{ background:#f59e0b; }
.kpa-cat-bar-weak{ background:#dc2626; }

.kpa-cat-sub{ font-size:11px; color:var(--ink-muted); }

.kpa-overall-bar{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 20px; display:flex; flex-direction:column; gap:10px; }
.kpa-overall-label{ display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--ink-secondary); }
.kpa-overall-label strong{ font-size:16px; font-weight:800; color:var(--ink); }
.kpa-overall-bg{ height:12px; }

/* ── Flashcards ──────────────────────────────────────────────────────────── */
.fc-page{ min-height:80vh; }

.fc-hero{ background:linear-gradient(135deg,var(--navy) 0%,#1e3a56 100%); padding:56px 20px 48px; text-align:center; }
.fc-hero-inner{ max-width:600px; margin:0 auto; }
.fc-eyebrow{ font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--yellow); margin:0 0 10px; }
.fc-title{ font-size:clamp(28px,5vw,42px); font-weight:800; color:#fff; margin:0 0 12px; }
.fc-subtitle{ font-size:16px; color:rgba(255,255,255,.75); margin:0 0 16px; }
.fc-hint-key{ font-size:13px; color:rgba(255,255,255,.5); margin:0; }
.fc-hint-key kbd{ background:rgba(255,255,255,.15); border-radius:4px; padding:1px 6px; font-family:monospace; font-size:12px; color:rgba(255,255,255,.8); }

/* Category selector */
.fc-selector-wrap{ background:#f4f6f8; padding:40px 20px 56px; }
.fc-selector-inner{ max-width:900px; margin:0 auto; }
.fc-selector-title{ font-size:18px; font-weight:700; color:var(--ink); text-align:center; margin:0 0 24px; }
.fc-cat-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; }
.fc-cat-btn{ background:var(--surface); border:2px solid var(--border); border-radius:var(--radius-lg); padding:20px 16px; display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; transition:all .2s; text-align:center; }
.fc-cat-btn:hover{ border-color:var(--navy); box-shadow:0 4px 16px rgba(20,38,56,.12); transform:translateY(-2px); }
.fc-cat-icon{ font-size:28px; }
.fc-cat-name{ font-size:13px; font-weight:700; color:var(--ink); line-height:1.3; }
.fc-cat-count{ font-size:11px; font-weight:600; color:var(--ink-muted); background:var(--border); border-radius:20px; padding:2px 10px; }

/* Loading */
.fc-loading{ text-align:center; padding:80px 20px; color:var(--ink-secondary); }
.fc-spinner{ width:36px; height:36px; border:4px solid var(--border); border-top-color:var(--navy); border-radius:50%; animation:fc-spin .7s linear infinite; margin:0 auto 16px; }
@keyframes fc-spin{ to{ transform:rotate(360deg); } }

/* Stage */
.fc-stage{ padding:20px 20px 60px; }
.fc-stage-inner{ max-width:680px; margin:0 auto; }

.fc-topbar{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.fc-back-btn{ background:none; border:none; cursor:pointer; font-size:13px; font-weight:600; color:var(--ink-secondary); padding:0; }
.fc-back-btn:hover{ color:var(--navy); }
.fc-deck-info{ display:flex; flex-direction:column; align-items:center; gap:2px; }
.fc-cat-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-muted); }
.fc-counter{ font-size:14px; font-weight:700; color:var(--ink); }
.fc-topbar-actions{ display:flex; gap:8px; }
.fc-ctrl-btn{ font-size:12px; font-weight:600; padding:6px 14px; border-radius:20px; border:1.5px solid var(--border); background:var(--surface); cursor:pointer; color:var(--ink-secondary); transition:all .15s; }
.fc-ctrl-btn:hover{ border-color:var(--navy); color:var(--navy); }

/* Progress bars */
.fc-progress-wrap{ height:6px; background:#e5e7eb; border-radius:6px; overflow:hidden; margin-bottom:6px; position:relative; }
.fc-progress-bar{ height:100%; background:var(--navy); border-radius:6px; transition:width .4s; }
.fc-known-bar{ height:100%; background:#16a34a; border-radius:6px; position:absolute; top:0; left:0; transition:width .4s; opacity:.45; }

/* Stats row */
.fc-stats-row{ display:flex; gap:16px; justify-content:center; margin-bottom:20px; flex-wrap:wrap; }
.fc-stat{ font-size:12px; color:var(--ink-muted); }
.fc-stat-known strong{ color:#16a34a; }
.fc-stat-learning strong{ color:#f59e0b; }
.fc-stat-unseen strong{ color:var(--ink-secondary); }

/* Flip card */
.fc-card-outer{ perspective:1200px; cursor:pointer; user-select:none; margin-bottom:20px; min-height:280px; }
.fc-card-outer:focus{ outline:3px solid var(--yellow); border-radius:16px; }
.fc-inner{ position:relative; height:280px; transform-style:preserve-3d; transition:transform .52s cubic-bezier(.4,0,.2,1); border-radius:16px; }
.fc-inner.flipped{ transform:rotateY(180deg); }
.fc-face{ position:absolute; inset:0; backface-visibility:hidden; border-radius:16px; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; }

/* Front */
.fc-front{ background:var(--navy); border:none; box-shadow:0 8px 32px rgba(20,38,56,.22); }
.fc-front-body{ flex:1; display:flex; align-items:center; justify-content:center; padding:36px 32px; }
.fc-question-text{ font-size:clamp(16px,3vw,20px); font-weight:700; color:#fff; text-align:center; line-height:1.5; margin:0; }
.fc-flip-hint{ text-align:center; padding:14px; font-size:12px; color:rgba(255,255,255,.4); border-top:1px solid rgba(255,255,255,.1); flex-shrink:0; }

/* Back */
.fc-back{ background:#fff; border:2px solid #e5e7eb; box-shadow:0 8px 32px rgba(20,38,56,.12); transform:rotateY(180deg); }
.fc-back-body{ flex:1; overflow-y:auto; padding:24px 28px 16px; display:flex; flex-direction:column; gap:14px; }
.fc-answer-block{ display:flex; flex-direction:column; gap:6px; }
.fc-answer-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#16a34a; }
.fc-answer-text{ font-size:16px; font-weight:700; color:var(--ink); margin:0; line-height:1.4; }
.fc-explanation-block{ background:#eff6ff; border:1px solid #bfdbfe; border-radius:10px; padding:12px 14px; display:flex; flex-direction:column; gap:4px; }
.fc-exp-label{ font-size:11px; font-weight:700; color:#185fa5; }
.fc-exp-text{ font-size:13px; color:#1e3a5f; margin:0; line-height:1.55; }

.fc-verdict-row{ display:flex; gap:0; flex-shrink:0; border-top:1px solid #e5e7eb; }
.fc-verdict-btn{ flex:1; padding:14px 10px; font-size:13px; font-weight:700; cursor:pointer; border:none; transition:background .15s; }
.fc-still-learning{ background:#fef3c7; color:#b45309; border-right:1px solid #e5e7eb; }
.fc-still-learning:hover{ background:#fde68a; }
.fc-knew-it{ background:#dcfce7; color:#15803d; }
.fc-knew-it:hover{ background:#bbf7d0; }

.fc-card-known .fc-front{ background:linear-gradient(135deg,#166534 0%,#15803d 100%); }
.fc-card-known .fc-flip-hint::before{ content:'✓ Marked as known — '; color:rgba(255,255,255,.6); }

/* Navigation */
.fc-nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.fc-nav-btn{ padding:10px 24px; border-radius:24px; border:2px solid var(--border); background:var(--surface); font-size:14px; font-weight:700; cursor:pointer; color:var(--ink); transition:all .15s; }
.fc-nav-btn:hover:not(:disabled){ border-color:var(--navy); color:var(--navy); }
.fc-nav-btn:disabled{ opacity:.35; cursor:not-allowed; }
.fc-dots{ display:flex; gap:6px; flex-wrap:wrap; justify-content:center; flex:1; }
.fc-dot{ width:10px; height:10px; border-radius:50%; background:#d1d5db; cursor:pointer; transition:all .15s; flex-shrink:0; }
.fc-dot-current{ background:var(--navy); transform:scale(1.3); }
.fc-dot-known{ background:#16a34a; }

/* Complete screen */
.fc-complete{ padding:80px 20px; text-align:center; }
.fc-complete-inner{ max-width:480px; margin:0 auto; }
.fc-complete-icon{ font-size:56px; margin-bottom:16px; }
.fc-complete-title{ font-size:28px; font-weight:800; color:var(--ink); margin:0 0 12px; }
.fc-complete-sub{ font-size:15px; color:var(--ink-secondary); margin:0 0 32px; line-height:1.6; }
.fc-complete-actions{ display:flex; flex-direction:column; gap:12px; align-items:center; }
.fc-complete-btn{ padding:12px 28px; border-radius:28px; font-size:14px; font-weight:700; cursor:pointer; border:none; transition:all .15s; min-width:200px; }
.fc-complete-restart{ background:var(--navy); color:#fff; }
.fc-complete-restart:hover{ background:#1e3a56; }
.fc-complete-unknown{ background:var(--yellow); color:var(--navy); }
.fc-complete-unknown:hover{ background:#e6b800; }
.fc-complete-back{ background:var(--surface); border:2px solid var(--border); color:var(--ink-secondary); }
.fc-complete-back:hover{ border-color:var(--navy); color:var(--navy); }

@media(max-width:600px){
  .fc-inner{ height:320px; }
  .fc-topbar{ flex-direction:column; align-items:flex-start; }
  .fc-deck-info{ align-items:flex-start; }
  .fc-cat-grid{ grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
  .fc-nav-btn{ padding:10px 14px; font-size:13px; }
}

/* ── Road Signs Library ──────────────────────────────────────────────────── */
.rs-hero{ background:var(--navy); padding:64px 20px 56px; text-align:center; }
.rs-hero-inner{ max-width:680px; margin:0 auto; }
.rs-eyebrow{ font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--yellow); margin:0 0 12px; }
.rs-title{ font-size:clamp(28px,5vw,44px); font-weight:800; color:#fff; margin:0 0 12px; line-height:1.15; }
.rs-subtitle{ font-size:16px; color:rgba(255,255,255,.7); margin:0 0 28px; }
.rs-search-wrap{ position:relative; max-width:480px; margin:0 auto; }
.rs-search-icon{ position:absolute; left:14px; top:50%; transform:translateY(-50%); font-size:17px; pointer-events:none; }
.rs-search{ width:100%; padding:13px 16px 13px 44px; font-size:15px; border-radius:28px; border:none; outline:none; box-shadow:0 2px 12px rgba(0,0,0,.25); box-sizing:border-box; }
.rs-search:focus{ box-shadow:0 0 0 3px var(--yellow), 0 2px 12px rgba(0,0,0,.2); }

.rs-page{ max-width:1200px; margin:0 auto; padding:32px 20px 64px; }

.rs-filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:32px; }
.rs-filter-btn{ display:flex; align-items:center; gap:6px; padding:8px 18px; border-radius:24px; border:2px solid var(--border); background:var(--surface); font-size:13px; font-weight:600; cursor:pointer; color:var(--ink-secondary); transition:all .18s; }
.rs-filter-btn:hover{ border-color:var(--navy); color:var(--navy); }
.rs-filter-btn.rs-active{ background:var(--navy); border-color:var(--navy); color:#fff; }
.rs-count{ background:rgba(255,255,255,.25); border-radius:10px; padding:1px 7px; font-size:11px; font-weight:700; }
.rs-filter-btn:not(.rs-active) .rs-count{ background:var(--border); color:var(--ink-secondary); }

.rs-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:20px; }

.rs-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; cursor:default; transition:box-shadow .2s,transform .2s; }
.rs-card:hover{ box-shadow:0 8px 28px rgba(20,38,56,.12); transform:translateY(-3px); border-color:var(--border-strong); }
.rs-card.rs-hidden{ display:none; }

.rs-sign-wrap{ background:#f0f2f5; display:flex; align-items:center; justify-content:center; padding:20px; min-height:130px; }
.rs-svg{ width:96px; height:96px; display:block; object-fit:contain; }

.rs-card-body{ padding:12px 14px 16px; display:flex; flex-direction:column; flex:1; }
.rs-card-code{ font-size:10px; font-weight:700; letter-spacing:.08em; color:var(--ink-muted,#888); margin:0 0 4px; text-transform:uppercase; }
.rs-card-name{ font-size:13px; font-weight:700; color:var(--ink); margin:0 0 2px; line-height:1.3; }
.rs-card-name-en{ font-size:11px; font-weight:600; color:var(--yellow-dark,#b08800); margin:0 0 7px; }
.rs-card-desc{ font-size:12px; color:var(--ink-secondary); line-height:1.55; margin:0; }

.rs-no-results{ text-align:center; padding:48px 20px; color:var(--ink-muted); font-size:15px; }

@media(max-width:600px){
  .rs-grid{ grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:14px; }
  .rs-filters{ gap:8px; }
  .rs-filter-btn{ font-size:12px; padding:7px 13px; }
}

/* ── Instructor Dashboard ────────────────────────────────────────────────── */
.idash-page{ background:var(--surface); min-height:calc(100vh - 80px); padding:40px 0 80px; }
.idash-page > .container{ max-width:1020px; }

/* Status banners */
.idash-banner{
    display:flex; align-items:center; gap:16px;
    padding:18px 24px; border-radius:12px; margin-bottom:32px;
    font-size:14px;
}
.idash-banner i{ font-size:22px; flex-shrink:0; }
.idash-banner > div{ flex:1; }
.idash-banner strong{ display:block; font-weight:700; margin-bottom:2px; }
.idash-banner span{ color:inherit; opacity:.8; }
.idash-banner--pending{ background:#fef3c7; color:#92400e; }
.idash-banner--pending i{ color:#d97706; }
.idash-banner--approved{ background:#d1fae5; color:#065f46; }
.idash-banner--approved i{ color:#059669; }
.idash-banner--rejected{ background:#fee2e2; color:#991b1b; }
.idash-banner--rejected i{ color:#dc2626; }
.idash-banner--rejected a{ color:#991b1b; font-weight:600; }

/* Layout */
.idash-layout{ display:grid; grid-template-columns:1fr 320px; gap:24px; align-items:start; }

/* Cards */
.idash-card{
    background:#fff; border:1px solid var(--border);
    border-radius:14px; padding:28px; margin-bottom:16px;
}
.idash-card:last-child{ margin-bottom:0; }
.idash-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.idash-card-head h2{ font-size:17px; font-weight:800; color:var(--ink); margin:0; }
.idash-view-link{ display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; color:var(--navy); }
.idash-view-link:hover{ text-decoration:underline; }

/* Profile row */
.idash-profile-row{ display:flex; align-items:center; gap:16px; margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid var(--border); }
.idash-avatar{ width:64px; height:64px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.idash-avatar--placeholder{ background:var(--surface); border:2px solid var(--border); display:flex; align-items:center; justify-content:center; }
.idash-avatar--placeholder i{ font-size:28px; color:#94a3b8; }
.idash-name{ font-size:18px; font-weight:800; color:var(--ink); margin-bottom:6px; }
.idash-meta{ display:flex; flex-wrap:wrap; gap:10px; }
.idash-meta span{ display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--ink-secondary); }
.idash-meta i{ font-size:13px; }

/* Fields */
.idash-fields{ display:flex; flex-direction:column; gap:0; }
.idash-field-row{ display:flex; gap:16px; padding:12px 0; border-bottom:1px solid var(--border); font-size:14px; }
.idash-field-row:last-child{ border-bottom:none; }
.idash-field-label{ width:110px; flex-shrink:0; font-weight:600; color:var(--ink-secondary); font-size:13px; }
.idash-field-row--bio{ align-items:flex-start; }
.idash-field-row--bio span{ line-height:1.6; color:var(--ink); white-space:pre-wrap; }

/* Steps */
.idash-card h3{ font-size:14px; font-weight:700; color:var(--ink); margin:0 0 16px; }
.idash-steps{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0; }
.idash-steps li{ padding:12px 0 12px 32px; position:relative; border-bottom:1px solid var(--border); font-size:13px; color:var(--ink-secondary); }
.idash-steps li:last-child{ border-bottom:none; }
.idash-steps li::before{
    content:''; position:absolute; left:0; top:16px;
    width:16px; height:16px; border-radius:50%;
    border:2px solid #cbd5e1; background:#fff;
}
.idash-steps strong{ display:block; font-weight:700; color:var(--ink); margin-bottom:2px; }
.idash-step--done::before{ border-color:#059669; background:#d1fae5; }
.idash-step--done strong{ color:#065f46; }
.idash-step--active::before{ border-color:var(--yellow); background:var(--yellow); }
.idash-step--rejected::before{ border-color:#dc2626; background:#fee2e2; }

/* Help card */
.idash-card--help{ text-align:center; padding:20px; }
.idash-help-icon{ font-size:28px; color:var(--navy); display:block; margin-bottom:8px; }
.idash-card--help strong{ display:block; font-size:14px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.idash-card--help p{ font-size:13px; color:var(--ink-secondary); margin:0; line-height:1.6; }
.idash-card--help a{ color:var(--navy); font-weight:600; }

/* Sign out */
.idash-logout{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:#94a3b8; padding:4px 0; }
.idash-logout:hover{ color:var(--ink); }

@media(max-width:860px){
    .idash-layout{ grid-template-columns:1fr; }
    .idash-banner{ flex-wrap:wrap; }
}
@media(max-width:600px){
    .idash-page{ padding:24px 0 60px; }
    .idash-card{ padding:20px; }
    .idash-field-label{ width:90px; }
}

/* ── Single Instructor Profile ───────────────────────────────────────────── */

/* Hero */
.ip-hero{
    background: var(--navy);
    background-image:
        radial-gradient(ellipse 800px 500px at 100% 50%, rgba(254,203,0,.09) 0%, transparent 55%),
        radial-gradient(ellipse 500px 400px at 0%  100%, rgba(192,1,86,.06) 0%, transparent 55%);
    padding: 28px 0 48px;
    position: relative; overflow: hidden;
}
.ip-hero::before{
    content:''; position:absolute; inset:0;
    background-image: radial-gradient(circle, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 28px 28px; pointer-events:none;
}
.ip-hero > .container{ position:relative; z-index:1; }

.ip-back{
    display:inline-flex; align-items:center; gap:6px;
    font-size:13px; color:rgba(255,255,255,.55); margin-bottom:28px;
    transition: color .15s;
}
.ip-back:hover{ color:#fff; }
.ip-back i{ font-size:14px; }

.ip-hero-inner{
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

/* Avatar */
.ip-avatar-wrap{ position:relative; flex-shrink:0; }
.ip-avatar{
    width: 100px; height: 100px; border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.15);
    display: block;
}
.ip-avatar--initials{
    background: var(--yellow); color: var(--navy);
    font-size: 36px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ip-verified-badge{
    position: absolute; bottom: 2px; right: 2px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #22c55e; border: 2px solid var(--navy);
    display: flex; align-items: center; justify-content: center;
}
.ip-verified-badge i{ font-size: 12px; color: #fff; }

/* Identity */
.ip-identity{ min-width: 0; }
.ip-name-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.ip-name{ font-size:28px; font-weight:800; color:#fff; margin:0; line-height:1.2; }
.ip-verified-pill{
    display:inline-flex; align-items:center; gap:4px;
    font-size:11px; font-weight:700; color:#22c55e;
    background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.25);
    padding:2px 8px; border-radius:20px;
}
.ip-verified-pill i{ font-size:12px; }
.ip-type-row{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.ip-type-badge{
    font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px;
    text-transform:uppercase; letter-spacing:.04em;
}
.ip-type-badge--trafiklar{ background:rgba(254,203,0,.15); color:var(--yellow); border:1px solid rgba(254,203,0,.25); }
.ip-type-badge--handledar{ background:rgba(34,197,94,.12); color:#4ade80; border:1px solid rgba(34,197,94,.2); }
.ip-type-sub{ font-size:13px; color:rgba(255,255,255,.45); }

.ip-rating-row{ display:flex; align-items:center; gap:6px; margin-bottom:12px; }
.ip-stars{ color:var(--yellow); font-size:15px; letter-spacing:1px; }
.ip-rating-num{ font-size:14px; font-weight:700; color:#fff; }
.ip-review-count{ font-size:13px; color:rgba(255,255,255,.45); }

.ip-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.ip-chip{
    display:inline-flex; align-items:center; gap:5px;
    font-size:12px; color:rgba(255,255,255,.65);
    background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1);
    padding:4px 10px; border-radius:20px;
}
.ip-chip i{ font-size:13px; }

/* Hero price (desktop only) */
.ip-hero-price{ text-align:right; flex-shrink:0; }
.ip-price-amount{
    font-size:28px; font-weight:800; color:#fff; margin-bottom:14px; line-height:1;
}
.ip-price-amount span{ font-size:14px; font-weight:400; color:rgba(255,255,255,.5); }
.ip-cta-btn{ min-width:180px; }

/* Body */
.ip-body{ background:var(--surface); padding:40px 0 80px; }
.ip-layout{ display:grid; grid-template-columns:1fr 320px; gap:28px; align-items:start; }

/* Cards */
.ip-card{
    background:#fff; border:1px solid var(--border);
    border-radius:14px; padding:28px; margin-bottom:20px;
}
.ip-card:last-child{ margin-bottom:0; }
.ip-card-title{
    font-size:16px; font-weight:800; color:var(--ink);
    margin:0 0 16px; padding-bottom:14px; border-bottom:1px solid var(--border);
}

/* Bio */
.ip-bio{ font-size:15px; line-height:1.75; color:var(--ink-secondary); }

/* Details grid */
.ip-details-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0; }
.ip-detail-item{
    display:flex; align-items:flex-start; gap:12px;
    padding:14px 0; border-bottom:1px solid var(--border);
}
.ip-detail-item:nth-last-child(-n+2){ border-bottom:none; }
.ip-detail-icon{
    width:32px; height:32px; border-radius:8px; flex-shrink:0;
    background:var(--surface); display:flex; align-items:center; justify-content:center;
}
.ip-detail-icon i{ font-size:16px; color:var(--navy); }
.ip-detail-icon--green i{ color:#059669; }
.ip-detail-icon--green{ background:#d1fae5; }
.ip-detail-item > div{ display:flex; flex-direction:column; gap:2px; }
.ip-detail-label{ font-size:11px; font-weight:600; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.05em; }
.ip-detail-value{ font-size:13px; font-weight:600; color:var(--ink); }

/* Sidebar contact card */
.ip-sidebar{ position:sticky; top:96px; }
.ip-contact-card{
    background:#fff; border:1px solid var(--border);
    border-radius:14px; padding:24px; margin-bottom:14px;
}
.ip-contact-price{
    font-size:26px; font-weight:800; color:var(--ink);
    margin-bottom:16px; line-height:1;
}
.ip-contact-price span{ font-size:14px; font-weight:400; color:var(--ink-muted); }
.ip-contact-note{
    display:flex; align-items:center; gap:5px;
    font-size:11px; color:#64748b; margin:10px 0 18px;
    justify-content:center;
}
.ip-contact-note i{ font-size:12px; color:#22c55e; }
.ip-contact-meta{ border-top:1px solid var(--border); padding-top:16px; display:flex; flex-direction:column; gap:10px; }
.ip-contact-meta-row{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-secondary); }
.ip-contact-meta-row i{ font-size:15px; color:var(--navy); width:16px; flex-shrink:0; }

.ip-back-link{
    display:inline-flex; align-items:center; gap:6px;
    font-size:13px; color:#94a3b8; padding:4px 0;
}
.ip-back-link:hover{ color:var(--navy); }

/* Responsive */
@media(max-width:900px){
    .ip-hero-inner{ grid-template-columns:auto 1fr; gap:20px; }
    .ip-hero-price{ display:none; }
    .ip-layout{ grid-template-columns:1fr; }
    .ip-sidebar{ position:static; }
}
@media(max-width:600px){
    .ip-hero{ padding:20px 0 36px; }
    .ip-name{ font-size:22px; }
    .ip-avatar{ width:72px; height:72px; }
    .ip-avatar--initials{ font-size:26px; }
    .ip-card{ padding:20px; }
    .ip-details-grid{ grid-template-columns:1fr; }
    .ip-detail-item:nth-last-child(-n+2){ border-bottom:1px solid var(--border); }
    .ip-detail-item:last-child{ border-bottom:none; }
}

/* ── Instructor Edit Profile header ─────────────────────────────────────── */
.bi-edit-header{
    background: var(--navy);
    background-image:
        radial-gradient(ellipse 700px 400px at 100% 50%, rgba(254,203,0,.09) 0%, transparent 55%);
    padding: 36px 0 40px;
}
.bi-edit-back{
    display:inline-flex; align-items:center; gap:6px;
    font-size:13px; color:rgba(255,255,255,.5); margin-bottom:16px;
    transition:color .15s;
}
.bi-edit-back:hover{ color:#fff; }
.bi-edit-title{ font-size:28px; font-weight:800; color:#fff; margin:0 0 6px; }
.bi-edit-sub{ font-size:14px; color:rgba(255,255,255,.5); margin:0; }

/* ── Ad Units ───────────────────────────────────────────────────────────────── */
.ad-unit{ display:flex; justify-content:center; align-items:center; overflow:hidden; }
.ad-responsive{ display:block; width:100%; min-height:100px; }
.ad-unit-wrap{
    padding: 12px 0;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.ad-unit-wrap .ad-label{
    display: block;
    font-size: 10px;
    color: var(--ink-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.ad-placeholder{
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
    background: #e2e8ed;
    border: 2px dashed #c4cdd6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: .04em;
}

/* ── Theory article: right-column ad (vertical, responsive) ─────────────────── */
.th-ad{ text-align:center; }
.th-ad .ad-label{ display:block; font-size:10px; color:var(--ink-muted); letter-spacing:.06em; text-transform:uppercase; margin-bottom:6px; }
.th-ad-unit{ display:block; width:100%; min-height:250px; }
.th-ad-placeholder{ max-width:300px; height:600px; line-height:1.5; text-align:center; }
@media(max-width:860px){
    .th-ad-placeholder{ max-width:336px; height:280px; }
}

