/* Temel Stiller */
body,
ul,
li,
a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

/* No Scroll Class */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Header Container */
.header-container {
     display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 80px; /* Sabit bir yükseklik belirliyoruz */
    overflow: visible; /* İçerik taşsa bile kesme */
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    width: 250px;
    height: auto;
    display: block;
    margin-left: 15px;
}

/* Ana Navigasyon */
nav {
       flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    position: static; /* Position static yapıyoruz ki alt menüler body'e göre konumlansın */
}

.nav {
     display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 50px;
    position: static; /* Nav'ı da static yapıyoruz */
}

.nav li {
    position: relative;
}

.nav a {
    font-size: 16px;
    color: #333333;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
}

.nav a:hover,
.nav a:focus {
    background-color: #f5f5f5;
    color: #000000;
    text-decoration: none;
}

/* Alt Menü Stilleri - Tüm içeriğin ÜSTÜNDE olacak */
.sub-menu {
      position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1003;
    margin-top: 10px; /* Header ile arasında boşluk bırakıyoruz */
}

.nav li:hover .sub-menu {
     opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.sub-menu a:hover {
    background-color: #f8f8f8;
    color: #000;
}

/* Mobil Menü Butonu */
.mobile-menu-icon {
    display: none;
    font-size: 36px;
    color: #333333;
    cursor: pointer;
    user-select: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
    z-index: 1002;
}

.mobile-menu-icon:hover {
    color: #000000;
}

/* Mobil Menü Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobil Menü */
@media screen and (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        padding: 10px 15px;
    }

    .header-logo img {
        width: 250px;
    }

    nav {
        flex-grow: 0;
    }

    .mobile-menu-icon {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 280px;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding-top: 70px;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav a {
        padding: 16px 24px;
        font-size: 18px;
    }

    /* Mobil Alt Menü Stilleri */
    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        background-color: #f9f9f9;
        z-index: 1001;
    }

    .nav li.active .sub-menu {
        display: block;
    }

    .sub-menu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .sub-menu a {
        padding: 12px 24px;
        font-size: 16px;
    }

    .has-submenu > a::after {
        content: '+';
        float: right;
        margin-left: 10px;
    }

    .has-submenu.active > a::after {
        content: '-';
    }
}