/* =========================================================================
   Aktuality – výpis článků
   ========================================================================= */

/* ---------- hero ---------- */

.page-hero {
    position: relative;
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--white);
    isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0 0 0 auto; width: 66%; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.page-hero-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(11, 29, 51, .82) 28%, rgba(11, 29, 51, .25) 65%, rgba(11, 29, 51, .05) 100%);
}
.page-hero-inner { min-height: 170px; padding: 18px 40px 28px 58px; display: flex; flex-direction: column; justify-content: center; }
.page-hero .breadcrumb ol { margin-bottom: 12px; }
.page-hero h1 {
    position: relative;
    margin: 0 0 6px;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.page-hero h1::before {
    content: '';
    position: absolute; left: -26px; top: -6px; bottom: -40px;
    width: 6px; border-radius: 3px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
.page-hero p { margin: 0; max-width: 620px; font-size: 16px; font-weight: 500; opacity: .95; }

/* ---------- rozvržení ---------- */

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 32px;
    align-items: start;
    margin-top: 22px;
}
.news-main { min-width: 0; transition: opacity .2s; }
.news-main.is-loading { opacity: .45; pointer-events: none; }

/* ---------- filtry a řazení ---------- */

.news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center;
    min-height: 34px; padding: 0 20px;
    border: 1px solid #E5E5E5; border-radius: 20px;
    background: var(--white);
    font-size: 14px; font-weight: 500; color: var(--text);
    text-decoration: none; white-space: nowrap;
    transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active {
    border-color: transparent;
    background: var(--gold-gradient);
    font-weight: 700; color: var(--navy-deep);
    box-shadow: 0 2px 6px rgba(168, 117, 67, .3);
}
.news-sort { position: relative; flex: none; display: flex; gap: 8px; }
.news-sort select {
    appearance: none; -webkit-appearance: none;
    min-height: 36px; padding: 0 36px 0 14px;
    border: 1px solid #E5E5E5; border-radius: var(--radius-btn);
    background: var(--white);
    font: 500 14px var(--font); color: var(--text); cursor: pointer;
}
.news-sort select:focus { outline: none; box-shadow: var(--focus); }
.news-sort > i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; pointer-events: none; }

/* ---------- zvýrazněný článek ---------- */

.news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 240px;
    margin-bottom: 20px;
    border: 1px solid #E5E5E5; border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--white);
    color: var(--text); text-decoration: none;
    box-shadow: 0 1px 3px rgba(16, 40, 70, .05);
    transition: box-shadow .2s;
}
.news-featured:hover { box-shadow: 0 12px 32px rgba(16, 40, 70, .12); }
.news-featured-img { position: relative; display: block; background: var(--surface-soft); overflow: hidden; }
.news-featured-img img, .news-featured-img .img-placeholder {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: flex;
    transition: transform .4s ease;
}
.news-featured:hover .news-featured-img img:not(.is-graphic) { transform: scale(1.03); }
.news-featured-img .badge { position: absolute; top: 18px; left: 18px; font-size: 12px; padding: 4px 11px; }
.news-featured-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 26px 24px; }
.news-featured-title { font-size: 22px; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.news-featured:hover .news-featured-title { color: var(--navy); }
.news-featured-perex { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.btn-gold {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: auto;
    min-height: 40px; padding: 0 20px;
    border-radius: 20px;
    background: var(--gold-gradient);
    font-size: 14px; font-weight: 700; color: var(--navy-deep);
    box-shadow: 0 2px 6px rgba(168, 117, 67, .3);
    transition: gap .2s;
}
.news-featured:hover .btn-gold { gap: 14px; }

.news-date { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.news-date i { color: var(--navy); }

/* ---------- mřížka karet ---------- */

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card {
    display: flex; flex-direction: column;
    border: 1px solid #E5E5E5; border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--white);
    color: var(--text); text-decoration: none;
    box-shadow: 0 1px 3px rgba(16, 40, 70, .05);
    transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: 0 12px 28px rgba(16, 40, 70, .12); transform: translateY(-2px); }
.news-card-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-soft); }
.news-card-img img, .news-card-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; display: flex; transition: transform .4s ease; }
.news-card:hover .news-card-img img:not(.is-graphic) { transform: scale(1.04); }
.news-card-img .badge { position: absolute; top: 14px; left: 14px; }
.news-card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.news-card-title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.news-card:hover .news-card-title { color: var(--navy); }
.news-card-perex {
    font-size: 13.5px; line-height: 1.55; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-more {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    margin-top: auto; padding-top: 8px;
    font-size: 14px; font-weight: 700; color: var(--navy);
    border-bottom: 2px solid transparent;
    transition: gap .2s, border-color .2s;
}
.news-card:hover .news-card-more { gap: 12px; border-color: var(--gold); }

img.is-graphic { object-fit: contain !important; background: var(--white); padding: 10px; }

/* ---------- prázdný stav ---------- */

.news-empty { padding: 48px 20px; text-align: center; border: 1px dashed #D9D2C6; border-radius: var(--radius-card); background: var(--surface-soft); }
.news-empty p { margin: 0 0 16px; color: var(--text-muted); }

/* ---------- postranní panel ---------- */

.news-sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-panel { padding: 14px 10px 10px; border: 1px solid #E5E5E5; border-radius: var(--radius-card); background: #F7F7F7; }
.side-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 0 8px 10px; }
.side-head h2 {
    display: flex; align-items: center; gap: 10px;
    margin: 0; font-size: 14px; font-weight: 800; white-space: nowrap;
    text-transform: uppercase; letter-spacing: .02em; color: var(--navy-deep);
}
.side-head h2 i { font-size: 19px; color: var(--navy); }
.side-head a { font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.side-head a:hover { text-decoration: underline; }
.side-head a i { margin-left: 5px; font-size: 11px; }
.side-note { margin: 4px 8px 8px; font-size: 14px; color: var(--text-muted); }

.doc-rows, .event-rows { list-style: none; margin: 0; padding: 0 4px; border-radius: 10px; background: var(--white); }
.doc-rows li + li, .event-rows li + li { border-top: 1px solid #EEE; }
.doc-rows a { display: flex; align-items: center; gap: 14px; padding: 10px 10px; color: var(--text); text-decoration: none; }
.doc-ico { flex: none; width: 24px; font-size: 22px; text-align: center; color: var(--navy); }
.doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.doc-meta { font-size: 11px; color: var(--text-muted); }
.doc-get { color: var(--navy); font-size: 14px; }
.doc-rows a:hover .doc-name { color: var(--red); }

.side-events { background: var(--gold-gradient); border-color: transparent; }
.side-events .side-head h2, .side-events .side-head h2 i, .side-events .side-head a { color: var(--navy-deep); }
.event-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 10px; color: var(--text); text-decoration: none; }
.event-day {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 46px; border-radius: 8px;
    background: linear-gradient(180deg, #FBEBC8 0%, var(--gold-light) 100%);
    border: 1px solid #EBD3A0;
    color: var(--navy-deep); line-height: 1;
}
.event-day b { font-size: 18px; font-weight: 800; }
.event-day span { margin-top: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.event-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.event-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 11.5px; color: var(--text-muted); }
.event-sub i { margin-right: 6px; color: var(--navy); }
.event-type { padding: 1px 8px; border-radius: 10px; background: #FBEBC8; color: #7A5427; font-weight: 700; font-size: 10px; text-transform: uppercase; }
.event-row > i { color: var(--navy); transition: transform .15s; }
a.event-row:hover .event-name { color: var(--red); }
a.event-row:hover > i { transform: translateX(3px); }

.side-instagram {
    position: relative;
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: linear-gradient(120deg, var(--navy-deep) 0%, #17406F 100%);
    color: var(--white); text-decoration: none;
}
.side-instagram::after {
    content: '\f16d';
    font-family: 'Font Awesome 6 Brands';
    position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
    font-size: 86px; line-height: 1; color: rgba(255, 255, 255, .07);
    pointer-events: none;
}
.side-instagram-ico {
    flex: none; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--gold-gradient); color: var(--navy-deep); font-size: 24px;
}
.side-instagram > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.side-instagram b { font-size: 16px; }
.side-instagram > span > span { font-size: 13px; opacity: .85; }
.side-instagram > i:last-child { position: relative; z-index: 1; transition: transform .15s; }
.side-instagram:hover > i:last-child { transform: translateX(3px); }

.side-contact { padding: 18px 20px; border: 1px solid #E5E5E5; border-radius: var(--radius-card); background: var(--white); }
.side-contact h2 { margin: 0 0 4px; font-size: 17px; }
.side-contact p { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); }
.side-contact .btn { width: 100%; }

/* =========================================================================
   Responzivita (tablet: vše pod sebou, 2 sloupce karet; mobil: 1 sloupec)
   ========================================================================= */

@media (max-width: 1280px) {
    .news-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .news-layout { grid-template-columns: minmax(0, 1fr); }
    .news-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .page-hero-media { width: 80%; }
}

@media (max-width: 760px) {
    .page-hero-media { width: 100%; }
    .page-hero-media::after { background: linear-gradient(90deg, rgba(11, 29, 51, .92) 0%, rgba(11, 29, 51, .6) 100%); }
    .page-hero-inner { min-height: 190px; padding: 16px 20px 24px 36px; }
    .page-hero h1::before { left: -18px; width: 5px; }
    .page-hero p { font-size: 15px; }

    .news-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .news-filter {
        flex-wrap: nowrap; overflow-x: auto;
        margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
        scrollbar-width: none; scroll-snap-type: x proximity;
    }
    .news-filter::-webkit-scrollbar { display: none; }
    .chip { scroll-snap-align: start; padding: 0 16px; }
    .news-sort { align-self: flex-end; }

    .news-featured { grid-template-columns: minmax(0, 1fr); }
    .news-featured-img { aspect-ratio: 16 / 10; }
    .news-featured-body { padding: 18px 18px 20px; }
    .news-featured-title { font-size: 20px; }
    .btn-gold { margin-top: 6px; }

    .news-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .news-sidebar { grid-template-columns: minmax(0, 1fr); }

}

/* grafika/logo: místo nahoře pro štítek kategorie */
.news-card-img img.is-graphic { padding: 36px 16px 10px; }
.news-featured-img img.is-graphic { padding: 56px 24px 20px; }
