/* ==========================================================================

   RESPONSIVNÍ OVERLAY PRO STÁVAJÍCÍ AZ PROMO MENU
   Žádné změny HTML struktury nejsou potřeba!

========================================================================== */

/* Základní responsivní úpravy pro stávající menu */
.menuframe {
    width: 100% !important;
}

.topmenu {
    width: 100% !important;
    padding: 10px 0px !important;
    flex-wrap: nowrap !important;
    position: relative !important;
}

/* .menu.topmenu {
    text-transform: uppercase !important;
    font-size: 0.8em !important;
    letter-spacing: 0.8px !important;
    font-weight: 700 !important;
} */

/* logo */
.menu.topmenu>a img {

    max-width: 200px !important;
    height: auto !important;
    height: auto !important;
    max-height: 200px !important;
}

/* Hamburger menu tlačítko - vytvoříme pomocí ::after pseudo-elementu */
.topmenu::after {
    content: '';
    display: none;
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background-image:
        linear-gradient(to right, #fff, #fff),
        linear-gradient(to right, #fff, #fff),
        linear-gradient(to right, #fff, #fff);

    background-size: 100% 3px, 100% 3px, 100% 3px;
    background-position: 0 0, 0 50%, 0 100%;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    order: 999;
    margin-left: auto;
}

/* Hamburger pro transparentní menu */
.menuframe.transparent .topmenu::after {
    background-image:
        linear-gradient(to right, #fff, #fff),
        linear-gradient(to right, #fff, #fff),
        linear-gradient(to right, #fff, #fff);
}

/* Tablet styly */
@media screen and (max-width: 991px) {
    .topmenu {
        padding: 8px 15px !important;
    }

    .menu-item {
        margin: 0 2px !important;
    }

    .menu-link {
        padding: 6px 8px !important;
        font-size: 13px !important;
    }

    .menu-title {
        font-size: 13px !important;
    }

    .topmenu>a img {
        max-height: 40px !important;
    }
}

/* Mobilní styly */
@media screen and (max-width: 768px) {

    /* Zobrazit hamburger menu */
    .topmenu::after {
        display: block !important;
    }

    /* Skrýt všechny menu položky kromě loga */
    .menu-item {
        display: none !important;
    }

    .topmenu {
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Logo úpravy pro mobil */
    .topmenu>a {
        flex: 0 0 auto !important;
        margin-right: 0 !important;
    }

    .topmenu>a img {
        max-height: 35px !important;
        width: auto !important;
    }
}

/* Velmi malé mobily */
@media screen and (max-width: 480px) {

    .info-bar {
        /* Skryjeme informační lištu */
        visibility: hidden !important;
    }

    .menuframe {
        top: 0px !important;
    }

    .video-overlay .caption {

        top: 60%;
        transform: translateY(-60%);
        margin-right: 30px !important;
    }

    .video-overlay {
        padding: 0px 20px !important;
    }

    .our-courses,
    .company,
    .our-team {
        padding: 100px 20px !important;
    }

    .section-heading h2 {
        letter-spacing: normal !important;
    }

    .contact-us {
        padding: 20px 20px !important;
    }


    .video-overlay .main-button-red {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    .topmenu {
        padding: 8px 12px !important;
    }

    .topmenu>a img {
        max-height: 32px !important;
        max-width: 100px !important;
    }

    .topmenu::after {
        width: 25px !important;
        height: 18px !important;
    }
}


/* ==========================================================================

   MOBILNÍ MENU OVERLAY - Vytvoříme pomocí JavaScript

========================================================================== */

/* Styly pro mobilní overlay menu */
.azpromo-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333333;
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.azpromo-mobile-overlay.active {
    display: flex;
    opacity: 1;
}

.azpromo-mobile-content {
    width: 100%;
    max-width: 320px;
    padding: 20px;
}

.azpromo-mobile-item {
    margin: 0px !important;
}

.azpromo-mobile-link {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    padding: 0px !important;
    display: block !important;
    padding: 0px !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.azpromo-mobile-link i {

    color: #fff !important;
}

.azpromo-mobile-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.azpromo-mobile-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.azpromo-mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.azpromo-language-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.azpromo-lang-link {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

.azpromo-lang-link:hover,
.azpromo-lang-link.active {
    background: #fff !important;
    color: #000 !important;
    text-decoration: none !important;
}

/* Animace hamburger menu při aktivaci */
.topmenu.menu-active::after {
    background-image: none !important;
    background: linear-gradient(45deg, transparent 40%, #333 40%, #333 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, #333 40%, #333 60%, transparent 60%) !important;
    background-size: 100% 100% !important;
    background-position: center !important;
}

.menuframe.transparent .topmenu.menu-active::after {
    background: linear-gradient(45deg, transparent 40%, #fff 40%, #fff 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, #fff 40%, #fff 60%, transparent 60%) !important;
}

/* Responsive font sizes */
@media screen and (max-width: 480px) {
    .azpromo-mobile-link {
        font-size: 20px !important;
        padding: 2px 15px !important;
    }

    .azpromo-lang-link {
        font-size: 16px !important;
        padding: 8px 15px !important;
    }

    .azpromo-mobile-close {
        font-size: 30px !important;
        width: 45px !important;
        height: 45px !important;
    }
}

/* Landscape orientace na mobilech */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .azpromo-mobile-overlay {
        padding: 10px 0;
        overflow-y: auto;
    }

    .azpromo-mobile-content {
        margin: auto 0;
    }

    .azpromo-mobile-item {
        margin: 12px 0;
    }

    .azpromo-mobile-link {
        font-size: 18px !important;
        padding: 10px 15px !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Zabránění scrollování při otevřeném menu */
body.azpromo-menu-open {
    overflow: hidden !important;
}