.family-container{
    display: flex;
    flex-direction: row;
    padding: 2rem 1rem;
    max-width: 1366px;
    margin: 0 auto;
}

.image-container {
    flex: 0 0 50%;
    line-height: 2rem;
    position: relative;
    display: grid;
    place-items: center;
    height: auto;
    overflow: visible;
}
.solid-box {
    position: absolute;
    width: 55%;
    height: 100%;
    background-color: #2db7e3;
    z-index: 1;
    border-radius: 35px;
}

.family-img {
    position: relative;
    width: 55%;
    height: auto;
    z-index: 2;
    margin-left: 55px; 
    border-radius: 35px;
}

.info-dog-family {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    max-width: 40%; 
    align-items: left;
}
.f-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.pc-icon {
    max-width: 3.5rem;
    margin-right: 15px;
}

.icon-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: black;
}

.services-description {
    width: 100%;
    font-size: 1rem;
    line-height: 2rem;
    font-size: 1.3rem;
}

/* Desktop View */
@media screen and (min-width: 1364px) {
    .solid-box  {
        height: 112%;
    }
}
@media screen and (max-width: 1222px) {
    .solid-box  {
        height: 90%;
    }
}
@media screen and (max-width: 1135px) {
    .solid-box  {
        width: 75%;
    }
    .family-img{
        width: 75%;
    }
}
@media screen and (max-width: 986px) {
    .solid-box  {
        width: 75%;
        height: 80%;
    }
    .family-img{
        width: 75%;
    }
}
/* Tablet View */
@media screen and (max-width: 825px) {
    .family-container {
        flex-direction: column;
    }
    .image-container {
        margin-bottom: 3rem;
    }
    .solid-box  {
        bottom: -7%;
        height: 112%;
    }
    .info-dog-family {
        min-width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* Mobile View */
@media screen and (max-width: 480px) {
    .icon-title {
        font-size: 1.3rem;
    }
    .services-description {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .f-title-icon {
        gap: 0rem;
    }
}
