@media (max-width: 991px) {
    .custom-toggler {
        display: block;
    }

    .terms-and-policy {
        text-align: left;
    }

    .tile-item img {
        height: auto; /* Make height responsive for smaller screens */
    }

    .logo-section.logo {
        display: none;
    }

    .static-slider {
        height: 300px;
    }

    .logo-section-bg {
        background-color: #343a40;
        position: relative;
    }

    .logo-section {
        background-color: unset;
        color: white;
        height: unset;
        padding: .5em;
    }

    .logo-section .address a {
        color: white!important;
    }

    .phone-icon {
        display: block;
    }

    .search-container {
        margin-right: 5.3em;
    }

    .logo-mobile {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-mobile img {
        width: 110px;
        vertical-align: top!important;
    }

    .navbar {
        padding: 1rem 1rem !important;
    }

    .search-container {
        position: absolute; /* Position search bar to the right */
        right: 0;
        z-index: 5;
    }

    .navbar-collapse {
        display: none;
    }

    .underline::after {
        width: 100%;
    }

    .underline {
        font-size: 20px;
    }

    .footer img {
        max-width: 50%;
    }

    li.list-group-item {
        width: 70%;
        margin: auto;
        text-align: center;
    }
}

@media (max-width: 741px) {
    .linked-tiles {
        flex-direction: column; /* Stack images vertically */
        width: 100%;
    }

    .tile-item::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)); /* Gradient overlay */
    }

    .tile-item {
        height: 400px;
        border-bottom: 2px solid #f0f0f0;
    }

    .tile-item img {
        margin-top: -160%;
    }

    .caption {
        top: 4em;
        text-align: center;
    }

    .caption h1 {
        float: unset;
        font-size: 33px;
    }

    .caption p {
        font-size: 25px;
        line-height: 1.2em;
        float: unset;
        margin: auto;
    }
}

@media (max-width: 468px) {
    .logo-mobile img {
        width: 95px;
    }

    .phone-icon {
        margin-right: 3px;
    }

    .search-container {
        margin-right: 4em;
    }
}