.ecw-nav {
    width: 100%;
    position: relative;
    z-index: 10;
}
.ecw-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ecw-menu-container {
    width: 100%;
}
.ecw-logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.ecw-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.ecw-menu li a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ecw-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.ecw-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* ======================================================
   PARENT ARROW (DESKTOP + MOBILE)
====================================================== */
.ecw-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 16px;
    display: inline-block;
    width:100%;
}

.ecw-menu li.menu-item-has-children > a::after {
    content: "▼";
    font-size: 10px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: .7;
    transition: transform .25s ease;
}

/* Hover rotate (DESKTOP only) */
@media (min-width:769px) {
    .ecw-menu li:hover > a::after {
        transform: translateY(-50%) rotate(180deg);
        opacity: 1;
    }
}


/* ======================================================
   DESKTOP DROPDOWN (Hover)
====================================================== */
.ecw-menu li {
    position: relative;
}

.ecw-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 0;

    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;

    transform: translateY(10px);
    transition: all 0.25s ease;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
    z-index: 20;
}

/* Desktop hover dropdown open */
@media (min-width:769px) {
    .ecw-menu li:hover > .sub-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        overflow: visible;
    }
}

.ecw-menu li .sub-menu li a {
    display: block;
    padding: 10px 18px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #000 !important;
    transition: background 0.2s ease;
}



/* ======================================================
   MOBILE MENU
====================================================== */
@media (max-width:768px) {

    /* Show hamburger */
    .ecw-toggle {
        display: flex;
    }

    .ecw-menu li .sub-menu li a {
        color: #ffffff !important;
    }

    .ecw-nav-container {
        justify-content: center;
    }

    .ecw-menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-radius: 10px;
    }

    .ecw-menu-container.show {
        max-height: 1000px !important;
        overflow: visible;
    }

    /* Vertical menu */
    .ecw-menu {
        flex-direction: column;
        text-align: left;
        padding: 10px 15px;
        width: 100%;
    }

    /* Hide submenus mobile */
    .ecw-menu li .sub-menu {
        max-height: 0;
        overflow: hidden;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative;
        padding-left: 10px;
        background-color: transparent;
        transition: max-height .35s ease;
        box-shadow: none;
    }

    /* When opened via JS */
    .ecw-menu li.open > .sub-menu {
        max-height: 500px;
        margin-top: 6px;
    }

    /* Arrow rotate when open */
    .ecw-menu li.open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .ecw-menu li .sub-menu li a {
        padding: 10px 25px;
    }
}



/* ======================================================
   Hamburger Animation
====================================================== */
.ecw-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px) translateX(2px);
}
.ecw-toggle.active span:nth-child(2) {
    opacity: 0;
}
.ecw-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px) translateX(4px);
}
