.double-header {
    background: #1a4079;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.5rem 2vw 0.5rem 2vw !important;
    min-height: 80px;
    background: #fff;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.header-top .logo img { background: #fff; border-radius: 2px; padding: 0.2rem; }
.header-top-links {
    display: flex;
    gap: 1.2rem;
}
.header-btn {
    background: #ff0000;
    color: #fff;
    padding: 0.45rem 1.1rem;
    border-radius: 22px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
}
.header-btn:hover {
    background: #e63946;
    color: #fff;
}

.header-btn2 {
    background: #20aa13;
    color: #fff;
    padding: 0.45rem 1.1rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
    border-radius: 22px;
}


.header-bottom {
    background: #1a4079;
    border-top: 1px solid #274a7e;
    padding: 0.05rem 2rem 0.05rem 2rem;
    min-height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.main-nav > a, .main-nav > .dropdown {
padding: 0 1.6rem;
height: 48px;
display: flex;
align-items: center;
color: #fff;
font-size: 1.1rem;
font-weight: 600;
text-decoration: none;
box-sizing: border-box;
border-bottom: none;
background: none;
border-radius: 0;
box-shadow: none;
position: relative; /* ALT MENÜ İÇİN GEREKLİ */
}

.main-nav > a:hover,
.main-nav > .dropdown:hover > .dropdown-trigger {
color: #e63946;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
display: flex;
align-items: center;
height: 100%;
color: inherit;
font-size: inherit;
font-weight: inherit;
text-decoration: none;
padding: 0;
background: none;
border: none;
cursor: pointer;
gap: 5px;
}

.main-nav > a:not(:last-child) {
border-right: 2px solid #fff;
}

/* AÇILAN MENÜ (POPUP) */
.dropdown-content {
position: absolute;
top: 100%; /* ALTINA YAPIŞIK AÇILSIN */
left: 0;
background-color: #123c6c;
display: none;
min-width: 180px;
padding: 10px 0;
z-index: 1000;
border-radius: 6px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}

/* ALT MENÜ LİNKLER */
.dropdown-content a {
display: block;
padding: 10px 20px;
color: #fff;
font-size: 0.95rem;
text-decoration: none;
transition: background-color 0.3s;
}

.dropdown-content a:hover {
background-color: #0d2b52;
color: #e63946;
color: var(--secondary-color);
}

/* HOVER OLUNCA GÖRÜNÜR YAP */
.dropdown:hover .dropdown-content {
display: block;
}
.main-nav {
display: flex;
align-items: center;
}




.header-btn.dropdown-trigger {
    background: #1a4079;
    color: #fff;
    border-radius: 5px;
    padding: 0.45rem 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 22px;
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
}



.header-top-links .dropdown:hover > .header-btn.dropdown-trigger,
.header-top-links .dropdown:hover > .header-btn.dropdown-trigger::after {
    color: #e63946;
}


/* Hide hamburger and mobile menu on desktop */
.hamburger-menu,
.mobile-menu {
  display: none !important;
}


@media (max-width:1045px) {
  .main-nav > a, .main-nav > .dropdown {
    padding: 0 1.2rem;
    height: 48px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.06rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    border-bottom: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    position: relative; /* ALT MENÜ İÇİN GEREKLİ */
    }
    
  
  .dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 1.06rem;
    text-decoration: none;
    transition: background-color 0.3s;
    }

    .header-btn {
      font-size:1.06rem;
    }
    .header-btn2 {
      font-size:1.06rem;
    }
}



@media (max-width:968px) {
  .main-nav > a, .main-nav > .dropdown {
    padding: 0 0.8rem;
    height: 48px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    border-bottom: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    position: relative; /* ALT MENÜ İÇİN GEREKLİ */
    }

    .header-btn.dropdown-trigger {
      background: #1a4079;
      color: #fff;
      border-radius: 5px;
      padding: 0.45rem 1.1rem;
      font-weight: 600;
      border: none;
      border-radius: 22px;
  }
  

  .dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
    }

    .header-btn {
      font-size:1rem;
    }
    .header-btn2 {
      font-size:1rem;
    }
}



@media (max-width:831px) {
  .main-nav > a, .main-nav > .dropdown {
    padding: 0 0.59rem;
    height: 48px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.99rem;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
    border-bottom: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    position: relative; /* ALT MENÜ İÇİN GEREKLİ */
    }

    .header-btn.dropdown-trigger {
      background: #1a4079;
      color: #fff;
      border-radius: 5px;
      padding: 0.45rem 1.1rem;
      font-weight: 500;
      border: none;
      border-radius: 22px;
  }
  

  .dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 0.99rem;
    text-decoration: none;
    transition: background-color 0.3s;
    }

    .header-btn {
      font-size:0.99rem;
    }
    .header-btn2 {
      font-size:0.99rem;
    }
}













/* Mobile Styles (<= 768px) */
@media (max-width: 768px) {
  .header-top-links,
  .header-bottom {
    display: none !important;
  }
  body.mobile-menu-active .hamburger-menu {
    display: none !important;
  }
  .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 0;
    padding-left: 0.5rem;
  }
  .logo img {
    height: 70px !important;
    width: auto !important;
    max-width: 240px;
    padding: 0.1rem;
  }
  .hamburger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: auto;
    margin-top: 0.3rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none;
    cursor: pointer;
    z-index: 1201;
    outline: none;
    transition: background 0.2s;
  }
  .hamburger-menu:focus,
  .hamburger-menu:hover {
    background: #e6eaf3 !important;
    border-radius: 50%;
  }
  .hamburger-menu .bar {
    display: block;
    width: 26px;
    height: 3.5px;
    margin: 3.5px 0;
    background: #1a4079;
    border-radius: 2px;
    transition: background 0.2s;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 40, 60, 0.45);
    z-index: 1199;
    transition: opacity 0.3s;
    opacity: 0;
  }
  .mobile-menu.open ~ .mobile-menu-overlay,
  .mobile-menu-overlay.open {
    display: block;
    opacity: 1;
  }
  .mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80vw;
    max-width: 400px;
    background: #fff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    border-radius: 0;
  }
  .mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }
  .mobile-menu-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    top: 0;
  }
  .mobile-menu-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 2rem;
    color: #1a4079;
    cursor: pointer;
    z-index: 1202;
    background: none;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background: #e6eaf3;
    outline: none;
  }
  .mobile-menu-links, .mobile-menu-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2.5rem;
  }
  .mobile-menu-bottom {
    border-top: 1.5px solid #eee;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
  .mobile-menu a, .mobile-menu .dropdown-trigger {
    color: #1a4079;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0.7rem 0;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: block;
  }
  .mobile-menu a:hover, .mobile-menu .dropdown-trigger:hover {
    background: #e6eaf3;
    color: #e63946;
  }
  .mobile-menu .dropdown {
    position: relative;
  }
  .mobile-menu .dropdown-content {
    position: static;
    background: #f5f7fa;
    box-shadow: none;
    border-radius: 0 0 8px 8px;
    display: none;
    padding: 0;
    margin-top: 0.2rem;
  }
  .mobile-menu .dropdown.open .dropdown-content {
    display: block;
  }
  .mobile-menu .dropdown-trigger::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
  }
}
