/* ── Frontend stiliai ── */
/* Aprasyta ant body, ne :root — temos klase kabinama ant body, todel
   :root'e sie kintamieji visada issiverstu tamsiomis reiksmemis. */
body {
    --gold: var(--ast-accent, #d4af37);
    --gold-text: var(--ast-accent-text, #d4af37);
    --on-gold: var(--ast-on-accent, #1a1a1a);
    --gold-dark: var(--ast-accent, #b8960f);
    --gold33: rgba(212, 175, 55, 0.33);
    --gold80: rgba(212, 175, 55, 0.8);

    /* Text colors */
    --text-dark: #1a1a1a;
    --text-gray: #333333;
    --text-light: var(--ast-text, rgba(250,249,246,.8));
    --text-medium: var(--ast-text-muted, rgba(250,249,246,.6));
    --fe-text-faint: var(--ast-text-faint, rgba(250,249,246,.35));
    --text-subtle: var(--ast-text-faint, rgba(250,249,246,.3));

    /* Layout */
    --border-color: var(--ast-border, rgba(255,255,255,.1));
    --border-color-light: var(--ast-tint-soft, var(--ast-tint-soft));
    --shadow-color: rgba(0,0,0,.4);

    /* Hero colors */
    --hero-bg: var(--ast-surface, #1a1a1a);
    --hero-text: var(--ast-text, #faf9f6);
    --hero-subtle: var(--ast-text-muted, rgba(250,249,246,.6));
    --hero-border: var(--ast-border, rgba(255,255,255,.1));
    --hero-glow: rgba(212, 175, 55, 0.15);
}

/* ── Dark Utility Hero — matches main.css design system ── */
.aca-hero {
    position: relative;
    overflow: hidden;
    background: var(--ast-surface) !important;
    padding: 80px 24px 64px;
}
@media(min-width:1024px) { .aca-hero { padding: 96px 64px 72px; } }

/* Grid background — identical to .teachers-hero__bg-grid */
.aca-hero__grid-bg {
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(rgba(212,175,55,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,.04) 1px, transparent 1px) !important;
    background-size: 48px 48px !important;
    pointer-events: none !important;
}

/* Glow — identical to .teachers-hero__glow */
.aca-hero__glow {
    pointer-events: none;
    position: absolute;
    inset-block-start: -80px;
    inset-inline-start: 20%;
    inline-size: 640px;
    block-size: 640px;
    background: radial-gradient(circle, rgba(212,175,55,.1) 0%, transparent 65%);
    pointer-events: none;
}

/* Top gold line — same as .results-line */
.aca-hero__line {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    inset-block-end: 0;
    block-size: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.2), transparent);
}

.aca-hero__inner {
    position: relative;
    z-index: 10;
    max-inline-size: 1280px;
    margin: 0 auto;
    text-align: center;
}

/* Label — same as .section-tag from main.css */
.aca-hero__label {
    display: inline-block;
    font-size: .8125rem;
    color: var(--ast-accent-text);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-block-end: 16px;
    font-weight: 500;
    opacity: 0;
    animation: aca-fadeUp .6s var(--ease, cubic-bezier(0.16,1,0.3,1)) .05s forwards;
}

/* Headline — same rhythm as .section-title / .hero-title */
.aca-hero__title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ast-text);
    margin-block-end: 20px;
    opacity: 0;
    animation: aca-fadeUp .6s var(--ease, cubic-bezier(0.16,1,0.3,1)) .15s forwards;
}

/* Subtitle — same as .section-desc--light */
.aca-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ast-text);
    opacity: 0;
    max-inline-size: 680px;
    margin: 0 auto 48px;
    animation: aca-fadeUp .6s var(--ease, cubic-bezier(0.16,1,0.3,1)) .25s forwards;
}
/* subtitle faded look after animation completes */
.aca-hero__subtitle.aca-animated { opacity: .65 !important; }

/* Search */
.aca-hero__search {
    margin-block-end: 28px;
    opacity: 0;
    animation: aca-fadeUp .6s var(--ease, cubic-bezier(0.16,1,0.3,1)) .35s forwards;
}

.aca-hero__search-wrap {
    position: relative;
    max-inline-size: 580px;
    margin: 0 auto;
    background: var(--ast-tint);
    border: 1px solid var(--ast-border);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.3), inset 0 1px 0 var(--ast-border);
    transition: border-color .3s, box-shadow .3s;
}

.aca-hero__search-wrap:hover {
    border-color: rgba(212,175,55,.25);
}

.aca-hero__search-wrap:focus-within {
    border-color: rgba(212,175,55,.6);
    box-shadow: 0 0 0 3px rgba(212,175,55,.12), 0 8px 32px rgba(212,175,55,.2), inset 0 1px 0 var(--ast-border);
}

.aca-hero__search-icon {
    position: absolute;
    inset-inline-start: 18px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    color: var(--ast-text-faint);
    pointer-events: none;
}

.aca-hero__search-input {
    inline-size: 100%;
    padding: 15px 18px 15px 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ast-text);
}

.aca-hero__search-input::placeholder { color: var(--ast-text-faint); }

/* Filter chips */
.aca-hero__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-block-end: 36px;
    opacity: 0;
    animation: aca-fadeUp .6s var(--ease, cubic-bezier(0.16,1,0.3,1)) .45s forwards;
}

/* chip — mirrors .btn-ghost logic but compact */
.aca-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--ast-border);
    background: var(--ast-tint-soft);
    color: var(--ast-text-muted);
    font-size: .875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}

.aca-hero__chip:hover {
    border-color: rgba(212,175,55,.45);
    color: var(--ast-accent-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212,175,55,.12);
}

.aca-hero__chip.active {
    background: linear-gradient(135deg, var(--ast-accent)), var(--gold-light, #e8d5a0));
    border-color: transparent;
    color: var(--on-gold);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(212,175,55,.3);
}

/* Trust row — same as .hero-trust-items */
.aca-hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    animation: aca-fadeUp .6s var(--ease, cubic-bezier(0.16,1,0.3,1)) .55s forwards;
}

.aca-hero__trust.aca-animated { opacity: 1 !important; }

.aca-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* icon pill — same as .hero-trust-icon */
.aca-hero__trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 28px;
    block-size: 28px;
    border-radius: 8px;
    background: rgba(212,175,55,.15);
    flex-shrink: 0;
}

.aca-hero__trust-icon svg { color: var(--ast-accent-text); }

.aca-hero__trust-text {
    font-size: .875rem;
    color: var(--ast-text-muted);
    font-weight: 500;
}

.aca-hero__trust-number {
    font-weight: 700;
    color: var(--ast-text);
}

/* Animation keyframes */
@keyframes aca-fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Subtitle special case: ends at .65 opacity */
.aca-hero__subtitle {
    animation: aca-fadeSubtitle .6s var(--ease, cubic-bezier(0.16,1,0.3,1)) .25s forwards;
}

@keyframes aca-fadeSubtitle {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: .65; transform: translateY(0); }
}

/* Trust row: ends at 1 opacity */
.aca-hero__trust {
    animation: aca-fadeUp .6s var(--ease, cubic-bezier(0.16,1,0.3,1)) .55s forwards;
}

/* Mobile */
@media (max-width: 767px) {
    .aca-hero { padding: 64px 20px 48px; }
    .aca-hero__title { font-size: clamp(2rem, 7vw, 2.75rem); }
    .aca-hero__subtitle { font-size: 1rem; margin-block-end: 36px; }
    .aca-hero__search-wrap { max-inline-size: 100%; }
    .aca-hero__filters { gap: 6px; margin-block-end: 28px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-block-end: 4px; }
    .aca-hero__filters::-webkit-scrollbar { display: none; }
    .aca-hero__chip { flex-shrink: 0; }
    .aca-hero__trust { gap: 16px; }
    .aca-hero__trust-text { font-size: .8125rem; }
}

/* ── Course Archive Styles ── */
.aca-wrap {
    position: relative;
    z-index: 1;
    max-inline-size: 1280px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background: var(--ast-surface);
}
.aca-header { text-align: center; margin-block-end: 40px; }
.aca-header h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; color: #1a1a1a !important; font-family: var(--font-serif, Georgia); margin-block-end: 10px; }
.aca-header p { font-size: 1rem; color: #333333 !important; }

.aca-topbar { display: flex; align-items: center; gap: 16px; margin-block-end: 28px; flex-wrap: wrap; }
.aca-search-wrap { flex: 1; min-inline-size: 220px; position: relative; }
.aca-search-wrap svg { position: absolute; inset-inline-start: 14px; inset-block-start: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ast-text-faint); }
.aca-search { inline-size: 100%; padding: 11px 16px 11px 42px; border-radius: 8px; border: 1.5px solid var(--ast-border); background: var(--ast-surface); color: var(--ast-text); font-size: .9375rem; font-family: inherit; outline: none; transition: border-color .2s; }
.aca-search:focus { border-color: var(--ast-accent)); }
.aca-search::placeholder { color: var(--ast-text-faint); }
.aca-count { font-size: .8125rem; color: var(--ast-text-faint); white-space: nowrap; }
.aca-mobile-toggle { display: none; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1.5px solid var(--ast-border); background: var(--ast-surface); color: var(--ast-text); font-size: .875rem; font-weight: 600; cursor: pointer; font-family: inherit; }

.aca-body { display: flex; gap: 32px; align-items: flex-start; }

.aca-sidebar { inline-size: 240px; flex-shrink: 0; position: sticky; inset-block-start: 100px; display: flex; flex-direction: column; gap: 8px; max-block-size: calc(100vh - 120px); overflow-y: auto; }
.aca-sidebar::-webkit-scrollbar { inline-size: 3px; }
.aca-sidebar::-webkit-scrollbar-thumb { background: rgba(212,175,55,.3); border-radius: 4px; }
.aca-sb-section { background: var(--ast-surface-soft); border-radius: 12px; padding: 4px 16px 10px; }
.aca-sb-toggle { display: flex; align-items: center; justify-content: space-between; inline-size: 100%; background: none; border: none; padding: 10px 0; cursor: pointer; font-family: inherit; }
.aca-sb-toggle-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ast-text-faint); }
.aca-sb-toggle-icon { font-size: .75rem; color: var(--ast-text-faint); transition: transform .2s; }
.aca-sb-toggle.open .aca-sb-toggle-icon { transform: rotate(180deg); }
.aca-sb-toggle.open .aca-sb-toggle-label { color: var(--ast-text-muted); }
.aca-sb-body { overflow: hidden; transition: max-height .25s ease; }
.aca-sb-body.collapsed { max-block-size: 0 !important; }
.aca-sb-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ast-text-faint); margin-block-end: 10px; display: block; }
.aca-sb-divider { display: none; }
.aca-sb-item { display: flex; align-items: center; gap: 9px; inline-size: 100%; background: none; border: none; padding: 6px 0; color: var(--ast-text-muted); font-size: .875rem; font-family: inherit; cursor: pointer; text-align: start; transition: color .15s; line-height: 1.4; }
.aca-sb-item:hover { color: var(--ast-text); }
.aca-sb-item.active { color: var(--ast-accent-text); font-weight: 600; }
.aca-sb-item .aca-radio { inline-size: 14px; block-size: 14px; border-radius: 8px; border: 1.5px solid var(--ast-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.aca-sb-item.active .aca-radio { border-color: var(--ast-accent)); background: var(--ast-accent)); }
.aca-sb-item.active .aca-radio::after { content: ''; inline-size: 5px; block-size: 5px; border-radius: 8px; background: var(--ast-surface); display: block; }
.aca-sb-more { background: none; border: none; color: var(--ast-text-faint); font-size: .8125rem; cursor: pointer; font-family: inherit; padding: 4px 0 0 23px; display: none; }
.aca-sb-more:hover { color: var(--ast-accent-text); }
.aca-sb-more.visible { display: block; }
.aca-sb-collapsed .aca-sb-item:not(.active):nth-child(n+9) { display: none; }
.aca-sb-clear { background: var(--ast-surface-soft); border-radius: 12px; border: none; color: var(--ast-text-faint); font-size: .8125rem; cursor: pointer; font-family: inherit; padding: 10px 16px; display: none; transition: color .15s; text-align: start; inline-size: 100%; }
.aca-sb-clear:hover { color: var(--ast-accent-text); }
.aca-sb-clear.visible { display: block; }

.aca-main { flex: 1; min-inline-size: 0; }
.aca-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.aca-card.aca-card--offpage { display: none !important; }
/* ── Course Card — Premium redesign ── */
.aca-card { background: #fff; border: 1px solid rgba(26,26,26,.08); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(0.16,1,0.3,1), box-shadow .3s cubic-bezier(0.16,1,0.3,1), border-color .3s; display: flex; flex-direction: column; position: relative; z-index: 1; box-shadow: 0 2px 8px rgba(26,26,26,.06); }
.aca-card:hover { transform: translateY(-5px); box-shadow: 0 20px 56px rgba(26,26,26,.14); border-color: transparent; }

/* Corner-border running animation (top-left + bottom-right expand on hover) */
.aca-card::before,
.aca-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
    border-radius: inherit;
    width: 0;
    height: 0;
    z-index: 2;
    transition: width 0.45s ease, height 0.45s ease;
}
.aca-card::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--ast-accent);
    border-left: 1px solid var(--ast-accent);
}
.aca-card::after {
    right: 0;
    bottom: 0;
    border-right: 1px solid var(--ast-accent);
    border-bottom: 1px solid var(--ast-accent);
    transition-delay: 0.08s;
}
.aca-card:hover::before,
.aca-card:hover::after {
    width: 100%;
    height: 100%;
}

.aca-card-img { position: relative; aspect-ratio: 16/10; background: #f4f1ec; overflow: hidden; }
.aca-card-img img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.16,1,0.3,1); }
.aca-card:hover .aca-card-img img { transform: scale(1.04); }
.aca-card-img-placeholder { inline-size: 100%; block-size: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f4f1ec, #ede9e0); }

.aca-card-type { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; font-size: .7rem; font-weight: 700; padding: 4px 11px; border-radius: 8px; letter-spacing: .04em; text-transform: uppercase; }
/* Gyvi mokymai — brangesnis pasiulymas, todel pilnas auksinis uzpildas.
   Online — tylus kontūrinis variantas, kad hierarchija butu vienareiksme. */
.aca-card-type--live {
  background: var(--ast-accent);
  color: var(--ast-on-accent);
  border: 1px solid var(--ast-accent);
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.35);
}
.aca-card-type--online {
  background: var(--ast-tint);
  color: var(--ast-text-muted);
  border: 1px solid var(--ast-border);
}

.aca-card-body { padding: 20px 22px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.aca-card-title { font-size: 1.0625rem; font-weight: 700; color: #1a1a1a; line-height: 1.35; font-family: var(--font-serif, Georgia); }
.aca-card:hover .aca-card-title { color: #8a6f28; }
.aca-card-excerpt { display: none; }

.aca-card-teachers { display: flex; flex-direction: column; gap: 3px; }
.aca-card-teacher { display: flex; align-items: center; gap: 5px; font-size: .8125rem; color: #5a5550; line-height: 1.3; }
.aca-card-teacher svg { flex-shrink: 0; color: var(--ast-accent-text); opacity: .8; }
.aca-card-teacher strong { color: #1a1a1a; font-weight: 600; }
.aca-card-teacher-role { font-size: .7rem; color: var(--ast-text-muted); margin-block-start: 1px; }

.aca-card-meta-left { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.aca-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block-start: auto; padding-block-start: 8px; }
.aca-card-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--ast-text-muted); background: #f7f5f0; padding: 3px 10px; border-radius: 8px; }
.aca-card-meta-item svg { color: var(--ast-accent-text); }

.aca-card-footer { display: flex; align-items: center; padding: 14px 22px 18px; border-block-start: 1px solid rgba(26,26,26,.07); margin-block-start: 4px; gap: 12px; }
.aca-card-price { font-family: var(--font-serif, Georgia); font-size: 1.25rem; font-weight: 700; color: #1a1a1a; margin-inline-end: auto; }
.aca-card-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: #1a1a1a; background: linear-gradient(135deg, var(--ast-accent, var(--ast-accent)), #e8d5a0); padding: 9px 18px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: all .2s; }
.aca-card-btn:hover { box-shadow: 0 4px 16px rgba(201,168,76,.4); transform: translateY(-1px); }
.aca-card-btn svg { transition: transform .2s; }
.aca-card-btn:hover svg { transform: translateX(3px); }
.aca-empty { text-align: center; padding: 80px 24px; color: var(--ast-text-faint); grid-column: 1/-1; }

/* ── LMS quiz multi-answer hint ── */
.ast-quiz-multi-hint {
    font-size: 13px;
    color: var(--mc-muted, rgba(250,249,246,.55));
}

/* ── LMS quiz page background (warm, on-brand) ── */
.ast-quiz-page {
    background-color: #1a160f;
}
.ast-quiz-page-wrap {
    background: radial-gradient(120% 80% at 50% 0%, #221c12 0%, #1a160f 55%);
}
.ast-quiz-page-wrap .ast-bg-ast-mid {
    background-color: #241d12;
    border-color: rgba(212,175,55,.12);
}

/* ── LMS quiz answer options (vertical column) ── */
.ast-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ast-quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--ast-border);
    border-radius: 12px;
    background: var(--ast-tint-soft);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.ast-quiz-option:hover {
    border-color: rgba(212,175,55,.55);
    background: rgba(212,175,55,.06);
}
.ast-quiz-option:active {
    transform: scale(.995);
}
.ast-quiz-option__input {
    width: 20px;
    height: 20px;
    accent-color: var(--ast-accent);
    flex-shrink: 0;
}
.ast-quiz-option:has(.ast-quiz-option__input:checked) {
    border-color: var(--ast-accent));
    background: rgba(212,175,55,.14);
    box-shadow: 0 0 0 1px var(--ast-accent)) inset;
}

/* ── LMS quiz submit bar ── */
.ast-quiz-submitbar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    background: linear-gradient(to top, var(--mc-bg, #14110c) 70%, transparent);
}
.ast-quiz-submitbar__actions {
    display: flex;
    gap: 12px;
}
.ast-quiz-progress {
    font-size: .95rem;
    color: var(--ast-text-muted);
}
.ast-quiz-progress strong {
    color: var(--ast-accent-text);
}
#ast-quiz-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ast-quiz-retry-wrap {
    margin-top: 18px;
}

/* ── LMS quiz result styling ── */
.ast-quiz-result__headline {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--ast-text);
}

.ast-quiz-result__headline--pass {
    color: var(--ast-success);
}

.ast-quiz-result__headline--fail {
    color: var(--ast-danger);
}

.ast-quiz-result__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    font-size: .95rem;
}

.ast-quiz-result__stats span {
    background: var(--ast-tint);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--ast-border);
    color: var(--ast-text);
}

.ast-quiz-review {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 24px 0;
}

.ast-quiz-review__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ast-text);
    margin-bottom: 6px;
}

.ast-quiz-review__item {
    border: 1px solid var(--ast-border);
    border-radius: 12px;
    padding: 18px;
    background: rgba(0,0,0,.32);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.ast-quiz-review__item--correct {
    border-color: rgba(34,197,94,.35);
    background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(34,197,94,.04));
}

.ast-quiz-review__item--wrong {
    border-color: rgba(239,68,68,.35);
    background: linear-gradient(135deg, rgba(239,68,68,.14), rgba(239,68,68,.04));
}

.ast-quiz-review__question {
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 12px;
    color: var(--ast-text);
}

.ast-quiz-review__option {
    font-size: .95rem;
    padding: 6px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: var(--ast-tint-soft);
    color: var(--ast-text-muted);
}

.ast-quiz-review__option--correct {
    background: rgba(34,197,94,.18);
    color: var(--ast-success);
}

.ast-quiz-review__option--correct-user {
    background: linear-gradient(135deg, rgba(34,197,94,.34), rgba(34,197,94,.16));
    color: var(--ast-success);
}

.ast-quiz-review__option--user {
    background: rgba(239,68,68,.18);
    color: var(--ast-danger);
}

.ast-quiz-review__option:last-child {
    margin-bottom: 0;
}

/* Sidebar dark theme — palikti nes fonas tamsus */
.aca-sidebar .aca-sb-section { background: var(--ast-tint-soft); border: 1px solid var(--ast-border); }
.aca-sidebar .aca-sb-toggle-label { color: var(--ast-text-faint); }
.aca-sidebar .aca-sb-item { color: var(--ast-text-muted); }
.aca-sidebar .aca-sb-item.active { color: var(--ast-accent-text); }
.aca-no-results { text-align: center; padding: 60px 24px; color: var(--ast-text-faint); grid-column: 1/-1; display: none; }

.aca-pager { margin-block-start: 48px; padding-block-start: 32px; border-block-start: 1px solid var(--ast-tint-soft); }
.aca-pager__inner { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.aca-pager__btn { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 44px; block-size: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ast-border); background: var(--ast-surface-soft); color: var(--ast-text-muted); font-size: .875rem; font-weight: 600; text-decoration: none; transition: all .2s; font-family: inherit; }
.aca-pager__btn:hover { background: var(--ast-accent)); color: var(--on-gold); border-color: var(--ast-accent)); }
.aca-pager__btn--active { background: var(--ast-accent)); color: var(--on-gold); border-color: var(--ast-accent)); }
.aca-pager__btn--prev, .aca-pager__btn--next { padding: 0 16px; }
.aca-scroll-status { display: flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; margin: 22px auto 0; padding: 8px 14px; border: 1px solid var(--ast-border); border-radius: 999px; background: var(--ast-tint-soft); color: var(--ast-text-muted); font-size: .8125rem; text-align: center; }
.aca-scroll-status strong { color: var(--ast-text); font-size: .9375rem; font-weight: 800; }
.aca-load-more { display: block; margin: 14px auto 0; padding: 10px 18px; border: 1px solid var(--ast-border); border-radius: 999px; background: var(--ast-surface-soft); color: var(--ast-text-muted); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.aca-load-more:hover, .aca-load-more:focus-visible { border-color: var(--ast-accent); background: var(--ast-tint-soft); color: var(--ast-text); transform: translateY(-1px); }
.aca-load-more:disabled { opacity: .55; cursor: wait; transform: none; }
.aca-load-more[hidden] { display: none; }

@media (max-width: 768px) {
    .aca-mobile-toggle { display: inline-flex; }
    .aca-sidebar { display: none; inline-size: 100%; position: static; }
    .aca-sidebar.open { display: block; }
    .aca-body { flex-direction: column; gap: 0; }
    .aca-main { inline-size: 100%; }
    .aca-topbar { gap: 10px; }
}

/* Kursų puslapiavimo stiliai */
.aca-pager {
    text-align: center;
    padding: 48px 24px;
}

.aca-pager__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aca-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 44px;
    block-size: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--gold33);
    color: var(--ast-text);
    text-decoration: none;
    background: var(--ast-surface);
    transition: background .2s, border-color .2s, color .2s;
}

.aca-pager__btn:hover {
    background: var(--ast-accent);
    border-color: var(--ast-accent);
    color: var(--on-gold);
}

.aca-pager__btn--active {
    background: linear-gradient(135deg, var(--ast-accent), var(--gold-dark)) !important;
    color: var(--on-gold) !important;
    border-color: transparent !important;
}

.aca-pager__btn--prev,
.aca-pager__btn--next {
    min-inline-size: auto;
    padding: 0 20px;
}

/* ── WooCommerce owned-course notice ── */
.ast-owned-notice {
    margin-block-end: 1em;
}

/* ── Instructor progress bar ── */
.ast-progress-fill {
    width: var(--progress, 0%);
}

/* ── Pamokos progreso juostos ──
   Plotis paduodamas per CSS custom property, ne per inline style/JS style.width. */
.ast-lesson-progress-fill {
    inline-size: var(--ast-lesson-progress, 0%);
}

.ast-yt-progress-fill {
    inline-size: var(--ast-video-progress, 0%);
    block-size: 100%;
    background: var(--ast-accent));
    border-radius: inherit;
    transition: inline-size .2s linear;
}

/* ── Kursų archyvas: buve inline stiliai ── */
body.kursai-page {
    background: var(--ast-surface);
}

.aca-topbar--hidden {
    display: none;
}

.aca-empty-icon {
    display: block;
    margin: 0 auto 16px;
    opacity: .3;
}

.aca-card-placeholder-icon {
    opacity: .2;
    color: #faf9f6;
}

/* ── Kurso ir pamokos medžiaga ── */
.ast-materials {
    margin-block: 24px;
    padding: 20px;
    border: 1px solid var(--ast-border);
    border-radius: 12px;
    background: var(--ast-tint-soft);
    color: var(--ast-text);
}

.ast-materials__title {
    margin: 0 0 14px;
    color: var(--ast-text);
    font-size: 1.125rem;
    font-weight: 700;
}

.ast-materials__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ast-materials__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid var(--ast-border);
    border-radius: 8px;
}

.ast-materials__icon {
    flex: 0 0 auto;
    min-inline-size: 44px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--ast-accent));
    color: var(--on-gold);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
}

.ast-materials__meta { flex: 1 1 200px; min-inline-size: 0; display: grid; }
.ast-materials__name { color: var(--ast-text); font-weight: 600; word-break: break-word; }
.ast-materials__size { color: var(--ast-text-muted); font-size: .8125rem; }

.ast-materials__btn {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid var(--ast-accent));
    border-radius: 6px;
    color: var(--ast-accent-text);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.ast-materials__btn:hover { background: var(--ast-accent)); color: var(--on-gold); }
.ast-materials__btn--primary { background: var(--ast-accent)); color: var(--on-gold); }
.ast-materials__btn--primary:hover { opacity: .88; }

/* ── Pamokos video grotuvas ──
   Markup'e buvo pilna savu valdikliu juosta, bet stiliu jai nebuvo: iframe
   naudojo numatytaji 300x150 dydi ir nebuvo uzpildomas remelis, o YouTube
   valdikliai su logotipu likdavo matomi. */

.ast-lesson-video-wrap {
    position: relative;
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

/* Video uzpildo visa remeli */
.ast-lesson-embed,
.ast-lesson-video {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    border: 0;
    display: block;
}

/* YouTube antrastes juosta su logotipu ir pavadinimu — uzdengiama */
.ast-yt-topbar {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 62px;
    background: #000;
    z-index: 2;
    pointer-events: none;
}

/* Perima paspaudimus, kad nebutu nueinama i YouTube */
.ast-yt-overlay {
    position: absolute;
    inset: 0;
    inset-block-end: 52px;
    z-index: 2;
    cursor: pointer;
}

/* ── Sava valdikliu juosta ── */
/* Juosta VIENTISA, ne gradientas: YouTube „watermark" zenklas rodomas
   apatiniame desiniajame kampe net su controls=0, ir pro permatoma gradienta
   jis prasisviesdavo. Vientisas fonas ji uzdengia. */
.ast-yt-controls {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-block-size: 52px;
    background: #000;
}

/* Atsarga, jei zenklas atsiduria kiek auksciau juostos. Tik YouTube. */
.ast-yt-wrap::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    inset-block-end: 52px;
    inline-size: 118px;
    block-size: 26px;
    background: #000;
    z-index: 3;
    pointer-events: none;
}

.ast-yt-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-size: .75rem;
}

.ast-yt-btn:hover { background: rgba(255, 255, 255, .15); }
.ast-is-hidden { display: none !important; }

.ast-yt-time {
    flex: 0 0 auto;
    color: #fff;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    opacity: .9;
}

.ast-yt-progress {
    flex: 1 1 auto;
    min-inline-size: 60px;
    block-size: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .28);
    cursor: pointer;
}

.ast-yt-vol {
    flex: 0 0 72px;
    inline-size: 72px;
    accent-color: var(--ast-accent);
    cursor: pointer;
}

/* ── Kokybes meniu ── */
.ast-yt-quality-menu {
    position: absolute;
    inset-block-end: 56px;
    inset-inline-end: 12px;
    z-index: 5;
    display: none;
    flex-direction: column;
    min-inline-size: 96px;
    padding: 4px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .95);
}

.ast-yt-quality-menu.active { display: flex; }

.ast-yt-quality-menu button {
    padding: 6px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: .75rem;
    text-align: start;
    cursor: pointer;
}

.ast-yt-quality-menu button:hover { background: rgba(255, 255, 255, .15); }
.ast-yt-quality-menu button.active { color: var(--gold, #d4af37); font-weight: 700; }

@media (max-width: 600px) {
    .ast-yt-vol { display: none; }
    .ast-yt-topbar { block-size: 48px; }
    .ast-yt-wrap::after { inline-size: 92px; block-size: 22px; }
}

/* Subtitrų mygtukas */
.ast-yt-cc {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    border: 1px solid rgba(255, 255, 255, .35);
}

.ast-yt-cc.active {
    border-color: var(--ast-accent));
    background: var(--ast-accent));
    color: var(--on-gold);
}
