/* ============================================================
 * Nové kurzy a aktualizácie — custom page CSS
 * /nove-it-kurzy-zmeny-a-aktualizacie-v-nasej-ponuke/
 * Štvorcové ikony, karta s preklikom, bez ceny.
 * ============================================================ */

.nk-page {
    --nk-accent: #1266A3;
    --nk-accent-hover: #0e5285;
    --nk-text: #14202b;
    --nk-text-muted: #6b7280;
    --nk-border: #e6e9ee;
    --nk-radius: 16px;
    --nk-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --nk-shadow-hover: 0 14px 30px rgba(15, 23, 42, 0.13), 0 4px 10px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    padding-top: 18px;
    padding-bottom: 48px;
}
.nk-page *,
.nk-page *::before,
.nk-page *::after { box-sizing: inherit; }

/* ----- HERO ----- */
.nk-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 14px;
}
.nk-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--nk-text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.nk-hero-intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--nk-text-muted);
}
.nk-hero-intro p { margin: 0 0 10px; }

/* ----- SECTION ----- */
.nk-section { margin-top: 44px; }
.nk-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
}
.nk-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--nk-text);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
    position: relative;
    padding-bottom: 12px;
}
.nk-section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--nk-accent);
}
.nk-section-desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--nk-text-muted);
    margin: 0;
}

/* ----- GRID (4 -> 3 -> 2 -> 1) ----- */
.nk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
@media (max-width: 1100px) { .nk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 800px)  { .nk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 520px)  { .nk-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ----- CARD ----- */
.nk-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--nk-border);
    border-radius: var(--nk-radius);
    box-shadow: var(--nk-shadow);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nk-shadow-hover);
    border-color: #d4dde6;
    text-decoration: none !important;
}

/* Štvorcová ikona */
.nk-card-icon {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #eef1f5 0%, #f6f8fa 100%);
}
.nk-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.nk-card:hover .nk-card-icon img { transform: scale(1.05); }

/* Telo karty */
.nk-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 18px;
    flex: 1;
}
.nk-card-kat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nk-accent);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nk-card-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nk-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.nk-card:hover .nk-card-title { color: var(--nk-accent); }
.nk-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--nk-text-muted);
    line-height: 1.2;
}
.nk-card-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #16a34a;
}

/* ----- CTA "Všetky kurzy" ----- */
.nk-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.nk-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--nk-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: background-color 0.15s, transform 0.1s;
}
.nk-cta:hover { background: var(--nk-accent-hover); color: #fff !important; text-decoration: none !important; }
.nk-cta:active { transform: translateY(1px); }
.nk-cta svg { width: 18px; height: 18px; transition: transform 0.2s; }
.nk-cta:hover svg { transform: translateX(3px); }

/* ----- OBSAH STRÁNKY (WP content, na spodku) ----- */
.nk-content {
    max-width: 820px;
    margin: 44px auto 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--nk-text);
}
.nk-content p { margin: 0 0 14px; }
.nk-content a { color: var(--nk-accent); }
.nk-content h2,
.nk-content h3 { color: var(--nk-text); margin: 24px 0 10px; }

/* ----- EMPTY ----- */
.nk-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--nk-text-muted);
    background: #f7f9fb;
    border-radius: 12px;
    font-size: 15px;
}

/* ----- MOBILE ----- */
@media (max-width: 520px) {
    .nk-hero-title { font-size: 25px; }
    .nk-section-title { font-size: 21px; }
}
