
/* =========================================================
   QURTUBA SCHOOLS & COLLEGES
   PUBLIC NAVIGATION STYLING
   ========================================================= */

/* Correct active navigation state. */

.menu a:first-child {
    color: #254154;
}

.menu a:first-child::after {
    opacity: 0;
    transform: scaleX(.3);
}

.menu a.active,
.menu a.active:hover {
    color: var(--blue);
}

.menu a.active::after,
.menu a.active:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


/* =========================================================
   UNIFIED LOGIN NAVIGATION
   Match the standard website menu typography.
   ========================================================= */

.nav .wrap > .menu-item:not(.has-children) > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 24px 0 22px;

    color: #254154;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .015em;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;

    transition: color .2s ease;
}

.nav .wrap > .menu-item:not(.has-children) > a::after {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;

    height: 2px;
    content: "";
    background: var(--gold);

    opacity: 0;
    transform: scaleX(.3);
    transition: .2s ease;
}

.nav .wrap > .menu-item:not(.has-children) > a:hover,
.nav .wrap > .menu-item:not(.has-children) > a.active {
    color: var(--blue);
}

.nav .wrap > .menu-item:not(.has-children) > a:hover::after,
.nav .wrap > .menu-item:not(.has-children) > a.active::after {
    opacity: 1;
    transform: scaleX(1);
}


/* =========================================================
   RESPONSIVE NAVIGATION
   ========================================================= */

@media (max-width: 1100px) {
    .nav .wrap > .menu-item:not(.has-children) > a {
        font-size: 10px;
    }
}

@media (max-width: 700px) {
    .menu.mobile-open a.active {
        color: var(--blue);
    }

    .nav .wrap > .menu-item:not(.has-children) > a {
        padding: 13px 0;
        font-size: 11px;
    }

    .nav .wrap > .menu-item:not(.has-children) > a::after {
        display: none;
    }
}
