/* Header layout and typography */
.header {
  width: 100%;
  height: 87px; /* explicit header height */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 600; /* Semi Bold */
  font-size: 14px;
  line-height: 1; /* auto-ish for buttons/links */
  letter-spacing: -0.02em; /* -2% */
  background-color: #2F3DA2;
  align-items: center;
  justify-content: center;
  display: flex;
}

.header .header-inner {
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: space-between; /* left/right alignment */
  gap: 16px;
  height: 100%; /* fill header height */
  width: 1200px;
}

.header .header-left,
.header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header .logo-img {
  display: block;
  width: 120px;
  height: 39px;
}

/* Navigation */
.header nav .menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .menu > li > a,
.header .menu > li > .dropdown-toggle {
  color: #fff; /* slate-900-ish */
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 280ms ease, color 280ms ease, opacity 280ms ease;
  font-size: 14px;
  font-weight: 500;
}

/* Dropdown caret indicator */
.header .menu > li > .dropdown-toggle {
  position: relative;
  padding-right: 18px; /* room for caret */
}

.header .menu > li > .dropdown-toggle::after {
  content: "\25BE"; /* ▾ */
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  transition: transform 280ms ease, color 280ms ease, opacity 280ms ease;
  transform-origin: 50% 45%;
}

.header .dropdown:hover > .dropdown-toggle::after,
.header .dropdown:focus-within > .dropdown-toggle::after,
.header .dropdown.active > .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Login dropdown caret (desktop auth actions) */
.header .dropdown-login > .dropdown-toggle {
  position: relative;
  padding-right: 18px; /* room for caret */
}

.header .dropdown-login > .dropdown-toggle::after {
  content: "\25BE"; /* ▾ */
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  transition: transform 280ms ease, color 280ms ease, opacity 280ms ease;
  transform-origin: 50% 45%;
  color: #fff; /* keep caret visible on dark header */
}

.header .dropdown-login:hover > .dropdown-toggle::after,
.header .dropdown-login:focus-within > .dropdown-toggle::after,
.header .dropdown-login.active > .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Colored states for dropdown toggles */
.header .dropdown-bireysel:hover > .dropdown-toggle,
.header .dropdown-bireysel:focus-within > .dropdown-toggle,
.header .dropdown-bireysel.active > .dropdown-toggle {
  background: #00E1E0;
  color: #000;
}

.header .dropdown-bireysel:hover > .dropdown-toggle::after,
.header .dropdown-bireysel:focus-within > .dropdown-toggle::after,
.header .dropdown-bireysel.active > .dropdown-toggle::after {
  color: #000;
}

.header .dropdown-kurumsal:hover > .dropdown-toggle,
.header .dropdown-kurumsal:focus-within > .dropdown-toggle,
.header .dropdown-kurumsal.active > .dropdown-toggle {
  background: #012061;
  color: #fff;
}

.header .dropdown-kurumsal:hover > .dropdown-toggle::after,
.header .dropdown-kurumsal:focus-within > .dropdown-toggle::after,
.header .dropdown-kurumsal.active > .dropdown-toggle::after {
  color: #fff;
}

/* Dropdown */
.header .dropdown {
  position: relative;
}

.header .dropdown-menu {
  position: absolute;
  top: calc(100% + 1em);
  left: 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 8px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease, visibility 280ms ease;
  pointer-events: none;
}

.header .dropdown:hover > .dropdown-menu,
.header .dropdown:focus-within > .dropdown-menu,
.header .dropdown.active > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header .dropdown-menu .sub-li {
  list-style: none;
}

.header .dropdown-menu .sub-li a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

.header .dropdown-menu .sub-li a:hover {
  background: rgba(120, 125, 255, 0.08);
}

/* Megamenu for Bireysel */
.header .dropdown-menu.megamenu {
  padding: 20px;
  min-width: 750px;
}

.header .megamenu-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.header .megamenu-left {
  border-radius: 12px;
  padding: 20px;
  display: flex;
    flex-direction: column;
}

.header .megamenu-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.2;
  color: #0F172A;
}

.header .megamenu-subtitle {
  margin: 0 0 14px 0;
  font-weight: 400;
  color: #334155;
  line-height: 1.4;
}

.header .cta-bireysel {
  background: #00E1E0;
  color: #02131A;
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 54px rgba(0, 225, 224, 0.35), 0 0 4px rgba(0, 225, 224, 0.65);
}

/* Kurumsal variants */
.header .cta-kurumsal {
  background: #2F3DA2;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 54px rgba(47, 61, 162, 0.35), 0 0 4px rgba(47, 61, 162, 0.65);
}

.header .megamenu-right-4 {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.header .megamenu-right {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.header .feature-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    padding: 12px;
    border-bottom: 1px solid #e9e9e9;
}
.last-child{
    border-bottom: none !important;
}

.header .feature-item:hover {
  background: rgba(120,125,255,0.12);
  border-radius: 12px;
}

.header .feature-icon {
  color: #787DFF;
  font-size: 20px;
  line-height: 1;
      width: 40px;
    height: 40px;
        margin-left: -10px;
}
.exception-icon {
    width: 25px !important;
    height: 25px !important;
    padding: 9px;

}

.header .feature-texts { color: #0F172A; }
.header .feature-title { font-weight: 700; margin-bottom: 4px; font-size: 16px; }
.header .feature-subtitle { font-weight: 400; opacity: 0.8; line-height: 1.4; font-size: 12px;}

/* Auth actions */
.header .auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-height, 37px);
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.header .button-ghost {
  background: transparent;
  color: #fff;
}

.header .button-primary {
  background: #009F48; /* Hesap Oluştur color */
  color: #fff;
}

.header .login-button .icon-login {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background: currentColor;
  -webkit-mask: url('../images/icons/login.svg') center/contain no-repeat;
  mask: url('../images/icons/login.svg') center/contain no-repeat;
}

/* Language switch */
.header .lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header .lang-option {
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
}

.header .lang-option.active {
  opacity: 1;
}

.header .lang-sep {
  opacity: 0.4;
  color: #fff;
}
/* Giriş Yap Dropdown */
.dropdown-login {
  position: relative;
  display: inline-block;
}

.login-dropdown-menu {
  display: none;
  position: absolute;
  top: 100% !important;
  right: 0;
  background: #fff;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 127px !important;
  height: 78px;
}

.login-dropdown-menu li {
  margin: 0;
}

.login-dropdown-menu .login-option {
  display: block;
  padding: 5px;
  text-align: left;
  background: none;
  border: none;
  color: #333;
  text-decoration: none;
  height: 30px;
  align-items: center;
    display: flex;
    justify-content: start;
    border-radius: 14px;
}

.login-dropdown-menu .login-option:hover {
  background: #f5f5f5;
}

/* Hover ile açılma */
.dropdown-login:hover .login-dropdown-menu {
  display: block;
      height: 78px;
    width: 127px;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .header .menu { gap: 10px; }
  .header .button { padding: 0 12px; }
}

@media (max-width: 800px) {
  .header {
    height: 70px;
  }
  
  .header .header-inner {
    padding: 0 16px;
    width: 100%;
    max-width: none;
  }
  
  .header .logo-img {
    width: 100px;
    height: 32px;
  }
  
  /* Hide desktop elements on mobile */
  .header nav,
  .header .auth-actions,
  .header .lang-switch {
    display: none;
  }
}

@media (max-width: 480px) {
  .header {
    height: 60px;
  }
  
  .header .header-inner {
    padding: 0 12px;
  }
  
  .header .logo-img {
    width: 90px;
    height: 29px;
  }
}

