.dd-background {
    background-color: #2d404f;
    color: #fff !important;
}

.dd-carousel-item {
    height: 90% !important;
}

.dd-image {
    height: 500px;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
}

.dd-items {
    height: 50%;
    object-fit: cover;
    object-position: 50% 50%;
    flex-direction: column;
}

.dd-carousel-heading {
    font-family: Urbanist, sans-serif;
    font-size: 3.75;
    font-weight: 700;
    /* line-height: 70px; */
    line-height: 50px;
}

.featured-project-image {
    object-fit: fill;
    width: 100%;
    max-width: 90%;
    vertical-align: middle;
    display: inline-block;
    max-height: 300px;
}

.featured-project-heading {
    font-family: Urbanist, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 30px;
}

.featured-project-p {
    font-family: Noto Sans, sans-serif;
    font-size: 0.9rem;
    color: #a7a7a7 !important;
}

.featured-project-link {
    color: #ff5d5d !important;
    font-family: Urbanist, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.dd-search-input {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0) !important;
    border: 1px solid #fff !important;
}

.dd-cards {
    width: 95%;
    background-color: #fff;
    border-radius: 0 !important;
    height: 25rem;
    border-color: unset !important;
}

.dd-card-images {
    border-radius: 0 !important;
    height: 110%;
    object-fit: cover;
    position: relative;
}

.dd-card-names {
    color: #0064b2 !important;
    font-family: Urbanist, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.dd-card-address {
    font-size: .9rem !important;
}

.dd-cards-content {
    height: 4rem;
}

.dd-search {
    display: flex;
    justify-content: space-between;
}

.form-select {
    background-image: url('../images/angle-down-solid.svg') !important;
}

.custom-grid {
    display: grid;
    /* place-items: center; */
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

.dd-icon-container {
    background-image: linear-gradient(#3e5c73, #3e5c73);
    position: relative;
    width: 200px;
    /* text-align: center; */
}

.changing-bg {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    transition: opacity 0.25s ease;
}

.changing-bg p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dd-icon-container:hover .changing-bg {
    opacity: 1;
}

.overlay-text {
    font-size: 1rem;
}

.carousel-item .row {
    flex-direction: row !important;
}

@media (max-width: 1750px) {
    .custom-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}
/*
@media (max-width: 1660px) {
    .custom-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
} */

@media (max-width: 1400px) {
    .custom-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 1232px) {
    .custom-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* @media (max-width: 992px) {
    .custom-grid {
        grid-template-columns: 1fr 1fr;
    }
} */

/* Media query for mobile devices */
@media (max-width: 767px) {
    .row {
        flex-direction: column !important;
    }

    .dd-cards {
        height: 30rem !important;
    }

    .dd-card-images {
        height: 80% !important;
    }

    .dd-icon-container {
        width: 100%;
    }
}

@media (max-width: 556px) {
    .overlay-text {
        font-size: 0.75rem;
    }
}
