/*
Theme Name: Drapak
Theme URI: https://mymon.name/drapak
Author: Donovalský drapák
Author URI: https://mymon.name
Description: Custom tema s menu, CTA a dvojitym footerom.
Version: 1.0
Text Domain: drapak
Tested up to: 6.9
Requires PHP: 8.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, featured-images, full-width-template, block-styles

Copyright (C) 2026 Tvoje Meno alebo Firma
Donovalský drapák is distributed under the terms of the GNU GPL
*/

:root {
    /* Farby podľa tvojho zadania */
    --color-white: #FFFFFF;
    --color-blue: #002755;
    --color-orange: #FF9700;
    --color-black: #000000;
    --color-gray-light: #BFC9D3;
    --color-gray-dark: #8D9FB1;

}

body {
    font-family: "gotham", sans-serif;
    font-display: swap;
}

h1, h2, h3 {
    font-family: "zuume-cut", sans-serif;
    letter-spacing: -0.02em;
    color: #002755;
}

h1 {
    font-weight: 700;
    font-size: 46px;
    line-height: 48px;
    letter-spacing: 0px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 24px;
}
h2 {
    font-weight: 700;
    font-size: 38px;
    line-height: 40px;
    letter-spacing: 0px;
}
h3 {
    font-weight: bold;
    font-size: 38px;
    line-height: 40px;
    letter-spacing: 0px;
}

.text {
    font-family: Gotham;
    font-weight: 325;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    margin-bottom: 30px;
}

.table-title {
    font-family: Gotham;
    font-weight: bold;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: -2%;
    margin-bottom: 20px;
}
table.data, table.info, table.program {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    word-wrap: break-word;
}
table.info.detail {
    table-layout: fixed;
}
table.data.fee {
    margin-bottom: 20px;
}
table.data td, table.info td, table.program td {
    font-family: Gotham;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -2%;
    padding: 8px;
    border-top: 1px solid #BFC9D3;
}

table.data tr.header td {
    font-weight: bold;
    padding: 8px;
    background-color: #F2F4F6;
    border-top: none;
}
table.data td.header {
    font-weight: bold;
}
table.data td.extra {
    font-weight: bold;
    color: #FF9700;
}
table tr:last-child td {
    padding-bottom: 20px;
    border-bottom: none;
}

table.info td, table.program td {
    border: 2px solid #ffffff;
    background-color: #F2F4F6;
}
table.info td.header, table.program td.header {
    background-color: #D9DFE5;
    font-weight: bold;
}
table.program td.green { background-color: #1FC16B1A; }
table.program td.yellow { background-color: #FFDB4333; }
table.program td.orange { background-color: #FF97004D; }

table.program tr:last-child td {
    padding-bottom: 8px;
}
table.program td.header { min-width: 120px; }

table.program:last-of-type {
    margin-bottom: 50px;
}

table.info tr:last-child td {
    padding-bottom: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-family: Gotham;
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -2%;
    text-align: center;
    vertical-align: middle;
    padding: 12px 0;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    justify-content: center;
}
.btn-gallery {
    padding: 8px 0 6px;
    gap: 0;
    position: relative;
}
.btn-download {
    color: #ffffff;
    background-color: #002755;
    display: inline-flex;
}
.btn-reg {
    color: #ffffff;
    background-color: #FF9700;
}
.btn-go {
    color: #ffffff;
    background-color: #FF9700;
}
.btn-more {
    color: #ffffff;
    background-color: #002755;
}
.btn-explore {
    color: #ffffff;
    background-color: #002755;
}
.btn-close {
    color: #3B4957;
    background-color: #F2F4F6;
}
.btn-submit {
    color: #FFFFFF;
    background-color: #FF9700;
}
.btn-results {
    color: #FFFFFF;
    background-color: #002755;
}
.btn-gallery {
    color: #FFFFFF;
    background-color: #FF9700;
}
.btn-gallery-active {
    color: #FFFFFF;
    background-color: #002755;
}
.btn-gallery-active, .btn-gallery-active a {
    pointer-events: none;
    cursor: default;
}
.years-wrapper {
    margin-top: 24px;
}

.btn-download:hover {
    background-color: #00489C;
}
.btn-reg:hover {
    background-color: #FFBA55;
}
.btn-go:hover {
    background-color: #FFBA55;
}
.btn-more:hover {
    background-color: #00489C;
}
.btn-explore:hover {
    background-color: #00489C;
}
.btn-close:hover {
    background-color: #BFC9D3;
}
.btn-submit:hover {
    background-color: #FFBA55;
}
.btn-results:hover {
    background-color: #00489C;
}
.btn-gallery:hover {
    background-color: #FFBA55;
}
.btn-gallery:hover {
    background-color: #FFBA55;
}
.btn-gallery.btn-galler-active:hover {
    background-color: #002755;
}

/********************
*     Hero stuff    *
*********************/

.hero-section .container {
    padding-top: 35px;
    display: flex;
    flex-direction: column;
}
.hero-section.race .container {
    gap: 16px;
}
.grid-item {
    width: auto;
}

.hero-section.video {
    position: relative;
    width: 100%;
    height: calc(85vh - 80px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  /* min-height: calc(100vh - 80px); */
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-video.video-loaded {
  opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background:
        url('assets/img/overlay-topo-576.webp') no-repeat bottom center,
        #00275599;
    z-index: 2;
}

@media (min-width: 576px) {
    .hero-overlay  {
        background: url('assets/img/overlay-topo-768.webp') no-repeat bottom center,
         #00275599;
    }
}
@media (min-width: 768px) {
    .hero-overlay  {
        background: url('assets/img/overlay-topo-992.webp') no-repeat bottom center,
        #00275599;
    }
}
@media (min-width: 992px) {
    .hero-overlay  {
        background-repeat: round no-repeat;
        background-position: bottom center;
        background-image: url('assets/img/overlay-topo-1440.webp');
        background-color:  #00275599;
    }
}





.hero-section.video .hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.hero-section.video .hero-content .date {
    font-family: "gotham", sans-serif;
    font-weight:bold;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -2%;
    text-align: center;
    color: #F2F4F6;
}
.hero-section.video .hero-content .header {
    font-family: "zuume-cut", sans-serif;
    font-weight: bold;
    font-size: 26px;
    line-height: 26px;
    letter-spacing: 0px;
    text-align: center;
    color: #FF9700;
}
.hero-section.video .hero-content .title {
    font-family: "zuume-cut", sans-serif;
    font-weight:bold;
    font-size: 56px;
    line-height: 58px;
    letter-spacing: 0px;
    text-align: center;
    color: #ffffff;
}
.hero-section.video .hero-content .desc {
    font-family: "gotham", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
    color: #ffffff;
}
.hero-section.video .hero-content .btn-reg { width: 150px; }

.homepage .tile-wrapper {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #0027551A;
    background-color: #ffffff;
    margin-bottom: 30px;
}
.homepage .tile-wrapper .content {
    padding: 0 24px;
}

.homepage .tile-wrapper .title-badge {
    position: absolute;
    left: 22px;
    top: 22px;
}
.homepage .tile-wrapper h2 {
    margin-bottom: 20px;
}
.homepage .btn-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 20px;
}
.homepage .text-wrapper {
    width: auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    text-align: center;
}
.homepage .text-wrapper .logo {
    width: 170px;
}
.homepage .text-wrapper h2 {
    font-weight: bold;
    font-size: 46px;
    line-height: 48px;
    letter-spacing: 0px;
    text-align: center;
}
.homepage .text-wrapper .btn-download {
    width: auto;
    padding: 12px;
}
.homepage-info {
    padding: 20px 24px 50px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    color: #ffffff;
    text-align: center;
}
.homepage-info .container {
    gap: 50px;
}
.homepage-info h3 {
    font-weight: bold;
    font-size: 38px;
    line-height: 40px;
    letter-spacing: 0px;
    text-align: center;
    color: #FF9700;
    margin-bottom: 30px;
}
.homepage-info .btn-go {
    margin-top: 32px;
    width: auto;
    padding: 12px;
}
.homepage-partners {
    text-align: center;
    margin-bottom: 80px;
}
.logo-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.logo-container .grid-item {
    background: #FFFFFF;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #0027551A;
    box-shadow: 0px 2px 6px 2px #00000026;
    box-shadow: 0px 1px 2px 0px #0000004D;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.logo-container .grid-item:hover {
    box-shadow: 0px 2px 3px 0px #0000004D;
    box-shadow: 0px 6px 10px 4px #00000026;
}


/******************
*     Buttons     *
*******************/


.btn-download::before, .btn-reg::before, .btn-explore::before, .btn-results::before, .btn-more::before, .btn-go::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.btn-download::before {
    background-image: url('assets/img/btn-icn-download.svg');
}
.btn-reg::before {
    background-image: url('assets/img/btn-icn-reg.svg');
}
.btn-more::before {
    background-image: url('assets/img/btn-icn-info.svg');
}
.btn-explore::before {
    background-image: url('assets/img/btn-icn-explore.svg');
}
.btn-results::before {
    background-image: url('assets/img/btn-icn-trophy.svg');
}
.btn-go::after {
    background-image: url('assets/img/btn-icn-arrow.svg');
}

.btn-reg, .btn-results, .btn-more, .btn-go, .logo-container .grid-item {
    position: relative;
    cursor: pointer;
}

.btn-reg .div-cover-link, .btn-results .div-cover-link, .btn-more .div-cover-link, .btn-go .div-cover-link, .grid-item .div-cover-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    background: transparent;
}

.title-badge {
    display: flex;
}
.title-badge__icon {
    width: 32px;
    background: #FF9700;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.title-badge__text {
    background: #002755;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 0 8px;
}

.info-section h3.run, .map-modal h3.run {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    margin-top: 20px;
}
.info-section h3.run::before, .map-modal h3.run::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url('assets/img/icon-run-40.svg') no-repeat center;
    vertical-align: middle;
    background-size: contain;
}
.info-section h3.bike, .map-modal h3.bike {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}
.info-section h3.bike::before, .map-modal h3.bike::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url('assets/img/icon-bike-40.svg') no-repeat center;
    vertical-align: middle;
    background-size: contain;
}
.info-section .sep {
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #3B4957;
}

.date-wrapper {
    background-color: #FF9700;
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 3px;
}
.date-wrapper .date {
    font-family: "zuume-cut";
    font-weight: bold;
    font-size: 38px;
    line-height: 40px;
    letter-spacing: 0px;
    text-align: center;
    margin-right: 15px;
}
.date-wrapper .day-wrapper {
    gap: 5px;
    display: flex;
    align-items: center;
}
.date-wrapper .month, .date-wrapper .day {
    font-family: Gotham;
    font-weight: bold;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0px;
    /* text-align: center; */
}
.info-section .info {
    font-family: Gotham;
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -2%;
    color: #5E748A;
    margin-bottom: 25px;
}
.detail-wrapper {
    display: flex;
    gap: 20px;
}
.detail-icon {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.detail-icon-info {
    background-color: #1FC16B1A;
}
.detail-icon-time {
    background-color: #FB37481A;
;
}
.detail-text {
    font-family: Gotham;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
}

.hero-section .img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 25px;
}
.hero-section .img-wrapper picture {
    height: 100%;
    display: flex;
}
.hero-section .img-wrapper picture img {
    object-fit: cover;
}

section.info-section:last-of-type {
    margin-bottom: 80px;
}

.page-info h1, .page-rules h1, .page-rules h1, .page-contact h1, .page-results h1, .page-gallery h1, .page-cookies h1, .page-privacy h1 {
    margin-top: 0;
    margin-bottom: 0;
}
.page-info h2, .page-rules h2, .page-contact h2, .page-cookies h2, .page-privacy h2 {
    margin-top: 0;
}
.page-results h2 {
    color: #FF9700;
    font-size: 48px;
    line-height: 48px;
    font-weight: bold;
}
.page-gallery h2 { width: 100%; margin-top: 10px; margin-bottom: 26px; }
.page-results .img-wrapper { margin-top: 10px; }
.page-results .text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 65px;
}
.page-info .tile-wrapper, .page-rules .tile-wrapper {
    margin-top: 35px;
    margin-bottom: 35px;
    gap: 16px;
    display: flex;
    flex-direction: column;
}
.page-rules .tile-wrapper {
    margin-top: 0;
}
.page-contact .title {
    font-family: Gotham;
    font-weight: bold;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: -2%;
    color: #FF9700;
    margin-bottom: 32px;
}
.page-contact h2 {
    margin-bottom: 8px;
}
.page-contact .detail {
    margin-bottom: 32px;
    font-size: 18px;
}
.page-contact .contact { font-weight: bold; color: #002755; }
.page-contact .grid-item { padding-bottom: 32px; }

.map-wrapper iframe {
    width: 100% !important;
    height: 400px;
    border: 0;
    /*
    height: auto;
    aspect-ratio: 16 / 9;
    */
}


.info-tile {
    border: 1px solid #0027551A;
    gap: 20px;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}
.info-tile .title {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.info-tile .title h3 {
    margin: 0;
}
.info-tile .icon-wrapper {
    height: 48px;
    width: 48px;
    background-color: #FF9700;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.info-tile .icon-wrapper img {
    height: 32px;
    width: 32px;
}

.info-tile:last-of-type {
    margin-bottom: 35px;
}
.info-tile .info {
    text-align: center;
}

.hero-section .sep {
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #3B4957;
}
.hero-section .sep-low {
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-cookies .container > *:last-child,
.page-privacy .container > *:last-child{
    margin-bottom: 30px;
}

.info-header .description {
    margin-bottom: 25px;
}


.topo-bg {
    background: url('assets/img/bg-topo-576.webp') no-repeat top center;
    background-color: rgba(0, 0, 0, 0);
    background-repeat: no-repeat;
    background-attachment: scroll;
}
@media (min-width: 576px) {
    .topo-bg {
        background: url('assets/img/bg-topo-768.webp') no-repeat top center;
    }
}
@media (min-width: 768px) {
    .topo-bg {
        background: url('assets/img/bg-topo-992.webp') no-repeat top center;
    }
}
@media (min-width: 992px) {
    .topo-bg {
        background-repeat: round no-repeat;
        background-position: top center;
        background-image: url('assets/img/bg-topo-1440.webp');
    }
}

.info-bg {
    background:
        linear-gradient(180deg, #002755 9.81%, rgba(0, 39, 85, 0) 100%),
        url('assets/img/overlay-topo-576.webp'),
        #002755;
    /* linear-gradient(180deg, #002755 9.81%, rgba(0, 39, 85, 0) 100%); */
    background-image: url('assets/img/overlay-topo-576.webp');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}
@media (min-width: 576px) {
    .info-bg {
        background: linear-gradient(180deg, #002755 9.81%, rgba(0, 39, 85, 0) 100%),
         url('assets/img/overlay-topo-768.webp') no-repeat bottom center;
        background-color:  #002755;
    }
}
@media (min-width: 768px) {
    .info-bg {
        background: linear-gradient(180deg, #002755 9.81%, rgba(0, 39, 85, 0) 100%),
         url('assets/img/overlay-topo-768.webp') no-repeat bottom center;
         background-color:  #002755;
    }
}
@media (min-width: 992px) {
    .info-bg {
        background:
            linear-gradient(180deg, #002755 9.81%, rgba(0, 39, 85, 0) 100%),
            url('assets/img/overlay-topo-1440.webp'),
            #002755;
        /* background-repeat: round no-repeat; */
        background-position: bottom center;
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background:
        url('assets/img/overlay-topo-576.webp') no-repeat bottom center,
        #00275599;
    z-index: 2;
}

@media (min-width: 576px) {
    .hero-overlay  {
        background: url('assets/img/overlay-topo-768.webp') no-repeat bottom center,
         #00275599;
    }
}
@media (min-width: 768px) {
    .hero-overlay  {
        background: url('assets/img/overlay-topo-992.webp') no-repeat bottom center,
        #00275599;
    }
}
@media (min-width: 992px) {
    .hero-overlay  {
        background-repeat: round no-repeat;
        background-position: bottom center;
        background-image: url('assets/img/overlay-topo-1440.webp');
        background-color:  #00275599;
    }
}


/* Základný layout */
body { margin: 0; padding: 0; line-height: 1.6; }


/* Kontajner, ktorý drží obsah v strede a nelepí sa na okraje */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Ochrana, aby sa text na mobile nedotýkal hrán displeja */
    box-sizing: border-box;
}

/* Responzívne obrázky (aby ti nerozbili layout) */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Skrytie/Zobrazenie na zariadeniach */
.hide-on-mobile { @media (max-width: 767px) { display: none; } }
.show-only-mobile { @media (min-width: 768px) { display: none; } }

/* --- Desktopové menu (tvoje existujúce) --- */
@media (max-width: 991px) {
    .hide-on-mobile { display: none !important; }
}

/* --- Mobilné menu (nové) --- */
@media (min-width: 992px) {
    .show-only-mobile { display: none !important; }
    .mobile-nav-panel { display: none !important; }
    .menu-item-has-children > a::before {
        content: '▾';
        order: 2;
        font-size: 12px;
        color: inherit;
        display: inline-block;
    }
}

@media (max-width: 991px) {
    .mobile-nav-panel {
        position: fixed;
        top: 80px; /* Výška headera */
        right: -100%; /* Schované vpravo */
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        z-index: 9999;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .mobile-nav-panel .btn-reg {
        margin-top: 20px;
    }

    /* Keď je menu aktívne */
    .is-menu-open .mobile-nav-panel {
        right: 0;
    }

    /* Prepínanie ikoniek v burgery */
    .menu-toggle .icon-close { display: none; }
    .is-menu-open .menu-toggle .icon-burger { display: none; }
    .is-menu-open .menu-toggle .icon-close { display: block; }

    /* Štýlovanie zoznamu v mobile */
    .mobile-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-list li {
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-list li a {
        display: block;
        padding: 12px 0;
        color: #001a33;
        font-weight: 300;
        text-decoration: none;
        font-size: 14px;
        line-height: 21px;
        border-bottom: 1px solid #FF9700;
    }

    .mobile-list .sub-menu li a {
        color: #002755;
        font-weight: 600;
        text-decoration: none;
        font-size: 16px;
        line-height: 20px;
        border-bottom: 1px solid #0027554D;
    }
    .mobile-list .sub-menu {
        list-style: none;
        padding-left: 0;
    }
    .menu-item-has-children > a::before {
        content: '';
    }

    .ico-run a::before {
        content: '';
        display: inline-block;
        width: 32px;
        height: 32px;
        background: url('assets/img/mobile-icn-run.svg') no-repeat center;
        margin-right: 10px;
        vertical-align: middle;
    }

    .ico-bike a::before {
        content: '';
        display: inline-block;
        width: 32px;
        height: 32px;
        background: url('assets/img/mobile-icn-bike.svg') no-repeat center;
        margin-right: 10px;
        vertical-align: middle;
    }

    li.menu-item-30 a {
        color: #002755;
        font-weight: 600;
        text-decoration: none;
        font-size: 16px;
        line-height: 20px;
        border-bottom: 1px solid #0027554D;
    }



}




/* Tablety a malé notebooky */
@media (min-width: 768px) {
    .menu-toggle { display: none; }

    .nav-list {
        display: flex;
        gap: 30px;
    }

    .main-navigation,
    .nav-list {
        display: flex;
        height: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-list > li {
        position: relative;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .nav-list > li > a {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 15px;
        text-decoration: none;
        color: #001a33;
        font-weight: bold;
    }

    .nav-list > li > a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background-color: #ff9700;

        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .nav-list > li:hover > a::after {
        transform: scaleX(1);
    }

    .nav-list > li > a:hover {
        /* background-color: rgba(0, 0, 0, 0.05); */
    }

    .nav-list .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: auto;
        padding: 16px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        border-radius: 6px;
        z-index: 9999;
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease-out;
        min-width: max-content;
        width: auto;
        white-space: nowrap;
    }

    .menu-item-has-children > a {
        gap: 8px;
    }

    .nav-list > li > a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background-color: #ff9700;
        transform: scaleX(0);
        transition: transform 0.3s ease;
        order: 3;
    }

    .nav-list li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sub-menu li {
        list-style: none;
        border-radius: 4px;
        overflow: hidden;
    }

    .sub-menu li a {
        color: #001a33;
        text-decoration: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        height: 36px;
        padding: 0 8px;
        box-sizing: border-box;
        line-height: 1;
    }

    .sub-menu li a img {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        display: block;
    }

    .sub-menu li a:hover {
        background-color: #0027551A;
    }
    li.menu-item-30 a {
        padding-left: 8px;
    }

    .ico-run a::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        background: url('assets/img/menu-icn-run.svg') no-repeat center;
        margin-right: 10px;
        vertical-align: middle;
    }

    .ico-bike a::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        background: url('assets/img/menu-icn-bike.svg') no-repeat center;
        margin-right: 10px;
        vertical-align: middle;
    }

    .page-contact .grid-item.address-wrapper {
        padding-right: 16px;
    }

    /*
    .menu-item-has-children > a::after {
        content: ' ▾';
        font-size: 12px;
        margin-left: 5px;
        color: #001a33;
    }
    */

    .btn-reg {
        background-color: #ff9700;
        color: white;
        padding: 12px 0;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }
    .map-modal .modal-content .footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .map-modal .modal-content .footer .btn-wrapper {
        /* flex-direction: column; */
        flex: unset;
    }
    .map-modal .modal-content .footer .btn-wrapper .btn {
        width: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
    .map-modal .what {
        color: #5E748A;
        font-family: Gotham;
        font-weight: bold;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -2%;
    }
    .map-modal .when {
        color. #000000;
        font-family: Gotham;
        font-weight: normal;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0px;
    }


}

/* Desktop */
@media (min-width: 1024px) {

}


/*
****************
*    Footer    *
****************
*/
.site-footer {
    background-color: #2c353e;
    color: #8D9FB1;
    padding: 40px 0 0;
}
.site-footer h3 {
    font-family: "gotham", sans-serif;
}

.footer-top {
    display: flex;
    flex-direction: column;
    padding: 0 25px 40px;
    text-align: center;
    display: flex;
    align-items: center;
}

.footer-brand img {
    max-width: 140px;
    height: auto;
    margin-bottom: 10px;
}

.footer-col h3 {
    color: #ff9700;
    font-family: Gotham;
    font-weight: bold;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: -2%;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a,
.footer-kontakt-link {
    font-family: Gotham;
    font-weight: 325;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #8D9FB1;
    text-decoration: none;
}
.footer-col ul li a:hover,
.footer-kontakt-link:hover,
.footer-links-bottom a:hover {
    color: #ffffff
}

.footer-last {
    margin-top: 10px;
}
.footer-last h3 {
    display: none;
}

.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-top: 40px;
}

.footer-bottom {
    background-color: #000000;
    padding: 30px 20px;
    text-align: center;
}

.footer-bottom-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-links-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-bottom a {
    color: inherit;
    text-decoration: none;
}



/*
****************
*    Header    *
****************
*/
.site-header {
    height: 80px;
    background-color: #ffffff;
    border-bottom: 1px solid #ff9700;
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* Burger ikona */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #001a33;
    transition: 0.3s;
}
.site-header .btn-reg {
    margin-bottom: 0;
}



/*
********************
*     Contaier     *
********************
*/

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

@media (min-width: 2560px) {
    .container {
        max-width: 1400px;
    }
}

/*
****************
*     Grid     *
****************
*/

.grid-layout {
    display: grid;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}
.grid-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .hero-section .container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .grid-item {
        width: calc(50% - 8px);
    }

    .grid-item.grid-item--full {
        width: 100%;
    }
}

.grid-img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/*
******************
*   Accordion    *
******************
*/

.accordion-item {
    margin-bottom: 8px;
}

.accordion-header {
    width: 100%;
    padding: 12px;
    background: #D9DFE5;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #3B4957;
    transition: background 0.3s;
    border-radius: 4px;
    font-family: Gotham;
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -2%;
}
.container .accordion-item:not(.accordion-item ~ .accordion-item) {
    margin-top: 12px;
}

.accordion-header:hover { background: #d4dae1; }

.accordion-icon::after {
    content: '▾';
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: #fff;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 20px 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.info-table tr td:first-child { width: 30%; }


/******************
*      Modal      *
******************/

.custom-modal {
    border: none;
    border-radius: 12px;
    padding: 0;
    width: 1000px;
    max-width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    outline: none;
    height: 80vh;
}

.custom-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}
.custom-modal .modal-content {
    padding: 24px;
    position: relative;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    height: 80vh;
    gap: 0;
    box-sizing: border-box;
}

.custom-modal .title-wrapper {
    display: flex;
    flex-direction: row;
    flex: 0 0 64px;
}
/*
.modal-close-x {
    display: none;
}
*/
.modal-close-x {
    float: right;
    height: 48px;
    width: 48px;
    background-color: #F2F4F6;
    outline: none;
    border-radius: 4px;
    font-size: 22px;
    border-width: 0;
    cursor: pointer;
}
.modal-close-x:hover {
    background-color: #BFC9D3;
}
.map-modal h3.run {
    margin-top: 0;
}
.map-modal .img-wrapper {
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 15px;
}
.map-modal .iframe-wrapper {
    flex-grow: 1;
    display: flex;
    margin-bottom: 8px;
}
.map-modal .iframe-wrapper iframe {
    width: 100%;
}
/*********************
*      general     *
**********************/

@media (min-width: 768px) {
    .header-wrapper .logo {
        flex: 0 0 80px;
    }
    .header-wrapper .main-navigation {
        flex: 1;
        justify-content: space-around;
    }
    .header-wrapper .btn-reg {
        flex: 0 0 150px;
    }

    .info-header {
        display: flex;
        gap: 50px;
        justify-content: start;
        margin-bottom: 40px;
    }
    .date-wrapper {
        width: 70px;
        height: 70px;
        flex-direction: column;
        align-items: center;
        flex: 0 0 70px;
    }
    .date-wrapper .date {
        margin-right: 0;
    }
    .title-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .info-section .description {
        margin-bottom: 25px;
    }
    .btn-wrapper {
        flex: 0 0 330px;
        flex-direction: row;
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .btn-wrapper .btn {
        margin-bottom: 0;
        height: 24px;
    }
    .btn-wrapper-double {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .title-wrapper .info {
        margin-bottom: 0;
    }
    .hero-section .btn {
        padding: 12px;
        width: auto;
        margin-right: 10px;
    }
    .hero-section .btn.btn-gallery {
        padding: 8px 10px 6px;
        margin-right: 9px;
    }
    .hero-section .btn:last-of-type {
      margin-right: 0;
    }
    .hero-section.video .hero-content .title {
         font-size: 96px;
         line-height: 96px;
     }

    .hero-section .img-wrapper {
        margin-top: 0;
    }

    .info-tile .icon-wrapper {
        height: 72px;
        width: 72px;
    }
    .info-tile .icon-wrapper img {
        height: 56px;
        width: 56px;
    }
    .info-tile .title {
        flex-direction: column;
        gap: 25px;
    }

    .info-section .title-wrapper h3 {
        margin-top: 0;
    }

    .page-info .container, .page-rules .container, .page-program .container, .page-results .container, .page-gallery .container {
        padding-top: 64px;
    }
    .page-info h1, .page-rules h1, .page-program h1, .page-results h1, .page-gallery h1, .page-contact h1, .page-results h1, .page-gallery h1 {
        font-weight: bold;
        font-size: 56px;
        line-height: 58px;
        letter-spacing: 0px;
    }
    .page-info h2, .page-rules h2, .page-program h2, .page-results h2, .page-gallery h2, .page-contact h2, .page-gallery h2 {
        font-weight: bold;
        font-size: 46px;
        line-height: 48px;
        letter-spacing: 0px;
    }
    .page-info h3, .page-rules h3, .page-program h3, .page-results h3, .page-gallery h3, .page-contact h3 {
        font-weight: bold;
        font-size: 38px;
        line-height: 40px;
        letter-spacing: 0px;
    }
    .page-info table.info td.header, .page-rules table.info td.header, .page-program table.info td.header {
        width: 210px;
        max-width: 210px;
    }
    .page-info .sep-low, .page-rules .sep-low, .page-program .sep-low, .page-rules .sep-low,
    .page-gallery .sep-low, .page-contact .sep-low, .page-cookies .sep-low, .page-privacy .sep-low {
        width: 100%;
    }
    .page-info .tile-wrapper, .page-rules .tile-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .page-info .grid-item, .page-rules .grid-item {
        width: auto;
    }
    .page-info .grid-item.grid-item--full, .page-rules .grid-item.grid-item--full {
        width: 100%;
    }

    .page-results .container {
        gap: 32px;
        margin-bottom: 50px;
    }
    .page-results .grid-item {
        width: calc(50% - 32px);
    }
    .page-results .grid-item--full {
        width: 100%;
    }
    .page-results .img-wrapper {
        margin-top: 25px;
    }
    .page-results .text-wrapper {
        align-items: start;
        margin-top: 25px;
        text-align: left;
    }
    .info-tile:last-of-type {
        margin-bottom: 0;
    }
    .hero-section.homepage .container {
        /* gap: 28px; */
    }
    .homepage-partners .grid-item {
        width: calc(50% - 16px);
        padding: 32px 16px;
        aspect-ratio: auto;
    }
    .hero-section.homepage .container .grid-item {
        width: calc(50% - 16px);
    }
    .hero-section .img-wrapper, .hero-section .text-wrapper {
        margin-top: 50px;
        margin-bottom: 100px;
    }


    .homepage .text-wrapper {
        box-sizing: border-box;
        align-items: start;
        justify-content: space-between;
        padding: 0 24px;
        align-items: center;
    }
    .homepage .text-wrapper img.logo { width: 250px; }
    .homepage .text-wrapper .btn-download { margin-bottom: 0; }
    .homepage-info .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .homepage-info .container .block {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    .homepage-info .container .block .btn-go {
        width: 120px;
        margin-right: 0;
        margin-bottom: 24px;
    }
    .homepage-partners h2, .homepage-partners .logo-container {
        width: 100%;
        display: flex;
        gap: 32px;
        justify-content: center;
        margin-bottom: 20px;
    }

}


.form-feedback {
    margin-top: 15px;
    font-weight: bold;
    border-radius: 8px;
    padding: 16px;
    display: none;
}
.form-feedback.success {
    display: inline-block;
    background-color: #1FC16B1A;
    color: #1FC16B;
}
.form-feedback.error {
    display: inline-block;
    color: #ff6b6b;
    background: #331a1a;
}
.form-feedback.wrong {
    display: inline-block;
    color: #FB3748;
    background-color: #FB37481A;
}



/*****************
*     Gallery    *
******************/
.gallery { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; margin-bottom: 45px; }
.gallery-item { cursor: pointer; border-radius: 10px; overflow: hidden; background: #2a2a2a; transition: 0.3s; }
.gallery-item:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
a { color: #007bff; text-decoration: none; }


.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

/*
.galleryModal { border: 0; border-radius: 16px; }
.galleryModal .modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
*/

.wp-caption, .wp-caption-text, .sticky, .gallery-caption css, .bypostauthor {}
.alignright, .alignleft, .aligncenter {}
.screen-reader-text, .tags {}


/*******************
*    gallery modal *
********************/

/* Hlavný slider */
.main-slider {
    width: 100%;
    max-width: 800px;
    height: 66vh;
}
.main-slider .swiper-slide img {
    width: 100%; height: 100%; object-fit: contain;
}
.swiper-button-prev, .swiper-button-next {
    color: #ffffff;
}

/* Lišta s náhľadmi */
.thumbs-slider {
    width: 100%;
    max-width: 800px;
    height: 100%;
    margin-top: 15px;
    box-sizing: border-box;
    padding: 10px 0;
    max-height: 100px;
}
.thumbs-slider .swiper-slide {
    width: 25%; height: 100%;
    opacity: 0.6; /* Neaktívne sú jemne priesvitné */
    cursor: pointer;
}
/* Swiper automaticky pridáva túto triedu na aktívny náhľad */
.thumbs-slider .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #fff;
}
.thumbs-slider .swiper-slide img {
    width: 100%; height: 100%; object-fit: cover;
}

.gallery-modal {
    height: auto;
    /* aspect-ratio: 1/1; */
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.gallery-modal .modal-content {
    height: 100%;
    background: none;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .thumbs-slider {
        height: 100px;
    }
    .gallery-modal {
        /* aspect-ratio: 12/10; */
    }
}

@media (min-width: 768px) and (max-width: 840px) {
    .homepage .tile-wrapper h2 {
        min-height: 80px;
        /* display: flex; */
        /* align-items: center; */
    }
}
@media (min-width: 576px) {
    .logo-container {
        grid-template-columns: repeat(4, 1fr);
    }
      .hero-section.homepage .container {
        flex-direction: row;
        flex-wrap: wrap;
         gap: 16px;
      }
      .hero-section.homepage .container .grid-item {
        width: calc(50% - 10px);
        aspect-ratio: auto;
    }
    table.info.detail {
        table-layout: auto;
    }
}

/* --- DESKTOP VZHĽAD (992px a viac) --- */

@media (min-width: 992px) {
    .site-footer {
        padding-top: 60px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 2fr 1fr 1.5fr 1fr 1.5fr;
        flex-direction: row;
        gap: 30px;
        padding: 0 0 60px;
        text-align: left;
        align-items: start;
    }

    .footer-col h3 {
        margin-top: 0;
    }

    .footer-brand img {
        max-width: 180px;
    }

    .footer-bottom {
        padding: 20px 0;
        text-align: left;
    }

    .footer-bottom-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-links-bottom {
        flex-direction: row;
        gap: 0;
    }

    .footer-links-bottom a {
        margin-left: 25px;
    }
    .footer-last {
        margin-top: 0;
    }
    .footer-last h3 {
      display: block;
    }

    .map-wrapper {
        padding-right: 24px;
    }

    .homepage .text-wrapper {
        text-align: left;
        align-items: start;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .info-header {
        display: flex;
        gap: 20px;
        justify-content: start;
        margin-bottom: 40px;
    }
    .title-wrapper {
        justify-content: start;
    }
    .info-section .info {
        font-family: Gotham;
        font-weight: bold;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -2%;
        color: #5E748A;
        margin-top: 15px;
    }
    .info-section .btn-wrapper {
        flex: 0 0 200px;
        flex-direction: column;
        display: flex;
        gap: 10px;
        align-items: center;
    }

}

.input-error {
  border: 2px solid #ff3333 !important;
  background-color: #fff0f0;
  outline: 2px solid #ff3333;
}