/* ===== MOBILE MENU v26 ===== */

/* --- Top bar --- */
.m26-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 10001;
    background: #008ac0;
    padding: 0 16px;
    height: 60px;
    align-items: center;
    justify-content: space-between;
}

.m26-bar-left {
    display: flex;
    align-items: center;
}

.m26-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger */
.m26-hamburger {
    width: 26px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.m26-hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.35s ease;
    left: 0;
}

.m26-hamburger span:nth-child(1) { top: 0; }
.m26-hamburger span:nth-child(2) { top: 8px; }
.m26-hamburger span:nth-child(3) { top: 16px; }

.m26-hamburger.m26-active span:nth-child(1) {
    top: 8px;
    transform: rotate(-45deg);
}
.m26-hamburger.m26-active span:nth-child(2) {
    opacity: 0;
}
.m26-hamburger.m26-active span:nth-child(3) {
    top: 8px;
    transform: rotate(45deg);
}

/* Logo - na stred baru */
.m26-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.m26-logo img {
    height: 48px;
    display: block;
}

/* Bar icons */
.m26-bar-right a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    line-height: 1;
}

/* --- Opona (overlay) --- */
.m26-opona {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.93);
    z-index: 10002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.m26-opona.m26-open {
    opacity: 1;
    visibility: visible;
}

/* Blur na stranku - plynuly */
.novyobal {
    transition: filter 0.35s ease;
}

body.m26-menu-open {
    overflow: hidden;
}

body.m26-menu-open .novyobal {
    filter: blur(8px);
    pointer-events: none;
}

/* --- Opona header: X vlavo + search vedla --- */
.m26-opona-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.m26-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    font-weight: 200;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Search - biele pozadie */
.m26-search {
    flex: 1;
    position: relative;
}

.m26-search form {
    display: flex;
    align-items: center;
}

.m26-search input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 16px;
    font-weight: 400;
    outline: none;
}

.m26-search input::placeholder {
    color: #999;
}

.m26-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
}

/* --- Menu nav --- */
.m26-nav {
    padding-top: 4px;
}

.m26-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top-level items */
.m26-nav > ul > li > a {
    display: inline;
    padding: 2px 0;
    color: #fff !important;
    font-size: 18px;
    font-weight: 300;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    line-height: 1.6;
}

/* Arrow pre items s podmenu - hned vedla textu */
.m26-arrow {
    font-size: 9px;
    transition: transform 0.3s ease;
    opacity: 0.35;
    margin-left: 5px;
}

.m26-expanded > a .m26-arrow {
    transform: rotate(180deg);
    opacity: 0.6;
}

/* Sub-menu - override vsetko na biele */
.m26-nav .sub-menu {
    display: none;
    padding-left: 14px;
    padding-bottom: 2px;
}

/* sub-menu zobrazenie riesi jQuery slideToggle */

.m26-nav .sub-menu a,
.m26-nav .sub-menu li a {
    display: block;
    padding: 1px 0;
    color: rgba(255,255,255,0.6) !important;
    font-size: 15px;
    font-weight: 300;
    text-decoration: none !important;
}

.m26-nav .sub-menu li a:hover,
.m26-nav .sub-menu li a:active {
    color: #fff !important;
}

/* --- 2 stlpce: lava 60% menu, prava 40% kurzy --- */
.m26-columns {
    display: flex;
    gap: 16px;
}

.m26-col-left {
    width: 60%;
    flex-shrink: 0;
}

.m26-col-right {
    width: 40%;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding-left: 16px;
}

.m26-kurzy-header {
    background: #008ac0;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1.3;
    text-decoration: none !important;
}

.m26-col-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.m26-col-right li {
    line-height: 1.4;
}

.m26-col-right li a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px;
    font-weight: 300;
    text-decoration: none !important;
    padding: 1px 0;
    display: block;
}

.m26-col-right li a:hover,
.m26-col-right li a:active {
    color: #fff !important;
}

.m26-col-right .sub-menu {
    display: none;
}

/* --- Posledne navstivene kurzy --- */
.m26-posledne {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.m26-posledne-header {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 6px;
}

.m26-posledne-header i {
    color: #e74c3c;
    margin-right: 3px;
}

.m26-posledne a {
    display: block;
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px;
    font-weight: 300;
    text-decoration: none !important;
    padding: 2px 0;
}

.m26-posledne a:hover {
    color: #fff !important;
}

.m26-posledne-prazdne {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
}

/* --- Kontakty - 3 buttony --- */
.m26-kontakty {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.m26-kontakt-btn {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.m26-kontakt-btn i {
    color: #008ac0;
    font-size: 18px;
    margin-bottom: 2px;
}

.m26-kontakt-btn strong {
    color: #008ac0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.m26-kontakt-btn span {
    color: #666;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
}

/* --- Kurzy trigger button v bare --- */
.m26-kurzy-trigger {
    color: #fff !important;
    font-size: 20px;
    text-decoration: none !important;
    margin-left: 16px;
    line-height: 1;
}

/* --- Biely závoj - ponuka kurzov --- */
.m26-kurzy-opona {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.m26-kurzy-opona.m26-open {
    opacity: 1;
    visibility: visible;
}

body.m26-kurzy-open {
    overflow: hidden;
}

body.m26-kurzy-open .novyobal {
    filter: blur(8px);
    pointer-events: none;
}

/* Top: X + nadpis */
.m26-kurzy-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.m26-kurzy-close {
    background: none;
    border: none;
    color: #333;
    font-size: 36px;
    font-weight: 200;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m26-kurzy-nadpis {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Kategória */
.m26-kat {
    margin-top: 6px;
}

.m26-kat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    cursor: pointer;
    background: #f8f8f8;
    border-radius: 6px;
}

.m26-kat-nazov {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.m26-kat-arrow {
    font-size: 9px;
    color: #999;
    transition: transform 0.3s ease;
}

.m26-kat.m26-kat-open .m26-kat-arrow {
    transform: rotate(180deg);
}

/* Podkategórie - 2 stĺpce */
.m26-kat-podkategorie {
    display: none;
    column-count: 2;
    column-gap: 12px;
    padding: 6px 8px 10px;
}

.m26-kat.m26-kat-open .m26-kat-podkategorie {
    display: block;
}

.m26-kat-podkategorie a {
    display: block;
    padding: 3px 0;
    color: #444 !important;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none !important;
    break-inside: avoid;
    line-height: 1.4;
}

.m26-kat-podkategorie a:hover,
.m26-kat-podkategorie a:active {
    color: #008ac0 !important;
}

/* --- Responsive visibility --- */
@media (max-width: 991px) {
    .m26-bar {
        display: flex;
    }
}
