/*
Theme Name: Alfipedia
Theme URI: https://alfipedia.com
Author: ALFICOM
Author URI: https://alficom.com
Description: Alfipedia — kratke lekcije od 5 do 10 minuta, u ALFICOM vizuelnom stilu (isti kao Clocknico).
Version: 1.0.0
Requires PHP: 8.1
Text Domain: alfipedia
*/

:root {
    --deep: #130322;
    --purple: #390c68;
    --purple-2: #4b108a;
    --indigo: #332e97;
    --violet: #4f2e94;
    --navy: #031b8e;
    --blue: #0035ff;
    --blue-2: #0845fb;
    --white: #ffffff;
    --text-dim: rgba(255, 255, 255, .7);
    --text-faint: rgba(255, 255, 255, .5);
    --line: rgba(255, 255, 255, .12);
    --paper: #ffffff;
    --ink: #1b1530;
    --ink-dim: #5b5670;
    --radius: 14px;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--indigo);
    background: linear-gradient(150deg, var(--indigo) 0%, var(--violet) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 96px; display: flex; align-items: center;
    transition: background .3s ease-in, height .3s ease-in, box-shadow .3s;
}
.site-header.scrolled, body:not(.home) .site-header { background: rgba(19, 3, 34, .92); backdrop-filter: blur(8px); height: 76px; box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: 6px; font-size: 20px; text-transform: uppercase; }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo small { display: block; font-size: 9px; letter-spacing: 3px; font-weight: 400; color: var(--text-faint); margin-top: -2px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 14px; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); transition: color .15s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--white); }
.main-nav .nav-cta a { color: var(--white); border: 2px solid var(--blue-2); border-radius: 999px; padding: 8px 20px; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--blue-2); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: .2s; }

@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .main-nav { position: fixed; inset: 76px 0 auto 0; background: var(--deep); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .main-nav.open { max-height: 80vh; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 24px; }
    .main-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
    .site-header { height: 76px; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer;
    border: 2px solid var(--blue-2); color: var(--white); background: transparent; transition: background .15s, transform .15s, color .15s;
}
.btn:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-solid { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 30px rgba(0, 53, 255, .35); }
.btn-solid:hover { background: var(--blue-2); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--text-dim); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); color: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; top: 0; right: 0; width: 52%; height: 88%;
    background: var(--navy); opacity: .55; z-index: 0;
}
.hero::after {
    content: ""; position: absolute; top: 12%; right: 6%; width: 38vw; height: 38vw; max-width: 560px; max-height: 560px;
    border-radius: 50%; background: radial-gradient(circle, rgba(0,53,255,.45) 0%, rgba(0,53,255,0) 70%); z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; }
.eyebrow b { color: var(--blue-2); font-weight: 700; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; margin: 0 0 24px; font-weight: 800; text-transform: uppercase; letter-spacing: -1px; }
.hero h1 .light { font-weight: 300; opacity: .55; display: block; }
.hero h1 .blue { color: var(--blue-2); }
.hero p.lead { font-size: 19px; font-weight: 300; color: var(--text-dim); max-width: 560px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.dark { background: var(--deep); background: linear-gradient(180deg, var(--deep) 0%, var(--purple) 55%, var(--purple-2) 100%); }
.section.black { background: #000; }
.section-title { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 60px; }
.section-title h2 { margin: 0; font-size: clamp(44px, 7.5vw, 80px); line-height: 1; text-transform: uppercase; opacity: .5; font-weight: 300; }
.section-title h2 b { font-weight: 800; }
.section-title .section-subtitle { margin-left: -35px; font-size: 24px; font-weight: 300; position: relative; }
@media (max-width: 760px) {
    .section { padding: 80px 0; }
    .section-title { display: block; }
    .section-title .section-subtitle { margin-left: 0; display: block; margin-top: 10px; font-size: 19px; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); transition: border-color .2s, transform .2s, background .2s; }
.feature:hover { border-color: var(--blue-2); transform: translateY(-3px); background: rgba(8,69,251,.08); }
.feature .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: rgba(8,69,251,.18); color: #7d9bff; margin-bottom: 20px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.feature p { margin: 0; color: var(--text-dim); font-weight: 300; font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* highlight band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.band h3 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 20px; text-transform: uppercase; font-weight: 800; }
.band h3 span { color: var(--blue-2); }
.band p { color: var(--text-dim); font-weight: 300; font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding: 8px 0 8px 34px; position: relative; color: var(--text-dim); }
.checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-box { padding: 30px; border-radius: var(--radius); background: rgba(3,27,142,.45); border: 1px solid var(--line); }
.stat-box b { display: block; font-size: 40px; font-weight: 800; color: var(--white); line-height: 1.1; }
.stat-box span { color: var(--text-dim); font-size: 14px; font-weight: 300; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; gap: 40px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue-2); }
.step h3 { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 1px; font-size: 18px; }
.step p { margin: 0; color: var(--text-dim); font-weight: 300; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.billing-switch { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 40px; }
.billing-switch button { font-family: inherit; background: none; border: 0; color: var(--text-dim); padding: 10px 22px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.billing-switch button.active { background: var(--blue); color: var(--white); }
.billing-switch .save { color: #7dffb0; font-size: 11px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
.plan { padding: 40px 36px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.035); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue-2); background: linear-gradient(160deg, rgba(8,69,251,.22), rgba(3,27,142,.35)); position: relative; }
.plan.featured::before { content: "Najpopularnije"; position: absolute; top: -13px; left: 36px; background: var(--blue); padding: 3px 14px; border-radius: 999px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.plan h3 { margin: 0; text-transform: uppercase; letter-spacing: 3px; font-size: 15px; color: var(--text-dim); }
.plan .price { font-size: 56px; font-weight: 800; line-height: 1; margin: 18px 0 6px; }
.plan .price small { font-size: 16px; font-weight: 400; color: var(--text-dim); }
.plan .per { color: var(--text-faint); font-size: 14px; min-height: 22px; }
.plan .checks { flex: 1; margin-bottom: 30px; }
.plan form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan label.users { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.plan input[type=number] { width: 84px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--white); font: inherit; font-weight: 600; }
.plan .btn { flex: 1; }
.plan .total { width: 100%; font-size: 13px; color: var(--text-faint); margin-top: 6px; }
[data-cycle="yearly"] .is-monthly, [data-cycle="monthly"] .is-yearly { display: none !important; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 300; color: var(--blue-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--text-dim); font-weight: 300; }

/* CTA / contact band (alficom "Don't be shy") */
.cta { background: #000; padding: 90px 0; text-align: center; }
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: 5px; color: var(--blue-2); font-weight: 400; margin: 0 0 30px; text-transform: none; }
.cta h2 span { color: var(--white); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: #000; border-top: 1px solid rgba(255,255,255,.08); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.site-footer p { color: var(--text-faint); font-size: 14px; font-weight: 300; max-width: 320px; }
.copyright { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.copyright span { color: var(--white); font-weight: 600; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- inner pages (legal, WooCommerce): white paper on the gradient ---------- */
.page-hero { padding: 150px 0 50px; }
.page-hero h1 { margin: 0; font-size: clamp(36px, 5.5vw, 64px); text-transform: uppercase; font-weight: 300; opacity: .6; line-height: 1.05; }
.page-hero h1 b { font-weight: 800; }
.paper { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 48px; margin-bottom: 100px; box-shadow: 0 30px 60px rgba(8, 0, 30, .35); }
.paper a { color: var(--blue); }
.paper h2, .paper h3 { color: var(--ink); }
.paper p, .paper li { color: #3a3550; }
@media (max-width: 760px) { .paper { padding: 26px 20px; } .container { padding: 0 20px; } }

/* WooCommerce inside paper */
.paper .woocommerce, .paper .wp-block-woocommerce-cart, .paper .wp-block-woocommerce-checkout { font-family: "Montserrat", system-ui, sans-serif; }
.paper .button, .paper button.button, .paper .wc-block-components-button:not(.is-link), .paper .woocommerce a.button, .paper .woocommerce button.button, .paper input[type=submit] {
    background: var(--blue) !important; color: #fff !important; border-radius: 999px !important; border: 0 !important;
    padding: 14px 28px !important; font-weight: 600 !important; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px !important;
}
.paper .button:hover, .paper .wc-block-components-button:not(.is-link):hover { background: var(--blue-2) !important; }
.paper .woocommerce-message, .paper .woocommerce-info { border-top-color: var(--blue); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--purple-2); font-weight: 700; }
.woocommerce-breadcrumb { display: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid #eee; }

/* android download */
.app-download { margin: 28px 0 10px; }
.apk-meta { margin-top: 10px; font-size: 13px; color: var(--text-faint); }
.hint-light { font-size: 13px; color: var(--text-faint) !important; }
.hint-light a { color: var(--text-dim); }
.phone { justify-self: center; width: 280px; padding: 12px; border-radius: 38px; background: #0b0616; box-shadow: 0 40px 80px rgba(8,0,30,.6), inset 0 0 0 2px rgba(255,255,255,.08); }
.phone-screen { background: #f5f7fa; color: #1f2937; border-radius: 28px; padding: 14px 12px 20px; min-height: 480px; font-size: 12px; }
.phone-bar { display: flex; justify-content: space-between; background: #111827; color: #fff; margin: -14px -12px 12px; padding: 16px 16px 12px; border-radius: 28px 28px 0 0; font-weight: 700; }
.paper .btn { color: #fff; }
.paper .steps-list li { margin-bottom: 10px; }


/* ================================================================== */
/* Alfipedia                                                           */
/* ================================================================== */

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; background: rgba(255,255,255,.08); color: var(--text-dim); text-decoration: none; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue-2)); }
.chip-free { background: rgba(16,185,129,.2); color: #6ee7b7; }
.chip-lock { background: rgba(245,158,11,.18); color: #fcd34d; }
.chip-done { background: rgba(8,69,251,.25); color: #a5b4fc; }

/* area icon bubble: color comes from --c set inline per area */
.area-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: var(--c, var(--blue-2)); background: color-mix(in srgb, var(--c, #0845fb) 22%, transparent); }
.area-ic svg { width: 28px; height: 28px; }

.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--c, var(--blue-2)); }

/* hero phone */
.hero .phone { transform: rotate(-3deg); }
.ph-chip { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #4b108a; background: #ede7f8; border-radius: 99px; padding: 3px 9px; }
.ph-video { margin: 10px 0; aspect-ratio: 16/9; border-radius: 12px; background: linear-gradient(135deg, #390c68, #0035ff); display: grid; place-items: center; color: #fff; }
.ph-video svg { width: 34px; height: 34px; }
.ph-title { font-size: 15px; font-weight: 800; color: #1b1530; margin: 4px 0; line-height: 1.25; }
.ph-q { margin-top: 12px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid #e3e8ef; }
.ph-q b { display: block; margin-bottom: 6px; color: #1b1530; }
.ph-a { padding: 7px 10px; border-radius: 8px; border: 1px solid #e3e8ef; margin-top: 5px; }
.ph-a.ok { border-color: #10b981; background: #ecfdf5; color: #047857; font-weight: 600; }

/* area grid */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.area-card { display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.area-card:hover { border-color: var(--c, var(--blue-2)); transform: translateY(-3px); background: rgba(255,255,255,.06); }
.area-card .top { display: flex; gap: 16px; align-items: center; }
.area-card h3 { margin: 0; font-size: 17px; letter-spacing: .5px; text-transform: uppercase; font-weight: 700; }
.area-card .meta { font-size: 13px; color: var(--text-faint); }
.area-card p { margin: 0; color: var(--text-dim); font-weight: 300; font-size: 15px; flex: 1; }
@media (max-width: 960px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .areas { grid-template-columns: 1fr; gap: 12px; } .area-card { padding: 18px; } .area-card p { display: none; } }

/* area page */
.area-head { display: flex; gap: 22px; align-items: center; margin-bottom: 14px; }
.area-head .area-ic { width: 72px; height: 72px; border-radius: 18px; }
.area-head .area-ic svg { width: 38px; height: 38px; }
.area-head h1 { margin: 0; font-size: clamp(32px, 5vw, 56px); text-transform: uppercase; font-weight: 800; line-height: 1.05; }
.area-desc { max-width: 720px; color: var(--text-dim); font-weight: 300; font-size: 18px; margin: 0 0 22px; }
.area-progress { max-width: 420px; font-size: 13px; color: var(--text-faint); }
.area-progress .progress { margin-top: 8px; }

.lesson-list { list-style: none; margin: 0 0 100px; padding: 0; max-width: 860px; counter-reset: les; }
.lesson-list li { counter-increment: les; }
.lesson-row { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 10px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.035); text-decoration: none; transition: background .15s, border-color .15s; }
.lesson-row:hover { background: rgba(255,255,255,.07); border-color: var(--c, var(--blue-2)); }
.lesson-row::before { content: counter(les); width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--c, var(--blue-2)); }
.lesson-row.is-done::before { content: "✓"; background: var(--c, var(--blue-2)); }
.lesson-row .t { flex: 1; min-width: 0; }
.lesson-row .t b { display: block; font-size: 16px; }
.lesson-row .t span { font-size: 14px; color: var(--text-faint); font-weight: 300; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-row .m { font-size: 13px; color: var(--text-faint); white-space: nowrap; }
@media (max-width: 620px) { .lesson-row { padding: 14px; gap: 12px; } .lesson-row .t span { display: none; } .lesson-row .chip { display: none; } }

/* lesson page */
.lesson-wrap { max-width: 820px; margin: 0 auto; padding: 120px 20px 100px; }
.lesson-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.lesson-wrap h1 { margin: 0 0 22px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; font-weight: 800; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 22px; box-shadow: 0 30px 60px rgba(8,0,30,.35); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-body { font-size: 18px; line-height: 1.75; margin-bottom: 26px; }
.lesson-body h2 { font-size: 24px; margin: 30px 0 10px; }
.lesson-body h3 { font-size: 20px; margin: 24px 0 8px; }
.lesson-body ul, .lesson-body ol { padding-left: 22px; }
.lesson-body li { margin-bottom: 6px; }
.lesson-body > *:first-child { margin-top: 0; }
.lesson-body blockquote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--blue); background: #f3f1fa; border-radius: 0 10px 10px 0; }
@media (max-width: 760px) { .lesson-wrap { padding: 96px 14px 70px; } .lesson-body { font-size: 17px; } }

.quiz h2 { font-size: 22px; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 6px; }
.quiz > p { color: var(--text-dim); margin: 0 0 18px; font-weight: 300; }
.q-card { padding: 22px; border-radius: var(--radius); background: var(--paper); color: var(--ink); margin-bottom: 14px; }
.q-card h3 { margin: 0 0 14px; font-size: 17px; }
.q-card h3 small { display: block; color: var(--ink-dim); font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.q-ans { display: block; width: 100%; text-align: left; font: inherit; font-size: 16px; padding: 14px 16px; margin-bottom: 8px; border-radius: 12px; border: 2px solid #e6e3ef; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.q-ans:hover { border-color: #b9b2d6; }
.q-ans.sel { border-color: var(--blue); background: #eef2ff; }
.q-ans.ok { border-color: #10b981; background: #ecfdf5; color: #065f46; font-weight: 600; }
.q-ans.bad { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.q-ans:disabled { cursor: default; }
.q-exp { margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; background: #f3f1fa; color: #3a3550; font-size: 15px; }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.quiz-msg { color: var(--text-dim); font-size: 14px; }

.result { margin-top: 22px; padding: 30px; border-radius: var(--radius); text-align: center; background: linear-gradient(135deg, var(--purple), var(--navy)); border: 1px solid var(--line); }
.result .big { font-size: 54px; font-weight: 800; line-height: 1; }
.result h3 { margin: 10px 0 6px; font-size: 22px; text-transform: uppercase; }
.result p { color: var(--text-dim); margin: 0 0 20px; }
.result .btn { margin: 4px; }

.locked { padding: 36px 30px; border-radius: var(--radius); text-align: center; border: 1px solid rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
.locked .ic { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,158,11,.2); color: #fcd34d; }
.locked .ic svg { width: 30px; height: 30px; }
.locked h2 { margin: 0 0 8px; text-transform: uppercase; font-size: 22px; }
.locked p { color: var(--text-dim); margin: 0 0 22px; }
.locked .btn { margin: 4px; }
.lesson-teaser { color: var(--text-dim); font-size: 18px; font-weight: 300; margin: 0 0 24px; }

/* dashboard */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 50px; }
.stats .stat-box b { font-size: 36px; }
@media (max-width: 620px) { .stats { gap: 8px; } .stats .stat-box { padding: 16px 12px; text-align: center; } .stats .stat-box b { font-size: 26px; } .stats .stat-box span { font-size: 11px; } }
.dash-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.dash-h h2 { margin: 0; font-size: 24px; text-transform: uppercase; letter-spacing: 1px; }
.dash-h a { color: var(--text-dim); font-size: 14px; }
.continue { display: grid; gap: 12px; margin-bottom: 50px; }
.continue-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.continue-card .t { flex: 1; min-width: 0; }
.continue-card .t small { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.continue-card .t b { display: block; font-size: 16px; margin: 2px 0 8px; }
.continue-card .btn { padding: 10px 18px; }
@media (max-width: 620px) { .continue-card { flex-wrap: wrap; } .continue-card .btn { width: 100%; } }
.picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.picker label { cursor: pointer; }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); color: var(--text-dim); font-size: 14px; font-weight: 600; transition: .15s; }
.picker span svg { width: 18px; height: 18px; color: var(--c); }
.picker input:checked + span { border-color: var(--c, var(--blue-2)); background: color-mix(in srgb, var(--c, #0845fb) 22%, transparent); color: var(--white); }
.picker input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.access-note { padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(3,27,142,.35); margin-bottom: 40px; color: var(--text-dim); }
.access-note b { color: var(--white); }

/* login / register forms on the gradient */
.auth { max-width: 460px; margin: 0 auto 100px; }
.auth .paper { margin: 0; }
.auth label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: var(--ink); }
.auth input[type=text], .auth input[type=email], .auth input[type=password] { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #d8d4e6; font: inherit; color: var(--ink); }
.auth .btn { width: 100%; margin-top: 20px; }
.auth .alt { text-align: center; margin-top: 18px; color: var(--text-dim); font-size: 14px; }
.auth .alt a { color: var(--white); }
.notice-err { padding: 12px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; margin-bottom: 10px; font-size: 14px; }

/* "Sajt u izradi" + launch countdown, above the fixed header */
.launch-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: 38px; display: flex; align-items: center; background: #000; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.launch-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.launch-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fcd34d; }
.launch-badge i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,.7); animation: launch-pulse 1.8s infinite; }
@keyframes launch-pulse { 70% { box-shadow: 0 0 0 8px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }
.launch-count { color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.launch-count b { color: var(--white); font-size: 14px; font-weight: 800; letter-spacing: 0; }
.launch-count small { color: var(--text-faint); font-size: 10px; margin-left: 1px; }
.launch-label { margin-right: 6px; }
.has-launch .site-header { top: 38px; }
.has-launch .page-hero { padding-top: 180px; }
.has-launch .hero { padding-top: 170px; }
.has-launch .lesson-wrap { padding-top: 150px; }
.admin-bar .launch-bar { top: 32px; }
.admin-bar.has-launch .site-header { top: 70px; }
@media (max-width: 960px) { .has-launch .main-nav { inset: 114px 0 auto 0; } }
@media (max-width: 620px) {
    .launch-bar { font-size: 10px; letter-spacing: 1px; }
    .launch-label { display: none; }
    .launch-count b { font-size: 13px; }
    .has-launch .lesson-wrap { padding-top: 126px; }
}
@media (prefers-reduced-motion: reduce) { .launch-badge i { animation: none; } }

/* breadcrumbs + sub-categories on a category page */
.crumbs { font-size: 14px; color: var(--text-faint); margin-bottom: 18px; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.sub-area { max-width: 860px; margin-top: 20px; }
.sub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sub-head .area-ic { width: 44px; height: 44px; border-radius: 12px; }
.sub-head .area-ic svg { width: 22px; height: 22px; }
.sub-head h2 { margin: 0; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; }
.sub-head h2 a { color: var(--white); text-decoration: none; }
.sub-head .t span { font-size: 13px; color: var(--text-faint); }
.sub-desc { color: var(--text-dim); font-weight: 300; margin: 0 0 14px; }
.sub-area .lesson-list { margin-bottom: 30px; }

/* language switcher (last item of the main menu) */
.main-nav .lang-switch { display: flex; gap: 2px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.main-nav .lang-switch a { padding: 6px 7px; font-size: 12px; letter-spacing: 1px; color: var(--text-faint); border-radius: 6px; }
.main-nav .lang-switch a.on { color: var(--white); background: rgba(255,255,255,.1); }
.main-nav .lang-switch a:hover { color: var(--white); }
@media (max-width: 960px) {
    .main-nav .lang-switch { margin: 12px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: center; gap: 8px; }
    .main-nav .lang-switch a { padding: 8px 12px; font-size: 13px; }
}
