/* --- LOGO GENEL AYARLARI --- */
.logo {
    display: inline-block;
    max-width: 100%; /* Kendi orijinal boyutundan büyük olmasın */
    width: auto;     /* Genişlik içeriğe göre başlar */
    height: auto;    /* Orantıyı korur */
    margin-bottom: 6px;
    z-index: 10;     /* -9999 yerine pozitif bir değer; tıklanabilir olması için önemli */
    transition: width 0.3s ease; /* Boyut değişimini yumuşatır */
}

/* --- LAPTOP VE TABLET (1366px ve Altı) --- */
@media only screen and (max-width: 1366px) {
    .logo {
        width: 200px; /* Ekran daraldıkça logoyu sabit bir genişliğe çekebilirsin */
    }
}

/* --- TABLET / 1024px ÇÖZÜNÜRLÜK --- */
@media only screen and (max-width: 1024px) {
    .logo {
        width: 180px;
    }
}

/* --- MOBİL (767px ve Altı) --- */
@media only screen and (max-width: 767px) {
    .logo {
        width: 71%; /* Senin istediğin mobil oranı */
        margin-left: 1px;
    }
}

/* --- ÇOK KÜÇÜK EKRANLAR (480px ve Altı) --- */
@media only screen and (max-width: 480px) {
    .logo {
        width: 60%; /* Çok küçük ekranlarda daha da küçülür */
    }
}
/*logo end*/
/* --- 1. ANA NAVBAR VE KAPSAYICI --- */
.navbar-custom { 
    padding: 0 !important; 
    background-color: #fff; 
}

.navbar { 
    display: flex; 
    flex-direction: column; 
    align-items: stretch; 
}

.navbar-nav { 
    display: flex; 
    align-items: center; 
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap !important; /* Masaüstünde alta kaymayı engeller */
}

.navbar .nav-item { 
    padding: .5rem .5rem; 
    margin: 0 .25rem; 
    flex-shrink: 0; 
}

.navbar-nav li > span { 
    position: relative; 
    display: block; 
    font-weight: bold; 
}

/* --- 2. METİN VE BUTON STİLLERİ --- */
.navyazi { 
    font-weight: 500; 
    color: #04204a; 
    text-decoration: none; 
    white-space: nowrap; 
    font-size: 15px; 
}

.nav-btn-black, .nav-btn-blue {
    padding: 8px 20px !important; 
    border-radius: 25px; 
    display: inline-block; 
    text-align: center; 
    transition: opacity 0.3s ease; 
    white-space: nowrap;
    font-weight: bold;
}

.nav-btn-black { background-color: #000 !important; color: #fff !important; }
.nav-btn-blue { background-color: #2271ce !important; color: #fff !important; }
.nav-btn-black:hover, .nav-btn-blue:hover { opacity: 0.9; color: #fff !important; }

/* --- 3. DROPDOWN (Sadece Tıklayınca Açılır) --- */
.navbar .dropdown { position: static; }
.navbar .dropdown-menu { 
    width: 100%; 
    left: 0; 
    right: 0; 
    top: 100%; 
    display: none; 
    visibility: hidden; 
    opacity: 0; 
    transition: opacity 0.3s linear; 
    border: 1px solid rgba(0,0,0,.15); 
    background-color: #fff; 
    z-index: 1000; 
}

/* Sadece .show class'ı varken görünür olur (Tıklama mekanizması) */
.navbar .dropdown-menu.show { 
    display: block !important; 
    visibility: visible !important; 
    opacity: 1 !important; 
}

/* --- 4. RESPONSIVE AYARLAR (ÇAKIŞMA ÖNLEYİCİ) --- */

/* 1023px ve Altı: Sadece Mobil Görünüm */
@media only screen and (max-width: 1023px) {
    .navbar-nav { display: none !important; }
    .mobileBtn { display: block !important; }
}

/* 1024px ve Üzeri: Masaüstü Görünüm (Hamburger Gizli) */
@media only screen and (min-width: 1024px) {
    .navbar-nav { display: flex !important; }
    .mobileBtn, #panel { display: none !important; }

    /* 1024px - 1366px arası (Dar Ekran Masaüstü/Laptop) */
    @media (max-width: 1366px) {
        .navbar .nav-item { padding: .5rem .2rem !important; margin: 0 .1rem !important; }
        .navyazi { font-size: 12px !important; }
        .nav-btn-black, .nav-btn-blue { padding: 6px 12px !important; font-size: 11px !important; }
    }
}

/*solpanel*/
#panel {
position: absolute;
top: 1px;
left: 0;
width: 100%;
height: 100vh;
overflow: auto;
background: #fff;
border-top: 1px solid #e2e2e2;
z-index: 9;
}
#panel .mobileMenu {padding: 1px 40px 80px 26px; overflow: auto; height: calc(100%);}
#panel .mobileMenu ul {padding: 0; margin: 0; display: inline-block; width: 100%;    margin-left: -6px;}
#panel .mobileMenu ul li {list-style-type: none; font-size: 16px; width: 105%; float: left;}
#panel .mobileMenu ul li ul li a {
transition: left 0.5s ease-in-out;	
transition: 0.3s;
font-size:16px;
color: #0c3b5d;
display: block;
padding: 7px 0;
margin-top:-2px;
align-items: center;
text-decoration: none !important;
}
#panel .mobileMenu ul li ul li a span {
padding: 0;
margin: -2px 2px 0 0;
border: none;
width: 40px;
height: 30px;
display: flex;
align-items: center;
text-align: center;
float: left;
}
#panel .mobileMenu ul li span {
display: block;
border-bottom: 2px solid transparent;
}
#panel .mobileMenu ul li a {color: #0c3b5d; text-decoration: none !important;}
#panel .mobileMenu .subList li a {padding: 3px 0 !important;}
#panel .mobileMenu ul.subMobile {display: none; margin-bottom: 20px;}
#panel .mobileMenu ul li.single ul { display: none; margin-bottom: 20px;}
#panel .mobileMenu ul li.sub { margin-bottom: 30px;}
#panel .mobileMenu ul li ul li a img {max-height: 100%; margin: 0 auto;}
/**/
.mobileBtn { display: none; float: left; margin-right: 10px;}
.mobileBtn.open span {transition: 0.4s;}
.mobileBtn.open span:first-child {width: 25px; transform: translate(0, 7px) rotate(45deg);}
.mobileBtn.open span:nth-child(2) {opacity: 0;}
.mobileBtn.open span:nth-child(3) {width: 25px; transform: translate(0, -9px) rotate(-45deg);}
.mobileBtn span {
transition: 0.4s;
width: 19px;
height: 2px;
display: block;
background: #0c3b5d;
border-radius: 4px;
}
.mobileBtn span:nth-child(2) {margin: 6px 0; width: 25px;}
@media only screen and (max-width: 1024px) {.mobileBtn { display: block;}}
/*megamenü*/
.mobilnavyazi {
    font-weight: 600;
    color: #032b52; /* Renk tercihinize göre güncelledim */
    display: flex;
    align-items: center;
    text-decoration: none !important;
}
/* Bu kısmı tamamen siliyoruz veya içeriğini boşaltıyoruz */
.mobilnavyazi::after {
    content: none !important; /* Çizgiyi öldürür */
    display: none !important;
}
/* spanBorder mobilmenüiçin gereken CSS */
.spanBorder {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
}
/* Alt çizgi efekti */
.spanBorder::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    /* data-border-color özniteliğini CSS ile doğrudan okuyamadığımız durumlar için varsayılan renk */
    background-color: currentColor; 
    transition: width 0.3s ease;
}
.spanBorder:hover::after { width: 100%;}
[data-border-color="#40C0C0"]::after { background-color: #40C0C0 !important;}
/*yeni ilave navbar üstü*/
.topbar-line {
    width: 100%;
    margin-top: -4px;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    background: #fff;
    position: relative;
    z-index: 1030;	
}
.topbar-content {
    display: flex;
    align-items: center; 
    justify-content: flex-end;
    gap: 20px;
    margin-right: 20px;
}
/* --- MASAÜSTÜ ARAMA FORMU --- */
.search-form-desktop { display: block; }
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 250px; 
    transition: width 0.3s ease; 
}
.search-wrapper:focus-within { width: 250px;}
.search-input-custom {
    width: 100%;
    box-sizing: border-box; 
    padding: 6px 15px 6px 35px; 
    border: 1px solid #2271ce;
    border-radius: 50px; 
    font-size: 13px;
    outline: none;
    background: #f8f9fa;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.search-input-custom:focus {
    border-color: #2c7eb1;
    background: #fff;
    width: 100%; 
}
.search-icon-inside {
    position: absolute;
    left: 12px; 
    top: 50%;
    transform: translateY(-50%);
    color: #999; 
    font-size: 13px;
    pointer-events: none;
}

/* --- SOSYAL İKONLAR --- */
.top-social {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid #eee;
    padding-left: 20px;
}
.top-social a {
    color: #777;
    font-size: 16px;
    display: flex;
    transition: 0.3s;
}
/* --- MOBİL ARA BUTONU (Mavi Mercek) --- */
.mobile-search-trigger {
    display: none !important; 
    color: #007bff !important; 
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
}
/* --- DİL SEÇİCİ --- */
.lang-dropdown { position: relative; display: inline-block; z-index: 1040; }
.lang-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #ced1da;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    background: #fff;
}
.lang-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1050;
    border-radius: 4px;
    margin-top: 5px;
}
.lang-dropdown.open .lang-options { display: block; }
.lang-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    font-size: 12px;
}
.bayrak-size { width: 22px; border-radius: 2px; }
/* --- MOBİL MODAL ARAMA TASARIMI --- */
.modal-form-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
#modalSearchInput {
    border-radius: 50px;
    padding: 12px 60px 12px 45px; /* İkon ve buton için boşluk */
    border: 1px solid #dee2e6;
    font-size: 14px;
    width: 100%;
    outline: none;
}
#modalSearchInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.1);
}
.modal-search-icon-inside {
    position: absolute;
    left: 18px;
    color: #007bff; /* Mercek Rengi Mavi */
    font-size: 16px;
    pointer-events: none;
}
.btn-search-text {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .search-form-desktop { display: none !important; }
    .mobile-search-trigger { display: flex !important; }
    .top-social { border-left: none; padding-left: 0; gap: 15px; }
    .topbar-content { gap: 12px; }
}