/* ==========================================================================
   Kategórie kurzov — IT Learning Slovakia
   Pracovný prototyp (info-kurzy/)
   v1.75 — semantic HTML5: <article> wrap pre afinita kurzy (display: contents)
   ========================================================================== */

/* --- 0. RESET / TYPO / GLOBÁL ------------------------------------------ */
html, body {
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #1f2a37;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* .mojcont ponechané ako Bootstrap .container — bez custom width overridu */

/* --- 1. TOP MENU KATEGÓRIÍ (simulácia farieb) -------------------------- */
.kat-topnav {
    background: #0a0f17;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.kat-topnav-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}
.kat-topnav-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    flex-shrink: 0;
}
.kat-topnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}
.kat-topnav-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.kat-topnav-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
}
.kat-topnav-chip.is-active {
    background: var(--c-chip);
    color: var(--c-chip-dark);
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--c-chip), 0 4px 14px -6px rgba(var(--c-chip-rgb), 0.6);
}
.kat-topnav-chip.is-active:hover {
    background: var(--c-chip);
    color: var(--c-chip-dark);
}
.kat-topnav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-chip);
    box-shadow: 0 0 0 3px rgba(var(--c-chip-rgb), 0.25);
    flex-shrink: 0;
}
.kat-topnav-chip.is-active .kat-topnav-dot {
    background: var(--c-chip-dark);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

/* --- 2. SIMULOVANÁ HLAVIČKA --------------------------------------------- */
.ilearn-header-sim {
    background: #fff;
    border-bottom: 1px solid #e6ecec;
}
.ilearn-header-sim img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   2. HERO KATEGÓRIE — box v containeri, "Mercedes" look
   ========================================================================== */
.kat-hero {
    /* Defaulty (sa prepíšu cez inline style podľa kategórie) */
    --c-grad-dark: #0a1b34;
    --c-grad-mid:  #0f2954;
    --c-grad-lite: #143a6e;
    --c-accent:    #29d8b8;
    --c-accent-rgb: 41, 216, 184;
    --c-side-rgb:   80, 145, 230;
    --c-blob-hue:   155deg;

    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0 0 28px;
    margin: 0 0 24px;
    color: #1f2a37;
    background: #fff;
}

.kat-hero-cont {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 36px;
}
.kat-hero-text {
    flex: 1;
    min-width: 0;
}

/* --- Breadcrumby vnútri hero (prvý prvok) ------------------------------ */
.kat-hero-breadcrumbs {
    position: relative;
    z-index: 3;
    padding: 12px 0 18px;
    margin: 0;
    font-size: 13px;
    color: #4a5563;
}
.kat-hero-breadcrumbs a {
    color: #4a5563;
    text-decoration: none;
}
.kat-hero-breadcrumbs a:hover {
    color: var(--c-accent, #1266A3);
    text-decoration: underline;
}

/* --- Galéria sidebar (pravá strana hero, len galéria) ------------------ */
.kat-hero-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-right: 24px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

/* Ikona kategórie — base štýl (gradient + shadow), platí pre desktop aj mobile */
.kat-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0f4ff, #dbe6ff);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(59, 130, 246, 0.12),
        0 12px 32px -8px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Desktop varianta — v .kat-hero-right, 240×240 */
.kat-hero-icon--desktop {
    width: 240px;
    height: 240px;
}
/* Mobile varianta — v .kat-hero-text nad nadpisom, default skrytá */
.kat-hero-icon--mobile {
    display: none;
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
}

/* 4 fotky z kurzov — rovnaká šírka ako ikona, štýl matchuje */
.kat-hero-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 240px;
    margin-top: 10px;
}
.kat-hero-gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #f0f4ff, #dbe6ff);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(59, 130, 246, 0.12),
        0 12px 32px -8px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}
.kat-hero-gallery-item:hover {
    transform: translateY(-3px) scale(1.02);
}
.kat-hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* "More" box — tlmený posledný thumbnail s overlay počtom ďalších fotiek */
.kat-hero-gallery-item--more {
    position: relative;
}
.kat-hero-gallery-item--more img {
    opacity: 0.35;
    filter: grayscale(0.5);
}
.kat-hero-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1A1614;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
    line-height: 1;
}
.kat-hero-gallery-overlay-num {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--c-accent, #1266A3);
}
.kat-hero-gallery-overlay-lbl {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #4A423C;
    margin-top: 2px;
}
.kat-hero-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 14px;
    position: relative;
    top: 0;
    left: 0;
}
.kat-hero-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- 2a. Vrstvy pozadia ------------------------------------------------- */

/* Gradient (rozdeľujem aby sa dal jednoducho prepisovať/animovať) */
.kat-hero-bg-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Liquid blob — bg-top.png pretónované cez hue-rotate + blend */
.kat-hero-bg-blob {
    position: absolute;
    top: -22%;
    right: -10%;
    width: 72%;
    max-width: 900px;
    height: 144%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.72;
    /* Tvar berieme z PNG cez mask (alpha), farbu z premennej kategórie */
    background-color: var(--c-accent);
    -webkit-mask: url('https://www.itlearning.sk/img/bg-top.png') no-repeat center right / contain;
            mask: url('https://www.itlearning.sk/img/bg-top.png') no-repeat center right / contain;
    filter: blur(8px);
}

/* Jemný bodkovaný raster — pridáva textúru "tech" pocitu */
.kat-hero-bg-dots { display: none; }

.kat-hero-bg-shine { display: none; }

/* --- 2b. Obsah hero ----------------------------------------------------- */
.kat-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-bottom: 22px;
}
.kat-hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), 0.22);
    flex-shrink: 0;
}

.kat-hero-title {
    font-family: 'Noto Sans', system-ui, sans-serif;
    font-size: 48px;
    line-height: 1.08;
    margin: 0 0 22px;
    color: #0a1b2e;
    font-weight: 700;
    letter-spacing: -1px;
    max-width: 720px;
    text-align: left;
}

/* Statbar — veľké číslo + badges v jednom rade */
.kat-hero-statbar {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 22px;
    flex-wrap: nowrap;
}
.kat-hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.kat-hero-stat-num {
    font-family: 'Noto Sans', system-ui, sans-serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-accent);
    letter-spacing: -2.5px;
}
.kat-hero-stat-label {
    font-size: 13px;
    line-height: 1.2;
    color: #46555e;
    font-weight: 600;
    letter-spacing: 0;
}

.kat-hero-badges-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kat-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
/* Druhý rad — vo farbe kurzu, biele písmo */
.kat-hero-meta--secondary .kat-hero-pill {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 3px 10px -4px rgba(var(--c-accent-rgb), 0.45);
}
.kat-hero-meta--secondary .kat-hero-pill > svg {
    color: #fff;
}
.kat-hero-meta--secondary .kat-hero-pill strong {
    color: #fff;
}

.kat-hero-aeo {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5560;
    margin: 0;
    font-weight: 400;
    /* Biele halo — drží čitateľnosť aj nad blob pozadím */
    text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff;
}
.kat-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(250, 250, 250, 0.65);
    color: #1f2a37;
    font-size: 13px;
    font-weight: 500;
    box-shadow:
        0 1px 2px rgba(15, 31, 44, 0.04),
        inset 0 1px 0 rgba(250, 250, 250, 0.5);
}
.kat-hero-pill > svg {
    color: var(--c-accent);
    flex-shrink: 0;
}
.kat-hero-pill strong {
    color: #0a1b2e;
    font-weight: 800;
}
/* Hviezdičky v hodnotení — vždy žlté, nezávislé od akcentu kategórie */
.kat-hero-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #fbbf24;
    flex-shrink: 0;
}
.kat-hero-stars svg {
    color: #fbbf24;
    flex-shrink: 0;
}

/* --- Mini strips (lektori / kurzy v ponuke) pod AEO -------------------- */
.kat-hero-strips {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    margin-top: 22px;
}
.kat-mini-strip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1A1614;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.kat-mini-strip:hover {
    text-decoration: none;
    color: #1A1614;
    opacity: 0.85;
}
.kat-mini-strip:hover .kat-mini-strip__chip {
    transform: translateY(-1px);
}
.kat-mini-strip__lead {
    flex-shrink: 0;
    color: #6E665E;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.kat-mini-strip__lead strong {
    display: block;
    color: #1A1614;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
}
.kat-mini-strip__stack {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.kat-mini-strip__chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    margin-left: -10px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(26, 22, 20, 0.12);
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}
.kat-mini-strip__chip:first-child {
    margin-left: 0;
}
.kat-mini-strip__chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kat-mini-strip__count {
    flex-shrink: 0;
    color: #6E665E;
    font-size: 12px;
    line-height: 1.2;
}
.kat-mini-strip__count strong {
    color: #1A1614;
    font-weight: 700;
}

/* --- Silné CTA — "Zobraziť X kurzov" ----------------------------------- */
.kat-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: #0a1b2e;
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    box-shadow:
        0 10px 24px -10px rgba(10, 27, 46, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kat-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px -10px rgba(10, 27, 46, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}
.kat-hero-cta strong {
    font-weight: 800;
}
.kat-hero-cta svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.kat-hero-cta:hover svg {
    transform: translateX(4px);
}

/* --- 2d. Benefity row (6 boxov) ---------------------------------------- */
.kat-hero-vyhody {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px 18px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e5ea;
}
.kat-vyhody-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.kat-vyhody-box-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    /* background + color inline cez accent kategórie */
}
.kat-vyhody-box-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}
.kat-vyhody-box-text {
    min-width: 0;
    line-height: 1.25;
}
.kat-vyhody-box-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1A1614;
    line-height: 1.25;
    letter-spacing: -0.005em;
}
.kat-vyhody-box-text span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    color: #6E665E;
    line-height: 1.4;
}


/* ==========================================================================
   2e. KOTVIACE MENU (Obsah stránky) — sticky pás vo farbe kurzu
   ========================================================================== */
.kat-anchormenu {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.25);
    margin: 0 0 24px;
    /* background sa nastaví inline cez accent kategórie */
}
.kat-anchormenu-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 10px 16px;
}
.kat-anchor-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
    min-width: 0;
}
.kat-anchor-item:hover,
.kat-anchor-item:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
}
.kat-anchor-item svg {
    flex-shrink: 0;
    color: #fff;
    opacity: 0.5;
}
.kat-anchor-item:hover svg,
.kat-anchor-item:focus svg {
    opacity: 0.9;
}
.kat-anchor-item span {
    display: block;
}

@media (max-width: 880px) {
    .kat-anchormenu-inner {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .kat-anchor-item {
        flex: 0 0 auto;
        min-width: 96px;
    }
}

/* Ponuka kurzov — presunuté do ponuka-kurzov.css (samostatný modul) */

/* --- Top recenzie strip — 5 najnovších, horizontal scroll, peek 5. karty,
       CTA "Všetky hodnotenia" na konci, quote SVG v pozadí --------------- */
.kat-recenzie-strip {
    display: flex;
    gap: 12px;
    margin: 0 0 32px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.kat-recenzie-strip::-webkit-scrollbar {
    height: 6px;
}
.kat-recenzie-strip::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}
.kat-recenzie-strip-item {
    position: relative;
    flex: 0 0 calc((100% / 4.3) - 12px);
    height: 130px;
    margin: 0;
    padding: 10px 20px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
}
.kat-recenzie-strip-quote {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 56px;
    height: 56px;
    color: #d6d9de;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    transform: rotate(180deg);
}
.kat-recenzie-strip-text {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--c-accent, #4a5563);
    font-style: italic;
    /* clamp na 5 riadkov — meno inline šetrí 1 riadok */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
/* Meno cloveka inline, tučné, bez italic — pred textom */
.kat-recenzie-strip-meno {
    font-style: normal;
    font-weight: 700;
    color: #1f2a37;
    margin-right: 2px;
}
/* Žltá hviezdička pred menom (rovnaká ako v hero pills) */
.kat-recenzie-strip-star {
    color: #fbbf24;
    margin-right: 4px;
    vertical-align: -1px;
    flex-shrink: 0;
}

/* CTA na konci — ide do toho istého horizontálneho scrollu */
.kat-recenzie-strip-cta {
    flex: 0 0 calc((100% / 4.3) - 12px);
    height: 130px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-snap-align: start;
}
.kat-recenzie-strip-cta:hover {
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.3);
}
.kat-recenzie-strip-cta svg {
    color: #fff;
    transition: transform 0.2s ease;
}
.kat-recenzie-strip-cta:hover svg {
    transform: translateY(3px);
}

@media (max-width: 880px) {
    .kat-recenzie-strip {
        gap: 10px;
        padding: 0 16px 8px;
        margin: 0 calc(50% - 50vw) 24px;
        width: 100vw;
    }
    .kat-recenzie-strip-item,
    .kat-recenzie-strip-cta {
        flex: 0 0 78%;
        height: 120px;
    }
    .kat-recenzie-strip::-webkit-scrollbar { display: none; }
    .kat-recenzie-strip { scrollbar-width: none; }
}

/* ==========================================================================
   3. SEKCIE STRÁNKY (sidebar 3 + content 9)
   ========================================================================== */
.kat-section {
    margin-bottom: 48px;
}
.kat-section > .row {
    margin-left: 0;
    margin-right: 0;
}
.kat-section-title {
    font-family: 'Noto Sans', system-ui, sans-serif;
    font-size: 32px;
    color: #0a1b2e;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.kat-section-title--xl {
    font-size: 48px;
    letter-spacing: -1.2px;
    margin: 16px 0 24px;
}
.kat-section-title--xl em {
    color: var(--c-accent, #1266A3);
    font-style: normal;
}
@media (max-width: 640px) {
    .kat-section-title--xl { font-size: 32px; }
}

/* --- 3a. Sidebar (zoznam kategórií) ------------------------------------ */
.kat-sidebar-col {
    padding-left: 0 !important;
    padding-right: 12px !important;
}
.kat-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #494949;
    margin: 0 0 10px;
    padding: 4px 4px;
    line-height: 1.3;
    text-align: center;
}
.kat-sidebar-wrapper {
    background: #F5F3EE;
    border: 1px solid #E8E1D6;
    border-radius: 10px;
    padding: 4px 0;
}
.kat-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kat-sidebar-list li {
    border-bottom: 1px solid rgba(26, 22, 20, 0.06);
}
.kat-sidebar-list li:last-child {
    border-bottom: 0;
}
.kat-sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #1A1614;
    text-decoration: none;
    line-height: 1.3;
    transition: background 0.15s ease;
}
.kat-sidebar-list li a:hover {
    background: rgba(26, 22, 20, 0.04);
    text-decoration: none;
}
.kat-sidebar-bubble {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.18);
    letter-spacing: -0.02em;
}
.kat-sidebar-itemtext {
    flex: 1 1 auto;
    min-width: 0;
}
.kat-sidebar-list li a strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1A1614;
    line-height: 1.25;
    letter-spacing: -0.005em;
}
.kat-sidebar-list li a .kat-sidebar-itemtext > span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    color: #6E665E;
    line-height: 1.4;
}
.kat-sidebar-list li.is-active a {
    background: color-mix(in srgb, var(--c-accent) 12%, transparent);
}
.kat-sidebar-list li.is-active a strong {
    color: var(--c-accent);
}

/* --- 3b. Content (popis) ----------------------------------------------- */
.kat-content-col {
    padding-left: 28px;
}
.kat-popis-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #3A322D;
    margin: 0 0 14px;
}
.kat-popis-body p:last-child {
    margin-bottom: 0;
}

/* --- 3c. Separator a sub-title ----------------------------------------- */
.kat-section-sep {
    margin: 28px 0 18px;
    border: 0;
    border-top: 1px solid #E8E1D6;
}
.kat-sub-title {
    font-size: 22px;
    color: #0a1b2e;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

/* --- 3d. Toggle „Viac informácií" (čistý text, žiadny button) --------- */
.kat-toggle-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    color: var(--c-accent);
    transition: color 0.15s ease;
}
.kat-toggle-trigger:hover {
    color: var(--c-accent);
    opacity: 0.85;
}
.kat-toggle-chevron {
    color: currentColor;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}
.kat-toggle-trigger.is-open .kat-toggle-chevron {
    transform: rotate(180deg);
}
.kat-popis-more p,
.kat-popis-more ul {
    font-size: 15px;
    line-height: 1.7;
    color: #3A322D;
    margin: 0 0 14px;
}
.kat-popis-more p:last-child,
.kat-popis-more ul:last-child {
    margin-bottom: 0;
}
.kat-popis-list {
    padding-left: 22px;
}
.kat-popis-list li {
    margin-bottom: 4px;
}

@media (max-width: 991px) {
    .kat-sidebar-col {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-bottom: 24px;
    }
    .kat-content-col {
        padding-left: 12px;
        padding-right: 12px;
    }
}
/* Na mobile content-col bez padding — sekcie idú edge-to-edge */
@media (max-width: 880px) {
    .kat-content-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ==========================================================================
   4. RESPONZÍVNE
   ========================================================================== */
@media (max-width: 1100px) {
    .kat-hero-vyhody { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
    /* Hero ide edge-to-edge — vytrhneme z containera negatívnym margin do plnej šírky viewportu */
    .kat-hero {
        padding: 0 0 28px;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
    }
    /* Vnútorné sekcie hero — pridáme padding aby text nešiel po okraj */
    .kat-hero-breadcrumbs { padding-left: 16px; padding-right: 16px; }
    .kat-hero-cont { gap: 24px; flex-direction: column; align-items: stretch; padding: 0 16px; }
    .kat-hero-vyhody { padding-left: 16px; padding-right: 16px; }

    .kat-hero-text { text-align: center; }
    .kat-hero-statbar { flex-wrap: wrap; justify-content: center; }
    .kat-hero-meta, .kat-hero-meta--secondary { justify-content: center; }
    .kat-hero-strips { justify-content: center; }
    .kat-hero-title { font-size: 34px; letter-spacing: -0.6px; text-align: center; max-width: none; }
    .kat-hero-aeo { font-size: 13px; }

    /* Mobile-only ikona zobraz a zväčši, desktop ikona skry */
    .kat-hero-icon--desktop { display: none; }
    .kat-hero-icon--mobile {
        display: flex;
        width: 160px;
        height: 160px;
        margin: 4px auto 22px;
    }

    /* Veľké číslo + label "kurzov v ponuke" — na mobile nepotrebujeme */
    .kat-hero-stat { display: none; }

    /* Sidebar so súvisiacimi kategóriami — na mobile nepotrebujeme */
    .kat-sidebar-col { display: none; }

    .kat-hero-right { align-self: center; margin-right: 0; margin-top: 0; }
    .kat-hero-gallery { width: 100%; max-width: 360px; }
    .kat-hero-bg-blob { width: 70%; opacity: 0.45; }

    /* Anchor menu — fixed pás dole na mobile */
    .kat-anchormenu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: 0 -6px 18px -10px rgba(0, 0, 0, 0.25);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .kat-anchormenu-inner {
        padding: 8px 10px;
    }
    .kat-anchor-item {
        font-size: 11px;
        min-width: 76px;
        padding: 6px 4px;
        gap: 4px;
    }
    .kat-anchor-item svg {
        width: 18px;
        height: 18px;
    }
    /* Padding pod body aby fixed menu neprekrylo posledný obsah */
    body {
        padding-bottom: 76px;
    }
}
@media (max-width: 540px) {
    .kat-hero { padding: 0 0 24px; }
    .kat-hero-title { font-size: 28px; }
    .kat-hero-aeo { font-size: 13px; }
    .kat-hero-icon--mobile { width: 140px; height: 140px; margin: 4px auto 18px; }
    .kat-hero-gallery { gap: 6px; }
    .kat-hero-bg-blob { opacity: 0.3; }
    .kat-hero-vyhody { grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
    .kat-vyhody-box-icon { width: 36px; height: 36px; }
    .kat-vyhody-box-icon svg { width: 20px; height: 20px; }

    /* Lektori strip — text "Naši lektori kurzov:" na samostatný riadok,
       chips + count pod ním (chipsy a count vedľa seba) */
    .kat-mini-strip {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    .kat-mini-strip__lead {
        text-align: center;
    }
    .kat-mini-strip__lead strong {
        display: inline;
    }
    /* Hero-strips na mobile stackuju pod seba (lektori, CTA) */
    .kat-hero-strips {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
}

/* ===========================================================================
   6. LEKTORI — sekcia kariet
=========================================================================== */
.kat-lektori-popis {
    font-size: 15px;
    color: #4A423C;
    margin: 0 0 20px;
    max-width: 760px;
    line-height: 1.55;
}
.kat-lektori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.kat-lektor-karta {
    background: #fff;
    border: 1px solid rgba(26, 22, 20, 0.08);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.kat-lektor-karta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--c-accent, #1266A3);
}
.kat-lektor-karta-foto {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f3efeb;
}
.kat-lektor-karta-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kat-lektor-karta-meno {
    font-size: 16px;
    font-weight: 700;
    color: #1A1614;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.kat-lektor-karta-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}
.kat-lektor-karta-stars svg {
    width: 14px;
    height: 14px;
}
.kat-lektor-karta-stars .star-filled { fill: #f59e0b; }
.kat-lektor-karta-stars .star-empty  { fill: #d1d5db; }
.kat-lektor-karta-hodnotenie {
    font-size: 12px;
    color: #6E665E;
    margin-left: 6px;
}
.kat-lektor-karta-popis {
    font-size: 13px;
    line-height: 1.5;
    color: #6E665E;
    /* Skrátime na 3-4 riadky, full popis bude v modali */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.kat-lektor-karta-detail {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-accent, #1266A3);
    margin-top: auto;
}
.kat-lektor-karta { cursor: pointer; }
@media (max-width: 540px) {
    .kat-lektori-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .kat-lektor-karta-foto { width: 72px; height: 72px; }
    .kat-lektor-karta { padding: 12px; }
}

/* ---------------------------------------------------------------------------
   6b. Lektor modal — detail lektora s hodnoteniami
   Port z old-detail.css (.lektor-modal*) do nášho .kat-lektor-modal* namespace.
--------------------------------------------------------------------------- */
.kat-lektor-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.kat-lektor-modal.active { display: flex; }
.kat-lektor-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: katLektorModalSlideIn 0.3s ease;
}
@keyframes katLektorModalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.kat-lektor-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #1A1614;
    line-height: 1;
    z-index: 2;
}
.kat-lektor-modal-close:hover {
    background: #1A1614;
    color: #fff;
}
.kat-lektor-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 30px;
    color: #fff;
    /* background sa nastaví inline z PHP cez $accent */
}
.kat-lektor-modal-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}
.kat-lektor-modal-meno {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.kat-lektor-modal-subtitle {
    font-size: 14px;
    opacity: 0.75;
    margin: 0;
}
.kat-lektor-modal-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
}
.kat-lektor-modal-stars svg { width: 18px; height: 18px; }
.kat-lektor-modal-stars svg.star-filled { fill: #fbbf24; }
.kat-lektor-modal-stars svg.star-empty  { fill: rgba(255, 255, 255, 0.4); }
.kat-lektor-modal-stats {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}
.kat-lektor-modal-popis {
    padding: 25px 30px;
    font-size: 14px;
    line-height: 1.7;
    color: #1A1614;
    border-bottom: 1px solid rgba(26, 22, 20, 0.08);
}
.kat-lektor-modal-hodnotenia { padding: 25px 30px; }
.kat-lektor-modal-hodnotenia h4 {
    font-size: 16px;
    margin: 0 0 16px 0;
    color: #1A1614;
}
.kat-lektor-hodnotenie {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}
.kat-lektor-hodnotenie:last-child { margin-bottom: 0; }
.kat-lektor-hodnotenie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.kat-lektor-hodnotenie-header strong {
    color: #1A1614;
    font-size: 14px;
}
.kat-lektor-hodnotenie-stars { display: flex; gap: 2px; }
.kat-lektor-hodnotenie-stars svg { width: 14px; height: 14px; }
.kat-lektor-hodnotenie-stars svg.star-filled { fill: #fbbf24; }
.kat-lektor-hodnotenie-stars svg.star-empty  { fill: #d1d5db; }
.kat-lektor-hodnotenie p {
    margin: 0;
    font-size: 13px;
    color: #6E665E;
    line-height: 1.5;
}
.kat-lektor-modal-btn {
    display: block;
    width: calc(100% - 60px);
    margin: 0 30px 30px 30px;
    padding: 14px;
    background: #1A1614;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.kat-lektor-modal-btn:hover {
    background: var(--c-accent, #1266A3);
}
@media (max-width: 600px) {
    .kat-lektor-modal-foto { width: 100px; height: 100px; }
    .kat-lektor-modal-meno { font-size: 22px; }
}

/* ===========================================================================
   7. NAJLEPŠIE KURZY (afinita) — port z afinita-detail.css
=========================================================================== */
.kat-afinita-section {
    padding: 40px 0;
}
.kat-afinita-header {
    text-align: center;
    padding: 0 40px 30px 40px;
}
.kat-afinita-nadpis {
    font-size: 36px;
    font-weight: 700;
    color: #1A1614;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
    line-height: 1.15;
}
.kat-afinita-popis {
    font-size: 15px;
    color: #6E665E;
    margin: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}
.kat-afinita-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 0;
}
/* Semantic <article> wrapper okolo <a> — display: contents = neviditeľný pre grid layout */
.kat-afinita-grid > .kat-afinita-kurz-wrap {
    display: contents;
}
.kat-afinita-kurz {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: #f9fafb;
    border: 1px solid rgba(26, 22, 20, 0.08);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
.kat-afinita-kurz--hlavny .kat-afinita-kurz-icon {
    width: 112px;
    height: 112px;
    border-radius: 20px;
}
.kat-afinita-kurz--hlavny .kat-afinita-kurz-nazov {
    color: #fff;
}
.kat-afinita-kurz-percento {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -2px;
}
.kat-afinita-kurz-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}
a.kat-afinita-kurz {
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.kat-afinita-kurz:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    text-decoration: none;
}
.kat-afinita-kurz-nazov {
    font-size: 15px;
    font-weight: 700;
    color: #1A1614;
    margin: 0;
    letter-spacing: 0;
    line-height: 1.3;
}
.kat-afinita-kurz-sub {
    font-size: 12px;
    color: #6E665E;
    line-height: 1.4;
    margin-top: 2px;
}
.kat-afinita-kurz--hlavny .kat-afinita-kurz-sub {
    color: rgba(255,255,255,0.6);
}
.kat-afinita-kurz-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 900px) {
    .kat-afinita-grid { grid-template-columns: repeat(3, 1fr); padding: 0; }
    .kat-afinita-nadpis { font-size: 28px; }
    .kat-afinita-kurz-sub { display: none; }
}
/* Mobile: 1 stĺpec, kurzy ako horizontálne riadky (ikona | % | nazov),
   hlavny ("Táto kategória") box skryť — šetrí výšku */
@media (max-width: 600px) {
    .kat-afinita-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .kat-afinita-kurz--hlavny { display: none; }

    .kat-afinita-kurz {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 2px 12px;
    }
    .kat-afinita-kurz-icon {
        order: 1;
        width: 38px;
        height: 38px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .kat-afinita-kurz-percento {
        order: 2;
        font-size: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
        min-width: 48px;
        text-align: right;
        letter-spacing: -1px;
    }
    .kat-afinita-kurz-nazov {
        order: 3;
        font-size: 14px;
        flex: 1;
        min-width: 0;
        line-height: 1.3;
    }
    .kat-afinita-header { padding: 0 16px 18px; }
}

/* Fade-in animácia afinita kariet — len mobile (triedu pridáva JS) */
.kat-afinita-kurz.kat-fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.kat-afinita-kurz.kat-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Respektuj prefers-reduced-motion — žiadne animácie pre používateľov čo ich nechcú */
@media (prefers-reduced-motion: reduce) {
    .kat-afinita-kurz.kat-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hint pod afinitou — mobile only (default skrytý) */
.kat-afinita-hint {
    display: none;
}
@media (max-width: 600px) {
    .kat-afinita-hint {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 14px auto 0;
        padding: 10px 16px;
        background: #f3f4f6;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        color: #4a5563;
        text-decoration: none;
        text-align: center;
        max-width: calc(100% - 32px);
    }
    .kat-afinita-hint svg {
        flex-shrink: 0;
        color: var(--c-accent, #1266A3);
        animation: kat-bounce 1.6s ease-in-out infinite;
    }
    .kat-afinita-section {
        text-align: center;
    }
}
@keyframes kat-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* ===========================================================================
   8. HODNOTENIA UCASTNIKOV — kopia z old-detail.css (1866-2103).
   Modul detail-modul-hodnotenia.php pouziva tieto class names 1:1, preto NEPRENAZYVAME.
=========================================================================== */
.hodnotenia-section {
    padding: 40px 0;
}
.hodnotenia-header {
    text-align: center;
    padding: 0 40px 30px 40px;
}
.hodnotenia-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}
.hodnotenia-star {
    width: 36px;
    height: 36px;
    fill: #e0e0e0;
}
.hodnotenia-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5c518;
    color: #1A1614;
    font-size: 18px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    margin-left: 6px;
}
.hodnotenia-star--active.hodnotenia-star--animate {
    animation: hodnoteniaStarPop 0.5s ease var(--star-delay, 0s) both;
}
.hodnotenia-star--active {
    /* Aj bez animacie maju byt aktivne hviezdy zlte */
    fill: #f5c518;
}
@keyframes hodnoteniaStarPop {
    0%   { fill: #e0e0e0; transform: scale(1); }
    50%  { fill: #f5c518; transform: scale(1.3); }
    100% { fill: #f5c518; transform: scale(1); }
}
.hodnotenia-nadpis {
    font-size: 42px;
    font-weight: 700;
    color: #1A1614;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
    line-height: 1.15;
}
.hodnotenia-popis {
    font-size: 16px;
    color: #6E665E;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.6;
}
.hodnotenia-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0;
}
.hodnotenia-list--hidden { display: none; }
.hodnotenia-list + .hodnotenia-list { margin-top: 16px; }
.hodnotenia-item {
    background: #f9fafb;
    border: 1px solid #e9ebee;
    border-radius: 14px;
    padding: 20px;
}
.hodnotenia-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.hodnotenia-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.hodnotenia-item-meta { flex: 1; min-width: 0; }
.hodnotenia-item-meno {
    font-size: 14px;
    font-weight: 700;
    color: #1A1614;
}
.hodnotenia-item-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}
.hodnotenia-item-stars svg { width: 14px; height: 14px; }
.hodnotenia-item-stars .star-filled { fill: #f5c518; }
.hodnotenia-item-stars .star-empty  { fill: #e0e0e0; }
.hodnotenia-item-percento {
    font-size: 13px;
    font-weight: 700;
    color: #1A1614;
    margin-left: 4px;
}
.hodnotenia-item-lektor {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.hodnotenia-item-datum {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}
.hodnotenia-item-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.hodnotenia-item-kurz {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}
.hodnotenia-item-kurz-prefix {
    font-style: italic;
}
.hodnotenia-item-kurz-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-accent, #1266A3);
    text-decoration: none;
    font-weight: 600;
    font-style: normal;
}
.hodnotenia-item-kurz-link:hover {
    color: var(--c-accent, #1266A3);
    text-decoration: underline;
    opacity: 0.85;
}
.hodnotenia-item-kurz-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.hodnotenia-item-kurz-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hodnotenia-item-kurz-nazov {
    font-style: normal;
}
.hodnotenia-item-reakcia {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0f4f8;
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}
.hodnotenia-btn-viac {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 0 auto;
    padding: 12px 32px;
    background: #f9fafb;
    border: 1px solid #e9ebee;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #1A1614;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hodnotenia-btn-viac:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
@media (max-width: 900px) {
    .hodnotenia-list { grid-template-columns: 1fr; padding: 0; }
    .hodnotenia-nadpis { font-size: 32px; }
}
@media (max-width: 600px) {
    .hodnotenia-nadpis  { font-size: 28px; }
    .hodnotenia-header  { padding: 0 20px 20px 20px; }
    .hodnotenia-star    { width: 28px; height: 28px; }
}

/* ===========================================================================
   9. VIDEOKURZY (VideoClass) — bezplatné videokurzy v cene kurzu
   .chlievik/.okraj/.textvk/.tagy port z inline <style> v page-detail.php (299-345)
=========================================================================== */
.kat-videokurzy-lead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 24px;
    font-size: 15px;
    color: #4A423C;
    line-height: 1.6;
}
.kat-videokurzy-lead strong {
    color: var(--c-accent, #1A1614);
    font-weight: 700;
}
/* Masonry layout cez CSS columns — žiadny JS potrebný.
   Karty s rôznou výškou (kvôli tagom) sa naskladajú bez „uskakovania" pod sebou. */
.kat-videokurzy-grid {
    column-count: 4;
    column-gap: 16px;
}
@media (max-width: 1200px) {
    .kat-videokurzy-grid { column-count: 3; }
}
@media (max-width: 768px) {
    .kat-videokurzy-grid { column-count: 2; }
}
@media (max-width: 480px) {
    .kat-videokurzy-grid { column-count: 1; }
}
.kat-videokurzy-grid .precl {
    /* Karty nesmú byť rozdelené medzi stĺpce */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin-bottom: 16px;
}
.kat-videokurzy-grid .precl a {
    color: #3b3b3b;
    text-decoration: none;
    display: block;
}
.kat-videokurzy-grid .okraj {
    border: 1px solid #e8e8e8;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: -1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.kat-videokurzy-grid .precl a:hover .okraj {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}
.kat-videokurzy-grid .chlievik {
    height: 150px;
    margin: 0;
    overflow: hidden;
    background: #f3f4f6;
}
.kat-videokurzy-grid .chlievik img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.kat-videokurzy-grid .textvk {
    padding: 12px 10px 4px;
    color: #1A1614;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    /* Bez fixed height — necháme prirodzene tiecť, masonry to vyrieši */
}
.kat-videokurzy-grid .tagy {
    padding: 4px 10px 12px;
    text-align: center;
}
.kat-videokurzy-grid .tagy > span {
    display: inline-block;
    background-color: #151f28;
    font-weight: normal;
    font-size: 11px;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 2px 3px;
    letter-spacing: 0;
}

.kat-videokurzy-more {
    margin: 24px 0 0;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e9ebee;
    border-radius: 12px;
    font-size: 14px;
    color: #4A423C;
    line-height: 1.6;
    text-align: center;
}
.kat-videokurzy-more a {
    color: var(--c-accent, #1266A3);
    font-weight: 700;
    text-decoration: underline;
}
.kat-videokurzy-more strong {
    color: #1A1614;
}

/* ===========================================================================
   10. LIGHTBOX GALÉRIA — full-screen modal, mobile-first
=========================================================================== */
.kat-galeria-modal[hidden] { display: none; }
.kat-galeria-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 14, 22, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #fff;
    animation: katGaleriaFade 0.25s ease;
}
@keyframes katGaleriaFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.kat-galeria-modal-inner {
    max-width: 1100px;
    margin: 0 auto;
    /* 40px nahor — preč spod fixed site nav / wp-admin baru, aby close button bol vidieť */
    padding: 40px 0 0;
}
.kat-galeria-modal-header {
    position: sticky;
    top: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(10,14,22,0.98) 0%, rgba(10,14,22,0.85) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.kat-galeria-modal-header-text {
    flex: 1;
    min-width: 0;
}
.kat-galeria-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.kat-galeria-modal-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.3;
}
.kat-galeria-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.kat-galeria-close:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(90deg);
}
.kat-galeria-modal-body {
    padding: 16px 16px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Riadok jedného kurzu */
.kat-galeria-kurz {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}
.kat-galeria-kurz-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kat-galeria-kurz-nazov {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}
.kat-galeria-kurz-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}
.kat-galeria-kurz-rating-stars { display: inline-flex; gap: 2px; }
.kat-galeria-kurz-rating-stars svg { width: 14px; height: 14px; }
.kat-galeria-kurz-rating-stars .star-filled { fill: #fbbf24; }
.kat-galeria-kurz-rating-stars .star-empty  { fill: rgba(255,255,255,0.2); }
.kat-galeria-kurz-rating-val {
    font-weight: 700;
    color: #fff;
}
.kat-galeria-kurz-rating-cnt {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}
.kat-galeria-kurz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 8px 14px;
    background: var(--c-accent, #1266A3);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
}
.kat-galeria-kurz-btn:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

/* Photos pás — horizontálny scroll na mobile */
.kat-galeria-kurz-photos {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.kat-galeria-kurz-photos::-webkit-scrollbar { height: 6px; }
.kat-galeria-kurz-photos::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.kat-galeria-photo {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    padding: 0;
    border: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s, box-shadow 0.2s;
}
.kat-galeria-photo:hover, .kat-galeria-photo:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    outline: 2px solid var(--c-accent, #1266A3);
    outline-offset: 2px;
}
.kat-galeria-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop layout — info 1/3 vlavo, photos 2/3 vpravo */
@media (min-width: 768px) {
    .kat-galeria-modal-header h2 { font-size: 22px; }
    .kat-galeria-modal-header p { font-size: 14px; }
    .kat-galeria-modal-body { padding: 24px 24px 100px; gap: 16px; }
    .kat-galeria-kurz {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px;
        gap: 24px;
    }
    .kat-galeria-kurz-info {
        flex: 0 0 32%;
        max-width: 32%;
    }
    .kat-galeria-kurz-nazov { font-size: 18px; }
    .kat-galeria-kurz-photos {
        flex: 1;
        min-width: 0;
    }
    .kat-galeria-photo { width: 130px; height: 130px; }
}

/* ---------------------------------------------------------------------------
   Photo zoom — sub-modal nad galériou
--------------------------------------------------------------------------- */
.kat-galeria-zoom[hidden] { display: none; }
.kat-galeria-zoom {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    /* +40px hore preč spod fixed nav / wp-admin baru */
    padding: 100px 16px 80px;
    animation: katGaleriaFade 0.2s ease;
}
.kat-galeria-zoom-close {
    position: absolute;
    top: 56px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
}
.kat-galeria-zoom-close:hover {
    background: rgba(255,255,255,0.18);
    transform: rotate(90deg);
}
.kat-galeria-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.kat-galeria-zoom-nav:hover { background: rgba(255,255,255,0.18); }
.kat-galeria-zoom-nav--prev { left: 12px; }
.kat-galeria-zoom-nav--next { right: 12px; }
.kat-galeria-zoom-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.kat-galeria-zoom-figure img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.kat-galeria-zoom-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.kat-galeria-zoom-caption #kat-galeria-zoom-kurz {
    font-weight: 600;
    color: #fff;
}
.kat-galeria-zoom-caption #kat-galeria-zoom-counter {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
    .kat-galeria-zoom { padding: 50px 8px 70px; }
    .kat-galeria-zoom-nav { width: 44px; height: 44px; }
    .kat-galeria-zoom-nav--prev { left: 4px; }
    .kat-galeria-zoom-nav--next { right: 4px; }
}

/* ============================================================
   PONUKA-KURZOV — hero + chip filter (page-ponuka-kurzov.php)
   ============================================================ */
.ponuka-hero {
    margin: 24px 0 16px;
}
.ponuka-hero-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
    color: #111827;
    font-weight: 700;
}
.ponuka-hero-intro {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    max-width: 820px;
}
.ponuka-hero-intro p:first-child { margin-top: 0; }
.ponuka-hero-intro p:last-child  { margin-bottom: 0; }
.ponuka-hero-meta {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}
.ponuka-hero-meta strong {
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.ponuka-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 28px;
    flex-wrap: wrap;
}
.ponuka-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}
.ponuka-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    min-width: 320px;
    max-width: 100%;
    transition: border-color 0.15s;
}
.ponuka-filter-select:hover {
    border-color: #9ca3af;
}
.ponuka-filter-select:focus {
    outline: none;
    border-color: #1266A3;
    box-shadow: 0 0 0 3px rgba(18, 102, 163, 0.15);
}
.ponuka-filter-select.is-filtered {
    border-color: #1266A3;
    background-color: #f0f7fc;
    font-weight: 500;
}

@media (max-width: 600px) {
    .ponuka-hero-title { font-size: 26px; }
    .ponuka-filter-select { min-width: 0; width: 100%; }
}
