/* ===========================  DESKTOP  =========================== */
@media (min-width: 1200px) {

    .site-header .container {
        position: relative;
    }

    /* όταν ανοίγει menu ΚΑΙ όταν κάνω hover στο header */
    .site-header.menu-open,
    .site-header:hover {
        /* background: #fff !important; */
        /* backdrop-filter: blur(12px); */
        /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        transition: background 0.2s ease, box-shadow 0.2s ease; */
        /* background-image: url(http://opendemo.gr/ahi_corporate/wp-content/uploads/2025/11/Path-20790-1.svg); */
        background-size: cover;
        background-repeat: no-repeat;
        width: 100%;
        background-position: top center;
        /* border-bottom-right-radius: 15px; */
        /* border-bottom-left-radius: 15px; */
    }

    .navbar-nav>li {
        position: static;
    }

    .navbar-nav>li.menu-item-has-children::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% - 2px);
        height: 12px;
        pointer-events: none;
    }

    .fullwidth-submenu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: calc(100vw - 40px);
        max-width: 1280px;
        padding: 22px 24px 28px;
        background: #fff;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
        list-style: none;
        display: none;
        opacity: 0;
        visibility: hidden;
        z-index: 9998;
        gap: 36px;
        justify-content: start;
        transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .fullwidth-submenu.show {
        display: flex;
        opacity: 1;
        visibility: visible;
        padding: 50px;
        transform: translateX(-50%) translateY(0);
    }

    .fullwidth-submenu>li.simple-item a {
        display: block;
        font-size: 18px;
        padding: 6px 0;
        color: #283583 !important;
        white-space: nowrap;
        font-weight: 500;
        text-decoration: none;
    }

    .fullwidth-submenu>li.simple-item a:hover {
        color: #060DA7 !important;
    }

    .navbar-nav>li>a {
        position: relative;
        color: var(--header-link-color, #272154);
        font-weight: 500;
        text-decoration: none;
        transition: color 0.25s ease;
    }

    .navbar-nav>li>a:hover::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #283583 0%, #060DA7 30%, #FF3E18 100%);
        transition: width 0.25s ease;
    }

    .navbar-nav>li.current-menu-item>a::after,
    .navbar-nav>li.current-menu-ancestor>a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #283583, #060DA7, #FF3E18);
    }

    .site-header.menu-open .navbar-nav>li>a,
    .site-header:hover .navbar-nav>li>a {
        color: #fff !important;
    }

    .site-header.menu-open .navbar-nav>li:hover>a,
    .site-header:hover .navbar-nav>li:hover>a {
        color: #fff !important;
    }

    .search-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        padding: 18px 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 900;
    }

    .search-container.active {
        opacity: 1;
        pointer-events: auto;
    }

    .submenu-toggle {
        display: none !important;
    }

    .fullwidth-submenu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
        /* border-top: 1px solid #e6e6e6;
        border-bottom: 1px solid #e6e6e6; */
        justify-content: center;
    }

    .fullwidth-submenu>li.image-item {
        flex: 1 1 auto;
        position: relative;
        border-right: 2px solid #e6e6e6;
        margin: 0;
        max-width: 350px;
    }

    .fullwidth-submenu>li.simple-item {
        border-right: 2px solid #e6e6e6;
        margin: 0;
    }

    .fullwidth-submenu>li.image-item:first-child,
    .fullwidth-submenu>li.simple-item:first-child {
        margin-right: 0px;
    }

    .fullwidth-submenu>li.image-item:not(:first-child):not(:last-child),
    .fullwidth-submenu>li.simple-item:not(:first-child):not(:last-child) {
        margin-left: 0px;
        margin-right: 0px;
    }

    .fullwidth-submenu>li.image-item:last-child,
    .fullwidth-submenu>li.simple-item:last-child {
        border-right: none;
        margin-left: 0px;
    }

    .fullwidth-submenu .submenu-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #fff;
        height: 200px;
        width: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    /* specific css for brands submenu */
    #menu-main-menu li:nth-child(2) .fullwidth-submenu .submenu-link,
    #menu-main-menu-en li:nth-child(2) .fullwidth-submenu .submenu-link,
    #menu-main-menu-bg li:nth-child(2) .fullwidth-submenu .submenu-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #fff;
        height: 150px;
        width: 75%;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        transition: transform 0.3s ease, filter 0.3s ease;
        margin: auto;
    }

    .fullwidth-submenu .submenu-link::before {
        content: "";
        position: absolute;
        inset: 0;
        /* background: rgba(0, 0, 0, 0.35); */
        transition: background 0.3s ease;
    }

    .fullwidth-submenu .submenu-link:hover::before {
        /* background: rgba(0, 0, 0, 0.5); */
    }

    .fullwidth-submenu .submenu-title {
        position: relative;
        z-index: 2;
        font-size: 1.2rem;
        font-weight: 700;
        /* text-transform: uppercase; */
        text-align: center;
        letter-spacing: 0.5px;
        cursor: pointer !important;
        color: transparent;
        text-wrap: auto;
    }

    /* HOME */
    #menu-main-menu a[href="https://ahicarrier.gr/"] .submenu-title,
    #menu-main-menu-en a[href="https://en.ahicarrier.gr/"] .submenu-title,
    #menu-main-menu-bg a[href="https://ahicarrier.bg/"] .submenu-title {
        color: #ffffff !important;
    }

    /* AHI FZC */
    #menu-main-menu a[href*="/about-ahi-fzc/"] .submenu-title,
    #menu-main-menu-en a[href*="/about-ahi-fzc/"] .submenu-title,
    #menu-main-menu-bg a[href*="/about-ahi-fzc/"] .submenu-title {
        color: #ffffff !important;
    }

    /* AHI SEE */
    #menu-main-menu a[href*="/about-ahi-see/"] .submenu-title,
    #menu-main-menu-en a[href*="/about-ahi-see/"] .submenu-title,
    #menu-main-menu-bg a[href*="/about-ahi-see/"] .submenu-title {
        color: #ffffff !important;
    }

    /* Comfort Team  */
    #menu-main-menu a[href*="/comfort-team/"] .submenu-title,
    #menu-main-menu-en a[href*="/comfort-team/"] .submenu-title,
    #menu-main-menu-bg a[href*="/comfort-team/"] .submenu-title {
        color: #ffffff !important;
    }

    /* AFTER SALES */
    #menu-main-menu a[href*="/after-sales-services/"] .submenu-title,
    #menu-main-menu-en a[href*="/after-sales-services/"] .submenu-title,
    #menu-main-menu-bg a[href*="/after-sales-services/"] .submenu-title {
        color: #ffffff !important;
    }

    .fullwidth-submenu .submenu-link:hover {
        transform: translateY(-4px);
        filter: brightness(1.05);
    }

    .fullwidth-submenu .simple-item {
        width: auto;
    }


}

/* ===========================  MOBILE  =========================== */
@media (max-width: 1199px) {

    .fullwidth-submenu {
        display: none;
        margin: 4px 0 0;
        padding: 4px 0 4px 14px;
        background: transparent;
        box-shadow: none;
        list-style: none;
    }

    .navbar-nav>li.menu-item-has-children.open .fullwidth-submenu {
        display: block;
        border: none;
    }

    .navbar-nav>li>a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 14px 12px;
        border-bottom: 1px solid #e9eaf2;
        text-align: left;
    }

    .navbar-nav>li:last-child>a {
        border-bottom: none;
    }

    .submenu-toggle {
        font-size: 16px;
        line-height: 1;
        margin-left: 8px;
        padding: 2px 4px;
        transform-origin: center;
        transition: transform .25s ease, opacity .2s ease;
        opacity: .9;
    }

    .navbar-nav>li.menu-item-has-children.open>a .submenu-toggle {
        transform: rotate(90deg);
        opacity: 1;
    }

    .fullwidth-submenu>li>a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        line-height: 1.35;
        color: #000;
        text-decoration: none;
    }

    .fullwidth-submenu>li>a::before {
        content: "❯ ";
        color: #000;
        margin-right: 4px;
        font-size: 12px;
        font-weight: 500;
    }

    .fullwidth-submenu>li>a:hover {
        color: #060DA7;
    }

    .fullwidth-submenu>li.image-item {
        display: block !important;
        border: none !important;
        background: none !important;
        margin: 0 !important;
    }

    .fullwidth-submenu>li.image-item a.submenu-link {
        display: block !important;
        background: none !important;
        height: auto !important;
        padding: 10px 0 !important;
        color: #000 !important;
        text-decoration: none !important;
    }

    .fullwidth-submenu>li.image-item a.submenu-link::before {
        content: "❯ ";
        color: #fff;
        margin-right: 4px;
        font-size: 14px;
        font-weight: 500;
    }



    .fullwidth-submenu>li.image-item a.submenu-link::after,
    .fullwidth-submenu>li.image-item .submenu-thumb {
        display: none !important;
    }

    .navbar-nav>li.menu-item-has-children .fullwidth-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.35s ease;
        opacity: 0;
    }

    .navbar-nav>li.menu-item-has-children.open .fullwidth-submenu {
        max-height: 500px;
        opacity: 1;
    }

    .fullwidth-submenu>li.image-item .submenu-title {
        position: static !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        text-wrap: auto;
    }

    .fullwidth-submenu .submenu-title {
        color: #fff;
    }

}

.fullwidth-submenu .dropdown-item,
.fullwidth-submenu .dropdown-item:focus,
.fullwidth-submenu .dropdown-item:hover,
.fullwidth-submenu .dropdown-item:active,
.fullwidth-submenu .dropdown-item:visited {
    background-color: transparent !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
}