/* MegaMenuBuilder - temadan bağımsız çalışacak şekilde isim alanı (mmb-) ile yazıldı.
   Renkleri kendi tema paletinize göre değiştirin. */

.mmb-nav {
    position: relative;
    width: 100%;
}

.mmb-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmb-menu-item {
    position: relative;
}

.mmb-menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.mmb-menu-link:hover {
    color: #a97c50; /* MOREEN tonuna göre ayarlayın */
}

.mmb-caret {
    font-size: 10px;
    line-height: 1;
}

/* Mega panel */
.mmb-megamenu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 500;
    padding: 24px 32px;
}

.mmb-menu-item.mmb-has-mega:hover > .mmb-megamenu-panel,
.mmb-menu-item.mmb-has-mega.mmb-open > .mmb-megamenu-panel {
    display: block;
}

.mmb-megamenu-columns {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.mmb-megamenu-column {
    flex: 1;
    min-width: 160px;
}

.mmb-megamenu-group {
    margin-bottom: 20px;
}

.mmb-mega-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Kolon başlıkları */
.mmb-mega-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #0b1f3a;
    margin-bottom: 14px;
}

/* Alt menü öğeleri */
.mmb-mega-sublist a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #444;
}

.mmb-mega-sublist li {
    margin: 0 0 6px;
}

.mmb-mega-sublist a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
}

.mmb-mega-sublist a:hover {
    color: #a97c50;
    text-decoration: underline;
}

/* Mobil: hover yerine tıklama ile aç/kapa (megamenu.js bunu yönetir) */
@media (max-width: 991px) {
    .mmb-menu {
        flex-direction: column;
    }

    .mmb-megamenu-panel {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 8px 16px 8px 24px;
    }

    .mmb-megamenu-columns {
        flex-direction: column;
        gap: 12px;
    }

    .mmb-menu-item.mmb-has-mega:hover > .mmb-megamenu-panel {
        display: none;
    }

    .mmb-menu-item.mmb-has-mega.mmb-open > .mmb-megamenu-panel {
        display: block;
    }
}
/* Mega paneli tek menu item genisligine hapsetme */
@media (min-width: 992px) {
    .mmb-menu-item.mmb-has-mega {
        position: static;
    }

    .mmb-megamenu-panel {
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
    }
}
/* Desktop mega menu: 3 menu columns + right banner */
@media (min-width: 992px) {
    .mmb-megamenu-content {
        display: flex;
        gap: 36px;
        max-width: 1200px;
        margin: 0 auto;
        align-items: flex-start;
    }

    .mmb-megamenu-columns {
        flex: 1;
        max-width: none;
        margin: 0;
    }

    .mmb-megamenu-banner {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .mmb-megamenu-banner a {
        display: block;
    }

    .mmb-megamenu-banner-img {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
    }
}

/* Mobil */
@media (max-width: 991px) {
    .mmb-megamenu-content {
        display: block;
    }

    .mmb-megamenu-banner {
        margin-top: 16px;
    }

    .mmb-megamenu-banner-img {
        display: block;
        width: 100%;
        height: auto;
    }
}
/* Mega menu bar: Creative Elements containerindan cik ve ekrana ortala */
@media (min-width: 992px) {
    .mmb-nav {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        display: block !important;
    }

    .mmb-menu {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
/* Mega panel içindeki yazılar header renginden etkilenmesin */
.mmb-megamenu-panel .mmb-mega-heading {
    color: #0b1f3a !important;
}

.mmb-megamenu-panel .mmb-mega-sublist a {
    color: #444 !important;
}

.mmb-megamenu-panel .mmb-mega-heading:hover,
.mmb-megamenu-panel .mmb-mega-sublist a:hover {
    color: #a97c50 !important;
}
/* Mobil hamburger menu */
.mmb-mobile-toggle {
    display: none;
}

@media (max-width: 991px) {
    .mmb-nav {
        position: relative;
        width: 100%;
    }

    .mmb-mobile-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 42px;
        height: 42px;
        padding: 8px;
        margin: 8px 12px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.35);
        border-radius: 4px;
        cursor: pointer;
    }

    .mmb-mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
    }

    .mmb-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mmb-nav.mmb-mobile-open .mmb-menu {
        display: flex !important;
    }

    .mmb-menu-item {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    .mmb-menu-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        color: #fff !important;
    }

    .mmb-megamenu-panel {
        position: static;
        width: 100%;
        padding: 8px 16px 16px;
        background: #fff;
        box-shadow: none;
        border-top: none;
    }

    .mmb-megamenu-columns {
        flex-direction: column;
        gap: 12px;
    }

    .mmb-megamenu-banner {
        margin-top: 16px;
    }

    .mmb-megamenu-banner-img {
        width: 100%;
        height: auto;
    }
}
@media (max-width: 991px) {
    .mmb-nav.mmb-mobile-open {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mmb-megamenu-panel {
        max-height: none;
        overflow: visible;
    }

    .mmb-menu {
        padding-bottom: 20px;
    }
}