@media (max-width: 991.98px) {

    .top-nav .col-md-3,
    .top-nav .col-md-2 {
        margin-bottom: 10px;
    }

    .top-nav .col-md-2:last-child {
        margin-bottom: 0;
    }

    /* herosecttion */
    .custom-carousel-item img {
        object-fit: unset;
        height: unset;
    }

    .statsitem h4 {
        font-size: 40px;
    }

    .newsletter {
        padding: 80px 30px;
        /* Adjusted padding for smaller screens */
    }

    .font-w-300 {
        font-size: 22px;
    }

    .navbar-collapse {
        position: fixed;
        top: 11%;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 1000;
        transition: left 0.3s ease;
        z-index: 99999;
    }

    .navbar-collapse.show {
        left: 0;
        /* Slide in from left to 0 position */
    }


}

@media (max-width: 767.98px) {
    .top-nav .px-4 {
        padding-left: unset !important;
        /* padding-right: unset !important; */
    }

    .top-nav .container-xxl {
        padding-left: 0;
        padding-right: 0;
    }

    .top-nav h1 {
        font-size: 20px;
    }

    .top-nav .col-12 {
        margin-bottom: 5px;
    }

    .top-nav .app-names {
        padding-top: .5rem !important;
    }

    .top-nav .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .top-nav .row {
        display: flex;
        flex-wrap: wrap;
    }

    .login-button {
        padding: 1px 4px;
    }

    .login-button a {
        font-size: 14px !important;
    }

    .navbar-light .navbar-brand {
        padding-left: unset;
    }

    .bg-transparent .px-4 {
        padding-left: unset !important;
    }

    .brand-carousel-section .owl-dots {
        display: none !important;
    }

    .navbar-light .navbar-nav {
        padding-left: 21px;
    }

    /* herosecttion */
    .custom-carousel-item img {
        object-fit: unset;
        height: 250px;
    }

    .carousel h1 {
        font-size: 22px;
        margin-bottom: unset;
    }

    .carousel h2 {
        font-size: 16px;
    }

    .carousel p {
        font-size: 13px;
        line-height: 14px;
    }

    .carousel-caption {
        bottom: -0.75rem;
    }

    .info-box {
        /* flex-direction: column; */
        text-align: center;
        max-width: 100%;
        padding: 5px;
        margin: 2px;
    }

    .info-box h3 {
        font-size: 12px;
    }

    .info-box img {
        margin: 0 0 10px 0;
    }

    .third-item .carousel-caption {
        /* display: none; */
        background-color: #006874;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
        padding-right: 10px;
        top: 35%;
        /* border-radius: unset; */
    }

    .third-item .input-group {
        width: 100%;
    }

    .third-item .input-group .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .third-item input.form-control {
        background-color: transparent;
        border-color: #fff;
        color: #fff;
        border-radius: 200px;
    }

    .third-item input.form-control {
        border-top: 1px solid #fff !important;
        border-left: 1px solid #fff !important;
        border-right: none !important;
        border-bottom: 1px solid #fff !important;
    }

    .third-item input.form-control::placeholder {
        color: white;
    }

    .third-item input.form-control:focus {
        background-color: transparent;
        border-color: white;
        color: white;
    }

    .third-item .search-button {
        background-color: #fff !important;
        color: #006874 !important;
        border: 1px solid #fff;
        border-radius: 200px;
        border-top-left-radius: 200px !important;
        border-bottom-left-radius: 200px !important;
        margin-left: -30px !important;
        padding: .375rem .75rem !important;
    }

    .search-form .input-group label {
        margin-bottom: unset;
    }

    .carousel-caption .input-group select {
        padding: unset;
    }

    .carousel-caption .input-group button {
        padding: 3px 12px;
    }

    .carousel-indicators {
        display: none;
    }

    .service-contents .service-icons {
        position: unset;
    }

    .statsitem h4 {
        font-size: 40px;
    }

    #knowledge-centers .main-title {
        font-size: 23px;
        line-height: 36px;
    }

    .modal {
        top: -13%;
    }

    .hero-content h1 {
        font-size: 74px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .newsletter {
        padding: 40px 20px;
        /* Further adjusted padding for smaller screens */
    }

    .newsletter h2 {
        font-size: 18px;
        line-height: 20px;
    }

    .newsletter h2 span {
        font-size: 16px;
        line-height: 20px;
    }

    #user-group {
        top: 0px;
        /* z-index: 99999; */
    }

    .lend-wrapper h2 {
        font-size: 19px;
        line-height: 36px;
    }

    .lend-wrapper h3 {
        font-size: 19px;
        line-height: 32px;
    }

    .apply h4 {
        font-size: 24px;
        line-height: 32px;
    }

    .custom-row [class^="col-md-4"] {
        padding-right: 15px;
    }

    .custom-row [class^="col-md-8"] {
        padding-left: 15px;
    }

    .enquire h4 {
        line-height: 28px;
    }

    .footer-main {
        background-position: unset;
    }

    .nri-link h2 {
        font-size: 36px !important;
    }

    .navbar-collapse {
        position: fixed;
        top: 20%;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 1000;
        transition: left 0.3s ease;
        z-index: 99999;
    }

    .navbar-collapse.show {
        left: 0;
    }

    .navbar .custom-toggler {
        order: 1;
        margin-left: 10px;
    }

    .navbar .custom-brand {
        order: 2;
        margin-right: 140px;
    }
}