/*
Theme Name: Zochova
Theme URI: https://zochova.sk
Author: Blažka & Bago
Author URI: https://zochova.sk
Description: Responzívna WordPress téma pre SPŠE Zochova 9, Bratislava. Vytvorená priamo zo statického HTML/CSS návrhu školy.
Version: 2.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: zochova
*/

/* -------------------------------------------------------
   1. PREMENNÉ A RESET
------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    --main-color: #fff;

    --primary-color: #0d8b94;
    --primary-color-dark1: #16b2bd;
    --primary-color-dark2: #0d6970;

    --secondary-color: #394990;
    --secondary-color-light: #7f8fe5;

    --text-color: #2f2e34;

    --btn-radius: 15px;
    --img-radius: 80px;

    --small-decor-radius: 3px;
    --medium-decor-radius: 6px;
    --big-decor-radius: 40px;

    --flag--radius: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100%;
    font-family: "Abhaya Libre", serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6rem;
    overflow-x: hidden;
    text-align: left;
    background: var(--main-color);
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    z-index: 100000;
    background: var(--main-color);
    padding: 10px 15px;
}

h1, h2, .default, .flag-bottom {
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: start;
}

h1 .bordertext, h2 .bordertext, .default .bordertext {
    color: #0d8b94;
    font-size: 2.8rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 1px;
}

.blue { color: var(--primary-color); }
.purple { color: var(--secondary-color); }

.big {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.medium {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}

p { margin-bottom: 1rem; line-height: 1.3rem; }

ul, li, li a {
    list-style: none;
    display: block;
    margin: 0;
    padding: 0;
    font-weight: 700;
}

li { transition: all 200ms; }

a {
    transition: all 200ms;
    text-decoration: none;
    color: var(--text-color);
    padding: 0;
}

b, strong {
    font-weight: 700;
    font-size: 1.1em;
    color: #0d8b94;
}

/* -------------------------------------------------------
   2. TLAČIDLO
------------------------------------------------------- */
.btn, .wp-block-button__link {
    color: var(--main-color);
    background-color: var(--secondary-color);
    font-family: inherit;
    font-size: 1.2rem;
    border-radius: 0;
    border: none;
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    padding: 5px 10px;
    cursor: pointer;
}

.btn:hover { background-color: var(--primary-color-dark1); transition: all 0.3s ease; }
.btn:active { background-color: var(--primary-color-dark2); }

.gray-img {
    object-fit: cover;
    filter: grayscale(100%) brightness(35%);
}

/* -------------------------------------------------------
   3. NADPIS S PRUŽNÍKOM ("title")
------------------------------------------------------- */
.title { position: relative; display: flex; }

.title .decor {
    width: 20px;
    min-width: 20px;
    height: 96px;
    border-top-left-radius: 7px;
    background-color: var(--secondary-color);
    transition: all 200ms;
}

.title h1, .title h2 { margin-left: 20px; margin-top: 8px; line-height: 1.2; }

.title-small { position: relative; display: flex; align-items: center; }
.title-small:hover .decor { margin-right: 10px; }

.title-small .decor {
    width: 15px;
    min-width: 15px;
    height: 48px;
    border-top-left-radius: 7px;
    background-color: var(--secondary-color);
    transition: all 200ms;
}

.title-small h2 { margin-left: 10px; margin-top: 8px; }

.breaking-line {
    margin: 20px 0;
    height: 1px;
    width: 100%;
    background-color: var(--secondary-color-light);
}

/* -------------------------------------------------------
   4. ŠTUDIJNÉ ODBORY
------------------------------------------------------- */
.study-line { margin-top: 80px; display: flex; flex-wrap: wrap; justify-content: center; }
.study-line .study-col { display: flex; justify-content: center; padding: 15px; flex: 1 1 33.333%; max-width: 33.333%; box-sizing: border-box; }

.study-line .middle-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.study-field { height: 100%; display: inline-flex; align-items: center; }
.study-field h3 { position: relative; font-size: 10rem; color: #888; line-height: 1; }

.study-field .right-side {
    position: relative;
    margin-left: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.study-field .right-side .top { display: flex; }

.study-field .right-side .top .small-decor {
    height: 30px;
    width: 3px;
    align-self: flex-end;
    border-radius: var(--small-decor-radius);
    background-color: var(--secondary-color-light);
    transition: all 200ms;
}

.study-field:hover .right-side .top .small-decor { margin-bottom: 15px; }

.study-field .right-side .top p {
    line-height: 1.4rem;
    font-size: 1rem;
    margin-left: 10px;
    font-family: 'IBM Plex Serif', serif;
}

.study-field .right-side .bottom { width: 100%; }

.study-field .btn { position: relative; z-index: 1; border-top-left-radius: 15px; margin-left: 15px; }

.study-field .line-decor {
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 15px;
    background-color: var(--primary-color);
}

/* -------------------------------------------------------
   5. VLAJKA (flag)
------------------------------------------------------- */
.flag .flag-top {
    font-family: 'Poppins', sans-serif;
    position: absolute;
    top: -30px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
}

.flag .flag-bottom {
    color: var(--main-color);
    background-color: var(--primary-color);
    margin: 0;
    padding: 5px 2.5rem;
    font-size: 4rem;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* -------------------------------------------------------
   6. SOCIÁLNE IKONY
------------------------------------------------------- */
.social-icons {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
}

.social-icons a {
    text-align: left;
    padding: 8px 16px;
    background: var(--main-color);
    border: 2px solid var(--primary-color);
    transform: translateX(20px);
    transition: transform 300ms ease;
    font-size: 20px;
    margin-top: -2px;
    color: var(--primary-color);
}

.social-icons a:first-of-type { border-top-left-radius: var(--medium-decor-radius); }
.social-icons a:last-of-type { border-bottom-left-radius: var(--medium-decor-radius); }
.social-icons a:hover { transform: translateX(0); background-color: var(--primary-color); color: var(--main-color); }

/* -------------------------------------------------------
   7. ZOZNAM OZNAMOV
------------------------------------------------------- */
.news-list .small-decor {
    height: 5px;
    width: 70px;
    margin-bottom: 15px;
    background-color: var(--secondary-color);
    border-top-left-radius: var(--small-decor-radius);
}

.news-list-ul { margin-top: 20px; }
.news-list-ul li a { color: var(--text-color); padding: 0; display: block; font-size: 1.4rem; }
.news-list-ul li a:hover b, .news-list-ul li a:focus b { color: var(--secondary-color-light); }
.news-list-ul li .news-excerpt { font-weight: 400; font-size: 1.3rem; color: var(--text-color); }

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.news-pagination a, .news-pagination span {
    display: inline-block;
    padding: 4px 12px;
    color: var(--primary-color-dark2);
    font-weight: 700;
}

.news-pagination .current { background-color: var(--primary-color-dark2); color: var(--main-color); }

/* -------------------------------------------------------
   8. FLOATING BOX
------------------------------------------------------- */
.floating-box {
    border: 1px solid var(--secondary-color-light);
    background-color: var(--main-color);
    padding: 30px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.35rem;
}

/* -------------------------------------------------------
   9. HLAVIČKA
------------------------------------------------------- */
.site-header {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 50px;
    padding: 25px;
    width: 100%;
}

.site-header .left-side { flex: 0 0 90px; width: 90px; display: flex; align-items: center; justify-content: center; }
.site-header .left-side a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.site-header .left-side img { display: block; width: 100%; height: 100%; max-height: 90px; object-fit: contain; }

.site-header .medium-decor {
    flex: 0 0 4px;
    width: 4px;
    align-self: stretch;
    background-color: var(--secondary-color-light);
    border-top-left-radius: var(--medium-decor-radius);
}

.site-header .right-side { position: relative; flex: 1 1 auto; min-width: 0; }

.site-header .right-side .default { line-height: 3.3rem; }

.site-header .right-side .default::before {
    float: left;
    content: 'Stredná priemyselná škola elektrotechnická,\00a0\A';
    content: var(--zo-name, '') '\00a0\A';
}

.site-header .right-side .default .bordertext { font-size: 3.5rem; }

.site-header__contact {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 400;
}
.site-header__contact a { color: inherit; }
.site-header__contact a.nowrap { white-space: nowrap; display: inline-block; }

/* -------------------------------------------------------
   10. BANNER
------------------------------------------------------- */
.banner { position: relative; width: 100%; min-height: 220px; overflow: hidden; }
.banner-small { height: calc(100vw / 6.96); min-height: 120px; }

.banner img {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

/* Podstránky: nízky banner – obrázok vždy presne vyplní svoj rámik (bez min-height z titulky) */
.banner.banner-small img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 0; }

.banner .floating-box {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    left: 0;
    top: -8px;
    width: auto;
    border-bottom-right-radius: var(--btn-radius);
    padding: 20px 20px 40px 20px;
    background: linear-gradient(135deg, rgb(57, 73, 144) 0%, rgb(127, 143, 229) 100%);
}

.banner .small-decor {
    background-color: var(--main-color);
    height: 8px;
    width: 200px;
    border-bottom-right-radius: var(--medium-decor-radius);
}

.banner .default { text-align: end; }
.banner .social-icons { display: none; z-index: 4; top: 140px; }

/* -------------------------------------------------------
   10b. NAVIGÁCIA (MENU)
------------------------------------------------------- */
.site-nav {
    position: relative;
    z-index: 6;
    background-color: #2f2e34;
    width: 100%;
}

.site-nav__bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
}

/* Hamburger tlačidlo – viditeľné len na mobile/tablete */
.site-nav__toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 5px;
    margin-left: auto;
    color: var(--main-color);
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
}

.site-nav__burger {
    position: relative;
    display: block;
    width: 26px;
    height: 18px;
}

.site-nav__burger span,
.site-nav__burger span:after,
.site-nav__burger span:before {
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition: all 0.3s;
    backface-visibility: hidden;
    border-radius: 2px;
}

.site-nav__burger span { position: relative; display: block; top: 8px; }
.site-nav__burger span:after, .site-nav__burger span:before { content: ""; position: absolute; left: 0; top: -8px; }
.site-nav__burger span:after { top: 8px; }

.site-nav__toggle[aria-expanded="true"] .site-nav__burger span { background-color: transparent; }
.site-nav__toggle[aria-expanded="true"] .site-nav__burger span:before { transform: rotate(45deg) translate(5px, 5px); }
.site-nav__toggle[aria-expanded="true"] .site-nav__burger span:after { transform: rotate(-45deg) translate(6px, -7px); }

/* Menu – predvolene (desktop): normálne rozbalené, vodorovné */
.primary-menu {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    color: var(--main-color);
    font-weight: 500;
    letter-spacing: .5px;
    font-size: 1rem;
}

.primary-menu li { position: relative; }
.primary-menu > li > a { display: block; padding: 16px 18px; color: var(--main-color); }

.primary-menu li a:hover, .primary-menu li a:focus,
.primary-menu li.current-menu-item > a {
    background: var(--primary-color);
    color: var(--main-color);
}

.submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 48px;
    background: none;
    border: none;
    color: var(--main-color);
    cursor: pointer;
}

.submenu-toggle i { transition: transform 200ms; pointer-events: none; }
.menu-item-has-children.is-open > .submenu-toggle i { transform: rotate(180deg); }

/* Submenu – dropdown na desktope (hover/focus), akordeón na mobile */
.sub-menu {
    display: none;
    background: rgba(0, 0, 0, 0.92);
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--main-color);
}

.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu li.is-open > .sub-menu { display: block; }
.primary-menu li:focus-within > .sub-menu { display: block; }

@media only screen and (min-width: 901px) {
    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 230px;
        z-index: 10;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    }
    .sub-menu .sub-menu { top: 0; left: 100%; }
    .sub-menu li a { padding: 12px 18px; white-space: nowrap; }
    .sub-menu li + li { border-top: 1px solid rgba(255, 255, 255, .1); }

    /* Poistka: posledné položky menu (blízko pravého okraja) rozbaľujú podmenu doľava */
    .primary-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
    .primary-menu > li:nth-last-child(-n+2) > .sub-menu .sub-menu { left: auto; right: 100%; }
}

/* -------------------------------------------------------
   11. DVOJSTĹPCOVÁ SEKCIA
------------------------------------------------------- */
.two-columns {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 50px;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.two-columns > .img-side,
.two-columns > .blank-side { flex: 1 1 0; min-width: 0; }

.two-columns .big-decor {
    position: absolute;
    z-index: 0;
    top: 0;
    width: 150px;
    max-width: 15%;
    background-color: var(--primary-color);
    pointer-events: none;
}

.two-columns .left-up { left: 10px; height: 580px; max-height: 90%; border-bottom-left-radius: var(--big-decor-radius); }
.two-columns .right-down { right: 10px; height: 100%; border-top-right-radius: var(--big-decor-radius); }

.two-columns .img-side { margin: 30px; position: relative; z-index: 1; }
.two-columns .img-side .title { position: relative; z-index: 1; margin-top: 80px; margin-left: 10vw; }
.two-columns .img-side.top-left .title { margin-top: 20px; }

.two-columns .img-side .flag-img { z-index: 1; position: relative; width: 100%; height: auto; }

.two-columns .img-side .flag-img img {
    position: relative;
    width: 100%;
    min-height: 370px;
    object-fit: cover;
    margin-top: 40px;
    border-top-left-radius: var(--img-radius);
}

.two-columns .img-side .flag-img .flag {
    position: absolute;
    display: flex;
    justify-content: center;
    bottom: 34px;
    transition: all 200ms;
}

.two-columns .img-side .flag-img .flag .flag-bottom { border-top-left-radius: var(--flag--radius); }
.two-columns .img-side .flag-img .right { right: -25px; }
.two-columns .img-side .flag-img:hover .right { right: -35px; }
.two-columns .img-side .flag-img .left { left: -25px; }
.two-columns .img-side .flag-img:hover .left { left: -35px; }

.two-columns .blank-side {
    position: relative;
    margin: 30px;
    margin-top: 80px;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* -------------------------------------------------------
   12. TEXTOVÝ RIADOK (CMS obsah stránok)
------------------------------------------------------- */
.text-line { padding: 30px 60px; }
.text-line p { max-width: 900px; }
.page-content { padding: 40px 60px; max-width: 1100px; margin: 0 auto; font-size: 1.4rem; line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.page-content p { margin-bottom: 1.2rem; line-height: 1.7; }
.page-content h2, .page-content h3 { color: var(--secondary-color); font-family: 'Poppins', sans-serif; line-height: 1.3; }
.page-content h2 { margin-top: 2rem; }
.page-content h3 { margin-top: 1.5rem; }
.page-content ul { list-style: disc outside; }
.page-content ol { list-style: decimal outside; }
.page-content ul, .page-content ol { margin: 0 0 1.2rem 1.6rem; }
.page-content ul li { list-style: disc outside; }
.page-content ol li { list-style: decimal outside; }
.page-content ul li, .page-content ol li { display: list-item; font-weight: 400; margin-bottom: .4rem; line-height: 1.7; }
.page-content img { border-top-left-radius: var(--medium-decor-radius); }
.page-content a { color: var(--primary-color); text-decoration: underline; }
/* Odkazy v zoznamoch (ul/ol) sú súčasťou vety – globálne `li a { display:block; font-weight:700 }`
   z pôvodného návrhu je určené len pre menu a karty, nie pre text obsahu. */
.page-content ul:not(.news-list-ul) li a:not(.btn):not(.wp-block-button__link),
.page-content ol li a:not(.btn):not(.wp-block-button__link),
.comment-list li a { display: inline; font-weight: inherit; }
.page-content a.btn { color: var(--main-color); text-decoration: none; }
.page-content a.btn:hover, .page-content a.btn:focus { color: var(--main-color); text-decoration: none; }

/* WP blokové tlačidlá (Buttons blok) – nesmú zdediť podčiarknutý štýl bežného odkazu */
.page-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.page-content .wp-block-button__link {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: .667em 1.333em;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background-color: var(--secondary-color);
}
.page-content .wp-block-button__link:hover,
.page-content .wp-block-button__link:focus {
    text-decoration: none;
    opacity: .88;
    color: #fff;
}
.page-content .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid currentColor;
    color: var(--secondary-color);
}
.page-content .wp-block-button.is-style-squared .wp-block-button__link { border-radius: 0; }

/* Tabuľky – vodorovné posúvanie namiesto vtesnávania textu do úzkych stĺpcov na mobile */
.page-content table {
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.page-content table th,
.page-content table td {
    border: 1px solid #d8d8dc;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.page-content table th {
    background: var(--secondary-color);
    color: var(--main-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

@media only screen and (max-width: 765px) {
    .page-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

@media only screen and (min-width: 766px) {
    .page-content table { display: table !important; width: 100% !important; white-space: normal; table-layout: auto; }
    .page-content .wp-block-table.has-fixed-layout table { table-layout: fixed; }
}
.page-content table tr:nth-child(even) td { background: #f7f7f9; }
.page-title { max-width: 1100px; margin: 0 auto; padding: 40px 60px 0; }

/* Hlavný obrázok/logo projektu – obmedzená výška, nič sa neorezáva (dôležité pri logách) */
.project-hero-image {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f4f6;
    border-radius: var(--medium-decor-radius);
}
.project-hero-image img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* -------------------------------------------------------
   12b. PROJEKTY (titulná stránka)
------------------------------------------------------- */
.projects-line { padding: 40px 0 80px; }

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 0 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
}

.project-card__img {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--medium-decor-radius);
    background: #f2f2f4;
    margin-bottom: 15px;
    transition: box-shadow 200ms;
}

.project-card__img img { width: 100%; height: 100%; object-fit: cover; }

.project-card:hover .project-card__img,
.project-card:focus .project-card__img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.project-card__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    transition: color 200ms;
}

.project-card:hover .project-card__title,
.project-card:focus .project-card__title {
    color: var(--primary-color);
}

/* -------------------------------------------------------
   13. PÄTIČKA
------------------------------------------------------- */
.site-footer {
    display: block;
    margin-top: 90px;
}

.site-footer__bg {
    background-size: cover;
    background-position: center;
    background-image: var(--zo-footer-bg, none);
    height: auto;
    width: 100%;
    padding: 60px 40px 40px;
}

.site-footer__row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.site-footer__col { flex: 1 1 260px; }

.site-footer__nadpis {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-bottom: 1px solid var(--secondary-color);
    width: fit-content;
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 10px;
}

.site-footer__textik { color: #cfcfd2; font-family: 'IBM Plex Serif', serif; line-height: 1.8rem; font-size: 1rem; }
.site-footer__textik a { color: var(--main-color); }

hr.paticka { opacity: 1; height: 1px; width: 50%; background-color: var(--secondary-color-light); border: none; margin: 50px auto; }

.site-footer__partners-viewport { width: 100%; overflow: hidden; }
.site-footer__partners-track { display: flex; align-items: center; justify-content: center; width: 100%; }
.site-footer__partners-track [aria-hidden="true"] { display: none; }

.site-footer__partners {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.site-footer__partners a { display: flex; align-items: center; justify-content: center; }
.site-footer__partners img { width: 140px; filter: grayscale(1) invert(1); }

.site-footer__copy { background-color: #2f2e34; color: var(--main-color); padding: 20px; text-align: center; }
.site-footer__copy a { color: var(--secondary-color-light); }

/* -------------------------------------------------------
   14. RESPONZÍVNE ÚPRAVY
------------------------------------------------------- */
@media only screen and (max-width: 1140px) {
    .study-line { padding: 0 30px; }
}

@media only screen and (max-width: 900px) {
    .study-line .study-col { flex-basis: 50%; max-width: 50%; }
}

@media only screen and (max-width: 600px) {
    .study-line .study-col { flex-basis: 100%; max-width: 100%; }
}

@media only screen and (max-width: 1040px) {
    .two-columns, .two-columns.reverse { display: flex; flex-direction: column; gap: 0; }
    .two-columns.reverse { flex-direction: column-reverse; }
    .two-columns .img-side .title { margin-left: 50px; }
    .two-columns .img-side { margin-top: 0; width: auto; margin-bottom: 0; }
    .two-columns .blank-side { margin-top: 15px; }
}

@media only screen and (max-width: 950px) {
    .site-header { gap: 25px; }
}

@media only screen and (max-width: 900px) {
    .site-nav__bar { padding: 0 20px; flex-wrap: wrap; }
    .site-nav__toggle { display: flex; }

    .primary-menu {
        display: none;
        flex-direction: column;
        flex-basis: 100%;
        width: 100%;
        font-size: 1.05rem;
    }

    .site-nav.is-open .primary-menu { display: flex; }

    .primary-menu li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
    .primary-menu > li > a { padding: 14px 20px; }

    .submenu-toggle { display: flex; }

    .sub-menu {
        display: none;
        padding-left: 15px;
    }

    .primary-menu li:hover > .sub-menu { display: none; }
    .primary-menu li.is-open > .sub-menu { display: block; }

    .sub-menu li a { padding: 12px 20px; }
}

@media only screen and (max-width: 860px) {
    .banner .floating-box { display: none; }
    .study-line { margin: 40px 0; }
    .site-footer .social-icons { display: none; }
    .two-columns .big-decor { display: none; }
}

@media only screen and (max-width: 765px) {
    .site-header { gap: 20px; }
    .site-header .left-side { flex-basis: 70px; width: 70px; }
    .site-header .right-side .default { line-height: 2.4rem; }
    .site-header .right-side .default::before {
        content: 'SPŠE\00a0';
        content: var(--zo-short, 'SPŠE') '\00a0';
        font-size: 1.9rem;
    }
    .site-header .right-side .default .bordertext { font-size: 2.4rem; }
    .site-header .social-icons { display: none; }
    .banner-small { min-height: 130px; }
    .banner .social-icons { display: flex; right: -40px; top: 12px; transform: none; }
    .banner .social-icons a { padding: 6px 14px; font-size: 17px; transform: translateX(0); }
    .page-content, .page-title, .text-line { padding-left: 30px; padding-right: 30px; }
    .site-header__contact { display: none; }
    .site-footer { margin-top: 50px; }

    /* Partneri v pätičke – na mobile plynulo sa posúvajúci pás (marquee) namiesto zalamovania */
    .site-footer__partners-track {
        width: max-content;
        justify-content: flex-start;
        animation: zochova-marquee 22s linear infinite;
    }
    .site-footer__partners-track:hover,
    .site-footer__partners-track:focus-within {
        animation-play-state: paused;
    }
    .site-footer__partners-track .site-footer__partners {
        flex-wrap: nowrap;
        gap: 40px;
        padding-right: 40px;
    }
    .site-footer__partners-track [aria-hidden="true"] { display: flex; }
}

@keyframes zochova-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


@media only screen and (max-width: 500px) {
    .site-header { gap: 15px; }
    .site-header .left-side { flex-basis: 50px; width: 50px; }
    .site-header .medium-decor { display: none; }
    .two-columns { padding: 0; }
    .two-columns .img-side .title { margin-left: 0; }
    .two-columns .blank-side { margin: 0 30px 30px 30px; }
    .text-line, .page-content { padding: 30px; }
    .study-line .study-col { padding: 10px 20px; }
    .study-field { flex-wrap: wrap; }
    .study-field h3 { font-size: 5.5rem; }
    .study-field .right-side .top p { font-size: 0.95rem; }
}

/* -------------------------------------------------------
   99. PLÁVAJÚCE TLAČIDLO "SPÄŤ HORE" (podstránky)
------------------------------------------------------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: var(--main-color);
    background-color: var(--secondary-color);
    border: none;
    border-radius: var(--btn-radius) 0 0 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 250ms ease, transform 250ms ease, visibility 250ms, background-color 300ms ease;
}

.to-top svg { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover, .to-top:focus-visible { background-color: var(--primary-color-dark1); }
.to-top:active { background-color: var(--primary-color-dark2); }
.to-top:focus-visible { outline: 3px solid var(--secondary-color-light); outline-offset: 3px; }
.site-wrapper:focus { outline: none; }

@media only screen and (max-width: 765px) {
    .to-top { right: 14px; bottom: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .to-top { transition: none; }
}
