/* ==========================================================================
   SGAGY – styly tématu. Tokeny (barvy, písma, rozestupy) definuje theme.json,
   tady jsou jen komponenty: hlavička, patička, hero, karty, dlaždice…
   Třídy sg-* jsou sdílené s obsahem stránek (patterny i ručně vložené bloky).
   ========================================================================== */

/* ---------- Základ ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > footer { margin-top: auto; }
.wp-block-buttons .wp-block-button__link { line-height: 1.2; }
.wp-element-button { transition: background .3s, color .3s, transform .3s, box-shadow .3s; }
.wp-block-button__link.wp-element-button { background: var(--wp--preset--color--primary); color: #fff; border-color: var(--wp--preset--color--primary); }
.wp-block-button__link.wp-element-button:hover { background: var(--wp--preset--color--claim); border-color: var(--wp--preset--color--claim); color: #fff; }
.sg-btn--gold .wp-block-button__link.wp-element-button { background: var(--wp--preset--color--yellow); border-color: var(--wp--preset--color--yellow); color: var(--wp--preset--color--dark); font-size: 16px; padding: 12px 26px; }
.sg-btn--gold .wp-block-button__link.wp-element-button:hover { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--dark); }
.sg-btn--outline .wp-block-button__link.wp-element-button { background: transparent; color: var(--wp--preset--color--primary); box-shadow: none; font-size: 15px; padding: 8px 20px; }
.sg-btn--outline .wp-block-button__link.wp-element-button:hover { background: var(--wp--preset--color--primary); color: #fff; }
.wp-element-button:hover { transform: translateY(-1px); }

/* ---------- Horní lišta ---------- */
.sg-topbar { color: #fff; }
.sg-topbar > .wp-block-group { gap: 15px 30px; }
.sg-topbar__link { margin: 0; font-size: 15px; font-weight: 600; }
.sg-topbar__link a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.sg-topbar__link .sg-i { color: var(--wp--preset--color--yellow); width: 1.3em; height: 1.3em; }
.sg-topbar__link a:hover { color: var(--wp--preset--color--yellow); text-decoration: underline; text-decoration-color: var(--wp--preset--color--yellow); }
.sg-topbar__search.wp-block-search { margin: 0; }
.sg-topbar__search .wp-block-search__inside-wrapper { border-radius: 999px; background: #fff; border: 0; padding: 2px 4px 2px 14px; }
.sg-topbar__search .wp-block-search__input { border: 0; background: transparent; font-size: 15px; min-width: 160px; }
.sg-topbar__search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--primary); border: 0; padding: 4px 8px; margin: 0; }

/* ---------- Hlavička ---------- */
.sg-header { position: sticky; top: 0; z-index: 90; border-bottom: 1px solid #d6d6d6; box-shadow: var(--wp--preset--shadow--card); }
.sg-brand { gap: 10px; }
.sg-brand__logo { margin: 0; flex: 0 0 auto; }
.sg-brand__logo img { width: 60px; display: block; }
.sg-brand__name { font-family: var(--wp--preset--font-family--heading); font-size: 20px; font-weight: 700; color: var(--wp--preset--color--dark); text-shadow: 5px 20px 75px rgba(0,0,0,.145); margin: 0; }
.sg-brand__name a { color: inherit; text-decoration: none; }
.sg-brand--footer .sg-brand__name { color: #fff; text-shadow: none; }
.sg-nav { font-family: var(--wp--preset--font-family--body); font-weight: 800; font-size: 20px; }
.sg-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--dark); padding: 6px 14px; }
.sg-nav .wp-block-navigation-item__content:hover, .sg-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
.sg-nav .wp-block-navigation__submenu-container { border: 0; border-radius: 12px; box-shadow: var(--wp--preset--shadow--card); padding: 8px; min-width: 280px; font-size: 18px; font-weight: 600; }
.sg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 5px 20px; border-radius: 12px; }
.sg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #ececec; }
.sg-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 80px 24px 24px; font-size: 20px; }
.sg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #fff; }
.sg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; padding: 0 0 0 14px; }
.sg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { background: rgba(255,255,255,.12); }
.sg-nav .wp-block-navigation__responsive-container-open, .sg-nav .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--claim); }
.sg-nav .wp-block-navigation__responsive-container-close { color: #fff; }
@media (max-width: 1200px) { .sg-nav { font-size: 17px; } .sg-nav .wp-block-navigation-item__content { padding: 6px 8px; } }

/* ---------- Hero podstránky / článku ---------- */
.sg-hero { position: relative; color: #fff; overflow: hidden; }
.sg-hero--page { background-image: url("../img/hero-bg.jpg"); background-size: cover; background-position: center; }
.sg-hero--page::before { content: ""; position: absolute; inset: 0; background: var(--wp--preset--gradient--hero); opacity: .92; }
.sg-hero--page > * { position: relative; }
.sg-hero__title { color: #fff; font-size: var(--wp--preset--font-size--huge); font-weight: 700; margin: 0; }
.sg-hero hr.sg-underline { border-top-width: 2px; margin-bottom: 15px; }
.sg-breadcrumbs { font-size: 15px; color: #fff; }
.sg-breadcrumbs a { color: var(--wp--preset--color--yellow); text-decoration: underline; text-decoration-color: var(--wp--preset--color--yellow); }
.sg-breadcrumbs a:hover { color: var(--wp--preset--color--gold); }
.sg-breadcrumbs .breadcrumb_last { color: #fff; }
.sg-hero .sg-search { max-width: 480px; margin: 20px auto 0; }
.sg-hero .sg-search .wp-block-search__inside-wrapper { background: #fff; border-radius: 999px; border: 0; padding: 4px 4px 4px 16px; }
.sg-hero .sg-search .wp-block-search__input { border: 0; }
.sg-hero .sg-search .wp-block-search__button { border-radius: 999px; background: var(--wp--preset--color--primary); color: #fff; border: 0; }

/* Hero článku (aktuality) */
.sg-hero--post { background: #fff; color: inherit; padding: 30px 0 0; }
.sg-hero--post .sg-hero__image img { max-height: 350px; width: auto; border-radius: 12px; box-shadow: var(--wp--preset--shadow--card); object-fit: contain; }
.sg-hero--post .sg-hero__title { color: var(--wp--preset--color--primary); font-size: clamp(28px, 4vw, 36px); }
.sg-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 2px 10px; border: 1px solid #018aff; border-radius: 999px; color: #000; margin: 0 0 10px; }
.sg-meta .wp-block-post-date { font-size: inherit; }
.sg-meta .sg-i { color: #0489f9; }
.sg-article { border-radius: 12px; box-shadow: var(--wp--preset--shadow--card); padding: 30px; margin-top: 30px; background: #fff; }
.sg-article .wp-block-post-content > * { max-width: none; }
.sg-article img { border-radius: 8px; }
.sg-main--single { padding-bottom: 40px; }
.sg-back-wrap { padding: 20px 0 40px; }

/* Další aktuality (pod článkem) */
.sg-more { position: relative; color: #fff; background: var(--wp--preset--color--claim); background-image: url("../img/more-bg.jpg"); background-size: cover; background-position: center; background-blend-mode: multiply; padding: 30px 20px; border-radius: 12px; }
.sg-more h2, .sg-more h3 { color: #fff; }
.sg-more .sg-posts { margin-top: 15px; }

/* ---------- Patička ---------- */
.sg-footer { color: #fff; }
.sg-footer__grid.wp-block-columns { gap: 40px; }
.sg-footer h4 { margin: 0 0 16px; color: #fff; font-size: 22px; }
.sg-footer h4 + h4, .sg-footer ul + h4 { margin-top: 26px; }
.sg-footer__list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 600; }
.sg-footer__list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; }
.sg-footer__list li::before { content: "\2192"; color: #fff; font-weight: 400; flex: 0 0 auto; }
.sg-footer__list--contact li::before { content: none; }
.sg-footer__list--contact .sg-i { color: #fff; flex: 0 0 auto; width: 1.2em; height: 1.2em; margin-top: 2px; }
.sg-footer__list a { color: #fff; text-decoration: none; }
.sg-footer__list a:hover { color: var(--wp--preset--color--yellow); }
.sg-footer__social { margin-top: 18px; }
.sg-footer__social .wp-block-social-link:hover { transform: scale(1.1); }
.sg-footer__bottom { font-size: 15px; }
.sg-footer__bottom p { margin: 0; }
.sg-footer .wp-block-column > * + * { margin-block-start: 0; }

/* Bílé tlačítko na tmavém pozadí (hero, CTA) */
.sg-btn--white .wp-block-button__link.wp-element-button { border-color: #fff; color: #fff; background: transparent; box-shadow: none; font-size: 16px; padding: 10px 24px; }
.sg-btn--white .wp-block-button__link.wp-element-button:hover { background: #fff; color: var(--wp--preset--color--primary); }

/* Ikony (inline SVG přes mask, bez externích knihoven) */
.sg-i { display: inline-block; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; vertical-align: -0.15em; }
.sg-i--book { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M96 0C43 0 0 43 0 96v320c0 53 43 96 96 96h320c17.7 0 32-14.3 32-32s-14.3-32-32-32v-64c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H96zm0 384h256v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16h192c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48h192c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z'/%3E%3C/svg%3E"); }
.sg-i--globe { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64h185.3c2.2 20.4 3.3 41.8 3.3 64zm28.8-64h123.1c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6 78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7 10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5 11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4 165.1 42.6 145.3 96.1 135.3 160zM8.1 192h123.1c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6h176.6c-6.1 36.4-15.5 68.6-27 94.6-10.5 23.6-22.2 40.7-33.5 51.5-11.2 10.7-20.5 13.9-27.8 13.9s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6-78.4-20.7-142-77.5-171.9-151.6h116.6zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6 25.5-34.2 45.2-87.7 55.3-151.6h116.6z'/%3E%3C/svg%3E"); }
.sg-i--pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M215.7 499.2C267 435 384 279.4 384 192 384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2 12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z'/%3E%3C/svg%3E"); }
.sg-i--map { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M565.6 36.2C572.1 40.7 576 48.1 576 56v336c0 10-6.2 18.9-15.5 22.4l-168 64c-5.2 2-10.9 2.1-16.1.3L192.5 417.5l-160 61c-7.4 2.8-15.7 1.8-22.2-2.7S0 463.9 0 456V120c0-10 6.1-18.9 15.5-22.4l168-64c5.2-2 10.9-2.1 16.1-.3L383.5 94.5l160-61c7.4-2.8 15.7-1.8 22.2 2.7zM48 136.5v284.6l120-45.7V90.8L48 136.5zM360 422.7V137.3l-144-48v285.4l144 48zm48-1.5l120-45.7V90.8L408 136.5v284.6z'/%3E%3C/svg%3E"); }
.sg-i--calendar { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M96 32v32H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48h-48V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v32H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0v272c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192z'/%3E%3C/svg%3E"); }
.sg-i--list { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zm152 16c-17.7 0-32 14.3-32 32s14.3 32 32 32h288c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32h288c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32h288c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zm24 136c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24H40z'/%3E%3C/svg%3E"); }
.sg-i--check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E"); }
.sg-i--file { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64v384c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zm192 0v128h128L256 0zM112 256h160c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64h160c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64h160c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16z'/%3E%3C/svg%3E"); }
.sg-i--grad { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9V320c0 28.4-10.8 57.7-22.3 80.8-6.5 13-13.9 25.8-22.5 37.6-3.2 4.3-4.1 9.9-2.3 15s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7.3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7-3.2-14.2-7.5-28.7-13.5-42v-24.6c0-30.2 10.2-58.7 27.9-81.5 12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5.8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1l280.6-101c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72l-15.3-145.4L354.1 320c-10.9 3.9-22.5 6-34.1 6s-23.2-2.1-34.1-6L143.3 262.6 128 408z'/%3E%3C/svg%3E"); }
.sg-i--phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64c0 247.4 200.6 448 448 448 18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3l49.3-40.3c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E"); }
.sg-i--mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L493 150.4c12.1-9.1 19.2-23.3 19.2-38.4 0-26.5-21.5-48-48-48H48zM0 176v208c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E"); }
.sg-i--info { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM216 336h24v-64h-24c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E"); }
.sg-i--dot { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256-96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z'/%3E%3C/svg%3E"); }

/* ---------- Hero úvodní stránky ---------- */
.sg-home-hero { background: #fff; padding: 60px 20px 0; overflow: hidden; }
.sg-home-hero__inner.wp-block-group { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; max-width: 1120px; margin: 0 auto; }
.sg-home-hero__text.wp-block-group { flex: 1 1 440px; min-height: 520px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sg-home-hero__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 3px 12px; border: 1px solid #018aff; border-radius: 999px; font-size: 13px; font-weight: 600; }
.sg-home-hero__badge a { color: #000; text-decoration: none; }
.sg-home-hero__badge .sg-i { color: #0489f9; }
.sg-home-hero__title { font-family: var(--wp--preset--font-family--heading); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; text-transform: uppercase; color: var(--wp--preset--color--claim); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.sg-home-hero__title em { font-style: normal; color: var(--wp--preset--color--primary); }
.sg-home-hero__lead { font-size: 17px; margin: 12px 0 0; max-width: 520px; }
.sg-home-hero__text .wp-block-buttons { margin-top: 28px; }
.sg-home-hero__icons.wp-block-group { flex: 1 1 420px; position: relative; min-height: 560px; background: url("../img/home-hero-shape.png") center / contain no-repeat; }
.sg-home-hero__icons .wp-block-image { position: absolute; margin: 0; width: 84px; height: 84px; }
.sg-home-hero__icons .wp-block-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }
.sg-home-hero__icons .wp-block-image:nth-child(1) { left: 14%; top: 12%; }
.sg-home-hero__icons .wp-block-image:nth-child(2) { left: 40%; top: 4%; }
.sg-home-hero__icons .wp-block-image:nth-child(3) { left: 66%; top: 14%; }
.sg-home-hero__icons .wp-block-image:nth-child(4) { left: 24%; top: 40%; }
.sg-home-hero__icons .wp-block-image:nth-child(5) { left: 54%; top: 38%; }
.sg-home-hero__icons .wp-block-image:nth-child(6) { left: 20%; top: 68%; }
.sg-home-hero__icons .wp-block-image:nth-child(7) { left: 52%; top: 66%; }
@media (max-width: 782px) { .sg-home-hero { padding-top: 30px; } .sg-home-hero__text.wp-block-group { min-height: 0; } .sg-home-hero__icons.wp-block-group { min-height: 320px; } .sg-home-hero__icons .wp-block-image { width: 56px; height: 56px; } }

/* Tři dlaždice pod hero – ikona vlevo, text vpravo, překrývají hero */
.sg-home-tiles { margin-top: -40px; position: relative; z-index: 2; }
.sg-home-tiles .sg-tile.wp-block-group { display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; row-gap: 4px; text-align: left; align-items: center; padding: 22px 24px; }
.sg-home-tiles .sg-tile .wp-block-image { grid-row: 1 / span 2; justify-content: center; }
.sg-home-tiles .sg-tile .wp-block-image img { height: 70px; }
.sg-home-tiles .sg-tile h3 { font-size: 18px; }
.sg-home-tiles .sg-tile h3 a { color: inherit; text-decoration: none; }
.sg-home-tiles .sg-tile p { font-size: 15px; }
@media (max-width: 782px) { .sg-home-tiles { margin-top: 10px; } }

/* Taby (úvod – Pro uchazeče): čisté CSS přes radio inputy */
.sg-tabs { max-width: 1120px; margin: 0 auto; }
.sg-tabs__list { display: flex; justify-content: center; margin: 0 auto 30px; border-radius: 12px; overflow: hidden; box-shadow: var(--wp--preset--shadow--card); width: max-content; max-width: 100%; }
.sg-tabs__label { padding: 14px 40px; font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 20px; color: var(--wp--preset--color--primary); background: #fff; cursor: pointer; transition: background .3s, color .3s; }
.sg-tabs__label:hover { background: var(--wp--preset--color--blue-light); }
.sg-tabs__input { position: absolute; opacity: 0; pointer-events: none; }
.sg-tabs__input:focus-visible + .sg-tabs__label { outline: 2px solid var(--wp--preset--color--gold); outline-offset: -2px; }
.sg-tabs__panel.wp-block-group:not(.is-active) { display: none !important; }
.sg-tabs__panel.is-active { display: block; }
.sg-tabs__panel.is-active.sg-grid.wp-block-group { display: grid; }
.sg-tabs__label.is-active { background: var(--wp--preset--color--primary); color: #fff; }

/* Proč studovat – tmavá sekce s orámovanými boxy */
.sg-section--dark { position: relative; color: #fff; background: var(--wp--preset--color--claim) url("../img/why-bg.jpg") center / cover no-repeat; border-radius: 12px; padding: 60px 30px 40px; margin-left: 0; margin-right: 0; }
.sg-section--dark::before { content: ""; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(180deg, rgba(13,65,121,.75), rgba(4,34,68,.9)); }
.sg-section--dark > * { position: relative; }
.sg-section--dark .sg-title, .sg-section--dark h2, .sg-section--dark h3, .sg-section--dark h4 { color: #fff; }
.sg-why.wp-block-group { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.sg-why.wp-block-group > * { margin: 0; max-width: none; }
.sg-why__big { grid-row: 1 / span 2; }
.sg-iconbox { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid rgba(255,255,255,.7); border-radius: 12px; background: rgba(255,255,255,.04); height: 100%; }
.sg-iconbox.wp-block-group { gap: 10px; align-items: flex-start; }
.sg-iconbox.wp-block-group > * { margin: 0; max-width: none; }
.sg-iconbox__icon.wp-block-image { width: 34px; height: 34px; margin: 0; flex: 0 0 auto; }
.sg-iconbox__icon img { width: 34px; height: 34px; object-fit: contain; }
.sg-iconbox__body.wp-block-group > * { max-width: none; margin-left: 0; margin-right: 0; }
.sg-iconbox__body.wp-block-group > * + * { margin-block-start: 8px; }
.sg-iconbox__body h3, .sg-iconbox__body h4 { margin: 0; font-size: 24px; color: #fff; }
.sg-why__big .sg-iconbox__body h3 { font-size: 30px; }
.sg-iconbox__body p { margin: 0; font-size: 15px; color: #e4edf7; }
.sg-iconbox__body .wp-block-buttons { margin-top: 14px; }
.sg-section--dark .sg-iconbox__icon img { filter: brightness(0) invert(1); }
.sg-section--dark .sg-btn--white .wp-block-button__link.wp-element-button { font-size: 14px; padding: 8px 18px; }
@media (max-width: 900px) { .sg-why.wp-block-group { grid-template-columns: 1fr 1fr; } .sg-why__big { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 600px) { .sg-why.wp-block-group { grid-template-columns: 1fr; } .sg-section--dark { padding: 40px 16px 30px; } }
/* Světlá mřížka ikonboxů (podstránky) */
.sg-iconbox--card { background: #fff; border: 0; box-shadow: var(--wp--preset--shadow--card); }
.sg-iconbox--card h3 { color: var(--wp--preset--color--dark); font-size: 20px; }
.sg-iconbox--card p { color: #000; }
.sg-iconbox--card .sg-iconbox__icon img { filter: brightness(0) saturate(100%) invert(22%) sepia(76%) saturate(1467%) hue-rotate(191deg) brightness(93%) contrast(95%); }

/* Text + obrázek („Studuj a sportuj s námi") */
.sg-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center; }
.sg-split__image img { border-radius: 12px; box-shadow: var(--wp--preset--shadow--card); width: 100%; }
.sg-split__quote { display: flex; align-items: center; gap: 14px; }
.sg-split__quote .sg-i { width: 34px; height: 34px; color: var(--wp--preset--color--yellow); }
.sg-split h2 { margin: 0; }
.sg-split p { font-size: 17px; }
.sg-split .wp-block-buttons { margin-top: 20px; }

/* CTA pás (odběr aktualit) */
.sg-cta { position: relative; color: #fff; border-radius: 12px; overflow: hidden; background: var(--wp--preset--color--claim) url("../img/more-bg.jpg") center / cover no-repeat; padding: 40px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.sg-cta::before { content: ""; position: absolute; inset: 0; background: var(--wp--preset--gradient--cta); opacity: .85; }
.sg-cta > * { position: relative; }
.sg-cta__text { flex: 1 1 420px; }
.sg-cta__text h2, .sg-cta__text h3, .sg-cta__text h4 { color: #fff; margin: 0 0 8px; }
.sg-cta__text p { margin: 0; }
.sg-cta .wp-block-buttons { margin: 0; }
.sg-cta .sg-btn .wp-block-button__link { border-color: #fff; color: #fff; box-shadow: none; }
.sg-cta .sg-btn .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--primary); }

/* Sekce s jemným SVG pozadím (Aktuality na úvodu) */
.sg-section--wave { background: url("../img/wave-bg.svg") left bottom / contain no-repeat; }
.sg-section--shape { background: url("../img/shape-right.png") right center / contain no-repeat; }

/* Carousel (JS z původního webu, tlačítka prev/next) */
.sg-car { position: relative; }

/* ---------- Editor ---------- */
.editor-styles-wrapper .sg-tabs__panel { display: block; }



/* ---------- Karta oboru jako Cover blok (foto + tmavý překryv, bílý text) ---------- */
.sg-obor.wp-block-cover { border-radius: 12px; overflow: hidden; box-shadow: var(--wp--preset--shadow--card); min-height: 420px; align-items: flex-start; padding: 30px; transition: transform .3s; color: #fff; }
.sg-obor.wp-block-cover:hover { transform: translateY(-4px); }
.sg-obor.wp-block-cover .wp-block-cover__background { background: rgba(6, 40, 82, .72) !important; opacity: 1 !important; }
.sg-obor.wp-block-cover .wp-block-cover__inner-container { width: 100%; color: #fff; }
.sg-obor__body.wp-block-group { position: static; margin: 0; max-width: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.sg-obor__body.wp-block-group > * { max-width: none; margin: 0; }
.sg-obor__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 3px 12px; border: 1px solid #fff; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; }
.sg-obor__kicker .sg-i { color: #fff; }
.sg-obor__pre { margin: 0; font-size: 15px; color: var(--wp--preset--color--yellow); }
.sg-obor__title { margin: 0; font-size: 24px; color: #fff; }
.sg-obor__title a { color: #fff; text-decoration: none; }
.sg-obor__title a:hover { color: var(--wp--preset--color--yellow); }
.sg-obor__text { margin: 0; font-size: 15px; color: #fff; }
.sg-obor ul.sg-links { margin: 6px 0 0; text-align: left; color: #fff; }
.sg-obor .sg-links--check li { font-size: 15px; color: #fff; }
.sg-obor .sg-links--check li::before { background-color: #fff; }
.sg-obor .wp-block-buttons { margin-top: 6px; }
.sg-obor .sg-btn--text .wp-block-button__link.wp-element-button { background: none; color: var(--wp--preset--color--yellow); border: 0; box-shadow: none; padding: 0; }
@media (max-width: 600px) { .sg-obor.wp-block-cover { padding: 16px; min-height: 0; } }

/* Taby – štítky jsou odstavce, JS přepíná panely */
.sg-tabs__list.wp-block-group { gap: 0; margin: 0 auto 30px; width: max-content; max-width: 100%; }
.sg-tabs__list .sg-tabs__label { margin: 0; user-select: none; }
.sg-tabs__panel.wp-block-group { max-width: none; }

/* Text + obrázek jako grid */
.sg-split.wp-block-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center; }
.sg-split.wp-block-group > * { margin: 0; max-width: none; }
.sg-split__text.wp-block-group > * + * { margin-block-start: 14px; }
.sg-split__quote.wp-block-group { gap: 14px; }
.sg-split__quote .wp-block-image { margin: 0; flex: 0 0 34px; }
.sg-split__quote-icon img { filter: brightness(0) saturate(100%) invert(84%) sepia(52%) saturate(600%) hue-rotate(4deg) brightness(104%) contrast(92%); }

/* CTA / tiles kompatibilita */
.sg-cta.wp-block-group > * { margin: 0; }
.sg-cta__text.wp-block-group > * + * { margin-block-start: 8px; }
.sg-home-hero__inner.wp-block-group, .sg-home-hero__text.wp-block-group, .sg-home-hero__icons.wp-block-group { max-width: none; }
.sg-home-hero__text.wp-block-group > * { margin: 0; }
.sg-home-hero__text .sg-home-hero__lead { margin-top: 10px; }
.sg-home-hero__icons .wp-block-image { margin: 0; }
.sg-section--wave, .sg-section--shape { background-size: contain; }

/* Karty aktualit blíž originálu: střed, kapitálky, rámečkové tlačítko */
.sg-posts .wp-block-post-template > .wp-block-post { text-align: center; align-items: center; }
.sg-posts .wp-block-post-title { text-transform: uppercase; font-size: 15.5px; letter-spacing: .4px; }
.sg-posts .wp-block-post-date { text-align: center; }
.sg-posts .wp-block-post-excerpt__more-link { display: inline-block; border: 1.5px solid var(--wp--preset--color--primary); border-radius: 999px; padding: 8px 18px; margin-top: 8px; font-size: 14px; text-decoration: none; }
/* Výpis 3 karet vedle sebe */
.sg-posts--3 .wp-block-post-template { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .sg-posts--3 .wp-block-post-template { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sg-posts--3 .wp-block-post-template { grid-template-columns: 1fr; } }
.sg-posts--mini .wp-block-post-template > .wp-block-post { padding: 0 0 12px; }
.sg-posts--mini .wp-block-post-featured-image img { height: 150px; }
.sg-posts--mini .wp-block-post-title { font-size: 16px; margin: 12px 14px 0; text-align: center; }


/* ---------- Převedené podstránky ---------- */
.sg-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 3px 12px; border: 1px solid #018aff; border-radius: 999px; font-size: 13px; font-weight: 600; width: max-content; }
.sg-badge .sg-i { color: #0489f9; }
.sg-photo img { border-radius: 12px; box-shadow: var(--wp--preset--shadow--card); }
.sg-columns.wp-block-columns { gap: 40px; align-items: center; }
.sg-columns .wp-block-column > * + * { margin-block-start: 14px; }
.sg-columns .wp-block-column > h2 { margin-bottom: 4px; }
.sg-section--dark .sg-card.wp-block-group { background: #fff; color: #000; }
.sg-section--dark .sg-card h3, .sg-section--dark .sg-card h4 { color: var(--wp--preset--color--dark); }
.sg-card.wp-block-group > * + * { margin-block-start: 12px; }
.sg-card h4 { margin: 0; font-size: 22px; }
.sg-item.wp-block-group > * { margin: 0; max-width: none; }
.sg-item.wp-block-group > * + * { margin-block-start: 4px; }
.sg-item h4 { font-size: 17px; color: var(--wp--preset--color--dark); }
.sg-item p { font-size: 15px; color: var(--wp--preset--color--grey-dark); }
.sg-item .sg-links li { font-size: 15px; }
.sg-card .sg-grid.wp-block-group { gap: 14px 24px; --sg-min: 200px; }
.sg-embed { border-radius: 12px; overflow: hidden; box-shadow: var(--wp--preset--shadow--card); }
.sg-section .sg-tabs { margin-top: 10px; }
.sg-section > .wp-block-buttons { margin-top: 20px; }
.sg-gallery { margin-top: 10px; }
/* =============================== Původní komponenty sg-* (převzato z Přizpůsobení) =============================== */
/* ==========================================================================
   SG – Gutenberg komponenty (migrace stránek z Breakdance na nativní bloky)
   Hodnoty převzaty z Breakdance globálních nastavení:
   primární var(--wp--preset--color--primary) · žlutá var(--wp--preset--color--yellow) · text #000 · pozadí #fff
   ========================================================================== */

/* Sekce – rozestup mezi bloky stránky */
.sg-section {
  padding: 44px 0;
}
.sg-section:first-child {
  padding-top: 6px;
}

/* Nadpis sekce – Montserrat/barvu dodává globální h2 */
.sg-title {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
}

/* Krátké žluté podtržení pod nadpisem (Breakdance Fancy Divider, 10 %) */
hr.sg-underline {
  width: 10%;
  min-width: 80px;
  height: 0;
  border: 0;
  border-top: 3px solid var(--wp--preset--color--yellow);
  margin: 5px auto 34px;
  opacity: 1;
  background: none;
}

/* Karta */
.sg-card {
  margin-top: 0;
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  box-shadow: var(--wp--preset--shadow--card);
  font-size: 20px;
  line-height: 1.5;
}
.sg-card > * {
  max-width: none;
}
.sg-card > *:first-child {
  margin-top: 0;
}
.sg-card > *:last-child {
  margin-bottom: 0;
}
.sg-card p {
  margin: 0;
}
.sg-card p + p {
  margin-top: 1em;
}

/* Modrá karta */
.sg-card--blue {
  background: var(--wp--preset--color--primary);
  color: #fff;
}
.sg-card--blue a,
.sg-card--blue a:hover {
  color: #fff;
}

/* Řádek karty – 2 sloupce, oddělené linkou */
.sg-card .sg-row {
  margin: 0;
  padding: 15px;
  gap: 10px 20px;
  border-bottom: 2px solid var(--wp--preset--color--primary);
}
.sg-card--blue .sg-row {
  padding: 20px 5px;
  border-bottom-color: #fff;
}
.sg-card .sg-row:last-child {
  border-bottom: 0;
}
.sg-label {
  font-weight: 700;
}

/* Seznam odkazů s ikonou */
.sg-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sg-links li {
  position: relative;
  padding-left: 35px;
  font-weight: 500;
}
.sg-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  background-color: var(--wp--preset--color--primary);
  -webkit-mask: var(--sg-icon) no-repeat center / contain;
  mask: var(--sg-icon) no-repeat center / contain;
}
.sg-links a,
.sg-links a:hover {
  color: inherit;
  font-weight: 500;
}

/* PDF ikona (bílá karta) */
.sg-links--pdf li::before {
  --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 17h1.5a1.5 1.5 0 0 0 0-3H8v5'/%3E%3Cpath d='M12.5 14h1a1.5 1.5 0 0 1 1.5 1.5v2a1.5 1.5 0 0 1-1.5 1.5h-1z'/%3E%3Cpath d='M17.5 19v-5H20M17.5 16.5h2'/%3E%3C/svg%3E");
}

/* Šipka (modrá karta) */
.sg-links--arrow li {
  padding-left: 30px;
  font-size: 18px;
}
.sg-links--arrow li::before {
  width: 15px;
  height: 15px;
  top: 0.4em;
  background-color: #fff;
  --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Mobil */
@media (max-width: 781px) {
  .sg-title {
    font-size: 36px;
  }
  .sg-card {
    text-align: center;
  }
  .sg-card .sg-row {
    padding: 15px 0;
  }
  /* položky seznamu: ikona zůstává vlevo od textu, blok jako celek na střed */
  .sg-links {
    align-items: center;
  }
  .sg-links li {
    display: inline-block;
    text-align: left;
    max-width: 100%;
  }
}

/* Box s ikonou (Breakdance Image Box) – karta, ikona vlevo, text vpravo */
.sg-box {
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.11);
  height: 100%;
  box-sizing: border-box;
}
.sg-box.wp-block-group {
  display: flex;
  align-items: center;
  gap: 30px;
}
.sg-box .wp-block-group > * {
  margin: 0;
  max-width: none;
}
.sg-box .wp-block-image {
  flex: 0 0 auto;
}
.sg-box .wp-block-image img {
  height: 150px;
  width: auto;
  object-fit: contain;
}
.sg-box h3 {
  color: var(--wp--preset--color--dark);
  font-size: 24px;
  margin: 0 0 0.3em;
}
.sg-box p {
  font-size: 16px;
  margin: 0;
}
.sg-box__content {
  flex: 1 1 auto;
}
.sg-columns--stretch > .wp-block-column {
  display: flex;
  flex-direction: column;
}
@media (max-width: 1023px) {
  .sg-box.wp-block-group {
    flex-direction: column;
    text-align: center;
  }
  .sg-box .wp-block-image img {
    height: 70px;
  }
}

/* Textová karta (seznamy, odstavce) */
.sg-card--text {
  font-size: 18px;
}
.sg-card--text ul {
  margin: 0;
  padding-left: 1.4em;
}
.sg-card--text li {
  margin: 0.25em 0;
}
.sg-card--text li > ul {
  margin-top: 0.25em;
}

/* ==========================================================================
   SG – dlaždice, gridy, tlačítka, výpisy (migrace Breakdance → bloky, 2. vlna)
   ========================================================================== */

/* Grid dlaždic (Group.sg-grid) – responzivní, bez média dotazů */
.sg-grid.wp-block-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--sg-min, 280px), 100%), 1fr));
  gap: 30px;
  align-items: stretch;
}
.sg-grid.wp-block-group > * {
  margin: 0;
  max-width: none;
  min-width: 0;
}
.sg-grid--2 { --sg-min: 520px; }
.sg-grid--3 { --sg-min: 340px; }
.sg-grid--4 { --sg-min: 250px; }


/* Dlaždice (Group.sg-tile): obrázek/ikona nahoře, nadpis, text, tlačítko */
.sg-tile {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--wp--preset--shadow--card);
  padding: 30px;
  height: 100%;
  box-sizing: border-box;
}
.sg-tile--soft { box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.11); }
.sg-tile--r4 { border-radius: 4px; }
.sg-tile.wp-block-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  height: 100%;
}
.sg-tile--left.wp-block-group {
  align-items: flex-start;
  text-align: left;
}
.sg-tile.wp-block-group > * {
  margin: 0;
  max-width: none;
}
.sg-tile .wp-block-image {
  display: flex;
  justify-content: center;
  width: 100%;
}
.sg-tile .wp-block-image img {
  height: var(--sg-img, 150px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.sg-tile--img-80  { --sg-img: 80px; }
.sg-tile--img-150 { --sg-img: 150px; }
.sg-tile--img-300 { --sg-img: 300px; }
.sg-tile--cover .wp-block-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.sg-tile h3, .sg-tile h4 {
  color: var(--wp--preset--color--dark);
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
}
.sg-tile--title-lg h3 { font-size: 30px; }
.sg-tile p {
  font-size: 16px;
  margin: 0;
}
.sg-tile .wp-block-buttons,
.sg-tile .sg-links {
  margin-top: auto;
  padding-top: 6px;
}

/* Informační karta (Group.sg-info): h4 + text + seznamy, zarovnání vlevo */
.sg-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--wp--preset--shadow--card);
  padding: 30px;
  height: 100%;
  box-sizing: border-box;
  font-size: 18px;
}
.sg-info.wp-block-group > * {
  margin: 0 0 14px;
  max-width: none;
}
.sg-info.wp-block-group > *:last-child { margin-bottom: 0; }
.sg-info h3, .sg-info h4 {
  font-size: 24px;
  color: var(--wp--preset--color--dark);
  margin: 0 0 12px;
}
.sg-info p { font-size: 18px; margin: 0 0 10px; }
.sg-info p.sg-lead, p.sg-lead { font-weight: 700; }
.sg-card--text p.sg-lead { margin-top: 14px; }

/* Seznam s modrou ikonou (bílé karty) */
.sg-links--check li::before {
  --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.sg-links--dot li { padding-left: 28px; }
.sg-links--dot li::before {
  width: 10px; height: 10px; top: 0.55em; left: 6px; border-radius: 50%;
  -webkit-mask: none; mask: none;
}
.sg-links--blue-arrow li { padding-left: 30px; font-weight: 600; }
.sg-links--blue-arrow li::before {
  width: 15px; height: 15px; top: 0.4em;
  --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}
.sg-links--lg li { font-size: 18px; }

/* Tlačítka (core/button + třída) – hodnoty z Breakdance global settings */
.sg-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--primary);
  color: #fff;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sg-btn .wp-block-button__link:hover {
  background: #0a4f8c;
  color: #fff;
}
.sg-btn--secondary .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}
.sg-btn--secondary .wp-block-button__link:hover {
  background: var(--wp--preset--color--primary);
  color: #fff;
}
.sg-btn--dark .wp-block-button__link {
  background: var(--wp--preset--color--dark);
  color: #fff;
}
.sg-btn--dark .wp-block-button__link:hover { background: #0a3a6b; }
.sg-btn--text .wp-block-button__link {
  background: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sg-btn--text .wp-block-button__link::after {
  content: "\2192";
  margin-left: 6px;
  transition: transform 0.2s;
}
.sg-btn--text .wp-block-button__link:hover { text-decoration: none; }
.sg-btn--text .wp-block-button__link:hover::after { transform: translateX(3px); }
.sg-tile .wp-block-buttons { justify-content: center; }
.sg-tile--left .wp-block-buttons { justify-content: flex-start; }

/* Dvousloupec s ikonou vlevo (ŠVP apod.) */
.sg-icon-row.wp-block-group {
  display: flex;
  align-items: center;
  gap: 40px;
}
.sg-icon-row.wp-block-group > * { margin: 0; max-width: none; }
.sg-icon-row .wp-block-image { flex: 0 0 220px; }
.sg-icon-row .wp-block-image img { width: 220px; height: auto; }
.sg-icon-row__body { flex: 1 1 auto; }
.sg-icon-row__body.wp-block-group > * { margin: 0 0 16px; }
.sg-icon-row__body.wp-block-group > *:last-child { margin-bottom: 0; }
@media (max-width: 781px) {
  .sg-icon-row.wp-block-group { flex-direction: column; text-align: center; }
  .sg-icon-row .wp-block-image { flex-basis: auto; }
}

/* Kroky / časová osa (Group.sg-steps) */
.sg-steps.wp-block-group { display: flex; flex-direction: column; gap: 0; counter-reset: sgstep; }
.sg-step {
  position: relative;
  padding: 0 0 34px 70px;
  counter-increment: sgstep;
}
.sg-step::before {
  content: counter(sgstep);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.sg-step::after {
  content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; background: #cfe0f5;
}
.sg-step:last-child::after { display: none; }
.sg-step.wp-block-group > * { margin: 0 0 6px; max-width: none; }
.sg-step h3 { font-size: 22px; margin: 6px 0 8px; color: var(--wp--preset--color--dark); }
.sg-step p, .sg-step li { font-size: 18px; }

/* Accordion – core/details */
.sg-details {
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  margin: 0 0 14px;
  padding: 0;
}
.sg-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--wp--preset--color--primary);
  position: relative;
}
.sg-details > summary::-webkit-details-marker { display: none; }
.sg-details > summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 28px; line-height: 1; color: var(--wp--preset--color--primary);
}
.sg-details[open] > summary::after { content: "\2013"; }
.sg-details > *:not(summary) { padding: 0 24px; }
.sg-details > *:last-child { padding-bottom: 22px; }
.sg-details p, .sg-details li { font-size: 17px; }

/* Výpis příspěvků – core/query */
.sg-posts .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 1024px) {
  .sg-posts .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sg-posts .wp-block-post-template { grid-template-columns: 1fr; }
}
.sg-posts .wp-block-post-template > .wp-block-post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 2px 4px 20px 0 rgba(0, 0, 0, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  width: auto;
}
.sg-posts .wp-block-post-featured-image { margin: 0; }
.sg-posts .wp-block-post-featured-image img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }
.sg-posts--contain .wp-block-post-featured-image img { object-fit: contain; background: #fff; }
.sg-posts--tall .wp-block-post-featured-image img { height: 320px; object-position: top; }
.sg-search { margin-bottom: 10px; }
.sg-search .wp-block-search__inside-wrapper { max-width: 520px; margin: 0 auto; }
.sg-posts .wp-block-post-title { font-size: 20px; line-height: 1.3; margin: 0; }
.sg-posts .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--dark); }
.sg-posts .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.sg-posts .wp-block-post-excerpt { font-size: 15px; margin: 0; }
.sg-posts .wp-block-post-excerpt__excerpt { margin: 0 0 8px; }
.sg-posts .wp-block-post-excerpt__more-link,
.sg-posts .wp-block-read-more {
  display: inline-block; font-weight: 600; color: var(--wp--preset--color--primary); text-decoration: underline; margin-top: auto;
}
.sg-posts .wp-block-post-date { font-size: 14px; color: #5b6b7b; margin: 0; }
.sg-posts .wp-block-query-pagination { margin-top: 30px; justify-content: center; font-weight: 600; }
.sg-posts .wp-block-query-pagination a, .sg-posts .wp-block-query-pagination .page-numbers { padding: 6px 10px; }
.sg-posts .wp-block-query-pagination .current { color: var(--wp--preset--color--dark); }
.sg-search .wp-block-search__input { border-radius: 3px; border: 1px solid #cfd8e3; padding: 10px 14px; }
.sg-search .wp-block-search__button { background: var(--wp--preset--color--primary); color: #fff; border: 0; border-radius: 3px; padding: 10px 18px; }

/* Vložený iframe (kalendář) */
.sg-embed iframe { width: 100%; min-height: 600px; border: 0; border-radius: 12px; }

/* Tabulka v kartě */
.sg-table table { border-collapse: collapse; width: 100%; font-size: 17px; }
.sg-table th, .sg-table td { border: 0; border-bottom: 1px solid #e1e7ef; padding: 10px 12px; text-align: left; vertical-align: top; }
.sg-table th { color: var(--wp--preset--color--dark); font-weight: 700; }
.sg-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   SG – hover efekty a animace při načtení stránky
   ========================================================================== */

/* Hover: zvednutí karet a dlaždic */
@media (hover: hover) {
  .sg-tile, .sg-info, .sg-box,
  .sg-posts .wp-block-post-template > .wp-block-post {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .sg-tile:hover, .sg-info:hover, .sg-box:hover,
  .sg-posts .wp-block-post-template > .wp-block-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(4, 34, 68, 0.18);
  }
  .sg-tile .wp-block-image img,
  .sg-posts .wp-block-post-featured-image img {
    transition: transform 0.3s ease;
  }
  .sg-tile--cover:hover .wp-block-image img,
  .sg-posts .wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.04);
  }
  .sg-tile--cover .wp-block-image,
  .sg-posts .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 8px;
  }
  .sg-posts .wp-block-post-featured-image { border-radius: 12px; }
  .sg-details { transition: box-shadow 0.25s ease; }
  .sg-details:hover { box-shadow: 0 10px 32px rgba(4, 34, 68, 0.12); }
  .sg-links a { transition: color 0.15s ease; }
  .sg-links a:hover { color: var(--wp--preset--color--primary); }
  .sg-card--blue .sg-links a:hover { color: var(--wp--preset--color--yellow); }
}

/* Načtení stránky: postupný fade-in sekcí a karet */
@media (prefers-reduced-motion: no-preference) {
  @keyframes sgFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
  .sg-section { animation: sgFadeUp 0.6s ease-out both; }
  .sg-section:nth-of-type(2) { animation-delay: 0.12s; }
  .sg-section:nth-of-type(3) { animation-delay: 0.24s; }
  .sg-section:nth-of-type(4) { animation-delay: 0.36s; }
  .sg-section:nth-of-type(n+5) { animation-delay: 0.45s; }

  .sg-grid.wp-block-group > *,
  .sg-posts .wp-block-post-template > .wp-block-post,
  .sg-steps .sg-step,
  .sg-details {
    animation: sgFadeUp 0.55s ease-out both;
  }
  .sg-grid.wp-block-group > *:nth-child(1),
  .sg-posts .wp-block-post-template > .wp-block-post:nth-child(1),
  .sg-steps .sg-step:nth-child(1),
  .sg-details:nth-of-type(1) { animation-delay: 0.10s; }
  .sg-grid.wp-block-group > *:nth-child(2),
  .sg-posts .wp-block-post-template > .wp-block-post:nth-child(2),
  .sg-steps .sg-step:nth-child(2),
  .sg-details:nth-of-type(2) { animation-delay: 0.18s; }
  .sg-grid.wp-block-group > *:nth-child(3),
  .sg-posts .wp-block-post-template > .wp-block-post:nth-child(3),
  .sg-steps .sg-step:nth-child(3),
  .sg-details:nth-of-type(3) { animation-delay: 0.26s; }
  .sg-grid.wp-block-group > *:nth-child(4),
  .sg-posts .wp-block-post-template > .wp-block-post:nth-child(4),
  .sg-steps .sg-step:nth-child(4),
  .sg-details:nth-of-type(4) { animation-delay: 0.34s; }
  .sg-grid.wp-block-group > *:nth-child(5),
  .sg-posts .wp-block-post-template > .wp-block-post:nth-child(5),
  .sg-steps .sg-step:nth-child(5),
  .sg-details:nth-of-type(5) { animation-delay: 0.42s; }
  .sg-grid.wp-block-group > *:nth-child(n+6),
  .sg-posts .wp-block-post-template > .wp-block-post:nth-child(n+6),
  .sg-steps .sg-step:nth-child(n+6),
  .sg-details:nth-of-type(n+6) { animation-delay: 0.5s; }
}


/* ==========================================================================
   SG – Kontakt: lepivá navigace sekcí (sg-subnav) + kotvy sekcí
   ========================================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sg-subnav {
  position: static;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(4, 34, 68, 0.12);
  padding: 10px 14px;
  margin: 0 auto;
}
.sg-subnav.wp-block-group { max-width: none; }
.sg-subnav .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.sg-subnav .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--primary);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.sg-subnav .wp-block-button__link:hover {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

/* kotvy sekcí – odsazení pod sticky hlavičku + subnav */
.sg-anchor { scroll-margin-top: 185px; }

/* zvýraznění cílové sekce po prokliku ze subnav */
.sg-anchor:target .sg-title { color: var(--wp--preset--color--primary); }
.sg-anchor:target hr.sg-underline {
  width: 20%;
  border-top-width: 4px;
  transition: width 0.4s ease;
}

/* foto vedle modré karty v úvodu */
.sg-photo { margin: 0; height: 100%; }
.sg-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--wp--preset--shadow--card);
}

/* avatar v kartě kontaktu */
.sg-info .sg-avatar { display: flex; justify-content: center; margin-bottom: 6px; }
.sg-info .sg-avatar img {
  height: 96px;
  width: 96px;
  object-fit: cover;
  border-radius: 50%;
}
.sg-info--center { text-align: center; }
.sg-info--center .sg-links { align-items: center; }
.sg-info--center .sg-links li { display: inline-block; text-align: left; }

/* mobil: subnav jako vodorovně posuvné chipy, zůstává lepivý */
@media (max-width: 781px) {
  .sg-subnav { top: 66px; padding: 8px; border-radius: 14px; }
  .sg-subnav .wp-block-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sg-subnav .wp-block-buttons::-webkit-scrollbar { display: none; }
  .sg-subnav .wp-block-button { flex: 0 0 auto; }
  .sg-anchor { scroll-margin-top: 150px; }
}

/* Kontakt – opravy: nadpisy v modrych kartach bile, subnav bez podtrzeni */
.sg-card--blue h3,
.sg-card--blue h4 { color: #fff; }
.sg-subnav .wp-block-button__link { text-decoration: none; }

/* ==========================================================================
   SG - Kontakt: rezim zalozek (sg-tab) - zobrazi se jen zvolena sekce.
   Ciste CSS (:target + :has), bez JS. Prohlizece bez :has zobrazi vychozi
   sekci + rozkliknutou (degradace bez ztraty obsahu).
   ========================================================================== */
.sg-tab { display: none; }
.sg-tab:target { display: block; }
/* vychozi zalozka (Vedeni SG) je videt, dokud neni zvolena jina */
.sg-tab--default { display: block; }
body:has(.sg-tab:target) .sg-tab--default:not(:target) { display: none; }

/* aktivni chip v subnav */
body:has(#vedeni:target) .sg-subnav a[href="#vedeni"],
body:has(#ucitele:target) .sg-subnav a[href="#ucitele"],
body:has(#treneri:target) .sg-subnav a[href="#treneri"],
body:has(#provozni:target) .sg-subnav a[href="#provozni"],
body:has(#jidelna:target) .sg-subnav a[href="#jidelna"],
body:has(#rehabilitace:target) .sg-subnav a[href="#rehabilitace"],
body:has(#psycholog:target) .sg-subnav a[href="#psycholog"],
body:has(#studijni:target) .sg-subnav a[href="#studijni"],
body:has(#it:target) .sg-subnav a[href="#it"],
body:has(#prohlidka:target) .sg-subnav a[href="#prohlidka"],
body:not(:has(.sg-tab:target)) .sg-subnav a[href="#vedeni"] {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

/* mezera mezi kartou/gridem a tlacitkem pod nimi */
.sg-tab .sg-card + .wp-block-buttons,
.sg-tab .sg-grid + .wp-block-buttons { margin-top: 30px; }

/* zalozka se zobrazuje hned pod subnav, at se nescrolluje mimo */
.sg-tab { scroll-margin-top: 300px; }
.sg-tab.sg-section { animation-delay: 0s; }
/* Treneri SG - aktivni chipy sportu (rezim zalozek, stejne jako kontakty) */
body:has(#atletika:target) .sg-subnav a[href="#atletika"],
body:has(#hokej:target) .sg-subnav a[href="#hokej"],
body:has(#judo:target) .sg-subnav a[href="#judo"],
body:has(#plavani:target) .sg-subnav a[href="#plavani"],
body:has(#volejbal:target) .sg-subnav a[href="#volejbal"],
body:has(#fotbal:target) .sg-subnav a[href="#fotbal"],
body:has(#cyklistika:target) .sg-subnav a[href="#cyklistika"],
body:not(:has(.sg-tab:target)) .sg-subnav a[href="#atletika"] {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

/* Tlačítko zpět pod obsahem */
.sg-back { margin-top: 48px; padding: 8px 0 24px; }
.sg-back .wp-block-buttons { justify-content: center; }

/* ==========================================================================
   SG – facelift aktualit, tým, carousel (Erasmus)
   ========================================================================== */

/* Aktuality – karty s obrázkem na doraz */
.sg-posts .wp-block-post-template > .wp-block-post {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  gap: 0;
}
.sg-posts .wp-block-post-featured-image img {
  height: 215px;
  border-radius: 0;
}
.sg-posts .wp-block-post-title {
  margin: 16px 20px 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
}
.sg-posts .wp-block-post-excerpt {
  margin: 0 20px 18px;
  color: #4a5a6a;
}
.sg-posts .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sg-posts .wp-block-post-date { margin: 0 20px; }
.sg-posts .wp-block-post-excerpt__more-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--wp--preset--color--primary);
}
.sg-posts .wp-block-post-excerpt__more-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s;
  display: inline-block;
}
.sg-posts .wp-block-post-excerpt__more-link:hover::after { transform: translateX(3px); }

/* mezera mezi výpisem/gridem a tlačítkem pod ním */
.sg-section .wp-block-query + .wp-block-buttons,
.sg-section .sg-posts + .wp-block-buttons,
.sg-section .sg-grid + .wp-block-buttons {
  margin-top: 38px;
}

/* Tým – karta s avatarem a štítky */
.sg-member {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(4, 34, 68, 0.10);
  padding: 26px 22px 22px;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}
.sg-member.wp-block-group > * { margin: 0; max-width: none; }
.sg-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a63b0, var(--wp--preset--color--dark));
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px !important;
  letter-spacing: 1px;
}
.sg-member h4 {
  color: var(--wp--preset--color--dark);
  font-size: 20px;
  margin-bottom: 2px;
}
.sg-member .sg-role {
  font-size: 12.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6b7a89;
  font-weight: 600;
  margin: 2px 0 0;
}
.sg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 14px !important;
}
.sg-chip {
  display: inline-block;
  background: var(--wp--preset--color--blue-light);
  color: var(--wp--preset--color--primary);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.sg-chip--gold { background: #fdf6d8; color: #8a6d00; }
@media (hover: hover) {
  .sg-member { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .sg-member:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(4, 34, 68, 0.18); }
}

/* Carousel (scroll-snap) */
.sg-car { position: relative; }
.sg-car-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 18px;
  scrollbar-width: none;
}
.sg-car-track::-webkit-scrollbar { display: none; }
.sg-car-item {
  flex: 0 0 min(340px, 82%);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(4, 34, 68, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sg-car-item img { width: 100%; height: 190px; object-fit: cover; display: block; }
.sg-car-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sg-car-title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 18px; color: var(--wp--preset--color--dark); margin: 0; }
.sg-car-country { color: #6b7a89; font-size: 14px; margin: 0; }
.sg-car-link { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--wp--preset--color--primary); text-decoration: none; }
.sg-car-link::after { content: " →"; }
.sg-car-btn {
  position: absolute;
  top: 42%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(4, 34, 68, 0.3);
  transition: background 0.2s;
}
.sg-car-btn:hover { background: #0a4f8c; }
.sg-car-btn--prev { left: -10px; }
.sg-car-btn--next { right: -10px; }
@media (max-width: 781px) {
  .sg-car-btn { display: none; }
}

html, body { overflow-x: clip; }

/* ==========================================================================
   SG – tmavé sekce dle původního Erasmus designu
   ========================================================================== */
.sg-section--dark {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 54px calc(50vw - 50%);
  background: linear-gradient(160deg, #0f4c8c 0%, var(--wp--preset--color--claim) 55%, #0a3260 100%);
  color: #fff;
}
.sg-section--dark .sg-title { color: #fff; }
.sg-section--dark .sg-subtitle {
  text-align: center;
  color: #dbe7f5;
  font-size: 17px;
  margin: -22px 0 34px;
}
/* tmavé dlaždice s bílým rámečkem */
.sg-section--dark .sg-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
  border-radius: 12px;
}
.sg-section--dark .sg-tile.wp-block-group {
  align-items: flex-start;
  text-align: left;
}
.sg-section--dark .sg-tile h3 { color: #fff; }
.sg-section--dark .sg-tile p { color: #e4edf7; }
.sg-section--dark .sg-tile .wp-block-buttons { justify-content: flex-start; }
@media (hover: hover) {
  .sg-section--dark .sg-tile:hover { box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35); }
}
/* žluté tlačítko */
.sg-btn--gold .wp-block-button__link {
  background: var(--wp--preset--color--yellow);
  color: #0b3f7a;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  padding: 12px 22px;
}
.sg-btn--gold .wp-block-button__link:hover { background: #eed83a; color: #0b3f7a; }
/* carousel v tmavé sekci */
.sg-section--dark .sg-car-item { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.sg-section--dark .sg-car-btn { background: #fff; color: var(--wp--preset--color--claim); }
.sg-section--dark .sg-car-btn:hover { background: var(--wp--preset--color--yellow); }
.sg-section--dark .sg-car-link {
  display: inline-block;
  background: var(--wp--preset--color--primary);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  text-align: center;
}
.sg-section--dark .sg-car-link::after { content: ""; }
.sg-section--dark .sg-car-link:hover { background: #0a4f8c; }

/* Aktuality blíž originálu: kapitálkové titulky, rámečkové tlačítko */
.sg-posts .wp-block-post-title {
  text-transform: uppercase;
  font-size: 15.5px;
  letter-spacing: 0.6px;
  line-height: 1.45;
}
.sg-posts .wp-block-post-excerpt__more-link {
  display: inline-block;
  border: 1.5px solid var(--wp--preset--color--primary);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 4px;
  font-size: 14px;
}


/* ===== Mobility tile icons ===== */
.sg-ico { display: flex; width: 58px; height: 58px; border-radius: 14px; background: rgba(243, 227, 92, 0.14); margin-bottom: 6px; }
.sg-ico::before { content: ""; margin: auto; width: 30px; height: 30px; background-color: var(--wp--preset--color--yellow); -webkit-mask: var(--ico) no-repeat center / contain; mask: var(--ico) no-repeat center / contain; }
.sg-ico--check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 11 12 14 22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
.sg-ico--users { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.sg-ico--user { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.sg-ico--book { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E"); }
.sg-ico--globe { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }


/* ==========================================================================
   Breakdance výpisy aktualit ("Další aktuality" pod příspěvkem, vyhledávání) → karty
   Pozn.: homepage záměrně vyjmuta přes :not(.home) — má vlastní původní vzhled.
   ========================================================================== */
body:not(.home) article.bde-loop-item.ee-post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 2px 4px 20px 0 rgba(0, 0, 0, 0.06);
  padding: 0;
  display: flex;
  flex-direction: column;
}
body:not(.home) article.bde-loop-item.ee-post > a.bde-container-link,
body:not(.home) article.bde-loop-item.ee-post > a.bde-container-link > .bde-div {
  display: flex; flex-direction: column; flex: 1;
}
/* obrázek na doraz */
body:not(.home) .bde-loop-item .ee-post-image img,
body:not(.home) .bde-loop-item body-image-object {
  width: 100%; height: 215px !important; object-fit: cover; border-radius: 0; display: block;
  transition: transform 0.3s ease;
}
body:not(.home) .bde-loop-item body-image,
body:not(.home) .bde-loop-item body-image-container,
body:not(.home) .bde-loop-item body-image-clip { width: 100%; }
body:not(.home) .bde-loop-item .ee-post-image,
body:not(.home) .bde-loop-item .bde-image { overflow: hidden; margin: 0; }
/* obsah karty */
body:not(.home) .bde-loop-item .bde-div .bde-div,
body:not(.home) .bde-loop-item .ee-post-wrap {
  padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
body:not(.home) .bde-loop-item h3.bde-heading,
body:not(.home) .bde-loop-item .ee-post-title {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-size: 15.5px;
  letter-spacing: 0.6px;
  line-height: 1.45;
  margin: 0;
  color: var(--wp--preset--color--dark);
}
body:not(.home) .bde-loop-item .ee-post-title a { text-decoration: none; color: var(--wp--preset--color--dark); }
body:not(.home) .bde-loop .bde-loop-item .ee-post-title,
body:not(.home) .bde-loop .bde-loop-item .ee-post-title a {
  font-size: 15.5px !important;
  line-height: 1.45;
  letter-spacing: 0.6px;
}
body:not(.home) .bde-loop-item .ee-post-title a:hover { color: var(--wp--preset--color--primary); }
body:not(.home) .bde-loop-item .bde-rich-text {
  font-size: 15px; color: #4a5a6a;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body:not(.home) .bde-loop-item .ee-post-meta { font-size: 14px; color: #5b6b7b; }
/* Zobrazit více → rámečkové pill tlačítko se šipkou */
body:not(.home) .bde-loop-item .bde-button,
body:not(.home) .bde-loop-item .bde-loop-item__button { margin-top: auto; }
body:not(.home) .bde-loop-item .button-atom {
  background: none !important;
  border: 1.5px solid var(--wp--preset--color--primary) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  padding: 8px 18px !important;
  min-height: 0;
  color: var(--wp--preset--color--primary) !important;
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  margin-top: auto;
}
body:not(.home) .bde-loop-item .button-atom .button-atom__text { color: var(--wp--preset--color--primary); font-size: 14px; }
body:not(.home) .bde-loop-item .button-atom .button-atom__text::after {
  content: "→"; margin-left: 8px; display: inline-block; transition: transform 0.2s;
}
body:not(.home) .bde-loop-item .button-atom:hover .button-atom__text::after { transform: translateX(3px); }
@media (hover: hover) {
  body:not(.home) article.bde-loop-item.ee-post { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  body:not(.home) article.bde-loop-item.ee-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(4, 34, 68, 0.18);
  }
  body:not(.home) .bde-loop-item:hover body-image-object,
  body:not(.home) .bde-loop-item:hover .ee-post-image img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.home) .bde-loop > article.bde-loop-item { animation: sgFadeUp 0.55s ease-out both; }
  body:not(.home) .bde-loop > article.bde-loop-item:nth-child(1) { animation-delay: 0.10s; }
  body:not(.home) .bde-loop > article.bde-loop-item:nth-child(2) { animation-delay: 0.18s; }
  body:not(.home) .bde-loop > article.bde-loop-item:nth-child(3) { animation-delay: 0.26s; }
  body:not(.home) .bde-loop > article.bde-loop-item:nth-child(4) { animation-delay: 0.34s; }
  body:not(.home) .bde-loop > article.bde-loop-item:nth-child(n+5) { animation-delay: 0.42s; }
}

/* ==========================================================================
   Harmonogram školního roku – časová osa a kategorie
   (obnoveno z revize 18234 z 23. 8. 2026, omylem přepsáno 27. 8.)
   ========================================================================== */

.sg-timeline.wp-block-group {
  position: relative;
  padding-left: 36px;
}

.sg-timeline.wp-block-group::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #cfe0f5;
  border-radius: 2px;
}

.sg-timeline__month {
  position: relative;
  font-size: 22px;
  color: var(--wp--preset--color--dark);
  margin: 36px 0 14px;
  line-height: 1.2;
}

.sg-timeline__month:first-child {
  margin-top: 0;
}

.sg-timeline__month::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wp--preset--color--dark);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #cfe0f5;
}

.sg-tl {
  --sg-tl: var(--wp--preset--color--primary);
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(4, 34, 68, 0.08);
  border-left: 4px solid var(--sg-tl);
  padding: 12px 18px;
  margin: 0 0 10px;
}

.sg-tl::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sg-tl);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #cfe0f5;
}

.sg-tl.wp-block-group {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2px 18px;
  align-items: baseline;
}

.sg-tl.wp-block-group > * {
  margin: 0;
  max-width: none;
}

.sg-tl__date {
  font-weight: 700;
  color: var(--sg-tl);
  font-size: 16px;
}

.sg-tl__title {
  font-weight: 600;
  color: var(--wp--preset--color--dark);
  font-size: 18px;
  line-height: 1.35;
}

.sg-tl__note {
  grid-column: 2;
  font-size: 15px;
  color: #5b6b7b;
  line-height: 1.4;
}

.sg-tl--volno {
  --sg-tl: #d9a400;
}

.sg-tl--maturita {
  --sg-tl: var(--wp--preset--color--dark);
}

.sg-tl--prijimacky {
  --sg-tl: var(--wp--preset--color--primary);
}

.sg-tl--kurz {
  --sg-tl: #1f9e8a;
}

.sg-tl--erasmus {
  --sg-tl: #7b4fb8;
}

.sg-tl--skola {
  --sg-tl: #4a90d9;
}

.sg-tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin: 14px 0 28px;
  font-size: 15px;
  color: var(--wp--preset--color--dark);
}

.sg-tl-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sg-tl-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: var(--sg-tl);
}

:where(h3.sg-cat) {
  --sg-tl: var(--wp--preset--color--primary);
}

h3.sg-cat {
  position: relative;
  padding-left: 24px;
  color: var(--wp--preset--color--dark);
}

h3.sg-cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sg-tl);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #cfe0f5;
}

h3.sg-cat::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--sg-tl);
  margin-top: 8px;
}

.sg-tl__cal {
  grid-column: 2;
  font-size: 14px;
  margin-top: 4px;
  color: #5b6b7b;
}

.sg-tl__cal a {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--wp--preset--color--primary);
}

.sg-tl__cal a:hover {
  color: var(--wp--preset--color--dark);
  border-bottom-style: solid;
}

/* Ikona obalky (e-mail) */
.sg-links--mail li::before {
  --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

/* SG – odsazení podnavigace (sg-subnav) od okolních sekcí */
.sg-subnav {
  margin-top: 2.5rem;
  margin-bottom: 2.25rem;
}
@media (max-width: 781px) {
  .sg-subnav {
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
  }
}


/* ---------- Kompatibilita s layoutem blokového tématu ---------- */
.sg-grid.wp-block-group > *, .sg-tile.wp-block-group > *, .sg-info.wp-block-group > *, .sg-card.wp-block-group > * { max-width: none; margin-left: 0; margin-right: 0; }
.sg-grid.wp-block-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--sg-min, 280px), 100%), 1fr)); gap: 30px; align-items: stretch; }
.sg-grid.wp-block-group > * + * { margin-block-start: 0; }
.sg-tile.wp-block-group > * + *, .sg-info.wp-block-group > * + * { margin-block-start: 0; }
/* Vnořené skupiny nedostávají globální odsazení (to má jen sekce) */
.sg-section .wp-block-group.has-global-padding:not(.sg-tile):not(.sg-info):not(.sg-card):not(.sg-member):not(.sg-section--dark):not(.sg-iconbox) { padding-left: 0; padding-right: 0; }
.sg-section--dark.has-global-padding { padding-left: 30px; padding-right: 30px; }

/* ==========================================================================
   PRÉMIOVÁ VRSTVA – jednotné stíny, rytmus, typografie, hover a mobil.
   Načítá se jako poslední, záměrně přebíjí starší pravidla výše.
   ========================================================================== */
:root {
  --sg-shadow-sm: 0 1px 2px rgba(4, 34, 68, .04), 0 4px 12px rgba(4, 34, 68, .06);
  --sg-shadow: 0 2px 4px rgba(4, 34, 68, .04), 0 14px 36px rgba(4, 34, 68, .10);
  --sg-shadow-lg: 0 6px 12px rgba(4, 34, 68, .06), 0 24px 56px rgba(4, 34, 68, .16);
  --sg-radius: 16px;
  --sg-border: #e6ecf3;
  --sg-muted: #4a5a6a;
  --sg-ease: cubic-bezier(.2, .7, .2, 1);
}
body { color: #1a1a1a; }
::selection { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--dark); }
:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 3px; border-radius: 4px; }

/* --- rytmus sekcí --- */
.sg-section { padding: 72px 0; }
.sg-section + .sg-section { padding-top: 0; }
.sg-main--front .sg-section { padding: 80px 0 0; }
.sg-main--front .sg-section:last-child { padding-bottom: 80px; }
.sg-main--front .sg-home-tiles { padding-top: 0; }
@media (max-width: 782px) { .sg-section { padding: 48px 0; } .sg-main--front .sg-section { padding-top: 56px; } }

/* --- nadpisy sekcí --- */
.sg-title { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--wp--preset--color--primary); margin: 0; }
hr.sg-underline { width: 56px; min-width: 0; border-top: 3px solid var(--wp--preset--color--yellow); border-radius: 3px; margin: 14px auto 36px; }
.sg-hero hr.sg-underline { margin-bottom: 16px; }
h3, h4 { letter-spacing: -0.01em; }

/* --- tlačítka --- */
.wp-block-button__link.wp-element-button { box-shadow: none; font-size: 16px; font-weight: 700; padding: 13px 26px; letter-spacing: 0; transition: transform .25s var(--sg-ease), box-shadow .25s var(--sg-ease), background .25s, color .25s; }
.wp-block-button__link.wp-element-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8, 91, 162, .28); }
.sg-btn--gold .wp-block-button__link.wp-element-button:hover { box-shadow: 0 10px 24px rgba(243, 227, 92, .45); }
.sg-btn--white .wp-block-button__link.wp-element-button { border-width: 1.5px; font-weight: 600; }
.sg-btn--white .wp-block-button__link.wp-element-button:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.sg-btn--text .wp-block-button__link.wp-element-button:hover { transform: none; box-shadow: none; }
.wp-block-buttons { gap: 12px; }

/* --- hlavička --- */
.sg-topbar { font-size: 14px; }
.sg-topbar > .wp-block-group { gap: 6px 28px; }
.sg-topbar__link { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.sg-topbar__link a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.sg-topbar__link a:hover { text-decoration: none; color: var(--wp--preset--color--yellow); border-color: var(--wp--preset--color--yellow); }
.sg-header { box-shadow: var(--sg-shadow-sm); border-bottom: 1px solid var(--sg-border); }
.sg-brand__name { font-size: 19px; text-shadow: none; letter-spacing: -0.01em; }
.sg-nav { font-weight: 700; font-size: 17px; }
.sg-nav .wp-block-navigation-item__content { position: relative; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.sg-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--wp--preset--color--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--sg-ease); }
.sg-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after, .sg-nav > .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.sg-nav .wp-block-navigation__submenu-container { border: 1px solid var(--sg-border); box-shadow: var(--sg-shadow-lg); padding: 10px; min-width: 300px; font-size: 16px; font-weight: 600; border-radius: 14px; }
.sg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 16px; border-radius: 10px; }
.sg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { content: none; }
.sg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--blue-light); color: var(--wp--preset--color--primary); }
@media (max-width: 782px) {
  .sg-topbar { padding-top: 6px !important; padding-bottom: 6px !important; }
  .sg-topbar > .wp-block-group { justify-content: center; gap: 4px 18px; }
  .sg-topbar__link { font-size: 13px; }
  .sg-brand__logo img { width: 44px; }
  .sg-brand__name { font-size: 15px; line-height: 1.2; }
}

/* --- hero úvodu --- */
.sg-home-hero { background: radial-gradient(60% 55% at 78% 45%, rgba(8, 91, 162, .10) 0%, rgba(8, 91, 162, 0) 70%), linear-gradient(180deg, #fff 0%, #f5f8fc 100%); padding-top: 72px; }
.sg-home-hero__badge { border-color: rgba(8, 91, 162, .35); background: #fff; box-shadow: var(--sg-shadow-sm); }
.sg-home-hero__title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.sg-home-hero__lead { font-size: 18px; line-height: 1.6; color: var(--sg-muted); }
.sg-home-hero__icons .wp-block-image img { filter: drop-shadow(0 8px 16px rgba(4, 34, 68, .18)); }
.sg-home-tiles { margin-top: -56px; }
@media (max-width: 782px) { .sg-home-hero { padding-top: 36px; } .sg-home-tiles { margin-top: 8px; } }

/* --- karty a dlaždice --- */
.sg-tile, .sg-info, .sg-card { border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); border: 1px solid rgba(230, 236, 243, .8); transition: transform .3s var(--sg-ease), box-shadow .3s var(--sg-ease); }
.sg-tile--soft { box-shadow: var(--sg-shadow); }
@media (hover: hover) { .sg-tile:hover, .sg-posts .wp-block-post-template > .wp-block-post:hover { transform: translateY(-4px); box-shadow: var(--sg-shadow-lg); } }
.sg-tile h3, .sg-tile h4 { color: var(--wp--preset--color--dark); font-size: 19px; line-height: 1.3; }
.sg-tile p { color: var(--sg-muted); font-size: 15px; line-height: 1.55; }
.sg-home-tiles .sg-tile.wp-block-group { padding: 22px 26px; }
.sg-home-tiles .sg-tile h3 { font-size: 18px; }
.sg-home-tiles .sg-tile h3 a:hover { color: var(--wp--preset--color--primary); }
@media (max-width: 600px) { .sg-home-tiles .sg-tile.wp-block-group { grid-template-columns: 64px 1fr; text-align: left; } .sg-home-tiles .sg-tile h3 { text-align: left; } .sg-home-tiles .sg-tile p { text-align: left; } }

/* --- výpis aktualit --- */
.sg-posts .wp-block-post-template { gap: 24px; }
.sg-posts .wp-block-post-template > .wp-block-post { border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); border: 1px solid rgba(230, 236, 243, .8); transition: transform .3s var(--sg-ease), box-shadow .3s var(--sg-ease); padding-bottom: 22px; }
.sg-posts .wp-block-post-featured-image img { height: 200px; transition: transform .6s var(--sg-ease); }
.sg-posts .wp-block-post-featured-image { overflow: hidden; }
@media (hover: hover) { .sg-posts .wp-block-post-template > .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); } }
.sg-posts .wp-block-post-title { font-size: 15px; letter-spacing: .05em; line-height: 1.4; margin: 18px 20px 6px; }
.sg-posts .wp-block-post-title a { color: var(--wp--preset--color--dark); }
.sg-posts .wp-block-post-date { font-size: 13px; color: #6b7a89; margin: 0 20px 8px; }
.sg-posts .wp-block-post-excerpt { font-size: 14.5px; line-height: 1.55; color: var(--sg-muted); margin: 0 20px 6px; }
.sg-posts .wp-block-post-excerpt__more-link { font-size: 13px; padding: 7px 16px; border-width: 1.5px; margin-top: 10px; transition: background .2s, color .2s; }
.sg-posts .wp-block-post-excerpt__more-link:hover { background: var(--wp--preset--color--primary); color: #fff; }
.sg-section .wp-block-query + .wp-block-buttons, .sg-section .sg-grid + .wp-block-buttons, .sg-section .sg-tabs + .wp-block-buttons { margin-top: 36px; }

/* --- CTA pás --- */
.sg-cta { padding: 48px 44px; border-radius: var(--sg-radius); box-shadow: var(--sg-shadow-lg); }
.sg-cta::before { background: linear-gradient(100deg, rgba(8, 91, 162, .96) 0%, rgba(13, 65, 121, .92) 60%, rgba(4, 34, 68, .94) 100%); opacity: 1; }
.sg-cta__text h4 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin-bottom: 10px; }
.sg-cta__text p { color: rgba(255, 255, 255, .85); font-size: 16px; line-height: 1.6; max-width: 62ch; }

/* --- taby a karty oborů --- */
.sg-tabs__list { border-radius: 999px; box-shadow: var(--sg-shadow); border: 1px solid var(--sg-border); padding: 4px; background: #fff; gap: 4px; }
.sg-tabs__label { font-size: 16px; padding: 11px 30px; border-radius: 999px; }
.sg-tabs__label:hover { background: var(--wp--preset--color--blue-light); }
.sg-tabs__label.is-active { background: var(--wp--preset--color--primary); color: #fff; }
.sg-obor.wp-block-cover { border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); }
.sg-obor.wp-block-cover .wp-block-cover__background { background: linear-gradient(180deg, rgba(6, 40, 82, .55) 0%, rgba(6, 40, 82, .82) 100%) !important; }
.sg-obor.wp-block-cover:hover { box-shadow: var(--sg-shadow-lg); }
.sg-obor__title { font-size: 26px; }
.sg-obor__text { color: rgba(255, 255, 255, .9); }

/* --- tmavá sekce s boxy --- */
.sg-section--dark { border-radius: var(--sg-radius); padding: 64px 40px 48px; box-shadow: var(--sg-shadow-lg); }
.sg-section--dark::before { border-radius: var(--sg-radius); background: linear-gradient(160deg, rgba(8, 91, 162, .82) 0%, rgba(13, 65, 121, .9) 45%, rgba(4, 34, 68, .96) 100%); }
.sg-iconbox { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); border-radius: 14px; padding: 26px; transition: background .25s, transform .25s var(--sg-ease); }
.sg-iconbox:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.sg-iconbox__icon.wp-block-image { width: 48px; height: 48px; border-radius: 12px; background: rgba(243, 227, 92, .16); display: flex; align-items: center; justify-content: center; }
.sg-iconbox__icon img { width: 26px; height: 26px; }
.sg-section--dark .sg-iconbox__icon img { filter: brightness(0) saturate(100%) invert(87%) sepia(45%) saturate(700%) hue-rotate(5deg) brightness(102%) contrast(92%); }
.sg-iconbox__body h3 { font-size: 22px; }
.sg-why__big .sg-iconbox__body h3 { font-size: 28px; }
.sg-iconbox__body p { line-height: 1.6; }
.sg-iconbox--card { background: #fff; border: 1px solid var(--sg-border); box-shadow: var(--sg-shadow); backdrop-filter: none; }
.sg-iconbox--card .sg-iconbox__icon.wp-block-image { background: var(--wp--preset--color--blue-light); }
.sg-iconbox--card:hover { background: #fff; box-shadow: var(--sg-shadow-lg); }
.sg-iconbox--card p { color: var(--sg-muted); }
@media (max-width: 600px) { .sg-section--dark { padding: 40px 18px 28px; } }

/* --- text + obrázek --- */
.sg-split__image img { border-radius: var(--sg-radius); box-shadow: var(--sg-shadow-lg); }
.sg-split p { color: #2a3541; line-height: 1.65; }

/* --- hero podstránky --- */
.sg-hero--page::before { opacity: .94; background: linear-gradient(120deg, #085ba2 0%, #0d4179 55%, #062852 100%); }
.sg-hero__title { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.02em; }
.sg-breadcrumbs { font-size: 14px; }
.sg-breadcrumbs > * { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); }

/* --- článek --- */
.sg-article { border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); border: 1px solid var(--sg-border); padding: 40px; }
.sg-article p, .sg-article li { font-size: 17px; line-height: 1.7; max-width: 72ch; }
@media (max-width: 600px) { .sg-article { padding: 22px; } }
.sg-more { border-radius: var(--sg-radius); padding: 36px 28px; box-shadow: var(--sg-shadow-lg); }
.sg-more::before { content: ""; position: absolute; inset: 0; border-radius: var(--sg-radius); background: linear-gradient(160deg, rgba(8, 91, 162, .85), rgba(4, 34, 68, .95)); }
.sg-more > * { position: relative; }
.sg-more h2 { font-size: 28px; margin-bottom: 18px; }

/* --- patička --- */
.sg-footer h4 { font-size: 20px; letter-spacing: -0.01em; position: relative; padding-bottom: 12px; margin-bottom: 18px; }
.sg-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--wp--preset--color--yellow); }
.sg-footer__list { font-size: 15px; font-weight: 500; }
.sg-footer__list li::before { opacity: .6; }
.sg-footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sg-footer__bottom { font-size: 14px; color: var(--sg-muted); }
.sg-footer__bottom strong { color: var(--wp--preset--color--dark); }

/* --- podstránky: karty, seznamy, obrázky --- */
.sg-photo img { border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); }
.sg-card.sg-card--text, .sg-info { padding: 28px 30px; }
.sg-links li { line-height: 1.5; }
.sg-links--pdf li a, .sg-links--mail li a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sg-columns.wp-block-columns { gap: 48px; }
.sg-columns .wp-block-column > h2 { font-size: clamp(26px, 2.6vw, 34px); }
/* výpis 3 karet – musí být až za legacy pravidly */
.sg-posts--3 .wp-block-post-template { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .sg-posts--3 .wp-block-post-template { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sg-posts--3 .wp-block-post-template { grid-template-columns: 1fr; } }
.sg-posts--absolventi .wp-block-post-featured-image img { object-fit: contain; background: var(--wp--preset--color--blue-light); }
.sg-grid--4 { --sg-min: 220px; }
.sg-section--dark .sg-grid.wp-block-group { gap: 20px; }
.sg-columns .wp-block-column > p:first-child { color: var(--sg-muted); font-size: 15px; letter-spacing: .02em; }
.sg-home-tiles .sg-tile.wp-block-group > * { justify-self: stretch; text-align: left; width: 100%; }
.sg-home-tiles .sg-tile.wp-block-group > .wp-block-image { justify-content: center; }
