body {
    transition: all 0.3s ease-in-out;
}

/*----------------------------------------------------*/
/*----------------- For Mobile Screen ----------------*/
/*----------------------------------------------------*/

@media (max-width: 991px) {
    .nav-on-top {
        position: relative;
    }
    .fixed-top {
        position: relative;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid #e9e9e9;
        border-radius: 0;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }
    .navbar-expand-lg .navbar-nav .nav-link:hover {
        background-color: #f0f0f0;
        color: #28a745; /* Highlight color from your site */
    }
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        padding-left: 20px;
    }
    .navbar-light .navbar-toggler {
        border: none;
        padding: 0;
        outline: none; /* Remove focus outline */
        background: transparent;
    }
    .navbar-light .navbar-toggler:focus {
        outline: none;
    }
    .navbar-toggler .icon-bar {
        display: block;
        width: 24px;
        height: 3px;
        background-color: #333;
        border-radius: 1px;
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }
    .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .navbar-collapse {
        max-height: 340px;
        overflow-y: auto;
        transition: all 0.3s ease-in-out;
        background-color: #fff; /* Use a clean white background */
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        margin-top: 10px; /* Add some space from the header */
    }
    .mr-auto,
    .mx-auto {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    .navbar-nav .nav-item {
        text-align: center;
        margin-bottom: 5px; /* Space out the items a bit */
    }
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        padding-left: 20px;
    }
    .top-header {
        padding: 5px 15px;
        background-color: #f8f9fa;
    }
    .top-header .top-contact {
        text-align: center;
        float: none !important;
    }
    .top-header .top-contact ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .top-header .top-contact li {
        margin: 0 10px;
    }
    .top-header .list-text-white a,
    .top-header .list-text-white i,
    .top-header .list-text-white .btn {
        color: #333 !important;
    }
    .top-header .col-md-8, .top-header .col-md-4 {
        text-align: center;
    }
    .main-nav {
        padding: 10px 0;
        transition: all 0.3s ease-in-out;
    }
    .navbar-brand {
        margin-top: 0;
        transition: all 0.3s ease-in-out;
    }
    .nav-logo-with-bg .navbar-brand {
        padding: 10px 15px;
        margin-top: 0;
        transition: all 0.3s ease-in-out;
    }
    .nav-logo-with-bg .navbar-brand::before {
        display: none;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        margin-right: 0;
    }
    .user-menu-dropdown .dropdown-menu {
        left: auto;
        right: 0;
    }
}

@media (max-width: 767px) {
    .top-header {
        display: none;
    }
    .login-register {
        display: none;
    }
    .main-nav {
        padding: 10px 0;
    }
    .navbar-brand {
        margin-top: 0;
    }
    .nav-logo-with-bg .navbar-brand {
        padding: 10px 15px;
        margin-top: 0;
    }
    .nav-logo-with-bg .navbar-brand::before {
        display: none;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        margin-right: 0;
    }
    .user-menu-dropdown .dropdown-menu {
        left: auto;
        right: 0;
    }
}

@media (max-width: 575px) {
    .top-header {
        display: none;
    }
    .main-nav {
        padding: 10px 0;
    }
    .navbar-brand {
        margin-top: 0;
    }
    .nav-logo-with-bg .navbar-brand {
        padding: 10px 15px;
        margin-top: 0;
    }
    .nav-logo-with-bg .navbar-brand::before {
        display: none;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        margin-right: 0;
    }
    .user-menu-dropdown .dropdown-menu {
        left: auto;
        right: 0;
    }
}
/*----------------------------------------------------*/
/*----------------- For Desktop Screen ---------------*/
/*----------------------------------------------------*/
@media (min-width: 1000px) {
    .top-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #205b95;
        padding: 5px 30px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        transition: all 0.3s ease-in-out;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        color: #333;
        padding: 15px 20px;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .navbar-expand-lg .navbar-nav .nav-link:hover,
    .navbar-expand-lg .navbar-nav .nav-link.active {
        color: #28a745;
    }

    .language-switch {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .language-switch a {
        color: #333;
        font-weight: 500;
        text-decoration: none;
    }

    .language-switch a:hover {
        color: #28a745;
    }
}
@media (min-width: 1200px) {
    .top-header {
        padding: 5px 100px;
    }
    .main-nav {
        padding: 15px 100px;
    }
}
@media (min-width: 1400px) {
    .top-header {
        padding: 5px 150px;
    }
    .main-nav {
        padding: 15px 150px;
    }
}