/* Custom dropdown on hover for larger screens */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        animation: slideIn 0.3s ease forwards;
    }

    .navbar .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        background: var(--dark);
    }
}

/* Keyframes for the slide-in effect */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        visibility: hidden;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

/* Rotate the icon when the dropdown is shown */
.nav-item .dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.nav-item .dropdown-menu.show~.fa-chevron-down {
    transform: rotate(180deg);
}

.navbar .dropdown-menu {
    background: var(--dark);
}

@media (max-width: 992px) {

    .home_banner {
        background: #170926;
        min-height: 700px;
        height: auto;
    }

    .home_banner h1 {
        margin-top: 0px;
    }

    .home_banner p, .home_banner ul li {
        color: #ccc;
        font-size: 14px;
        width: 100%;
    }

    .home_banner ul {
        margin-bottom: 1.5rem;
    }

    .listStyle li {
        gap: .5rem;
    }

    .btn_flex .btn {
        width: 100%;
    }

    .apply_text h2 {
        display: none;
    }

    section {
        padding: 2rem 0;
    }

    h2 {
        font-size: 1.4rem;
    }

    .iconBox h3 {
        font-size: 1.1rem;
    }

    .iconBox h3 {
        font-size: 1.1rem;
    }

    .ctaSec h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .ctaSec h2 small {
        font-size: 1rem;
    }

    .ctaSec .btnWrap {
        justify-content: center;
    }

    .packgStyle {
        margin-bottom: 3rem;
    }

    .listStyle, .listStyle li {
        gap: .5rem;
    }

    .packgStyle .featuredList {
        min-height: auto;
    }

    .stateBoxRow {
        flex-flow: row wrap;
        gap: 1rem;
    }

    .statsBox h2 {
        margin: 0rem;
    }

    .stateBoxRow .statsBox {
        flex: 1 0 48%;
    }

    .statsBox p {
        font-size: 1rem;
    }

    .statsBox {
        padding: 1rem;
    }

    .testimonialItem .content,
    .testimonialItem .img {
        width: 100%;
    }

    .testimonialItem {
        display: block;
    }

    .testimonialItem h2 {
        display: none;
    }

    .testimonialItem .img img {
        width: 50%;
        margin: 0 auto;
    }
    footer .contInfo {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 370px) {

    .home_banner {
        min-height: 850px;
    }
}