/* ================================
   GENEL / MOBIL & TABLET
================================ */
nav {
    position: relative;
}

.navbar-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    transition: .35s ease;
    z-index: 9999;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

    .navbar-nav.show {
        left: 0;
    }
/* Mobil açılma */

body.no-scroll {
    overflow: hidden
}

/* Close button */
.toggler-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.toggle-close {
    background: none;
    border: none;
    font-size: 24px;
}

/* ================================
   NAV LIST
================================ */
.nav-list {
    list-style: none;
    padding: 0;
    width: 100%;
}

    .nav-list .list-item {
        padding: 1px 0;
    }

.nav-link, .dropdown-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* ================================
   MOBIL SUBMENU SLIDE SCREEN
================================ */
.dropdown-container {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    transform: translateX(0);
    transition: .35s ease;
    overflow-y: auto;
    z-index: 10000;
    display: flex;
}

    .dropdown-container.open {
        left: 0;
    }
/* slide-left */

.return-btn {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    font-size: 17px;
    background: none;
    position: relative;
}

    .return-btn i {
        position: absolute;
        left: 12px;
    }

/* Menu Items */

.nav-list .menu-content .return-btn {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    margin-top: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgb(221, 221, 221);
    position: relative;
}
.nav-list .menu-content {
    width: 100%;
    height: 100%;
    transition: all ease-in 300ms;
}
.menu-content ul {
    list-style: none;
    padding: 0;
}

    .menu-content ul li {
        padding: 2px 6px;
        border-bottom: 1px solid #eee;
    }

        .menu-content ul li a {
            color: #444;
            text-decoration: none;
            display: block;
        }

        .menu-content ul li:hover {
            background: #f9f9f9
        }

/* SUB Dropdown (3.seviye) */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-container {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    transition: .35s ease;
    z-index: 11000;
}

.sub-dropdown.open > .sub-dropdown-container {
    left: 0;
}

/* ================================
   DESKTOP (≥992px)
================================ */
@media(min-width:992px) {

    .navbar-nav {
        position: static;
        left: 0;
        height: auto;
        display: flex;
        flex-direction: row;
        padding: 0;
        background: none;
        overflow: visible;
        transform: none !important;
    }
        .navbar-nav::after {
            content: "";
            border-bottom: 1px solid #E5E7EB;
            width: 100%;
            display: inline-block;
            height: 1px;
            position: absolute;
            top: 50%;
            left: 0;
            z-index: -2;
        }

    .toggler-close, .nav-toggler {
        display: none
    }

    .nav-list {
        display: flex;
        gap: 22px;
        padding: 0;
        margin: 0;
        align-items: center;
    }

    .list-item {
        border: none;
        padding: 0;
        position: relative;
    }

    /* Hover + Click ile açılabilir dropdown */
    .dropdown-container {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 230px;
        background: #fff;
        padding: 8px 0;
        border-radius: 6px;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
        z-index: 5000;
    }

    @media(min-width:992px) {
        .list-item:hover > .dropdown-container {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
    }


    .return-btn {
        display: none;
    }
    /* Desktop geri buton gizli */

    /* Alt menüler */
    .dropdown-container .menu-content ul li {
        border: none;
        padding: 8px 14px;
        font-size: 14px;
        white-space: nowrap;
    }

        .dropdown-container .menu-content ul li:hover {
            background: #f4f4f4;
        }

    /* 3. seviye sağ açılır */
    .sub-dropdown-container {
        position: absolute !important;
        top: 0;
        left: 100% !important;
        width: 200px;
        background: #fff;
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

    .sub-dropdown:hover > .sub-dropdown-container,
    .sub-dropdown.open > .sub-dropdown-container {
        opacity: 1;
        visibility: visible;
    }
}
/*********************************************
 🔥 Mobil & Tablet Menü Fix (EN ÖNEMLİ KISIM)
--------------------------------------------*/
@media (max-width:991px) {

    /* Her submenu tam ekran görünsün */
    .dropdown-container,
    .sub-dropdown-container {
        position: fixed !important;
        top: 0;
        left: 100%; /* önce dışarıda */
        width: 100vw !important; /* yarım değil TAM ekran */
        height: 100vh !important; /* dikey full */
        background: #fff;
        overflow-y: auto; /* içerik taşarsa dikey scroll */
        overflow-x: hidden; /* sağa kayma KAPALI */
        transition: left .35s ease;
        z-index: 99999;
    }

        /* Açıldığı anda tam ekran içeri girsin */
        .dropdown-container.open,
        .sub-dropdown-container.open {
            left: 0 !important;
        }

    /* Menü iç liste tam genişlik */
    .menu-content ul li {
        width: 100% !important;
        padding: 14px 14px;
        font-size: 16px;
    }

    .menu-content ul {
        width: 100% !important;
        margin: 0;
        padding: 0;
    }

    /* geri butonu üstte sabit geniş */
    .return-btn {
        font-size: 18px;
        padding: 16px 0;
        border-bottom: 1px solid #ddd;
        width: 100%;
        background: #fff;
        position: sticky; /* alta kaymasın yukarı sabitlensin */
        top: 0;
        z-index: 10;
    }
}


@media (min-width:992px) {

    /* Mobil slide tasarımlarını devre dışı bırak */
    .navbar-nav {
        position: static !important;
        transform: none !important;
        height: auto !important;
        background: #ffffff78 !important;
        overflow: visible !important;
    }

    .dropdown-container {
        position: absolute !important;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: #fff;
        padding: 10px 0;
        border-radius: 6px;
        box-shadow: 0 6px 18px rgba(0,0,0,.10);
        display: none; /* gizli başlasın */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: .25s ease;
        z-index: 9999;
        pointer-events: none;
    }

    /* 🔥 Hover olunca aç */
    .list-item:hover > .dropdown-container {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Menü başlıkları yan yana */
    .nav-list {
        display: flex !important;
        gap: 26px;
        align-items: center;
    }

    .dropdown-button.nav-link {
        font-weight: 600;
        cursor: pointer;
    }

    /* 3. seviye submenu hover ile sağa açılacak */
    .sub-dropdown-container {
        position: absolute;
        left: 100%;
        top: 0;
        min-width: 220px;
        background: #fff;
        display: none;
        opacity: 0;
        transform: translateX(10px);
        box-shadow: 0 6px 16px rgba(0,0,0,.10);
        transition: .25s ease;
        pointer-events: none;
    }

    .sub-dropdown:hover > .sub-dropdown-container {
        display: block;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Desktop'da geri butonu gizlensin */
    .return-btn {
        display: none !important;
    }
}
@media (min-width:992px) {

    /* DROPDOWN MENÜYÜ FERAH VE DÜZENLİ YAPALIM */
    .dropdown-container {
        position: absolute;
        background-color: white;
        display: none;
        z-index: 9999;
        top: 100%;
        width: unset;
        height: unset;
        right: unset;
        bottom: unset;
        white-space: unset;
        transform: none;
        overflow: unset;
    }

        /* MENÜ İÇİ YAZI BOYUTU ve DENGE */
        .dropdown-container .menu-content ul li {
            padding: 5px 10px !important;
            font-size: 15px !important;
            line-height: 2em;
        }

            .dropdown-container .menu-content ul li a {
                display: block;
                width: 100%;
                color: #333 !important;
                text-decoration: none;
                padding: 0px 13px;
            }

                .dropdown-container .menu-content ul li a:hover {
                    background: #f4f4f4;
                    color: #0d6efd;
                }

    /* Menü kutusu çok "yukarı yapışık" olmasın diye */
    .list-item {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Daha yumuşak görünmesi için */
    .dropdown-container {
        border-radius: 6px;
        box-shadow: 0 10px 22px rgba(0,0,0,.10);
    }
}
.menu-square {
    display: flex;
    align-items: center;
}
    .menu-square a {
    padding: 5px;
}

.menu-square::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: black;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
    transition: background-color 0.3s;
}
.menu-square:hover::before {
    background-color: red;
}
.navbar-nav .nav-list .dropdown .dropdown-icon:not(.icon-forward) {
    display: flex;
    margin-left: 8px;
}

    .navbar-nav .nav-list .dropdown .dropdown-icon:not(.icon-forward) i {
        transform: rotate(90deg);
        font-size: 12px;
        font-weight: bold;
    }
@media(min-width:992px) {

    /* 3. MENÜ YUKARI HİZALAMA */
    .sub-dropdown-container {
        top: 0 !important; /* tam üstten hizala */
        transform: translateX(0) !important;
        margin-top: 0px !important; /* istersen ayarla */
        min-width: 240px !important; /* dar görünmesin */
    }

    /* hover ile açılması */
    .sub-dropdown:hover > .sub-dropdown-container {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sub-dropdown-container ul li {
        padding: 8px 14px;
        white-space: nowrap;
    }
}
/* 2.seviye dropdown başlığı hizalama */
.sub-dropdown > .dropdown-button.menu-square {
    display: flex !important;
    justify-content: space-between;
    align-items: center; /* ikon aşağı kaymasın */
    gap: 8px;
    width: 100%;
    padding: 0px 0;
}

/* ikon küçükse hizalanır */
.sub-dropdown .dropdown-icon {
    display: flex;
    align-items: center;
    font-size: 14px;
}

    /* gerekirse ikon yukarı inerse bunu aktifleştir */
    .sub-dropdown .dropdown-icon i {
        line-height: 2;
        font-size: 14px; /* istersen 16-18px yap */
    }
/* 3. Menü butonu hizalama düzeni */
.dropdown-button.menu-square {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Yazı sola - icon sağa */
    width: 100%;
    gap: 10px; /* çok bitişikse aralık */
    padding: 10px 0;
}

    /* Yazı solda dursun */
    .dropdown-button.menu-square span {
        flex: 1;
        text-align: left;
        font-size: 15px;
        font-weight: 500;
        color: #333;
    }

    /* Sağdaki ok iconu */
    .dropdown-button.menu-square .dropdown-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1px; /* ikon alanı */
    }

        /* ikon içi */
        .dropdown-button.menu-square .dropdown-icon i {
            font-size: 16px;
            font-weight: bold;
        }
