/**
 * Bento Grid Landing Page CSS — ZSMH.sk (v20)
 *
 * Strict 3-column CSS Grid — every block = 1×1 cell (same height per row).
 *
 * Grid rows:
 *   1 = Hero row (slider 2fr + info 1fr — internal sub-grid)
 *   2 = Quick Links (span 3)
 *   3 = Filter bar (span 3)
 *   4 = Aktualita 1 | Aktualita 2  | Oznamy
 *   5 = Aktualita 3 | Aktualita 4  | Termíny
 *   6 = Aktualita 5 | Aktualita 6  | Jedálniček
 *   7 = Aktualita 7 | Aktualita 8  | Zvonenie
 *   8 = Aktualita 9 | Aktualita 10 | CTA
 *   9 = Stats (span 3)
 */

/* ============================================================
 * 0. DIVI OVERRIDES
 * ============================================================ */
body.page-template-page-uvod { flex-direction: column !important; background: #e0e0e3 !important; overflow-x: hidden !important; overflow-x: clip !important; max-width: 100vw !important; }
html:has(body.page-template-page-uvod) { overflow-x: hidden !important; overflow-x: clip !important; max-width: 100vw !important; }
body.page-template-page-uvod #page-container { max-width: 100vw !important; overflow-x: hidden !important; overflow-x: clip !important; }
body.page-template-page-uvod #et-main-area { max-width: 100vw !important; overflow-x: hidden !important; overflow-x: clip !important; }

/* Header: sticky namiesto Divi fixed — žiadny jump, plynulý scroll.
   (Pôvodný Divi hack s position:relative už nie je potrebný.) */
body.page-template-page-uvod #top-header { position: relative !important; top: 0 !important; }
body.page-template-page-uvod #main-header { position: sticky !important; }
body.page-template-page-uvod #page-container { padding-top: 0 !important; margin-top: 0 !important; }
body.page-template-page-uvod #et-main-area { padding-top: 0 !important; }

/* Mobile: legacy Divi overrides — #logo sizing now unified in header-footer.css */
@media (max-width: 980px) {
    body.page-template-page-uvod #et_top_search { display: none !important; }
}
body.page-template-page-uvod .et_mobile_menu { z-index: 100002 !important; position: absolute !important; width: 100% !important; background: #fff !important; box-shadow: 0 8px 24px rgba(0,0,0,.12) !important; }
body.page-template-page-uvod #et-secondary-nav li ul { z-index: 100002 !important; }
.bp-page { width: 100% !important; background: transparent !important; }
.bp-page a { color: inherit; text-decoration: none; }
#main-content.bp-page .container { width: 100%; max-width: none; padding: 0; }
#main-content.bp-page #content-area { width: 100%; padding: 0; }
#main-content.bp-page #left-area { width: 100%; padding: 0; }

/* ============================================================
 * 1. BENTO GRID — strict 3 columns, every block = 1×1 cell
 * ============================================================ */
.bp-bento {
    width: 80%; max-width: 1080px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 40px;
}

/* --- Bento cell (base) --- */
.bp-cell {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.03);
}
.bp-cell:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.05);
}
.bp-cell-pad { padding: 18px; }

/* --- Section label with orange accent --- */
.bp-label {
    font-family: var(--font-heading); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px; border-bottom: 1px solid #eee;
    position: relative;
}
.bp-label::after {
    content: '';
    position: absolute; bottom: -1px; left: 0;
    width: 28px; height: 2px; background: var(--orange, #f19e00);
}

/* --- "More" link --- */
.bp-more {
    display: block; font-family: var(--font-heading);
    font-size: 11px; font-weight: 700; color: var(--orange, #f19e00);
    margin-top: auto; padding-top: 10px;
}
.bp-more:hover { color: #d48800; }

/* ============================================================
 * 2. HERO ROW — slider + info block (ROW 1)
 * ============================================================ */
.bp-hero-row {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 12px;
}

/* Slider */
.bp-hero-slider {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e8e8e8;
}
.bp-hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity .6s ease;
}
.bp-hero-slide.active { opacity: 1; }
/* Video slide: hide until video is ready (poster visible via bg) */
.bp-hero-slide.bp-video-loading video { opacity: 0; }
.bp-hero-slide.bp-video-loading {
    background-size: cover; background-position: center;
}
.bp-hero-slide img,
.bp-hero-slide video {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity .4s ease;
}
.bp-hero-dots {
    position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 2;
}
.bp-hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer;
    transition: all .2s;
}
.bp-hero-dot.on { background: #fff; width: 20px; border-radius: 4px; }

/* Info block (orange gradient) */
.bp-hero-info {
    border-radius: 14px;
    background: linear-gradient(160deg, #f7a800 0%, #e89200 50%, #d48000 100%);
    color: #fff;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}
.bp-hero-info::before {
    content: '';
    position: absolute; top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.bp-hero-info::after {
    content: '';
    position: absolute; bottom: -40px; left: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}
.bp-hero-slogan {
    font-family: var(--font-heading); font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700; line-height: 1.25; margin-bottom: 8px;
    position: relative; z-index: 1;
}
.bp-hero-sub {
    font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.55;
    margin-bottom: 18px; position: relative; z-index: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bp-hero-btns { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.bp-hero-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 50px;
    font-family: var(--font-heading); font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all .2s;
}
.bp-hero-btn-primary { background: #fff; color: var(--orange, #f19e00) !important; }
.bp-hero-btn-primary:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.bp-hero-btn-secondary {
    background: rgba(255,255,255,.18); color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.35);
}
.bp-hero-btn-secondary:hover { background: rgba(255,255,255,.28); }

/* Hero slide background-image fallback */
.bp-hero-slide[style*="background-image"] {
    background-size: cover; background-position: center;
}

/* Hero alert (dôležité) inside info block */
.bp-hero-alert {
    margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2);
    position: relative; z-index: 1;
}
.bp-hero-alert-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--orange, #f19e00); margin-right: 6px; vertical-align: middle;
    animation: bpBellPulse 2s ease-in-out infinite;
}
.bp-hero-alert-label {
    font-family: var(--font-heading); font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.75);
    margin-right: 8px;
}
.bp-hero-alert-link {
    display: block; font-size: 11px; color: rgba(255,255,255,.9);
    line-height: 1.5; margin-top: 4px; transition: color .2s;
}
.bp-hero-alert-link:hover { color: #fff; }

/* ============================================================
 * 3. QUICK LINKS — row 2 (7 items in white wrapper)
 * ============================================================ */
.bp-qlinks-row {
    grid-column: 1 / -1;
    grid-row: 2;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.03);
}
.bp-qlinks-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.bp-ql {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 4px; border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer; transition: all .2s;
}
.bp-ql:hover {
    border-color: var(--orange, #f19e00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241,158,0,.12);
}
.bp-ql-icon {
    width: 40px; height: 40px;
    border-radius: 12px; background: #f5f5f7;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    transition: background .2s;
}
.bp-ql:hover .bp-ql-icon { background: rgba(241,158,0,.12); }
.bp-ql-icon svg { width: 20px; height: 20px; stroke: #555; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bp-ql:hover .bp-ql-icon svg { stroke: var(--orange, #f19e00); }
.bp-ql-name {
    font-family: var(--font-heading); font-size: 11px; font-weight: 700;
    color: #555; text-align: center; line-height: 1.3;
}
.bp-ql:hover .bp-ql-name { color: var(--orange, #f19e00); }

/* ============================================================
 * 4. FILTER BAR (ROW 3)
 * ============================================================ */
.bp-filter-bar {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex; align-items: center; gap: 8px;
    padding: 4px 0;
}
.bp-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-fp {
    font-family: var(--font-heading); font-size: 11px; font-weight: 700;
    padding: 6px 16px; border-radius: 50px;
    background: #fff; color: #555; border: 1px solid #e0e0e0;
    cursor: pointer; transition: all .2s;
}
.bp-fp:hover { color: var(--orange, #f19e00); border-color: var(--orange, #f19e00); }
.bp-fp.on { background: var(--orange, #f19e00); color: #fff; border-color: var(--orange, #f19e00); }
.bp-filter-all {
    font-family: var(--font-heading); font-size: 12px; font-weight: 700;
    color: var(--orange, #f19e00) !important; white-space: nowrap; margin-left: 12px;
    text-decoration: none; position: relative; padding-bottom: 2px;
    display: inline-flex; align-items: center; gap: 5px; line-height: 1;
}
.bp-filter-all svg { width: 13px; height: 13px; vertical-align: middle; }
.bp-filter-all::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--orange, #f19e00);
    border-radius: 1px; transition: width 0.3s ease;
}
.bp-filter-all:hover::after { width: 100%; }
.bp-filter-all svg { transition: transform 0.2s; }
.bp-filter-all:hover svg { transform: translateX(3px); }
.bp-filter-all:hover { color: #d48800 !important; }

/* ============================================================
 * 4b. CARDS + WIDGETS — flat siblings in 3-col grid
 *     bp-ak-grid has display:contents → cards participate
 *     directly in parent .bp-bento grid (cols 1-2, rows 4-8).
 *     Widgets have explicit grid-column:3 + grid-row.
 * ============================================================ */
.bp-ak-grid {
    display: contents;
}
.bp-ak-grid.is-loading > * { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* Widget positioning — column 3, explicit rows */
.bp-oznamy  { grid-column: 3; grid-row: 4; }
.bp-terminy { grid-column: 3; grid-row: 5; }
.bp-jd      { grid-column: 3; grid-row: 6; }
.bp-bell    { grid-column: 3; grid-row: 7; }
.bp-cta     { grid-column: 3; grid-row: 8; }

/* Card base */
.bp-ak {
    display: flex; flex-direction: column;
    cursor: pointer;
    transition: opacity .3s, transform .2s;
}
.bp-ak:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: var(--orange, #f19e00); }

/* Image */
.bp-ak-img {
    position: relative; aspect-ratio: 16 / 10;
    overflow: hidden; background: #f0f0f0;
}
.bp-ak-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.bp-ak:hover .bp-ak-img img { transform: scale(1.05); }

/* Fallback card */
.bp-ak-fb {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.bp-ak-fb svg { width: 48px; height: 48px; opacity: .85; color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.1)); }

/* Date badge — glassmorphism */
.bp-ak-date {
    position: absolute; top: 10px; left: 10px;
    background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
    border-radius: 8px; padding: 4px 8px;
    display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.bp-ad-day { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: #1a1a1a; }
.bp-ad-mo { font-size: 9px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: .5px; }

/* Category badge */
.bp-ak-cat {
    position: absolute; top: 10px; right: 10px;
    font-family: var(--font-heading); font-size: 8px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px; color: #fff;
    padding: 3px 8px; border-radius: 50px;
}
.bp-cat-ms  { background: #28a745; }
.bp-cat-1st { background: #f19e00; }
.bp-cat-2st { background: #4147a6; }
.bp-cat-skd { background: #9b59b6; }
.bp-cat-sut { background: #dc3545; }
.bp-cat-all { background: #78909c; }

/* Media badges */
.bp-ak-badges {
    position: absolute; bottom: 8px; left: 8px;
    display: flex; gap: 5px;
}
.bp-ak-badge {
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    color: #fff; font-size: 10px; font-weight: 600;
    padding: 3px 7px; border-radius: 6px; line-height: 1;
}
.bp-ak-badge svg { width: 11px; height: 11px; }

/* Pozvánka card + countdown overlay */
.bp-ak--pozvanka { border: 2px solid #14b8a6; }
.bp-ak--pozvanka .bp-ak-date { background: #14b8a6; color: #fff; }
.bp-ak--pozvanka .bp-ad-day { color: #fff; }
.bp-ak--pozvanka .bp-ad-mo { color: rgba(255,255,255,0.8); }
.bp-ak-countdown-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(17,94,89,0.92) 0%, rgba(17,94,89,0.7) 60%, transparent 100%);
    padding: 20px 8px 6px; display: flex; justify-content: center;
}
.bp-ak-countdown-overlay .flip-inline__num { font-size: 0.7rem; padding: 2px 4px; min-width: 18px; }
.bp-ak-countdown-overlay .flip-inline__label { color: rgba(255,255,255,0.7); }
.bp-ak-countdown-overlay .flip-inline__sep { color: rgba(255,255,255,0.5); }

/* Body */
.bp-ak-body { padding: 14px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.bp-ak-title {
    font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
    color: #333; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em; /* Reserve space for 2 lines — all cards same height */
}
.bp-ak-excerpt {
    font-family: var(--font-body); font-size: 0.88rem; color: #777; line-height: 1.5; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
 * 6. OZNAMY — WHITE background (cols 9-12, rows 4-5)
 * ============================================================ */
.bp-oznamy {
    background: #fff;
    display: flex; flex-direction: column;
}
.bp-oznamy-header {
    display: flex; align-items: center; justify-content: space-between;
}
.bp-oznamy-badge {
    font-family: var(--font-heading); font-size: 10px; font-weight: 700;
    background: #dc3545; color: #fff; padding: 3px 10px; border-radius: 50px;
}
.bp-oznamy-list { margin-top: 4px; flex: 1; }
.bp-oznamy-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0;
    transition: padding-left .2s;
}
.bp-oznamy-item:last-of-type { border-bottom: none; }
.bp-oznamy-item:hover { padding-left: 4px; }
.bp-oznamy-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0; margin-top: 6px;
}
/* Colored dots by zaradenie */
.bp-oznamy-dot-skola { background: #999; }
.bp-oznamy-dot-1st   { background: var(--orange, #f19e00); }
.bp-oznamy-dot-2st   { background: #4147a6; }
.bp-oznamy-dot-ms    { background: #28a745; }
.bp-oznamy-dot-skd   { background: #9b59b6; }
.bp-oznamy-text { flex: 1; min-width: 0; }
.bp-oznamy-title {
    display: block; font-family: var(--font-body);
    font-size: 0.88rem; color: #333; font-weight: 500; line-height: 1.4;
}
.bp-oznamy-imp .bp-oznamy-title { color: #c03030; font-weight: 600; }
.bp-oznamy-date {
    display: block; font-family: var(--font-body);
    font-size: 11px; color: #aaa; line-height: 1.5; margin-top: 1px;
}

/* ============================================================
 * 7. TERMÍNY — timeline (cols 9-12, row 6)
 * ============================================================ */
.bp-terminy {
    display: flex; flex-direction: column;
}
.bp-tl-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid #f5f5f5;
    transition: padding-left .2s;
}
.bp-tl-item:hover { padding-left: 4px; }
.bp-tl-item:last-of-type { border-bottom: none; }
.bp-tl-badge { width: 42px; text-align: center; flex-shrink: 0; }
.bp-tl-day { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: #1a1a1a; line-height: 1; }
.bp-tl-mo { font-size: 10px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.bp-tl-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.bp-dot-event { background: var(--orange, #f19e00); }
.bp-dot-deadline { background: #e74c3c; }
.bp-dot-holiday { background: #27ae60; }
.bp-tl-title { font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; color: #333; line-height: 1.4; }
.bp-tl-desc { font-size: 10.5px; color: #bbb; margin-top: 1px; }

/* ============================================================
 * 8. JEDÁLNIČEK (cols 1-5, row 7)
 * ============================================================ */
.bp-jd {
    display: flex; flex-direction: column;
    background: #fff !important;
    border: 1px solid #eee;
}
.bp-jd-pills { display: flex; gap: 4px; margin-bottom: 12px; }
.bp-jd-pill {
    font-family: var(--font-heading); font-size: 11px; font-weight: 700;
    padding: 6px 16px; border-radius: 50px;
    background: #f5f5f5; color: #2e7d32; border: 1px solid #e8e8e8;
    cursor: pointer; transition: all .2s;
}
.bp-jd-pill.on { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.bp-jd .bp-label { color: #1a1a1a; }
.bp-jd .bp-label::after { background: #2e7d32; }
.bp-jd .bp-more { color: #2e7d32; }
.bp-jd .bp-more:hover { color: #1b5e20; }
.bp-jd-row {
    display: flex; gap: 10px; padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--font-body); font-size: 0.88rem; color: #333;
}
.bp-jd-row:last-child { border-bottom: none; }
.bp-jd-type {
    font-family: var(--font-heading); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; color: #2e7d32;
    width: 90px; flex-shrink: 0; padding-top: 2px;
    line-height: 1.25;
}
.bp-jd-tag {
    display: inline-block; margin-left: 3px;
    font-weight: 600; font-size: 9px; letter-spacing: .3px;
    text-transform: none; color: #666;
}
.bp-jd-value {
    flex: 1; min-width: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-cta .bp-label { color: rgba(255,255,255,.85); border-bottom-color: rgba(255,255,255,.2); }
.bp-cta .bp-label::after { background: rgba(255,255,255,.5); }

/* ============================================================
 * 9. ZVONENIE / BELL (cols 9-12, row 7) — blue accent, sidebar position
 * ============================================================ */
.bp-bell {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #1a3a6e 0%, #1e4d8c 60%, #2563a8 100%) !important;
    color: #fff;
    border: none;
}
.bp-bell-icon { width: 44px; height: 44px; margin-bottom: 6px; color: rgba(255,255,255,.8); }
.bp-bell-ring {
    animation: bpBellRing 2.5s ease-in-out infinite;
    transform-origin: top center;
}
.bp-bell-after .bp-bell-ring,
.bp-bell-weekend .bp-bell-ring,
.bp-bell-off .bp-bell-ring { animation: none; }
@keyframes bpBellRing {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(12deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(6deg); }
    40% { transform: rotate(-3deg); }
    50% { transform: rotate(0); }
}
.bp-bell-status {
    font-family: var(--font-heading); font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,.75); margin-bottom: 4px;
}
.bp-bell-live {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: #4ade80; margin-right: 4px; vertical-align: middle;
    animation: bpBellPulse 2s ease-in-out infinite;
}
@keyframes bpBellPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.bp-bell-period {
    font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
    color: #fff; line-height: 1.2;
}
.bp-bell-time {
    font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,.7);
    margin-top: 4px;
}
.bp-bell-countdown {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; padding: 5px 14px; border-radius: 50px;
    background: rgba(255,255,255,.15); color: #fff;
    font-family: var(--font-heading); font-size: 11px; font-weight: 700;
}
.bp-bell-countdown svg { width: 12px; height: 12px; }
.bp-bell-link {
    font-family: var(--font-heading); font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,.65); margin-top: 10px;
    transition: color .2s;
}
.bp-bell-link:hover { color: #fff; }
/* Live clock */
.bp-bell-clock {
    font-family: var(--font-heading); font-size: 28px; font-weight: 700;
    color: #fff; letter-spacing: 1px; margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}
/* Two grade rows */
.bp-bell-grades { width: 100%; margin-top: 2px; }
.bp-bell-grade { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.bp-bell-grade + .bp-bell-grade { border-top: 1px solid rgba(255,255,255,.12); }
.bp-bell-grade-label {
    font-family: var(--font-heading); font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: rgba(255,255,255,.7); white-space: nowrap; width: 52px; text-align: right; flex-shrink: 0;
}
.bp-bell-grade-info {
    font-family: var(--font-heading); font-size: 12px; font-weight: 700;
    color: #fff;
}
.bp-bell-grade-time {
    font-family: var(--font-body); font-size: 10px; color: rgba(255,255,255,.65); margin-left: auto;
}
/* After school / weekend — lighter */
.bp-bell-after, .bp-bell-weekend, .bp-bell-off {
    background: linear-gradient(135deg, #2c4a7a 0%, #3b5e96 100%) !important;
}
.bp-bell-after .bp-bell-icon, .bp-bell-weekend .bp-bell-icon, .bp-bell-off .bp-bell-icon { color: rgba(255,255,255,.5); }
.bp-bell-after .bp-bell-period, .bp-bell-weekend .bp-bell-period, .bp-bell-off .bp-bell-period { color: rgba(255,255,255,.75); }
.bp-bell-after .bp-bell-time, .bp-bell-weekend .bp-bell-time, .bp-bell-off .bp-bell-time { color: rgba(255,255,255,.5); }

/* ============================================================
 * 10. CTA — col 3 row 8, plum/purple gradient
 * ============================================================ */
.bp-cta {
    background: linear-gradient(135deg, #6b2fa0 0%, #8e44ad 60%, #a855c8 100%);
    color: #fff;
    padding: 28px 24px;
    border: none;
    display: flex; align-items: center; justify-content: center;
}
/* CTA farebné palety (gradient zachovaný, mení sa len hue) */
.bp-cta--purple { background: linear-gradient(135deg, #6b2fa0 0%, #8e44ad 60%, #a855c8 100%); }
.bp-cta--blue   { background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%); }
.bp-cta--teal   { background: linear-gradient(135deg, #0f766e 0%, #0d9488 60%, #14b8a6 100%); }
.bp-cta--green  { background: linear-gradient(135deg, #166534 0%, #16a34a 60%, #22c55e 100%); }
.bp-cta--orange { background: linear-gradient(135deg, #9a3412 0%, #ea580c 60%, #f97316 100%); }
.bp-cta--red    { background: linear-gradient(135deg, #991b1b 0%, #dc2626 60%, #ef4444 100%); }
.bp-cta--pink   { background: linear-gradient(135deg, #9d174d 0%, #db2777 60%, #ec4899 100%); }
.bp-cta--slate  { background: linear-gradient(135deg, #334155 0%, #475569 60%, #64748b 100%); }
.bp-cta--gold   { background: linear-gradient(135deg, #78350f 0%, #b45309 60%, #d97706 100%); }
/* Farba textu tlačidla podľa palety */
.bp-cta--purple .bp-cta-btn { color: #6b2fa0 !important; }
.bp-cta--blue   .bp-cta-btn { color: #1e40af !important; }
.bp-cta--teal   .bp-cta-btn { color: #0f766e !important; }
.bp-cta--green  .bp-cta-btn { color: #166534 !important; }
.bp-cta--orange .bp-cta-btn { color: #9a3412 !important; }
.bp-cta--red    .bp-cta-btn { color: #991b1b !important; }
.bp-cta--pink   .bp-cta-btn { color: #9d174d !important; }
.bp-cta--slate  .bp-cta-btn { color: #334155 !important; }
.bp-cta--gold   .bp-cta-btn { color: #78350f !important; }
.bp-cta-inner {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 16px;
}
.bp-cta-content {
    min-width: 0;
}
.bp-cta-icon {
    display: block; margin: 0 auto 10px; width: 48px; height: 48px;
    object-fit: contain; filter: brightness(0) invert(1); opacity: .9;
}
.bp-cta-text {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
    line-height: 1.25; margin-bottom: 6px;
}
.bp-cta-sub { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.5; margin: 0; }
.bp-cta-btn {
    display: inline-block; background: #fff; color: #6b2fa0 !important;
    padding: 11px 28px; border-radius: 50px;
    font-family: var(--font-heading); font-size: 13px; font-weight: 700;
    white-space: nowrap; transition: all .2s;
}
.bp-cta-btn:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
/* CTA rotácia — obsah sa mení cez JS, CSS len animuje prechod */
.bp-cta { transition: background .8s ease; }
.bp-cta-inner { transition: opacity .5s ease; }
.bp-cta-inner.bp-cta-fading { opacity: 0; }

/* CTA slider — rotácia ak viac bannerov s rovnakou prioritou.


/* ============================================================
 * 11. STATS — full width, warm gradient (ROW 9)
 * ============================================================ */
.bp-stats-row {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f19e00 0%, #e8880a 50%, #d47800 100%);
    border-radius: 14px;
    border: none;
    padding: 20px 28px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.03);
}
.bp-stats-heading {
    font-family: var(--font-heading); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,.75);
}
.bp-stats-items {
    display: flex; align-items: center; justify-content: space-between;
}
.bp-stat {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; padding: 4px 0;
    position: relative;
}
.bp-stat + .bp-stat::before {
    content: '';
    position: absolute; left: 0; top: 10%; height: 80%;
    width: 1px; background: rgba(255,255,255,.2);
}
.bp-stat-num {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
    color: #fff; line-height: 1;
}
.bp-stat-label {
    font-family: var(--font-heading); font-size: 8px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255,255,255,.75); margin-top: 5px;
}

/* ============================================================
 * 12. RESPONSIVE — tablet (≤1024px): 3 → 2 columns
 * ============================================================ */
@media (max-width: 1024px) {
    .bp-bento { width: 90%; grid-template-columns: repeat(2, 1fr); }

    /* Hero — info pod slider */
    .bp-hero-row { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .bp-hero-slider { aspect-ratio: 2 / 1; }
    .bp-hero-info {
        padding: 20px 22px;
        flex-direction: column; align-items: flex-start;
    }
    .bp-hero-info .bp-hero-slogan { font-size: 1.25rem; margin-bottom: 6px; }
    .bp-hero-info .bp-hero-sub { display: -webkit-box; -webkit-line-clamp: 2; font-size: 13px; margin-bottom: 12px; }
    .bp-hero-info .bp-hero-btns { flex-shrink: 0; }

    /* Cards — back to own 2-col grid (no longer display:contents) */
    .bp-ak-grid {
        display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
        grid-column: 1 / -1; grid-row: auto;
    }

    /* Widgets — release explicit positioning, flow naturally in 2-col grid */
    .bp-oznamy, .bp-terminy, .bp-jd, .bp-bell, .bp-cta {
        grid-column: auto; grid-row: auto;
    }

    /* Oznamy + Termíny pred udalosťami (vedľa seba v 2-col grid).
       DOM: hero → qlinks → filter → ak-grid → oznamy → terminy → jd → bell → cta → stats
       Tablet: hero → qlinks → [oznamy | terminy] → filter → ak-grid → jd → bell → cta → stats */
    .bp-oznamy     { order: 1; }
    .bp-terminy    { order: 1; }
    .bp-filter-bar { order: 2; grid-column: 1 / -1; grid-row: auto; flex-wrap: wrap; gap: 8px; }
    .bp-ak-grid    { order: 3; }
    .bp-jd         { order: 4; }
    .bp-bell       { order: 5; }
    .bp-cta        { order: 6; }

    /* Stats */
    .bp-stats-row { grid-column: 1 / -1; grid-row: auto; order: 7; }

    /* Quick links — 4 cols */
    .bp-qlinks-grid { grid-template-columns: repeat(4, 1fr); }
    .bp-qlinks-row { grid-column: 1 / -1; grid-row: auto; }
}

/* ============================================================
 * 13. RESPONSIVE — mobile (≤768px)
 * ============================================================ */
@media (max-width: 768px) {
    .bp-bento { width: 92%; gap: 10px; }

    /* Hero — taller on mobile */
    .bp-hero-slider { aspect-ratio: 16 / 10; }
    /* Hero info — vertikálna, full-width pod sliderom */
    .bp-hero-info {
        flex-direction: column; align-items: flex-start;
        padding: 18px 20px;
    }
    .bp-hero-info .bp-hero-slogan { font-size: 1.15rem; margin-bottom: 6px; }
    .bp-hero-info .bp-hero-sub { display: -webkit-box; -webkit-line-clamp: 2; font-size: 12px; margin-bottom: 10px; }

    /* Aktuality — 2 stĺpce (inherits from 1024px breakpoint) */

    /* Oznamy — väčšie písmo na full-width */
    .bp-oznamy-title { font-size: 0.95rem; }
    .bp-oznamy-date  { font-size: 12px; }
    .bp-oznamy-item  { padding: 12px 0; gap: 12px; }
    .bp-oznamy-dot   { width: 9px; height: 9px; }

    /* Termíny — väčšie písmo na full-width */
    .bp-tl-title { font-size: 0.95rem; }
    .bp-tl-desc  { font-size: 11.5px; }
    .bp-tl-day   { font-size: 22px; }
    .bp-tl-mo    { font-size: 11px; }
    .bp-tl-item  { padding: 11px 0; gap: 12px; }
    .bp-tl-badge { width: 46px; }
    .bp-tl-dot   { width: 9px; height: 9px; }

    /* Jedálniček — väčšie písmo na full-width */
    .bp-jd-row   { font-size: 0.95rem; padding: 9px 0; }
    .bp-jd-type  { font-size: 11px; }
    .bp-jd-pill  { font-size: 12px; }

    /* Zvonenie — väčšie písmo na full-width */
    .bp-bell-period   { font-size: 1.4rem; }
    .bp-bell-time     { font-size: 13px; }
    .bp-bell-countdown { font-size: 12px; }
    .bp-bell-grade-info { font-size: 13px; }
    .bp-bell-grade-time { font-size: 11px; }

    /* CTA — ostáva vertikálny v 2-col grido (bunka je príliš úzka pre row layout) */
    .bp-cta { padding: 24px 28px; }
    .bp-cta-text { font-size: 1.2rem; }
    .bp-cta-sub  { font-size: 13px; }
    .bp-cta-btn  { font-size: 13px; padding: 10px 26px; }

    /* Section label — väčšie na full-width */
    .bp-label { font-size: 12.5px; letter-spacing: 1.8px; margin-bottom: 14px; }

    /* Cell padding — väčšie na full-width */
    .bp-cell-pad { padding: 20px; }

    /* Aktuality karty — väčšie písmo */
    .bp-ak-title   { font-size: 1.05rem; }
    .bp-ak-excerpt  { font-size: 0.9rem; }
    .bp-ak-body     { padding: 14px 16px 16px; }

    /* Stats — wrap 2 rows */
    .bp-stats-row { grid-column: 1 / -1; grid-row: auto; padding: 18px 20px; }
    .bp-stats-items { flex-wrap: wrap; justify-content: center; gap: 4px 0; }
    .bp-stat { flex: 0 0 25%; padding: 8px 0; }
    .bp-stat + .bp-stat::before { display: none; }
    .bp-stat-num   { font-size: 1.35rem; }
    .bp-stat-label { font-size: 8.5px; }

    /* Quick links */
    .bp-qlinks-row { grid-column: 1 / -1; grid-row: auto; }
    .bp-qlinks-grid { grid-template-columns: repeat(4, 1fr); }

    /* Filter */
    .bp-filter-bar { grid-column: 1 / -1; grid-row: auto; }
    .bp-fp { font-size: 11px; padding: 6px 14px; }
    .bp-filter-all { font-size: 12px; }
}

/* ============================================================
 * 14. RESPONSIVE — small mobile (≤480px)
 * ============================================================ */
@media (max-width: 480px) {
    .bp-bento { width: 94%; max-width: 100%; gap: 8px; margin-top: 10px; grid-template-columns: 1fr; box-sizing: border-box; }

    /* Hero — even taller on small mobile */
    .bp-hero-row { grid-column: 1; }
    .bp-hero-slider { aspect-ratio: 4 / 3; }
    .bp-hero-info .bp-hero-slogan { font-size: 1.05rem; }
    .bp-hero-info { padding: 16px; }
    .bp-hero-info .bp-hero-sub { -webkit-line-clamp: 2; font-size: 11.5px; margin-bottom: 8px; }
    .bp-hero-btn { font-size: 11px; padding: 7px 14px; }

    /* Aktuality — 1 stĺpec */
    .bp-ak-grid { grid-template-columns: 1fr; }

    /* Oznamy pred udalosťami na mobile (1-stĺpcový grid).
       DOM: hero → qlinks → filter → ak-grid → oznamy → terminy → jd → bell → cta → stats
       Mobile: hero → qlinks → filter → OZNAMY → ak-grid → terminy → jd → bell → cta → stats */
    .bp-oznamy     { order: 1; }
    .bp-filter-bar { order: 2; }
    .bp-ak-grid    { order: 3; }
    .bp-terminy  { order: 4; }
    .bp-jd       { order: 5; }
    .bp-bell     { order: 6; }
    .bp-cta      { order: 7; }
    .bp-stats-row { order: 8; }
    .bp-ak-title   { font-size: 1rem; }
    .bp-ak-excerpt  { font-size: 0.88rem; -webkit-line-clamp: 2; }
    .bp-ak-body     { padding: 12px 14px 14px; }

    /* Stats — full width in parent bento */
    .bp-stats-row { grid-column: 1 / -1; }

    /* Cell padding — full-width, pohodlné veľkosti */
    .bp-cell-pad { padding: 16px; }

    /* Oznamy — prispôsobené na full-width mobile */
    .bp-oznamy-title { font-size: 0.92rem; }
    .bp-oznamy-date  { font-size: 11.5px; }

    /* Termíny — prispôsobené na full-width mobile */
    .bp-tl-title { font-size: 0.92rem; }
    .bp-tl-desc  { font-size: 11px; }
    .bp-tl-day   { font-size: 20px; }
    .bp-tl-mo    { font-size: 10px; }

    /* Jedálniček — prispôsobené na full-width mobile */
    .bp-jd-row  { font-size: 0.92rem; }
    .bp-jd-type { font-size: 10px; }

    /* Zvonenie */
    .bp-bell-period   { font-size: 1.3rem; }
    .bp-bell-time     { font-size: 12px; }
    .bp-bell-countdown { font-size: 11px; }
    .bp-bell-grade-info { font-size: 12px; }

    /* CTA — vertical centered on small mobile */
    .bp-cta { padding: 20px 18px; }

    .bp-cta-inner { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    .bp-cta-text { font-size: 1.1rem; }
    .bp-cta-sub  { font-size: 12px; margin-bottom: 0; }
    .bp-cta-btn  { font-size: 12px; padding: 9px 22px; }

    /* Section label */
    .bp-label { font-size: 12px; margin-bottom: 12px; }

    /* Stats — menšie fonty (2 riadky po 4) */
    .bp-stat { flex: 0 0 25%; }
    .bp-stat-num { font-size: 1.15rem; }
    .bp-stat-label { font-size: 7.5px; letter-spacing: 0.8px; }

    /* Quick links — horizontálny scroll */
    .bp-qlinks-row { grid-column: 1 / -1; grid-row: auto; padding: 8px 14px 12px; overflow: hidden; }
    .bp-qlinks-grid {
        display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory; gap: 8px;
        scrollbar-width: none; /* Firefox */
        padding: 6px 0; /* priestor pre hover border/translateY */
    }
    .bp-qlinks-grid::-webkit-scrollbar { display: none; }
    .bp-ql { min-width: 80px; flex-shrink: 0; scroll-snap-align: start; padding: 8px 4px; }
    .bp-ql-icon { width: 36px; height: 36px; }
    .bp-ql-name { font-size: 10px; }

    /* Filter — pills scrollable, "Všetky" na nový riadok */
    .bp-filter-bar { overflow: hidden; grid-column: 1 / -1; grid-row: auto; flex-wrap: wrap; }
    .bp-filter-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .bp-filter-pills::-webkit-scrollbar { display: none; }
    .bp-fp { font-size: 10px; padding: 5px 12px; white-space: nowrap; }
    .bp-filter-all { margin-left: 0; margin-top: 2px; font-size: 11px; justify-content: center; width: 100%; }
}

/* ============================================================
 * 15. PRINT
 * ============================================================ */
/* ============================================================
 * SCROLL-TRIGGERED FADE-IN ANIMATIONS
 * Uses .bp-animate class added by IntersectionObserver in JS.
 * Elements start invisible and slide up when scrolled into view.
 * ============================================================ */

/* Initial state: hidden (only if JS will animate them) */
.bp-cell.bp-will-animate {
    opacity: 0;
    transform: translateY(16px);
}
/* Animated state */
.bp-cell.bp-animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Stagger delays for bento cells by row position */
.bp-cell.bp-animated.bp-delay-1 { transition-delay: 0.05s; }
.bp-cell.bp-animated.bp-delay-2 { transition-delay: 0.12s; }
.bp-cell.bp-animated.bp-delay-3 { transition-delay: 0.20s; }

/* Hero row — separate, slightly different animation */
.bp-hero-row.bp-will-animate { opacity: 0; transform: translateY(12px); }
.bp-hero-row.bp-animated {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Quick links row */
.bp-qlinks-row.bp-will-animate { opacity: 0; transform: translateY(10px); }
.bp-qlinks-row.bp-animated {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

/* Stats row */
.bp-stats.bp-will-animate { opacity: 0; transform: translateY(12px); }
.bp-stats.bp-animated {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .bp-cell.bp-will-animate,
    .bp-hero-row.bp-will-animate,
    .bp-qlinks-row.bp-will-animate,
    .bp-stats.bp-will-animate {
        opacity: 1; transform: none;
    }
    .bp-cell.bp-animated,
    .bp-hero-row.bp-animated,
    .bp-qlinks-row.bp-animated,
    .bp-stats.bp-animated {
        transition: none;
    }
}


@media print {
    .bp-hero-row { display: none; }
    .bp-bento { display: block; width: 100%; }
    .bp-cell { break-inside: avoid; margin-bottom: 12px; border: 1px solid #ddd; box-shadow: none; opacity: 1 !important; transform: none !important; }
    .bp-qlinks-row { display: none; }
    .bp-filter-bar { display: none; }
    .bp-bell { display: none; }
}
