﻿/* styles.css */

.navMenu {
    padding: 10px 0px;
}
/* Logo Styling */
.navbar-brand img {
    width: 100%;
    height: auto;
}

/* Navbar Styling */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    font-size: 18px;
    font-weight: 600;
    color: #193139;
    margin-right: 20px;
    text-decoration: none;
    position: relative; /* Ensure relative positioning for the link */
    display: inline-block; /* Makes the width of the link adjust to the text */
}

    /* Hover Effect - Underline animation */
    .navbar-nav .nav-link::after {
        content: "";
        display: block;
        position: absolute;
        width: 0;
        height: 2px;
        background-image: linear-gradient(90deg, #6a2962, #a98eed); /* Underline color */
        transition: width 0.3s ease; /* Animates the width */
        bottom: 0;
        left: 0;
    }

    /* On hover, animate the underline */
    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

/* Active link underline */
.navbar-nav .nav-item.active .nav-link::after {
    width: 100%;
}

/* Active link color */
.navbar-nav .nav-item.active .nav-link {
}

/* Button Styling */
.navbar-nav .btn {
    padding: 8px 20px;
    font-size: 16px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .navbar-nav .btn:hover {
        background-color: #7ac143;
    }

/* Responsive Styling */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
        margin-top: 10px;
    }
    .navbar__box ul{

    }

    .navbar-nav .nav-link {
        margin-right: 0;
    }
}



/* Hide the dropdown initially */
.nav-item.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 5px;
    padding: 40px;
    width: 270px;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu hr {
    opacity: 0.09;
}

/* Show the dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Style for each dropdown item */
.dropdown-item {
    padding: 10px 20px;
    color: #54737b !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

    /* Hover effect for dropdown items */
    .dropdown-item:hover {
        background-color: #f1f1f1;
    }

/* Match dropdown width to the width of the link text */
.nav-item.dropdown:hover .dropdown-menu {
    min-width: 100%; /* Match the width of the "About us" link */
}

/* =====================================================
   NAVBAR BASE
===================================================== */

.navbar-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .navbar-nav li {
        list-style: none;
    }

        .navbar-nav li a {
            display: inline-block;
            padding-bottom: 8px;
            font-size: 16px;
            font-weight: 600;
            color: #12232E;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .navbar-nav li a:hover,
            .navbar-nav li.active a {
                color: #5B2563;
            }

        .navbar-nav li.active a {
            border-bottom: 2px solid #5B2563;
        }

/* =====================================================
   TOGGLER ICON
===================================================== */

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* =====================================================
   MAIN NAV STRUCTURE
===================================================== */

.navbar__box ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.navbar__box li {
    position: relative;
    display: flex;
}

    .navbar__box li a {
        display: block;
        padding: 0 5px 0 0;
        font-size: 16px;
        font-weight: 500;
        color: #222;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .navbar__box li a:hover {
            color: #0d6efd;
        }

    /* =====================================================
   DESKTOP DROPDOWN
===================================================== */

    .navbar__box li ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        padding: 10px 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 999;
    }

    .navbar__box li:hover > ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar__box li ul li {
        width: 100%;
    }

        .navbar__box li ul li a {
            padding: 10px 18px;
            font-size: 14px;
            color: #333;
            white-space: nowrap;
        }

            .navbar__box li ul li a:hover {
                background: #f5f7fa;
                color: #0d6efd;
            }

/* =====================================================
   MOBILE VIEW
===================================================== */

@media (max-width: 991px) {

    .navbar__box ul {
        flex-direction: column;
        align-items: flex-start;
    }

        .navbar__box ul li {
            width: 100%;
        }

            .navbar__box ul li ul {
                position: relative;
                top: 0;
                left: 0;
                width: 100%;
                padding: 0;
                margin: 0;
                box-shadow: none;
                border-radius: 0;
                transform: none;
                opacity: 1;
                visibility: visible;
                display: none;
            }

            .navbar__box ul li.active > ul {
                display: block;
            }

            .navbar__box ul li ul li a {
                padding: 12px 20px;
                font-size: 15px;
                border-bottom: 1px solid #eee;
            }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 768px) {
    .dropdown-menu {
        width: 100%;
    }
}


@media (max-width: 991px) {

    .navbar__box ul {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar__box li {
        display: block;
        width: 100%;
    }

        .navbar__box li a {
            width: 100%;
            padding: 15px 40px 15px 15px;
        }

        .navbar__box li ul {
            display: none;
            width: 100%;
        }

        .navbar__box li.active > ul {
            display: block;
        }
}
