@import url("./navbar-responsive.css");

/**
 * CONTENTS
 *
 * NAVBAR
 *   General
 *   Nav Header.....................Header that is only visible in the inner pages except, treatment detail page.
 *     Take Me Away.................A button on header that redirects into contact page.
 *     Support Line.................An element that shows the phone number of the support line.
 *   Nav Content....................Main navbar that is visible in all pages.
 *     Nav Links....................Links of the main navbar.
 *     Nav Locations!...............An element that shows the hospital locations in a popup menu. ! Popup menu is in NAVBAR -> Nav Content -> Nav Locations
 *     Select Language..............Language selection menu on the main navbar at the main and treatment details page and on the nav header at the other internal pages.
 *     Dropdown Menus!..............All dropdown menus inside the main navbar.
 *     Active.......................Main navbar when the page is scrolled.
*/


/*------------------------------------*\
  # NAVBAR
\*------------------------------------*/

/* ---------General--------- */

    .global-nav {
        z-index: 200;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

/* ---------Nav Header---------*/

    .nav-header {
        display: flex;
        justify-content: flex-end;
        background-color: #4fb8a4b8;
        padding: 14px 145px 14px 80px;
        z-index: 300;
        position: relative;
        align-items: center;
        height: 70px;
    }
    .nav-header p img {
        width: 40px;
        margin-right: 20px;
    }
    .nav-header-texts {
        display: flex;
        gap: 100px;
    }

    /* -----Take Me Away----- */

    .nav-header .beni-gotur {
        color: var(--text-white);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        column-gap: 10px;
        padding: 4px 10px;
        border: 1px solid var(--white);
        margin-right: 20px;
        font-size: 16px;
        font-family: Latinka-Light;
        transition: none;
        height: 42px;
        transition: 250ms scale;
    }
    .beni-gotur span {
        font-size: 14px;
        letter-spacing: 1px;
        font-family: "Roboto Slab";
    }
    .beni-gotur:hover{
        scale: 1.05;
    }

    /* -----Support Line----- */

    .nav-header-support-line {
        line-height: 1.1;
    }
    .nav-header-support-line .nav-header-number {
        font-family: "Roboto Slab", serif;
        font-size: 23px;
        font-weight: 400;
        font-style: normal;
        color: #fff;
        text-align: right;
        letter-spacing: 2px;
        margin-bottom: 5px;
    }
    .nav-header-support-line p {
        font-family: "Roboto Slab";
        font-size: 11px;
        font-weight: 400;
        font-style: normal;
        color: #aefdff;
    }
    .nav-header p {
        font-family: "Futura BT Light";
        font-size: 15px;
        font-style: normal;
        text-align: left;
        letter-spacing: 2px;
        display: flex;
    }

/* ---------Nav Content--------- */

    .nav-content{
        display: flex;
        width: 100%;
        justify-content: space-between;
        /* actual padding top is 60px */
        padding: 70px 80px 0 80px;
        top: 0;
        transition: none;
        transform: translateY(-30%);
        background-color: transparent;
    }

    /* 'bgchange' class is added when mobile menu is opened */
    .nav-content.bgchange {
        background-color: var(--turquoise) !important;
    }
    .global-nav:not(.active) .nav-content{
        position: absolute;
    }

    .nav-links-main:not(.active) .nav-logo-a{
        transform: translateY(50%);
    }
    .nav-logo-a{
        margin-right: 50px;
    }
    .nav-content .nav-logo {
        text-align: left;
    }

    /* -----Nav Links----- */    

    .nav-links-top-row{
        display: flex;
        flex-direction: row-reverse;
        align-self: end;
        column-gap: 20px;
    }

    .global-nav:is(.wrapper-tedavi-content .global-nav, .main-nav) .nav-links-top-row{
        padding-right: 80px;
    }

    .nav-links{
        flex-direction: column-reverse;
        row-gap: 20px;;
    }

    .nav-links,
    .nav-links .nav-links-main {
        align-items: center;
        position: relative;
        display: flex;
    }
    .nav-links .nav-links-main {
        justify-content: center;
        white-space: nowrap;
        column-gap: 10px;
    }
    .nav-links .nav-links-main-item {
        position: relative !important;
        display: flex;
        align-items: center;
        height: 40px;
        padding: 0 7.5px 0 7.5px;
    }
    .nav-links .nav-links-main-item:has(> a > .nav-appointment-content .fa-key):not(.wrapper-tedavi-content .nav-links-main-item, .main-nav .nav-links-main-item){
        padding-right: 0 !important;
    }
    .global-nav:not(.active) .nav-links .fa-chevron-down:before{
        color: var(--turquoise);
    }
    .nav-links .nav-links-main-item[data-label]:after {
        content: attr(data-label);
        position: absolute;
        left: -8px;
        bottom: -50%;
        width: 100%;
        text-align: center;
        height: 45px;
        font-family: "Calendary Hands", cursive;
        font-size: 30px;
        color: var(--turquoise);
        pointer-events: none;
    }
    .global-nav.active .nav-links .nav-links-main-item[data-label]:after {
        color: #fff !important;
        color: var(--text-white) !important;
    }
    .nav-links-main-item .wrapper{
        display: flex;
        align-items: center;
    }
    .nav-links .nav-links-main-link {
        font-family: "Roboto Slab", serif;
        font-size: 15px;
        color: var(--text-white);
        font-weight: 200;
        letter-spacing: 1px;
    }
    .nav-links .nav-links-main-item:hover .nav-links-main-link {
        opacity: 0.75;
    }
    .nav-links .nav-links-main-link .fas {
        position: absolute;
        left: 100%;
        top: 5px;
        margin-left: 1px;
        opacity: 0.75;
    }
    .nav-links-search-bar {
        display: none;
        z-index: 300;
    }
    /* Removes the right side padding of Online Services element on header if there is nothing on its right */
    body:not(:has(.nav-links-main-item .fa-solid.fa-key)) .global-nav:not(.active, .main-nav) #navItemOnlineHizmetler:not(.wrapper-tedavi-content #navItemOnlineHizmetler){
        padding-right: 0 !important;
    }

    /* -----Nav Appointment Button----- */

    .nav-appointment {
        background-color: rgba(255, 255, 255, .4);
        border-radius: 10px;
        display: flex;
        width: 140px;
    }
    .nav-appointment .nav-appointment-content {
        height: 40px;
        display: flex !important;
        padding: 7px 11px 7px 11px;
    }
    .appointment-img {
        width: 29px;
        height: 32px;
        margin-right: 10px;
    }
    .nav-appointment-text {
        line-height: 1;
        font-size: 19px;
        font-weight: 700;
        font-family: "Roboto Slab";
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
        text-transform: uppercase;
    }
    .nav-appointment-text small {
        display: block;
        font-size: 15px;
        font-weight: 300;
    }

    /* -----Nav Search----- */


    .nav-search {
        position: relative;
        display: flex;
        align-items: center;
        column-gap: 10px;
        justify-content: space-between;
        flex-direction: row-reverse;
    }
    .mobileSearchBtn i:before{
        color: white;
    }
    .nav-search input {
        height: fit-content;
        line-height: 0;
        outline: 0;
        font-family: "Roboto Slab";
        font-size: 16px;
        background: 0 0;
        color: var(--text-white);
        border-radius: 10px;
        padding: 2px 35px 5px 17.5px;
        position: absolute;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        width: 0;
        border: 0;
        opacity: 0;
        pointer-events: none;
        transition: 250ms;
        margin-right: 20px;
    }
    .nav-search input::placeholder {
        color: var(--text-white);
        font-family: Latinka-Light;
        opacity: 0.7;
        font-size: 14px;
    }
    .nav-search button {
        height: 100%;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        border: none;
        outline: 0;
        background-color: var(--text-white);
        background: 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding-left: 20px;
    }
    .nav-links-main .nav-search button img{
        color: white;
    }
    .nav-search:has(:is(button, input):focus) #navsearchInput,
    .nav-search:has(button:hover) #navsearchInput,
    #navsearchInput:hover,
    .input-item-valued #navsearchInput{
        width: 250px;
        opacity: 1;
        pointer-events: all;
        border: 1px solid rgb(255 255 255 / 0.75);
        padding: 2px 35px 5px 17.5px;
    }
    .nav-search-undermenu {
        position: absolute;
        padding: 10px 5px;
        width: 100%;
        border-top: 1px solid #dcdbdb;
        background-color: #fff;
        box-shadow: 0 12px 14px 0 rgb(0 0 0 / 0.15);
        top: 100%;
        font-family: Latinka-Light;
        border-radius: 4px;
        display: none;
    }
    .nav-search-undermenu-topic {
        color: #000;
        cursor: pointer;
        overflow: hidden;
        padding: 3px 25px;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
        background-color: #fff;
    }
    .nav-search-undermenu-topic:hover {
        color: #db1f88;
        background-color: #f7f7f7;
    }

    /* -----Nav Locations (only visible on desktop view and also consist media links)----- */

    .nav-locations {
        display: flex;
        position: relative;
        align-items: center;
        height: 30px;
        width: 140px;
        z-index: 300;
    }
    .nav-locations-header {
        display: flex;
        align-items: center;
        column-gap: 8px;
        cursor: pointer;
        position: relative;
        z-index: 5;
        color: var(--white);
        line-height: 1 !important;
    }
    .nav-locations-header span,
    .view-more {
        color: var(--text-white);
        cursor: pointer;
    }
    .nav-locations-header span {
        font-family: "Roboto Slab", serif;
        font-size: 12px;
        font-weight: 200;
    }
    .nav-locations-items-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        padding-top: 0;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
        z-index: 300;
    }
    .nav-locations-items-wrapper.active {
        margin-top: 30px;
        padding-top: 10px;
        opacity: 1;
        pointer-events: all;
    }
    .nav-locations-items {
        display: flex;
        padding: 10px;
        column-gap: 10px;
        background-color: var(--white);
        position: relative;
        box-shadow: rgb(100 100 111 / 0.2) 0 7px 29px 0;
    }
    .nav-locations-items.active {
        opacity: 1;
        transition: 0.3s;
        pointer-events: all;
        top: 110%;
    }
    .nav-locations-items::after {
        content: "";
        position: absolute;
        right: 50px;
        top: -8px;
        z-index: -1;
        border-color: #fff0 #fff0 var(--text-white) #fff0;
        border-style: solid;
        border-width: 0 10px 15px;
        width: 0;
        height: 0;
    }
    .nav-locations-item-image {
        width: 250px;
        height: 250px;
        transition: 0.3s;
    }
    .menu-nav-image-img,
    .nav-locations-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }
    .nav-locations-item-text {
        font-family: "Roboto Slab";
        position: relative;
        z-index: 5;
        padding: 10px;
    }
    .nav-locations-item:hover p {
        opacity: 1;
    }
    .nav-locations-item-text b {
        font-size: 15px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--turquoise);
        display: block;
    }
    .nav-locations-item-text p {
        font-size: 14px;
    }
    .nav-locations-item-image-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }

    /* -----Select Language----- */

    .nav-content > .select-language{
        display: none;
    }

    .select-language{
        width: 70px;
        min-width: 70px;
        height: 35px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999999;
    }
    .language-wrapper{
        top: 0;
        width: 100%;
        position: absolute;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-radius: 10px;
    }
    .select-language:hover .language-wrapper{
        height: fit-content !important;
        background-color: rgba(255, 255, 255, .4);
    }
    .select-language .language{
        min-height: 100%;
        padding: 0 5px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        column-gap: 5px;
        cursor: pointer
    }
    .select-language .language img{
        width: 35px;
    }
    .select-language .language span{
        width: 20px;
        line-height: 100%;
        color: white;
        text-align: center;
        font-family: "Roboto Sans";
    }
    .global-nav:not(.active) .language:hover span{
        color: var(--light-turquoise);
    }

    /* Changes the z index of language selection menu when on inner pages, except treatment detail page */
    .global-nav:not(.main-nav) .select-language:not(.wrapper-tedavi-content .select-language){
        z-index: 10000;
    }

    /* -----Dropdown Menus (including search results menu)----- */

    .dd-menu-main-wrapper {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 40px;
        left: 50%;
        background-color: #fff;
        display: flex;
        transform: translateX(-50%);
        box-shadow: rgb(100 100 111 / 0.2) 0 7px 29px 0;
        z-index: 1;
    }
    #navItemOnlineHizmetler .dd-menu-main-wrapper {
        left: auto;
        right: 0;
        transform: translateX(0);
    }
    .dd-menu-main-wrapper.wrapper-column{
        flex-direction: column;
    }
    #resultsBord,
    .dd-menu-main-wrapper:before {
        content: "";
        z-index: -1;
        margin: -6px 0 0 -6px;
        transform: rotate(45deg);
    }
    .dd-menu-main-wrapper:before {
        position: absolute;
        top: 0;
        left: 50%;
        width: 12px;
        height: 12px;
        background-color: #fff;
    }
    #navItemOnlineHizmetler .dd-menu-main-wrapper:before {
        left: auto;
        right: 9%;
    }
    .dd-menu-side {
        max-width: 280px;
        padding: 15px;
        display: flex;
        flex-direction: column;
    }
    .dd-menu-side .menu-side-img {
        border-radius: 8px;
        overflow: hidden;
    }
    .dd-menu-side .menu-side-img img {
        width: 250px;
        vertical-align: middle;
    }
    .dd-menu-immost,
    .dd-menu-main,
    .dd-menu-sub {
        max-width: 340px;
        width: max-content;
        padding: 15px 0;
    }
    .dd-menu-immost,
    .dd-menu-sub {
        position: absolute;
        top: 0;
        left: 100%;
        max-height: 80vh;
        min-height: 100%;
        visibility: hidden;
        opacity: 0;
        background-color: #fff;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .dd-menu-main-wrapper:has(.dd-menu-main-item:hover > .dd-menu-sub),
    .dd-menu-sub:has(.dd-menu-sub-item:hover > .dd-menu-immost){
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    .dd-menu-main {
        min-width: 320px;
    }
    .dd-menu-sub .dd-menu-small-sub {
        overflow: auto;
        scrollbar-gutter: stable;
        max-height: 78vh;
        overflow-y: auto;
        direction: rtl;
    }
    .dd-menu-sub .dd-menu-small-sub > *{
        direction: ltr;
    }
    .dd-menu-immost{
        overflow: hidden;
    }
    .dd-menu-immost-link,
    .dd-menu-main-link,
    .dd-menu-sub-link {
        display: block;
        padding: 10px 30px;
        position: relative;
        font-family: "Roboto Slab", serif;
        font-size: 15px;
        color: var(--turquoise);
        white-space: normal;
    }
    .dd-menu-main-link .fas,
    .dd-menu-sub-link .fas {
        opacity: 0;
        position: absolute;
        left: 0;
        top: 50%;
        margin-top: -7px;
        transition-duration: 0.5s;
    }
    .dd-menu-main-item:hover .dd-menu-main-link .fas,
    .dd-menu-sub-item:hover .dd-menu-sub-link .fas {
        opacity: 1;
        left: 10px;
    }
    .dd-menu-immost-link:after,
    .dd-menu-step .dd-menu-main-link:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        border-bottom: 1px solid;
        opacity: 0.5;
        transform: scaleX(0);
        transform-origin: left;
        transition-duration: 0.5s;
    }
    .dd-menu-immost-item:hover .dd-menu-immost-link:after,
    .dd-menu-step .dd-menu-main-item:hover .dd-menu-main-link:after {
        transform: scaleX(1);
    }
    .dd-menu-staff .dd-menu-main-item{
        min-height: 325px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .dd-menu-main-wrapper .media{
        min-width: 190px !important;
    }
    .dd-menu-main-wrapper .media a{
        font-size: 18px;
        color: var(--turquoise);
        margin: 0 !important;
    }

    .dd-menu-vertical .dd-menu-main-link {
        padding: 10px;
        text-align: center;
    }
    .dd-menu-vertical .person-image {
        vertical-align: middle;
        width: 150px;
        height: 150px;
        max-height: 150px;
        object-fit: cover;
        border-radius: 7px;
        transition-duration: 0.5s;
    }
    .dd-menu-vertical .dd-menu-main-item:hover .person-image {
        max-height: 70px;
    }
    .dd-menu-vertical .person-name {
        padding-top: 10px;
        display: block;
        background-color: #fff;
        transition-duration: 0.5s;
    }
    .dd-menu-vertical .dd-menu-main-item:hover .person-name {
        transform: translateY(-15px);
    }
    .dd-menu-vertical .person-description {
        font-size: 12px;
        font-family: "Roboto Slab";
        color: var(--text-gray-five);
        text-align: center;
        padding-top: 10px;
        display: block;
        max-height: 0;
        transition: max-height 0.5s;
        overflow: hidden;
    }
    .dd-menu-vertical .dd-menu-main-item:hover .person-description {
        position: relative;
        max-height: 200px !important;
    }
    
    .dd-menu-bottom {
        text-align: center;
    }
    .dd-menu-bottom{
        display: flex;
        justify-content: center;
    }
    .dd-menu-bottom-link {
        justify-self: center;
        transition-duration: 0.5s;
    }
    .dd-menu-bottom-link:hover {
        background-color: var(--text-white);
        color: var(--turquoise);
    }
    #results,
    #resultsBord {
        display: none;
        position: absolute;
    }
    #results {
        width: 500px;
        height: 500px;
        top: 50px;
        left: -219px;
        background-color: #fff;
        border: 15px solid transparent;
        border-radius: 8px;
        box-shadow: rgb(100 100 111 / 0.2) 0 7px 29px 0;
    }
    #results::-webkit-scrollbar {
        width: 6px;
    }
    #results::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: var(--turquoise);
    }
    #results li {
        margin: 2% 0;
        list-style-type: none !important;
    }
    #results li a {
        text-decoration: none !important;
        font-size: 15px !important;
        color: var(--turquoise) !important;
        white-space: normal !important;
    }
    #resultsBord {
        top: 155%;
        left: 31px;
        background-color: #fff;
    }

    /* -----Active----- */

    .global-nav.active .nav-links-top-row{
        display: none;
    }

    .nav-content.active{
        position: fixed;
        transition: top, transform 0.5s;
        transform: translateY(0);
        padding: 10px 80px;
        box-shadow: 0 2px 55px #31999b;
        top: 0 !important;
        background-color: var(--turquoise) !important;
        box-shadow: rgb(49, 153, 155) 0px 2px 55px !important;
        background-image: unset !important;
        height: 70px;
        z-index: 301;
    }

    .nav-content.active .nav-logo-a {
        align-self: center !important;
    }

    .global-nav.active .nav-links-main{
        right: 0;
        column-gap: 10px;
    }

    .nav-content.active .nav-links-search-bar {
        display: block;
        padding: 0 7.5px 0 7.5px;
    }

    .global-nav.active .nav-links-main{
        height: 70px;
    }

    .global-nav.active .select-language,
    .global-nav:not(.main-nav, .wrapper-tedavi-content .global-nav) .select-language{
        width: 50px !important;
        min-width: 50px !important;
        height: 40px;
    }
    .global-nav.active .language-wrapper{
        background-color: var(--turquoise) !important;
        box-shadow: rgb(100 100 111 / 0.3) 0 7px 29px 0;
        border: 1px solid white;
        height: 100%;
    }
    .global-nav:not(.main-nav, .wrapper-tedavi-content .global-nav) .language-wrapper{
        background: var(--turquoise);/*linear-gradient(to bottom, transparent, transparent 48px, #4fb8a4b8 48px,  #4fb8a4b8 100%);*/
        border: 1px solid white;
        height: 100%;
    }
    .global-nav.active .select-language .language,
    .global-nav:not(.main-nav, .wrapper-tedavi-content .global-nav) .language{
        padding: 0 5px;
        min-height: 100% !important;
    }
    .global-nav.active .select-language img,
    .global-nav:not(.main-nav, .wrapper-tedavi-content .global-nav) .select-language img{
        display: none;
    }
    .global-nav.active .select-language span,
    .global-nav:not(.main-nav, .wrapper-tedavi-content .global-nav) .select-language span{
        height: 100%;
        width: 100%;
        line-height: 40px;;
        color: #fff !important;
    }

/*------------------------------------*\
  ## END NAVBAR
\*------------------------------------*/