/* --- ZÁKLADNÍ RESET A STYLY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #f1f5f9; color: #1e293b; margin: 0; font-family: Tahoma, Arial, sans-serif; }

/* --- HLAVIČKA --- */
.site-header { background-color: #0b2545; color: #fff; padding: 15px 20px 5px 20px; position: relative; border-bottom: 3px solid #333; }
.header-inner { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; position: relative; min-height: 70px; }
.school-titles { display: flex; flex-direction: column; align-items: flex-start; }
.school-titles h1 { font-size: 1.25rem; font-weight: bold; letter-spacing: 0.3px; margin-bottom: 2px; }
.subtitle { font-size: 0.85rem; color: #adb5bd; margin-bottom: 8px; }
.main-school-link { color: #64b5f6; text-decoration: none; font-size: 0.8rem; display: inline-block; margin-bottom: 2px; }
.main-school-link:hover { text-decoration: underline; }
.section-badge-box { margin-top: 4px; }
.section-badge { display: inline-block; background-color: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 20px; padding: 5px 14px; font-size: 0.82rem; font-weight: bold; color: #e2e8f0; }
.header-main-left { display: flex; align-items: center; gap: 15px; }
.school-logo-box { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.school-logo-img { height: 65px; width: auto; display: block; object-fit: contain; }
.sspals-logo-box { width: 95px; height: 80px; background: #0b2545; border: 2px dashed #0b2545; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; padding: 2px; }
.sspals-logo-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.road-stripe { height: 6px; background: repeating-linear-gradient(90deg, #ffffff, #ffffff 30px, transparent 30px, transparent 60px); margin-top: 15px; opacity: 0.85; }

/* --- HLAVNÍ LAYOUT (3 SLOUPCE) --- */
.main-container { max-width: 1330px; margin: 15px auto; display: grid; grid-template-columns: 270px minmax(0, 1fr) 260px; gap: 15px; padding: 0 10px; align-items: start; }

/* --- LEVÉ MENU --- */
.menu-box { background-color: #eef3fa; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px; width: 100%; flex-shrink: 0; box-sizing: border-box; }
.menu-section { margin-bottom: 14px; }
.menu-section:last-child { margin-bottom: 0; }
.menu-header { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: #0f172a; background-color: #cbdaf0; padding: 6px 10px; margin-bottom: 8px; border-radius: 4px; letter-spacing: 0.4px; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { margin: 2px 0; }
.menu-list a { display: flex; align-items: center; padding: 6px 8px; color: #1e293b; text-decoration: none; font-size: 0.92rem; font-weight: 500; border-radius: 5px; transition: background-color 0.15s, color 0.15s, transform 0.15s; }
.menu-list a::before { content: "\25B8"; color: #0284c7; font-size: 1.05rem; line-height: 1; margin-right: 10px; transition: transform 0.15s; }
.menu-list a:hover { background-color: #dce7f7; color: #0369a1; }
.menu-list a:hover::before { transform: translateX(3px); }
.menu-icons { display: flex; justify-content: space-around; margin-top: 15px; padding-top: 10px; border-top: 1px solid #b8c7e0; }
.menu-icons img { width: 32px; height: 32px; }

/* --- STŘEDNÍ OBSAH --- */
.content-body { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.content-body h1 { font-size: 1.5rem; color: #0b2545; margin-bottom: 12px; }

.main-school-box { background: #ffffff; border: 1px solid #e2e8f0; border-left: 5px solid #dc2626; border-radius: 8px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); gap: 20px; }
.school-info-flex { display: flex; align-items: center; gap: 15px; }
.school-logo-small { height: 42px; width: auto; object-fit: contain; flex-shrink: 0; }
.school-text-block h2 { font-size: 1.02rem; color: #0f172a; font-weight: bold; margin: 0 0 2px 0; }
.school-text-block p { font-size: 0.8rem; color: #64748b; margin: 0 0 5px 0; }

.main-site-btn { background-color: #ffffff; color: #1e3a8a; border: 1px solid #cbd5e1; padding: 8px 14px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 0.82rem; white-space: nowrap; transition: all 0.2s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02); }
.main-site-btn:hover { background-color: #f8fafc; border-color: #94a3b8; }

.dod-banner { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: #ffffff; border-radius: 10px; padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15); gap: 20px; }
.dod-text h2 { font-size: 1.4rem; margin: 6px 0 8px 0; font-weight: bold; }
.dod-text p { font-size: 0.9rem; color: #e2e8f0; max-width: 550px; line-height: 1.4; margin: 0; }
.dod-badge { background-color: #f59e0b; color: #111827; font-size: 0.7rem; font-weight: bold; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.dod-btn { background-color: #ffffff; color: #1e3a8a; padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 0.88rem; white-space: nowrap; transition: background 0.2s; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
.dod-btn:hover { background-color: #f8fafc; }

.obory-cards-grid { display: flex; gap: 20px; }
.obor-card { flex: 1; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 22px; box-sizing: border-box; }
.obor-card:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06); }
.obor-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.obor-icon { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; margin-top: 2px; }
.obor-tag { font-size: 0.72rem; font-weight: bold; color: #0284c7; text-transform: uppercase; letter-spacing: 0.3px; display: block; margin-bottom: 4px; }
.obor-card h4 { font-size: 1.1rem; color: #0f172a; margin: 0; }
.obor-card p { font-size: 0.88rem; color: #475569; line-height: 1.4; margin-bottom: 15px; }
.obor-card-link { font-size: 0.85rem; color: #2563eb; text-decoration: none; font-weight: bold; }
.obor-card-link:hover { text-decoration: underline; }

.aktuality-box { background: #ffffff; border: 1px solid #e2e8f0; border-left: 5px solid #0369a1; border-radius: 8px; padding: 22px 25px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); }
.aktuality-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px; margin-bottom: 4px; }
.aktuality-header h3 { font-size: 1.15rem; color: #0f172a; margin: 0; }
.vsechny-akce-link { font-size: 0.85rem; font-weight: bold; color: #0284c7; text-decoration: none; }
.vsechny-akce-link:hover { text-decoration: underline; }
.aktuality-list { list-style: none; padding: 0; margin: 0; }
.aktuality-list li { padding: 13px 0; border-bottom: 1px solid #f1f5f9; display: flex; align-items: baseline; font-size: 0.95rem; }
.aktuality-list li:last-child { border-bottom: none; padding-bottom: 2px; }
.aktualita-date { width: 105px; flex-shrink: 0; color: #64748b; font-size: 0.88rem; font-weight: 600; }
.aktualita-text { color: #1e293b; font-weight: 600; }
.aktualita-text a { color: #0369a1; font-weight: 700; text-decoration: none; }
.aktualita-text a:hover { color: #0284c7; text-decoration: underline; }

/* Úvodní fotoalba (větší karty vedle sebe) */
.uvod-fotoalba-header { margin-bottom: 14px; }
.uvod-fotoalba-grid { display: flex; gap: 20px; }
.uvod-fotoalba-grid .album-karta { flex: 1; padding: 22px; gap: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.uvod-fotoalba-grid .album-karta:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06); }
.uvod-fotoalba-grid .album-karta-nahledy { justify-content: flex-start; gap: 8px; margin-bottom: 14px; min-height: 0; line-height: 0; text-decoration: none; }
.uvod-fotoalba-grid .album-karta-nahledy img { display: block; height: 75px; max-width: none; flex-shrink: 0; border-radius: 4px; }
.uvod-fotoalba-grid .album-karta-titulek { text-align: center; font-size: 0.95rem; line-height: 1.3; white-space: normal; overflow: visible; text-overflow: clip; }
.uvod-fotoalba-grid .album-karta-titulek a { color: #0369a1; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.uvod-fotoalba-grid .album-karta-titulek a:hover { color: #0284c7; text-decoration: underline; }

.bottom-post-banner { background: #ffffff; border: 1px solid #e2e8f0; border-left: 5px solid #ffce2f; border-radius: 8px; padding: 12px; text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); }
.bottom-post-banner img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 4px; }

.breadcrumb-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.9rem; margin-bottom: 12px; color: #475569; }
.breadcrumb-path a { color: #0369a1; text-decoration: none; }
.breadcrumb-path a:hover { text-decoration: underline; }

.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabulka { width: 100%; border-collapse: collapse; background: #ffffff; font-size: 0.95rem; }
.tabulka td.zahlavi { background-color: #dbeafe; color: #0f172a; font-weight: 700; padding: 8px 12px; border: 1px solid #cbd5e1; }
.tabulka td.bunka { padding: 7px 12px; border: 1px solid #e2e8f0; color: #1e293b; vertical-align: top; }
.tabulka .zahlavi .not-b { font-weight: 400; }

/* --- PRAVÝ SLOUPEC --- */
.right-sidebar { display: flex; flex-direction: column; gap: 12px; }
.sidebar-box { background: #f8f9fa; border: 1px solid #dcdcdc; border-radius: 4px; padding: 10px; font-size: 0.85rem; }
.sidebar-box h4 { font-size: 0.9rem; color: #0b2545; margin-bottom: 6px; border-bottom: 1px solid #ddd; padding-bottom: 2px; }
.obory-links { display: flex; gap: 10px; justify-content: space-between; }
.obor-btn { background: #e2e8f0; color: #0b2545; text-decoration: none; padding: 6px 8px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #cbd5e1; transition: background 0.2s; }
.obor-btn:hover { background: #cbd5e1; color: #000; }
.obor-logo-img { width: 100%; max-width: 88px; height: auto; object-fit: contain; display: block; }
.zrizovatel { text-align: center; }
.zrizovatel-logo { width: 100%; max-width: 185px; height: auto; display: block; margin: 0 auto 8px auto; }
.zrizovatel .small-text { font-size: 0.78rem; color: #444; text-align: left; margin-bottom: 8px; line-height: 1.4; }
.sidebar-box-po { text-align: center; margin-top: 4px; }
.po-logo { width: 100%; max-width: 166px; height: auto; display: block; margin: 0 auto; }

.clock-box { background: #fff9db; border-color: #f7ecb5; text-align: center; }
.date-line { font-size: 0.8rem; color: #666; }
.time-line { font-size: 1.6rem; font-weight: bold; color: #0b2545; margin: 2px 0; }
.status-line { font-size: 0.8rem; font-weight: bold; color: #d9534f; margin-bottom: 8px; }
.clock-controls { display: flex; justify-content: center; gap: 5px; margin-top: 6px; }
.clock-controls button { background: #e9ecef; border: 1px solid #ced4da; border-radius: 3px; padding: 2px 6px; font-size: 0.75rem; cursor: pointer; }
.clock-controls button:hover { background: #dde2e6; }

.status-card { background-color: #e6f9f0; border: 1px solid #a3e4c1; border-radius: 8px; padding: 8px 12px; margin-top: 6px; font-family: Tahoma, Arial, sans-serif; text-align: center; }
.status-label { font-size: 0.78rem; color: #555; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.status-value { font-size: 0.88rem; font-weight: bold; color: #004d40; }
.status-sub { font-size: 0.8rem; color: #2e7d32; margin-top: 1px; }
.status-card.info { background-color: #f1f5f9; border-color: #cbd5e1; padding: 10px; color: #334155; font-weight: bold; font-size: 0.85rem; }

.counter-box { font-size: 0.85rem; }
.counter-title { font-weight: bold; margin-bottom: 6px; color: #1e293b; border-bottom: 1px solid #e2e8f0; padding-bottom: 4px; }
.counter-table { width: 100%; border-collapse: collapse; }
.counter-table td { padding: 3px 0; color: #334155; }
.counter-table td:last-child { text-align: right; font-weight: bold; color: #0f172a; }

/* --- ZÁKLADNÍ TEXTOVÉ EFEKTY --- */
.justify { text-align: justify; margin: 5px 5px 0 0; }
.justify-nomargin { text-align: justify; margin: 0; }
.center { text-align: center; }
.b { font-weight: bold; }
.i { font-style: italic; }
.nowrap { white-space: nowrap; }

.text-link { color: #0369a1; font-weight: 600; text-decoration: none; display: inline-flex; align-items: baseline; gap: 4px; transition: color 0.15s; }
.text-link::before { content: "\25B8"; color: #0284c7; font-size: 0.95em; line-height: 1; transition: transform 0.15s; }
.text-link:hover { color: #0284c7; text-decoration: underline; }
.text-link:hover::before { transform: translateX(2px); }

.aimg { border: 1px solid #0000FF; }
.aimg:hover { border: 1px solid #FFFF00; }

/* Společné seznamy napříč obsahem a historií */
.main-container ul, .historie-obsah ul { padding-left: 28px; margin-top: 6px; margin-bottom: 14px; }
.main-container li, .historie-obsah li { margin-bottom: 4px; }

/* --- JEDNOTLIVÉ SEKCE A STRÁNKY --- */
.ucebnalink { width: 100px; height: 75px; object-fit: cover; }

.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 30px; align-items: center; justify-items: center; margin-top: 20px; }
.partner-item { display: flex; align-items: center; justify-content: center; min-height: 90px; text-decoration: none; }
.partner-item img { display: block; max-width: 100%; max-height: 106px; width: auto; height: auto; }

.gallery-row--center { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; text-align: center; }
.hist-logo { display: block; width: auto; height: auto; max-height: 85px; max-width: 100%; object-fit: contain; }

.obory-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.obor-detail-list { padding-left: 24px; margin-top: 10px; }
.obor-detail-list > li { margin-bottom: 8px; }
.obor-detail-list ul { padding-left: 22px; margin-top: 4px; margin-bottom: 6px; }
.obor-links { list-style: none; margin-left: -14px; margin-top: 6px; }
.partner-banner { margin-top: 8px; }
.partner-banner-img { display: block; max-width: 366px; width: 100%; height: auto; margin-bottom: 4px; }
.pdf-icon { vertical-align: middle; width: 42px; height: 14px; }

.prijimacky-obory { padding-left: 24px; margin-top: 8px; margin-bottom: 16px; }
.prijimacky-obory li { margin-bottom: 6px; }
.dod-vnitrni-banner { background: #ffffff; border: 1px solid #e2e8f0; border-left: 5px solid #0369a1; border-radius: 8px; padding: 12px; text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); }
.dod-tabulka { width: auto; max-width: 100%; }
.dod-tabulka .zahlavi { white-space: nowrap; }
.dod-tabulka .bunka { text-align: left; padding-left: 20px; }
.dod-banner-wrap { margin-top: 14px; margin-bottom: 16px; text-align: center; }
.dod-banner-img { display: inline-block; max-width: 100%; width: 600px; height: auto; }

.zvoneni-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 12px; }
.zvoneni-sloupec h2 { margin-top: 0; }
.zvoneni { width: auto; }
.zvoneni th, .zvoneni td { white-space: nowrap; padding: 4px 10px; }
.zvoneni th { text-align: center; }
.zvoneni td:first-child { text-align: right; }
.zvoneni-rozvrh { margin-top: 18px; }

.pdf-frame-wrap { width: 100%; margin-top: 12px; border: 1px solid #8fa8c8; background: #ffffff; }
.pdf-frame { display: block; width: 100%; height: 680px; border: 0; }

.suplovani-frame-wrap { width: 100%; margin-top: 12px; border: 1px solid #8fa8c8; }
.suplovani-frame { display: block; width: 100%; height: 750px; border: 0; }

.prihlaseni-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 14px; margin-bottom: 24px; }

.uspechy-list { margin-top: 12px; }
.uspech-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px 16px; align-items: start; padding: 8px 4px; border-bottom: 1px solid rgba(0, 51, 153, 0.25); }
.uspech-row:last-child { border-bottom: none; }
.uspech-rok { font-weight: 700; padding-top: 2px; }
.uspech-info { min-width: 0; line-height: 1.4; }
.uspech-mis { font-weight: 700; margin: 2px 0; }
.uspech-pic { justify-self: end; }

.prohlidka-sekce { margin-top: 14px; margin-bottom: 22px; }
.prohlidka-sekce:first-of-type { margin-top: 8px; }
.prohlidka-nadpis { margin: 0 0 8px; }
.prohlidka-odkaz { display: inline-block; max-width: 100%; }
.prohlidka-banner { display: block; width: 100%; max-width: 800px; height: auto; border: 1px solid #0033cc; }

/* --- NAPSALI O NÁS --- */
.napsali-roky-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.rok-pilulka { display: inline-block; padding: 5px 11px; border: 1px solid #4d79b8; border-radius: 4px; background: rgba(255, 255, 255, 0.72); color: #002266; font-size: 0.9rem; text-decoration: none; }
.rok-pilulka:hover, .rok-pilulka.is-active { background: #003399; color: #ffffff; border-color: #003399; }
.napsali-rok-blok { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid rgba(0, 51, 153, 0.22); }
.napsali-rok-blok:last-child { border-bottom: none; }
.napsali-rok-nadpis { margin: 0 0 10px; }
.napsali-kategorie { margin-bottom: 14px; }
.napsali-kategorie-nadpis { margin: 0 0 6px 6px; font-size: 1rem; font-weight: 700; }
.napsali-clanky-rad { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 12px; }
.napsali-thumb { display: block; height: 70px; width: auto; border: 1px solid #0033cc; }

/* --- FOTOGRAFIE ŽÁKŮ --- */
.tridy-archiv { margin-top: 12px; }
.tridy-rok-blok { margin-bottom: 20px; }
.tridy-rok-nadpis { margin: 0 0 8px; }
.tridy-mrizka { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: flex-start; }
.trida-polozka { margin: 0; text-align: center; width: 102px; }
.trida-thumb { display: block; width: 100px; height: 70px; object-fit: cover; border: 1px solid #0033cc; }
.trida-popisek { margin-top: 3px; font-size: 0.9rem; line-height: 1.25; }

/* --- VIDEOGALERIE --- */
.video-prehravac-wrap { width: 100%; max-width: 800px; margin: 12px 0 20px; }
.video-pomer { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000000; border: 1px solid #0033cc; }
.video-pomer iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-aktualni-titulek { margin-top: 8px; font-weight: 700; text-align: center; }
.video-dalsi-nadpis { margin: 16px 0 10px; font-size: 1.05rem; }
.video-mrizka { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.video-nahled-odkaz { display: inline-block; line-height: 0; border: 2px solid transparent; padding: 1px; }
.video-nahled-odkaz.is-active, .video-nahled-odkaz:hover { border-color: #003399; }
.video-nahled-img { display: block; width: 100px; height: 75px; object-fit: cover; border: 1px solid transparent; }

/* --- AKCE, FOTO A LIGHTBOX --- */
.athumb { display: inline-block; margin: 3px; line-height: 0; }
.athumb img { height: 75px; width: auto; max-width: 100%; object-fit: cover; border: 1px solid #cbd5e1; border-radius: 3px; }

.lb-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.92); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.lb-overlay.is-open { display: flex; }
.lb-stage { max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-img { max-width: 90vw; max-height: 78vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.lb-caption { color: #f8fafc; margin-top: 10px; font-size: 0.95rem; }
.lb-close, .lb-prev, .lb-next { position: fixed; background: rgba(255, 255, 255, 0.14); color: #fff; border: none; cursor: pointer; font-size: 1.6rem; line-height: 1; padding: 10px 14px; border-radius: 4px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Karty fotoalb (akce.php) */
.nejnovejsi-fotoalba { margin: -20px 0 8px; font-size: 0.95rem; font-weight: 700; color: inherit; }
.akce-sekce { margin-top: 24px; }
.nejnovejsi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
.album-karta { background: #ffffff; border: 1px solid #dbe3ec; border-radius: 6px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.album-karta-nahledy { display: flex; gap: 4px; align-items: center; justify-content: center; overflow: hidden; min-height: 58px; }
.album-karta-nahledy img { height: 56px; width: auto; max-width: 31%; object-fit: cover; border-radius: 3px; }
.album-karta-titulek { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-karta-titulek a { font-weight: 600; font-size: 0.78rem; }

.roky-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rok-karta { background: #ffffff; border: 1px solid #dbe3ec; border-radius: 6px; padding: 10px 12px; min-width: 0; }
.rok-karta-hlavicka { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 5px; margin-bottom: 6px; border-bottom: 2px solid #1e4e79; }
.rok-karta-hlavicka h3 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.rok-badge { font-size: 0.75rem; padding: 2px 6px; border-radius: 999px; background: #e6eff7; color: #1e4e79; white-space: nowrap; }
.rok-seznam { list-style: none; margin: 0; padding: 0; font-size: 0.78rem; line-height: 1.28; }
.rok-seznam li { margin: 2px 0; }
.rok-seznam a { font-weight: 400; }

.akce-podpis { margin: 14px 0 18px; font-size: 0.9rem; color: #475569; }
.akce-galerie-nadpis { margin-bottom: -20px; font-size: 1rem; }
.akce-socnet-nadpis { font-size: 1rem; }
.galerie-nahledy { margin: 0 0 2px; }
.akce-socnet { margin-top: 36px; }
.socnet-odkazy { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* --- PRO NĚKTERÉ AKCE --- */
.vymena-thumb { display: block; height: 150px; width: auto; border: 1px solid #0033cc; }
.unesco-sekce-nadpis { margin-top: 32px; }
.unesco-odkazy { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.clanek-video-wrap { width: 100%; max-width: 800px; margin: 12px auto 0; }
.clanek-video-pomer { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000000; border: 1px solid #0033cc; }
.clanek-video-pomer iframe { width: 100%; height: 100%; border: 0; display: block; }
.new-win-icon { display: inline-block; vertical-align: middle; width: 20px; height: 20px; margin-left: 4px; }
.clanek-odkazy { display: flex; flex-direction: column; gap: 6px; margin-left: 16px; }
.clanek-svisla-videa { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; }
.clanek-svisle-video { width: 100%; max-width: 450px; aspect-ratio: 9 / 16; background: #000000; border: 1px solid transparent; }
.clanek-svisle-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.clanek-logo-right { float: right; max-width: 208px; width: 100%; height: auto; margin: 0 0 8px 14px; }
.clanek-obrazek-vlevo { float: left; margin-right: 12px; margin-bottom: 6px; }
.clanek-odkazy-radek { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-left: 16px; }

/* --- PATIČKA --- */
.site-footer { max-width: 1300px; margin: 20px auto 10px auto; text-align: center; color: #adb5bd; font-size: 0.75rem; border-top: 1px solid #333; padding-top: 10px; }

/* --- TOHLE BUDE FUNGOVAT JEN NA PC --- */
@media (min-width: 900px) {
  .tabulka .zahlavi { min-width: 240px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .obory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .obor-card { display: flex; flex-direction: column; min-width: 0; }
  .obor-title { display: flex; align-items: flex-end; min-height: 2.2em; margin: 0 0 10px; font-size: 0.96rem; line-height: 1.2; white-space: nowrap; }
  .obor-banner { display: block; width: 100%; max-width: 400px; height: auto; border: 1px solid #0033cc; }
  .obor-banner:hover { border: 1px solid #fff501; }
  .obor-section { margin-top: 14px; }
  .obor-subtitle { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
  .obor-card ul, .obory-external-list { padding-left: 24px; margin-top: 4px; margin-bottom: 12px; }
  .obor-more { margin: 10px 0 0; }
  .obory-divider { margin: 24px 0 16px; }
  .prihlaseni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .prihlaseni-box { min-width: 0; }
  .prihlaseni-nadpis { margin: 0 0 8px; font-size: 1rem; }
  .sablony-list { padding-left: 24px; margin-top: 8px; }
  .sablony-list li { margin-bottom: 6px; }
  .zvoneni-grid { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 48px 80px; align-items: start; }
}

/* --- RESPONZIVITA PRO MOBILY --- */
@media (max-width: 900px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .main-container { grid-template-columns: minmax(0, 1fr); gap: 15px; width: 100%; max-width: 100%; padding: 0 10px; }
  .content-body, .menu-box, .right-sidebar, .sidebar-box, .table-responsive { min-width: 0; max-width: 100%; width: 100%; }
  .content-body { order: 1; }
  .menu-box { order: 2; width: 100%; justify-self: stretch; }
  .right-sidebar { order: 3; }
  .obory-links { flex-direction: column; gap: 8px; }
  .obory-cards-grid { flex-direction: column; gap: 15px; }
  .main-school-box { flex-direction: column; align-items: flex-start; gap: 12px; }
  .main-site-btn { width: 100%; text-align: center; }
  .dod-banner { flex-direction: column; align-items: flex-start; }
  .dod-btn { width: 100%; text-align: center; }
  .tabulka { font-size: 0.88rem; min-width: 100%; }
  .tabulka td.zahlavi, .tabulka td.bunka { padding: 6px 8px; }
  .athumb img { height: 68px; }
  .lb-prev, .lb-next { font-size: 1.2rem; padding: 8px 10px; }
  .nejnovejsi-grid, .roky-grid { grid-template-columns: 1fr; }
  .album-karta-titulek { white-space: normal; }
  .pdf-frame { height: 480px; }
  .pdf-open-bar { display: flex; justify-content: flex-end; margin-top: 10px; }
  .pdf-open-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
  .pdf-open-link:hover .small { text-decoration: underline; }
  .suplovani-frame { height: 540px; }
  .suplovani-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 12px; }
  .download-icon { display: block; width: 24px; height: 24px; }
  .uvod-fotoalba-grid { flex-direction: column; }
}

/* --- SAMOSTATNÉ STYLY PRO TESTY.PHP --- */
.testy-obal { max-width: 560px; }
.testy-obal h2 { margin-top: 28px; margin-bottom: 10px; }
.testy-tabulka { width: 100%; border-collapse: collapse; }
.testy-tabulka tr { border-bottom: 1px solid #cbd5e1; }
.testy-tabulka tr:last-child { border-bottom: none; }
.testy-tabulka td { padding: 8px 6px; vertical-align: middle; }
.testy-tabulka td.testy-akce { width: 36px; text-align: right; white-space: nowrap; }
.testy-tabulka img { display: inline-block; vertical-align: middle; }
.testy-poznamka { margin-top: 28px; }