@media (min-width: 992px) {
    .mbr-navbar__container {
        position: relative;
    }

    .mbr-navbar__brand {
        position: absolute;
        left: 10%;
        top: 50%;
        transform: translateY(-50%);
    }

    .lang-switcher-container {
        position: absolute;
        right: 10%;
        top: 50%;
        transform: translateY(-50%);
    }

    .mbr-navbar__menu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: auto;
    }
}

@media (max-width: 991px) {
    .mbr-navbar__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .mbr-navbar__brand {
        position: static;
        transform: none;
    }

    .mbr-navbar__menu {
        position: static;
        transform: none;
        width: 100%;
        display: none; /* Hidden by default, toggled by JS/CSS */
    }

    .mbr-navbar__menu-box {
        display: block;
        text-align: center;
    }

    .mbr-navbar__items {
        display: flex;
        flex-direction: column;
        align-items: center;
        float: none;
        left: 0;
    }

    .mbr-navbar__item {
        float: none;
        margin: 10px 0;
    }

    .lang-switcher-container {
        position: static;
        transform: none;
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }

    /* When menu is open */
    .mbr-navbar--open .mbr-navbar__menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        padding-top: 80px;
        overflow-y: auto;
    }

    .mbr-navbar--open .lang-switcher-container {
        margin-bottom: 20px;
    }

    .lang-switcher button {
        padding: 3px 6px;
        font-size: 0.8em;
    }
}

/* Rotating Section Styles */
.rotating-section {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.rotating-section .image-container {
    position: relative;
    width: 100%;
    line-height: 0;
    z-index: 0;
}

.rotating-section .rotating-img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* First image acts as layout spacer */
.rotating-section .rotating-img:first-child {
    position: relative;
    opacity: 1; /* Default visibility if JS fails, will be managed by JS for rotation */
    z-index: 1;
}

.rotating-section .rotating-img.active {
    opacity: 1;
    z-index: 2;
}

.rotating-section .modern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 3;
    pointer-events: none;
}

.rotating-section .section-overlay-text {
    z-index: 4;
}
