:root {
    --corporate-blue: #1c6bb5;
    --corporate-accent: #3d6137;
    --corporate-red: #b62829;
    --nav-font: 'Inter', sans-serif;
}

.header-corporate {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    width: calc(100% - 60px);
    max-width: 1610px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: all 0.4s;
    border: 1px solid rgba(0,0,0,0.05);
    /* Removed overflow:hidden to allow Mega Menus to be visible */
}

/* Municipal Utility Bar */
.h-utility-bar {
    background: rgba(28, 107, 181, 0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
}
.h-utility-bar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.u-links { display: flex; gap: 20px; }
.u-links a {     color: #3c4a5d;
text-decoration: none !important;
transition: 0.2s;
font-size: 11px; }
.u-links a i { color: var(--corporate-blue); margin-right: 5px; }
.u-links a:hover { color: var(--corporate-blue); }
.u-info { color: #64748b;font-size: 12px; }

/* Main Menu Area */
.menu-area { padding: 0 20px; }
.menu-wrapper { display: flex; align-items: center; justify-content: space-between; height: 100px; }

/* Official Branding */
.brand a { display: flex; align-items: center; gap: 15px; text-decoration: none !important; }
.brand img { height: 65px; width: auto; }
.logo-white { display: none; }
.brand-text-official { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text-official .t1 { font-size: 12px; color: #64748b; font-weight: 800; }
.brand-text-official .t2 { font-size: 22px; color: var(--corporate-blue); font-weight: 900; letter-spacing: -0.5px; }
.brand-text-official .t3 { font-size: 14px; color: #b62829; font-weight: 800; letter-spacing: 2px; }

/* Desktop Navigation Row Fix */
.desktop-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 30px;
    height: 100%;
}
.nav-row {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    height: 100%;
}
.nav-item { 
    position: relative; 
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-item.mega-trigger { position: static;    display: flex;
justify-content: center; }

.nav-link {
    font-weight: 800;
    font-size: 14px;
    color: #334155;
    padding: 0 15px;
    border-radius: 12px;
    transition: 0.3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    height: 50px; /* Sabit yükseklik buton görünümü için */
}
.nav-item:hover .nav-link { background: rgba(28, 107, 181, 0.08); color: var(--corporate-blue); }

/* Instant Mega Menu */
.mega-menu-content {
    position: absolute;
    top: 100%;
    left: 30px;
    right: 30px;
    background: #fff;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    padding: 40px;
    display: none; 
    border: 1px solid rgba(0,0,0,0.08);
    border-top: 4px solid var(--corporate-blue);
    border-radius: 0 0 20px 20px;
    z-index: 1000;
    transform: translateZ(0); 
}

/* Boşluk Köprüsü: Fare aşağı inerken menünün kapanmasını engeller */
.mega-menu-content::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: transparent;
}

.mega-trigger:hover .mega-menu-content { 
    display: block; 
}

/* Mega Menu Content Animation */
@keyframes megaBoxIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-trigger:hover .mega-menu-content .m-col li,
.mega-trigger:hover .mega-menu-content .mega-links-list-complex li,
.mega-trigger:hover .mega-menu-content .baskan-card-detailed,
.mega-trigger:hover .mega-menu-content .mega-side-info,
.mega-trigger:hover .mega-menu-content .mega-subtitle {
    animation: megaBoxIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}

.mega-trigger:hover .mega-menu-content .mega-side-info { animation-delay: 0.05s; }
.mega-trigger:hover .mega-menu-content .baskan-card-detailed { animation-delay: 0.05s; }
.mega-trigger:hover .mega-menu-content .complex-mega .col-md-4:nth-child(2) { animation-delay: 0.1s; }
.mega-trigger:hover .mega-menu-content .complex-mega .col-md-4:nth-child(3) { animation-delay: 0.15s; }

.baskan-card-detailed {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.img-frame { width: 120px; height: 120px; margin: 0 auto 15px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.baskan-card-detailed h5 { color: var(--corporate-blue); font-weight: 900; margin: 0; }
.baskan-card-detailed p { font-size: 13px; color: #b62829; font-weight: 700; margin-top: 5px; }
.b-links { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.bl-item { color: #475569; text-decoration: none !important; font-size: 13px; font-weight: 700; transition: 0.2s; }
.bl-item:hover { color: var(--corporate-blue); transform: translateX(5px); }

.mega-subtitle { font-size: 12px; font-weight: 900; color: #94a3b8; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 20px; letter-spacing: 1px; }
.mega-links-list-complex { list-style: none; padding: 0; margin: 0; }
.mega-links-list-complex li { margin-bottom: 15px; }
.mega-links-list-complex li a { 
    color: #334155; 
    font-weight: 700; 
    font-size: 14.5px; 
    text-decoration: none !important; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    transition: 0.3s; 
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff;
}
.mega-links-list-complex li a i { font-size: 18px; color: var(--corporate-blue); }
.mega-links-list-complex li a:hover { 
    color: var(--corporate-blue); 
    background: #f8fafc;
    border-color: var(--corporate-blue);
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Wide Mega */
.wide-mega .mega-menu-inner { display: flex; gap: 40px; }
.mega-side-info { flex: 0 0 250px; }
.info-box { background: linear-gradient(135deg, var(--corporate-blue), #1553a4); padding: 30px; border-radius: 20px; color: #fff; }
.info-box i { font-size: 32px; opacity: 0.5; }
.info-box h5 { font-weight: 900; margin-top: 15px; }
.info-box p { font-size: 13px; opacity: 0.8; margin: 10px 0 0; }
.mega-links-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.m-col { list-style: none; padding: 0; margin: 0; }
.m-col li { margin-bottom: 8px; }
.m-col li a { 
    color: #334155; 
    font-weight: 700; 
    font-size: 14px; 
    text-decoration: none !important; 
    display: flex; 
    align-items: center;
    gap: 12px;
    padding: 12px 18px; 
    border-radius: 12px; 
    transition: 0.3s; 
border: 2px solid #1c6bb5;
    background: #fff;
    margin-bottom: 8px;
}
.m-col li a .icon-m {
font-size: 12px;
color: #ffffff;
/* opacity: 0.5; */
background-color: #1c6bb5;
transition: 0.3s;
padding: 4px;
border-radius: 5px;
}
.m-col li a:hover .icon-m {
    opacity: 1;
    transform: translateX(3px);
}
.m-col li a:hover { 
    background: #f8fafc; 
    color: var(--corporate-blue); 
    border-color: var(--corporate-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Municipal Action Buttons */
.action-btns-municipal { display: flex; align-items: center; gap: 20px; }
.btn-ebelediye-hub {
    background: var(--corporate-red);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(28, 107, 181, 0.3);
    transition: 0.3s;
}
.btn-ebelediye-hub:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(28, 107, 181, 0.4); }
.btn-ebelediye-hub i { font-size: 24px; animation: pulseSpark 2s infinite; }
.t-wrap { display: flex; flex-direction: column; }
.t-wrap .t1 { font-size: 15px; font-weight: 900; line-height: 1; }
.t-wrap .t2 { font-size: 11px; font-weight: 600; opacity: 0.8; }
@keyframes pulseSpark { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } }

.small-actions { display: flex; gap: 8px; }
.mobile-hamburger { display: none; }
.s-btn { 
    width: 44px; 
    height: 44px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    background: #fff; 
    color: #64748b; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.s-btn:hover { background: #f8fafc; color: var(--corporate-blue); border-color: var(--corporate-blue); }

/* Global Search Overlay */
.global-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}
.global-search-overlay.active { opacity: 1; visibility: visible; }
.search-close-x { position: absolute; top: 40px; right: 40px; color: #fff; font-size: 30px; cursor: pointer; }
.search-box-inner { width: 100%; max-width: 800px; padding: 40px; }
.search-box-inner form { position: relative; }
.search-box-inner input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 48px;
    color: #fff;
    font-weight: 800;
    outline: none;
    transition: 0.3s;
}
.search-box-inner input:focus { border-color: var(--corporate-blue); }
.search-box-inner button {
    position: absolute;
    right: 0;
    bottom: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

/* Sticky Mode */
.header-corporate.is-sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1610px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: slideInDown 0.4s ease;
    background: rgba(255, 255, 255, 0.98);
}
.header-corporate.is-sticky .h-utility-bar { display: none; }
.header-corporate.is-sticky .menu-wrapper { height: 75px; }
.header-corporate.is-sticky .brand img { height: 55px; }

@keyframes slideInDown { 
    from { transform: translate(-50%, -100%); } 
    to { transform: translate(-50%, 0); } 
}

/* Modern Mobile Menu Styling */
.mobile-menu-box {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}
.m-menu-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}
.m-brand { display: flex; flex-direction: column; line-height: 1.1; }
.m-t1 { font-size: 13px; font-weight: 800; color: var(--corporate-blue); }
.m-t2 { font-size: 11px; font-weight: 700; color: var(--corporate-red); letter-spacing: 1px; }
.m-close { background: #f1f5f9; border: none; width: 44px; height: 44px; border-radius: 12px; font-size: 20px; color: #334155; }

.mobile-menu-box .m-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}
.m-sec-title { font-size: 11px; font-weight: 800; color: #94a3b8; letter-spacing: 1px; margin-bottom: 20px; margin-top: 30px; }
.m-sec-title:first-child { margin-top: 0; }

.m-nav-list { list-style: none; padding: 0; margin: 0; }
.m-nav-list > li { margin-bottom: 8px; }
.m-nav-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 14px;
    color: #334155;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    transition: 0.2s;
}
.m-nav-list > li > a i { font-size: 12px; opacity: 0.5; }
.m-nav-list > li > a.m-has-child { border-left: 4px solid var(--corporate-blue); }

.m-sub-list { list-style: none; padding: 10px 0 10px 20px; margin: 0; border-left: 1px dashed #e2e8f0; margin-left: 20px; }
.m-sub-list li { margin-bottom: 10px; }
.m-sub-list li a { color: #64748b; font-weight: 600; font-size: 14px; text-decoration: none !important; }

.m-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mq-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.mq-item i { font-size: 20px; color: var(--corporate-blue); margin-bottom: 5px; }
.mq-item span { font-size: 11px; font-weight: 700; color: #64748b; }

.m-footer { margin-top: 40px; padding-bottom: 40px; }
.m-btn-ebelediye {
    display: block;
    background: var(--corporate-red);
    color: #fff !important;
    text-align: center;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(182, 40, 41, 0.2);
}

@media (max-width: 992px) {
    .header-corporate {
        top: 0;
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 0 0px 0px;
        background-color: #1553a4;
    }
    .header-corporate.is-sticky {
                         width: 100% !important;
        left: 0 !important;
        transform: none !important;
        animation: none;
        background-color: #1553a4;
        border-radius: 0px; 
    }
    @keyframes slideInDown { 
        from { transform: translateY(-100%); } 
        to { transform: translateY(0); } 
    }
    .header-corporate.is-sticky {
        animation: slideInDown 0.4s ease;
    }

    .desktop-navigation { display: none; }
    .h-utility-bar { display: none; }
    
    .menu-wrapper { height: 75px; padding: 0 10px; gap: 5px; }
    .brand img { height: 48px; }
    .logo-dark { display: none; }
    .logo-white { display: block; }
    .brand-text-official { display: none; }
    
    .btn-ebelediye-hub {
        display: none !important;
    }
    
    .action-btns-municipal { gap: 8px; }
    .s-btn { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
    .mobile-hamburger { display: flex !important; }
}

@media (max-width: 480px) {
    .header-corporate {
        width: 100%;
    }
    .menu-wrapper { height: 70px; }
    .brand img { height: 42px; }
    .action-btns-municipal { gap: 5px; }
}
