:root {
    --ancl-green: #a9c82b;
    --ancl-green-dark: #759524;
    --ancl-ink: #1d2d45;
    --ancl-text: #5f6c7a;
    --ancl-line: #e1e7e9;
    --ancl-soft: #f6f8f4;
    --ancl-white: #ffffff;
    --ancl-radius: 18px;
    --ancl-shadow: 0 18px 45px rgba(30, 49, 63, .08);
}

.ancl-root,
.ancl-root * { box-sizing: border-box; }

.ancl-root {
    width: 100%;
    padding: 56px 18px 80px;
    color: var(--ancl-ink);
    background: #fff;
}

.ancl-shell {
    width: min(1420px, 100%);
    margin: 0 auto;
}

.ancl-topbar {
    display: block;
    margin-bottom: 30px;
}

.ancl-section-eyebrow {
    margin: 0 0 10px;
    color: var(--ancl-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ancl-intro {
    margin: 0 0 9px;
    color: var(--ancl-green-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.ancl-title {
    max-width: none;
    margin: 0;
    color: var(--ancl-ink);
    font-size: clamp(26px, 2.05vw, 36px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.ancl-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.ancl-filter {
    appearance: none;
    border: 1px solid #dce4df;
    border-radius: 999px;
    padding: 11px 18px;
    background: #fff;
    color: #354558;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.ancl-filter:hover,
.ancl-filter:focus-visible {
    border-color: var(--ancl-green);
    color: var(--ancl-green-dark);
    outline: none;
}

.ancl-filter.is-active {
    border-color: var(--ancl-green-dark);
    background: var(--ancl-green-dark);
    color: #fff;
}

.ancl-category-showcase {
    margin-bottom: 58px;
}

.ancl-cat-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: var(--ancl-radius);
    padding: 0;
    text-align: left;
    background: #1f2f3f;
    box-shadow: var(--ancl-shadow);
    cursor: pointer;
    isolation: isolate;
}

.ancl-cat-card--large { height: 430px; margin-bottom: 18px; }
.ancl-small-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ancl-cat-card--small { height: 265px; }

.ancl-cat-media,
.ancl-cat-media img,
.ancl-cat-placeholder,
.ancl-cat-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ancl-cat-media img {
    object-fit: cover;
    transition: transform .45s ease;
}

.ancl-cat-placeholder {
    display: block;
    background: radial-gradient(circle at 70% 30%, rgba(169,200,43,.38), transparent 32%), linear-gradient(135deg, #21364a, #0f1c2c);
}

.ancl-cat-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(10,21,31,.83) 0%, rgba(10,21,31,.58) 45%, rgba(10,21,31,.13) 100%);
}

.ancl-cat-card--small .ancl-cat-overlay {
    background: linear-gradient(0deg, rgba(10,21,31,.9) 0%, rgba(10,21,31,.24) 78%);
}

.ancl-cat-content {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(700px, 82%);
    padding: 34px 38px;
    color: #fff;
}

.ancl-cat-card--small .ancl-cat-content { width: 100%; padding: 24px 26px; }


.ancl-cat-content strong {
    color: #fff;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.05;
}

.ancl-cat-card--small .ancl-cat-content strong { font-size: 25px; }

.ancl-cat-desc {
    max-width: 580px;
    margin-top: 10px;
    color: rgba(255,255,255,.87);
    font-size: 16px;
    line-height: 1.5;
}

.ancl-cat-card--small .ancl-cat-desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ancl-cat-cta {
    margin-top: 17px;
    color: #d9ef7a;
    font-size: 14px;
    font-weight: 800;
}

.ancl-cat-card:hover .ancl-cat-media img { transform: scale(1.035); }
.ancl-cat-card:focus-visible { outline: 3px solid var(--ancl-green); outline-offset: 3px; }

.ancl-articles-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin: 0 0 22px;
}

.ancl-articles-head h2 {
    margin: 0;
    color: var(--ancl-ink);
    font-size: clamp(29px, 3vw, 42px);
    letter-spacing: -.025em;
}

.ancl-status { min-height: 1.4em; color: var(--ancl-text); font-size: 13px; }
.ancl-root.is-loading .ancl-posts { opacity: .42; pointer-events: none; }
.ancl-posts { transition: opacity .18s ease; }

.ancl-featured-post {
    display: grid;
    grid-template-columns: 1.02fr 1.18fr;
    min-height: 440px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--ancl-line);
    border-radius: var(--ancl-radius);
    background: #fff;
    box-shadow: var(--ancl-shadow);
}

.ancl-featured-media,
.ancl-card-media {
    display: block;
    overflow: hidden;
    background: #edf1ee;
}

.ancl-featured-media img,
.ancl-card-media img,
.ancl-post-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ancl-post-placeholder { min-height: 260px; background: linear-gradient(135deg, #e8ede8, #f5f7f3); }
.ancl-featured-media img { min-height: 440px; }

.ancl-featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 4vw, 56px);
}

.ancl-featured-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }

.ancl-badge {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--ancl-green-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.ancl-badge--ghost {
    border: 1px solid #dde6df;
    background: #f7f9f7;
    color: #435165;
}

.ancl-featured-copy h3,
.ancl-card-copy h3 { margin: 0; }

.ancl-featured-copy h3 a {
    color: var(--ancl-ink);
    text-decoration: none;
    font-size: clamp(31px, 3.1vw, 49px);
    line-height: 1.08;
    letter-spacing: -.026em;
}

.ancl-featured-copy > p {
    margin: 20px 0 26px;
    color: var(--ancl-text);
    font-size: 17px;
    line-height: 1.72;
}

.ancl-featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    padding-top: 12px;
}

.ancl-featured-footer time,
.ancl-card-meta { color: #677586; font-size: 12px; font-weight: 700; }

.ancl-read-link,
.ancl-card-link {
    color: var(--ancl-green-dark);
    font-weight: 800;
    text-decoration: none;
}

.ancl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ancl-card {
    overflow: hidden;
    border: 1px solid var(--ancl-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(30,49,63,.055);
}

.ancl-card-media { aspect-ratio: 4 / 3; }
.ancl-card-media img { transition: transform .35s ease; }
.ancl-card:hover .ancl-card-media img { transform: scale(1.035); }

.ancl-card-copy { padding: 22px 22px 24px; }

.ancl-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ancl-card-meta span { color: var(--ancl-green-dark); }

.ancl-card-copy h3 a {
    color: var(--ancl-ink);
    text-decoration: none;
    font-size: 22px;
    line-height: 1.22;
}

.ancl-card-copy p {
    margin: 13px 0 18px;
    color: var(--ancl-text);
    font-size: 14px;
    line-height: 1.62;
}

.ancl-card-link { font-size: 14px; }

.ancl-empty {
    padding: 40px;
    border: 1px dashed #d8dfdb;
    border-radius: 14px;
    background: #fafbf9;
    color: var(--ancl-text);
    text-align: center;
}

.ancl-load-wrap { display: flex; justify-content: center; margin-top: 34px; }

.ancl-load-more {
    border: 1px solid var(--ancl-green-dark);
    border-radius: 999px;
    padding: 13px 22px;
    background: #fff;
    color: var(--ancl-green-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ancl-load-more:hover { background: var(--ancl-green-dark); color: #fff; }
.ancl-load-more[hidden] { display: none !important; }

@media (max-width: 1050px) {
    .ancl-featured-post { grid-template-columns: 1fr; }
    .ancl-featured-media { aspect-ratio: 16 / 9; }
    .ancl-featured-media img { min-height: 0; }
}

@media (max-width: 820px) {
    .ancl-root { padding: 34px 14px 60px; }
    .ancl-title { font-size: 40px; }
    .ancl-cat-card--large { height: 360px; }
    .ancl-small-categories { grid-template-columns: 1fr; }
    .ancl-cat-card--small { height: 230px; }
    .ancl-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .ancl-topbar { margin-bottom: 22px; }
    .ancl-title { font-size: 34px; }
    .ancl-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
    .ancl-filter { flex: 0 0 auto; padding: 9px 14px; font-size: 12px; }
    .ancl-cat-card--large { height: 330px; }
    .ancl-cat-content { width: 100%; padding: 25px 24px; }
    .ancl-cat-content strong { font-size: 31px; }
    .ancl-cat-desc { font-size: 14px; }
    .ancl-category-showcase { margin-bottom: 42px; }
    .ancl-articles-head { align-items: flex-start; flex-direction: column; }
    .ancl-featured-copy { padding: 26px 22px 28px; }
    .ancl-featured-copy h3 a { font-size: 30px; }
    .ancl-featured-copy > p { font-size: 15px; line-height: 1.62; }
    .ancl-featured-footer { align-items: flex-start; flex-direction: column; }
    .ancl-grid { grid-template-columns: 1fr; }
    .ancl-card-copy h3 a { font-size: 21px; }
}


/* v1.0.2: custom template for /clanky/ when it is the WordPress Posts page */
.ancl-page-main {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}
body.ancl-custom-articles-page .ancl-page-main {
    overflow: hidden;
}

/* v1.0.10 – pôvodný Nutricorp titlebar zostáva viditeľný. */

/* Dlhý hlavný nadpis nesmie pretiecť mimo obsah. */
.ancl-title {
    max-width: 1280px;
    white-space: normal !important;
    overflow-wrap: break-word;
    font-size: clamp(27px, 2.15vw, 36px);
}

@media (max-width: 820px) {
    .ancl-title {
        font-size: clamp(27px, 6vw, 38px);
        line-height: 1.08;
    }
}
