
/* =================== TURKMOBIL NAV =================== */

.tm-overlay{
  position: fixed;
  inset: 64px 0 0 0; /* Mega menu navbarın altından başlayacak! */
  background: rgba(0,0,0,0.40);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: .25s ease;
  transition: .25s ease;
  z-index: 9990; /* Mega menunun altında, içerik üstünde */
}

.tm-overlay.active{
  opacity: 1;
  pointer-events:auto;
}





    .tm-nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 9999;
      background-color: #ffffff;
      border-bottom: 1px solid #e6e6e6;
              -webkit-box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .07);
                      box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .07);
    }

    .tm-nav-inner {
      height: 64px;
    }

    .tm-nav-logo img {
      display: block;
    }

    /* Desktop menu */
    .tm-nav-menu {
      list-style: none;
      padding-left: 0;
      gap: 24px;
    }

    .tm-nav-item {
      position: relative;
    }

    .tm-nav-link,
    .tm-nav-link:focus {
      border: 0;
      background: none;
      padding: 8px 0;
      font-size: 1.125rem;
      color: #7d7d7d;
      font-weight: 500;
      line-height: 1.825rem;
      text-decoration: none;
      cursor: pointer;
    }

    .tm-nav-link:hover {
      color: #0d58c9;
    }

    /* Hover underline */
    .tm-nav-link::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -6px;
      height: 2px;
      background: -webkit-gradient(linear, left top, right top, from(#0d58c9), to(#1b99b9));
      background: linear-gradient(90deg, #0d58c9, #1b99b9);
      opacity: 0;
      -webkit-transform: scaleX(0.4);
              transform: scaleX(0.4);
      -webkit-transform-origin: center;
              transform-origin: center;
      -webkit-transition: opacity 0.18s ease, -webkit-transform 0.18s ease;
      transition: opacity 0.18s ease, -webkit-transform 0.18s ease;
      transition: opacity 0.18s ease, transform 0.18s ease;
      transition: opacity 0.18s ease, transform 0.18s ease, -webkit-transform 0.18s ease;
    }

    .tm-nav-link:hover::after,
    .tm-nav-link.tm-nav-link-active::after {
      opacity: 1;
      -webkit-transform: scaleX(1);
              transform: scaleX(1);
    }

    /* Hamburger */
    .tm-nav-toggle {
      border: none;
      background: none;
      padding: 6px 4px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
          -ms-flex-direction: column;
              flex-direction: column;
      -webkit-box-pack: center;
          -ms-flex-pack: center;
              justify-content: center;
      gap: 4px;
    }

    .tm-nav-toggle-bar {
      width: 22px;
      height: 2px;
      border-radius: 999px;
      background-color: #111827;
      -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
      transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
      transition: transform 0.25s ease, opacity 0.25s ease;
      transition: transform 0.25s ease, opacity 0.25s ease, -webkit-transform 0.25s ease;
    }

    /* =================== DESKTOP MEGA MENU =================== */

    .tm-mega {
      position: fixed;
      left: 0;
      right: 0;
      top: 64px;
      background-color: #ffffff;
      -webkit-box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
              box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
      border-bottom: 1px solid #e5e7eb;
      opacity: 0;
      pointer-events: none;
      -webkit-transform: translateY(-8px);
              transform: translateY(-8px);
      -webkit-transition: opacity 0.18s ease, -webkit-transform 0.18s ease;
      transition: opacity 0.18s ease, -webkit-transform 0.18s ease;
      transition: opacity 0.18s ease, transform 0.18s ease;
      transition: opacity 0.18s ease, transform 0.18s ease, -webkit-transform 0.18s ease;
      z-index: 9998 !important;
    }

    .tm-mega.is-open {
      opacity: 1;
      pointer-events: auto;
      -webkit-transform: translateY(0);
              transform: translateY(0);
    }


    .tm-mega-inner {
      padding: 24px 40px 28px;
    }

    .tm-mega-layout {
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 32px;
    }

    /* Left column */
    .tm-mega-left {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
          -ms-flex-direction: column;
              flex-direction: column;
      gap: 6px;
      border-right: 1px solid #e5e7eb;
      padding-right: 16px;
    }

    .tm-mega-left-item {
      border: none;
      background: none;
      text-align: left;
      padding: 8px 10px;
      border-radius: 999px;
      font-size: 0.95rem;
      color: #4b5563;
      cursor: pointer;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      -webkit-box-pack: justify;
          -ms-flex-pack: justify;
              justify-content: space-between;
    }

    .tm-mega-left-item:hover {
      background-color: #f3f4f6;
      color: #111827;
    }

    .tm-mega-left-item.active {
      background-color: #0d58c9;
      color: #ffffff;
    }

    /* Close button */
    .tm-mega-close {
      border: none;
      background: none;
      position: absolute;
      right: 50%;
      bottom: 7px;
      font-size: 1.1rem;
      color: #6b7280;
    }

    .tm-mega-close:hover {
      color: #111827;
    }

    /* Right content */
    .tm-mega-right {
      position: relative;
    }

    .tm-mega-panel {
      display: none;
    }

    .tm-mega-panel.active {
      display: block;
    }

    /* Cards */
    .tm-mega-cards {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
    }

    .tm-mega-card {
      background: #f9fafb;
      border-radius: 16px;
      overflow: hidden;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
          -ms-flex-direction: column;
              flex-direction: column;
      -webkit-box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
              box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
      -webkit-transition: background 0.18s ease, -webkit-transform 0.18s ease, -webkit-box-shadow 0.18s ease;
      transition: background 0.18s ease, -webkit-transform 0.18s ease, -webkit-box-shadow 0.18s ease;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, -webkit-transform 0.18s ease, -webkit-box-shadow 0.18s ease;
    }

    .tm-mega-card-img {
      width: 100%;
      height: 150px;
      -o-object-fit: cover;
         object-fit: cover;
    }

    .tm-mega-card-body {
      padding: 14px 16px 16px;
    }

    .tm-mega-card-title {
      font-size: 0.98rem;
      font-weight: 600;
      margin-bottom: 6px;
      color: #111827;
    }

    .tm-mega-card-text {
      font-size: 0.85rem;
      color: #6b7280;
      line-height: 1.5;
      margin-bottom: 10px;
    }

    .tm-mega-card-link {
      border: none;
      background: none;
      padding: 0;
      font-size: 0.85rem;
      font-weight: 600;
      color: #0d58c9;
      display: -webkit-inline-box;
      display: -ms-inline-flexbox;
      display: inline-flex;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      gap: 4px;
      cursor: pointer;
    }

    .tm-mega-card-link i {
      font-size: 0.78rem;
    }

    /* Hover efekti */
    .tm-mega-card:hover {
      -webkit-transform: translateY(-4px);
              transform: translateY(-4px);
      -webkit-box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
              box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
      background: #ffffff;
    }

    /* Bottom CTA */
    .tm-mega-bottom-link {
      margin-top: 18px;
      border-radius: 999px;
      border: 1px solid #d1d5db;
      background: #ffffff;
      padding: 8px 18px;
      font-size: 0.85rem;
      color: #111827;
      display: -webkit-inline-box;
      display: -ms-inline-flexbox;
      display: inline-flex;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      gap: 8px;
    }

    .tm-mega-bottom-link i {
      font-size: 0.8rem;
    }

    /* =================== MOBILE FULLSCREEN MENU =================== */
    .tm-mobile-menu {
      position: fixed;
      inset: 0;
      background-color: #ffffff;
      z-index: 1200;
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
      -webkit-transition: -webkit-transform 0.22s ease-out;
      transition: -webkit-transform 0.22s ease-out;
      transition: transform 0.22s ease-out;
      transition: transform 0.22s ease-out, -webkit-transform 0.22s ease-out;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
          -ms-flex-direction: column;
              flex-direction: column;
    }

    .tm-mobile-menu.is-open {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }

    .tm-mobile-menu-header {
      padding: 14px 20px;
      border-bottom: 1px solid #e5e7eb;
    }

    .tm-mobile-close {
      border: none;
      background: none;
      font-size: 1.2rem;
      color: #4b5563;
    }

    .tm-mobile-menu-body {
      padding: 12px 8px 24px;
      overflow-y: auto;
    }

    .tm-mobile-item {
      width: 100%;
      height: 15.47vw;
      border: none;
      background: none;
      padding: 14px 14px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      -webkit-box-pack: justify;
          -ms-flex-pack: justify;
              justify-content: space-between;
      gap: 10px;
      border-bottom: 1px solid #f3f4f6;
      cursor: pointer;
    }

    .tm-mobile-icon {
      width: 28px;
      text-align: center;
      color: #4b5563;
    }

    .tm-mobile-text {
      -webkit-box-flex: 1;
          -ms-flex: 1;
              flex: 1;
      text-align: left;
      font-size: 4vw;
      color: #111827;
    }

    .tm-mobile-chevron {
      color: #9ca3af;
      font-size: 0.75rem;
    }

    .tm-mobile-item:hover {
      background-color: #f9fafb;
    }

    /* Mobil submenu kapalı başlangıç */
.tm-mobile-submenu {
  display: none;
  padding-left: 48px;
  background: #f9fafb;
}

/* Açık olduğunda */
.tm-mobile-submenu.open {
  display: block;
}

/* Alt elemanlar */
.tm-mobile-subitem {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 4px;
  font-size: 3.47vw;
  text-align: left;
  color: #374151;
  border-bottom: 1px solid #eee;
}

.tm-mobile-subitem:hover {
  background: #eef2ff;
  color: #1e3a8a;
}

/* Ana başlık için ok yönü */
.tm-mobile-item.tm-mobile-has-sub .tm-mobile-chevron {
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

.tm-mobile-item.tm-mobile-has-sub.active .tm-mobile-chevron {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

/* ============ HAMBURGER TO X ANIMATION ============ */

/* Toggle açıkken */
.tm-nav-toggle.is-open .tm-nav-toggle-bar:nth-child(1) {
  -webkit-transform: translateY(6px) rotate(45deg);
          transform: translateY(6px) rotate(45deg);
}

.tm-nav-toggle.is-open .tm-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.tm-nav-toggle.is-open .tm-nav-toggle-bar:nth-child(3) {
  -webkit-transform: translateY(-6px) rotate(-45deg);
          transform: translateY(-6px) rotate(-45deg);
}




/* =================== RESPONSIVE =================== */

    
@media (min-width:992px) {
    .tm-nav-menu { display:-webkit-box !important; display:-ms-flexbox !important; display:flex !important; }
    .tm-nav-toggle { display:none !important; }
}



    @media (max-width: 991.98px) {
      .tm-mega {
        display: none !important;
      } 

      .tm-nav-inner {
        height: 56px;
      }
       .tm-mega-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
          .tm-nav-menu{ display:none !important; }
    .tm-nav-toggle{ display:-webkit-box !important; display:-ms-flexbox !important; display:flex !important; }


    }

    @media (max-width: 1199.98px) {
      .tm-mega-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .tm-nav-link {
        font-size: 1rem;
      }
      .tm-nav-item .em-btn {
        font-size: 0.6rem;
      }
      
    }

    @media (max-width: 767.98px) {
      .tm-mega-cards {
        grid-template-columns: minmax(0, 1fr);
      }
    }




