﻿@media(max-width:576px) {
    .w100 {
        width: 100% !important;
        text-align: center !important;
    }

    .dnone {
        display: none !important;
    }

    .mainlogo {
        height: 250px !important;
    }

    .we {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}


body {
    margin: 0;
    font-family: sans-serif;
}

.top-bar {
    background-color: #0747ae;
    color: white;
    padding: 10px 15px;
    flex-wrap: wrap;
}

    .top-bar a {
        color: white;
        text-decoration: none;
        font-size: 15px;
        margin-right: 1px;
    }

    .top-bar i {
        font-size: 15px;
        margin-left: 2px;
        cursor: pointer;
    }

.font-size-controls div, .theme-switch div {
    display: inline-block;
    padding: 1px 6px;
    background: white;
    color: black;
    font-size: 14px;
    border: 1px solid white;
    cursor: pointer;
    border-radius: 2px;
}

.lang-switch {
    background: #f4c542;
    color: black;
    padding: 2px 8px;
    font-weight: bold;
    border-radius: 3px;
    margin-left: 5px;
    cursor: pointer;
}

.search-box input {
    border: none;
    padding: 4px 2px;
    border-radius: 3px;
    height: 10px !important;
}



.search-box {
    margin-left: 10px;
    display: flex;
    align-items: center;
}



@media (max-width: 768px) {
    .mainlogo {
        height: 150px !important;
        width: 150px !important;
    }

    .mainlogo,
    .college-heading,
    .erp-section {
        text-align: center !important;
        display: block;
        margin: 0 auto;
    }

    .aktulogo {
        display: none !important;
    }

    .college-heading h6,
    .college-heading p {
        text-align: center;
    }

    .college-heading hr {
        margin-left: auto;
        margin-right: auto;
    }

    .erp-section h4 {
        text-align: center;
    }

    .erp-section {
        margin-top: 20px;
    }
}






.nav-link {
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap; /* Taaki small screen pe wrap ho jaye */
    justify-content: center; /* Center align */
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    background-color: #0747ae !important;
    color: white !important;
    font-size: 16px;
    border-radius: 10px !important;
}

.dropdown-item {
    color: white !important;
}

.nav-link.dropdown-toggle::after {
    display: none !important;
}
/* Fix: Hover par background white ho, but text black ho */
.dropdown-item:hover {
    background-color: white !important;
    color: black !important;
}

/* Remove default Bootstrap dropdown icon */
.nav-item{
    font-size:14px;
    font-weight:500;
}

@media (max-width: 576px) {
    .nav-item {
        width: 100%;
        border: 0px;
        padding: 25px;
    }


    .dropdown-item {
        border-bottom: 1px solid black !important;
    }
        /* Pehle item ka sirf top border remove */
        .dropdown-item:first-child {
            border-top: none !important;
        }
    /* Last item ka sirf bottom border remove */


    .dropdown-menu {
        width: 510px;
        position: absolute !important;
        background-color: white !important;
        border-radius: 0px !important;
        color: black !important; /* Fix: White text nahi dikhega, isliye black kiya */
    }


    .dropdown-item {
        text-wrap: wrap;
        color: black !important; /* Fix: Dropdown items ka text bhi visible ho */
    }

    .axpx {
        left: -50vw !important;
    }
}


/* Ensure dropdown menu fits within screen */
@media (max-width: 768px) {
    .dropdown-item {
        padding: 8px 8px;
        font-size: 14px;
    }
}


@media(max-width:767px) {
    .nav-item {
        width: 100%;
        border: 0px;
        padding: 10px;
    }


    .dropdown-item {
        border-bottom: 1px solid black !important;
    }
    /* Pehle item ka sirf top border remove */
    /* Last item ka sirf bottom border remove */


    .dropdown-menu {
        width: 510px;
        position: absolute !important;
        background-color: white !important;
        border-radius: 0px !important;
        color: black !important; /* Fix: White text nahi dikhega, isliye black kiya */
    }


    .dropdown-item {
        text-wrap: wrap;
        color: black !important; /* Fix: Dropdown items ka text bhi visible ho */
    }

    .axpx {
        left: -50vw !important;
    }
}

@media (max-width: 991px) { /* Mobile and Tablet */


    .navbar-toggler {
        border: none;
        outline: none;
        color: white;
    }

    .navbar-collapse {
        background-color: #0747ae !important; /* Dropdown ka background fix */
        padding: 5px;
        border-radius: 10px;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Professional look ke liye */
    }



    .navbar-toggler {
        border: none;
        outline: none;
        color: white;
    }

    .navbar-toggler-icon {
        filter: invert(1); /* White color ka icon */
    }
}



.footer-secure {
    background: linear-gradient(135deg, #0a3d62, #0a2472);
    color: white;
    padding-top: 50px;
    text-align: left; /* Ensure default is left aligned */
}

    .footer-secure h5 {
        font-size: 21px;
        color: white;
        margin-bottom: 20px;
        font-weight: 700;
        border-left: 4px solid white;
        padding-left: 12px;
    }

    .footer-secure p,
    .footer-secure a {
        font-size: 16px;
        color: white;
        margin-bottom: 8px;
        display: block;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-secure a:hover {
            color: white;
        }

    .footer-secure .btn-orange {
        background-color: white;
        color: black;
        border: none;
        border-radius: 25px;
        padding: 8px 20px;
        margin-top: 10px;
        font-size: 14px;
        display: inline-block;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }

        .footer-secure .btn-orange:hover {
            background-color: #e65c00;
        }

    .footer-secure .footer-links ul {
        list-style: none;
        padding: 0;
    }

    .footer-secure .footer-links li {
        margin-bottom: 8px;
    }

    .footer-secure .footer-bottom {
        background-color: #023a71;
        color: #aaa;
        font-size: 13px;
        padding: 15px 0;
        margin-top: 30px;
    }

        .footer-secure .footer-bottom strong {
            color: white;
        }

    .footer-secure i {
        margin-right: 6px;
        color: white;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .footer-secure {
        text-align: left; /* keep alignment to left on small devices */
    }

        .footer-secure .footer-links,
        .footer-secure .footer-about {
            margin-bottom: 30px;
        }
}