/* CVT referans header düzeni — cvtcivata.com */

.cvt-header {
    position: relative;
}

.header-bg {
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.cvt-header .logo-anadolu {
    background-image: none !important;
    width: auto;
    height: auto;
    min-width: 0;
    float: left;
    margin: 30px 0 0;
    display: block;
}

.cvt-header .logo-anadolu img {
    display: block;
    max-width: 212px;
    max-height: 65px;
    width: auto;
    height: auto;
}

/* Arama kutusu — global input stillerini geçersiz kıl */
.cvt-header .srch-input {
    width: 118px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid #d8d8d8 !important;
    background-color: #f5f5f5 !important;
    background-image: none;
    color: #999 !important;
    font-size: 12px !important;
    line-height: normal !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    vertical-align: middle;
}

.cvt-header .srch-input:focus {
    outline: none;
    box-shadow: none !important;
    border-color: #bbb !important;
    color: #333 !important;
}

/* Masaüstü — menü + arama tek satır (CVT referans) */
@media (min-width: 992px) {
    .cvt-header .nav-toggle {
        display: none;
    }

    .cvt-header .top-right {
        float: right;
        margin: 18px 0 0;
        width: auto;
        display: block !important;
    }

    .cvt-header .menu {
        float: left;
        margin: 0 10px 0 0;
    }

    .cvt-header .arama {
        float: left;
        margin: 0 4px 0 0;
        padding-top: 2px;
    }

    .cvt-header .menu .sf-menu {
        float: left;
        margin-bottom: 0;
    }

    .cvt-header .menu .sf-menu > li {
        float: left;
        text-align: center;
        position: relative;
    }

    .cvt-header .menu .sf-menu > li > ul {
        position: absolute;
        top: 100% !important;
        left: 0 !important;
        display: none;
        min-width: 170px;
        margin: 0;
        padding: 0;
        z-index: 1100;
        visibility: visible !important;
        list-style: none;
    }

    .cvt-header .menu .sf-menu > li:hover > ul {
        display: block;
    }

    .cvt-header .menu .sf-menu > li > ul li {
        float: none;
        text-align: left;
    }

    .cvt-header .menu .sf-menu > li > a {
        padding: 8px 20px 5px;
        white-space: nowrap;
        color: #424242 !important;
        font-size: 14px;
        font-weight: bold;
    }

    .cvt-header .menu .sf-menu > li > a:hover {
        color: #083e9e !important;
    }

    .cvt-header .menu .sf-menu > li.has-sub > a::after {
        display: none;
    }

    .cvt-header .menu .sf-menu ul {
        text-align: left;
    }
}

/* Mobil — hamburger menü */
@media (max-width: 991px) {
    .cvt-header {
        padding-bottom: 8px;
    }

    .cvt-header .logo-anadolu {
        float: none;
        margin: 12px 0 0;
        max-width: calc(100% - 56px);
    }

    .cvt-header .nav-toggle {
        display: block;
        position: absolute;
        top: 12px;
        right: 0;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 2px solid #083e9e;
        border-radius: 6px;
        background: #fff;
        cursor: pointer;
    }

    .cvt-header .nav-toggle span,
    .cvt-header .nav-toggle span::before,
    .cvt-header .nav-toggle span::after {
        display: block;
        position: absolute;
        left: 50%;
        width: 22px;
        height: 2px;
        background: #083e9e;
        transform: translateX(-50%);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .cvt-header .nav-toggle span {
        top: 50%;
        margin-top: -1px;
    }

    .cvt-header .nav-toggle span::before {
        content: "";
        top: -7px;
    }

    .cvt-header .nav-toggle span::after {
        content: "";
        top: 7px;
    }

    .header-bg.nav-open .cvt-header .nav-toggle span {
        background: transparent;
    }

    .header-bg.nav-open .cvt-header .nav-toggle span::before {
        top: 0;
        transform: translateX(-50%) rotate(45deg);
    }

    .header-bg.nav-open .cvt-header .nav-toggle span::after {
        top: 0;
        transform: translateX(-50%) rotate(-45deg);
    }

    .cvt-header .top-right {
        float: none;
        width: 100%;
        margin: 0;
        display: none;
        padding-bottom: 12px;
    }

    .header-bg.nav-open .cvt-header .top-right {
        display: block;
    }

    .cvt-header .arama {
        float: none;
        margin: 12px 0;
        width: 100%;
    }

    .cvt-header .arama form {
        width: 100%;
    }

    .cvt-header .srch-input {
        width: 100% !important;
        max-width: 100%;
        float: none;
        height: 36px !important;
        line-height: 36px !important;
        padding: 6px 10px !important;
        color: #333 !important;
        background-color: #f1f0f0 !important;
        background-image: none !important;
        border-radius: 4px !important;
    }

    .cvt-header .menu {
        float: none;
        margin: 0;
        width: 100%;
    }

    .cvt-header .menu .sf-menu,
    .cvt-header .menu .sf-menu > li {
        float: none;
        width: 100%;
        text-align: left;
    }

    .cvt-header .menu .sf-menu > li > a {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid #e4e4e4;
        background: #fafafa;
    }

    .cvt-header .menu .sf-menu ul {
        position: static !important;
        top: auto !important;
        left: auto !important;
        display: none;
        width: 100% !important;
        visibility: visible !important;
        box-shadow: none;
    }

    .cvt-header .menu .sf-menu > li.sub-open > ul {
        display: block;
    }

    .cvt-header .menu .sf-menu ul li a {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 14px 10px 24px !important;
    }

    .cvt-header .menu .sf-menu > li.has-sub > a::after {
        content: "+";
        float: right;
        font-weight: 700;
        color: #083e9e;
    }

    .cvt-header .menu .sf-menu > li.sub-open > a::after {
        content: "−";
    }
}
