.text-overlay-image-text {
    margin: auto auto;
    /* padding:  0px; */
    
    /* font-size: 4rem; */
    font-weight: bold;
}

.text-overlay-image {
    background-image: url("/resources/images/dog-running.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    
    padding: 15vw 0px;
    background-position-y: 20%;
}

.text-overlay-image-content p{
    font-size: clamp(1.1rem, 4.5vw, 4rem);
}

.text-overlay-image-content a{
    display: block;
    
    width: fit-content;
    margin: auto auto;
    margin-top: 1%;

    padding: max(5px, 0.8%);

    color: white;
    text-decoration: none; 
    
    font-size: max(11px, 1.5vw);

    background-color: darkgreen;
    border-radius: 13%;
}

h2 {
    text-align: center;

    font-size: clamp(1.2rem, 2vw, 2.2rem);

    padding: 1%;
}

/* Saving lives section */
#saving-lives, #saving-lives > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#saving-lives {
    background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)), url("/resources/images/dog-running.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#saving-lives > div {
    padding-top: 12%;
    padding-bottom: 12%;
}

#saving-lives p {
    width: max-content;

    color: white;

    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;

    font-size: clamp(1.5rem, 13vw, 7rem);

    padding: 5%;
}

#saving-lives a {
    padding: 4%;

    color: white;
    text-decoration: none; 
    
    font-weight: bolder;
    font-size: clamp(1rem, 2vw, 4rem);

    background-color: darkgreen;
    border-radius: 50px;
}

/* other services section */
#other-services {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: baseline;

    height: max-content;
    padding-left: 10%;
    padding-right: 10%;
}

/* Each Individual Services Style */
.service-card {
    position: relative;
    text-align: center;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    
    padding: 5% 0% 5% 0%;
    width: 100%;
}

.service-card > div {
    padding: 8%;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}

.service-card img{
    width: 90%;
    border-radius: 150px;
}

.service-card h2 {
    font-size: clamp(1rem, 2.5vw, 2.2rem);

    color: darkgreen;

    font-family: 'Times New Roman', Times, serif;
}

.service-card p{
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(0.6rem, 1.8vw, 1.5rem);
    text-align: left;

    color: darkslateblue;

    margin: 3%;

    width: -moz-fit-content;
    width: fit-content;
}

.service-card a{
    text-decoration: none;
    color: darkgreen;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px solid darkgreen;
    padding: 3%;
    margin-top: 4%;
    width: max-content;

    font-size: clamp(0.6rem, 1.2vw, 3rem);

    font-weight: bolder;
    border-radius: 35px;
}

/* --------------------------------- Carousel -------------------------------------- */

.wrapper .carousel {
    width: 100%;
    margin: auto auto;
    white-space: nowrap;
    position: relative;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Hide scrollbar */
    /* For internet explorer */
    -ms-overflow-style: none;
    /* For mozilla firefox */
    scrollbar-width: none;  
}

    /* For google chrome */
.wrapper .carousel::-webkit-scrollbar {
    display: none;
}

#carousel-wrapper {
    width: 80vw;
    margin: auto auto;
    text-align: center;
}

.wrapper .carousel {
    text-align: start;
}


.carousel-button {
    display: flex;
    justify-content: space-between;

    gap: 2%;
}

.carousel-button i {
    width: 3rem;

    font-size: 2rem;
    line-height: 50px;
    border-radius: 12px;

    background-color: rgba(164, 164, 164, 0);
    color: grey;
    border: 1px solid grey;

    text-align: center;
    list-style: none;

    cursor: pointer;
}

.carousel-button i :first-child {
    z-index: 2;
}

.carousel-button i :last-child {
    z-index: 2;
}

.new-friends-cards {
    width: 20%;

    display: inline-flex;

    padding: 1%;
    flex-direction: column;
    
    justify-content: flex-start;
    align-items: start;
}

.new-friends-cards * {
    padding-top: 2%;
}

.new-friends-cards > img {
    height: clamp(15rem, 30rem, 20rem);
    width: 100%;
    object-fit: cover;
}

.new-friends-cards h3 {
    word-wrap: break-word;
    white-space: normal;
}


.new-friends-cards p, .new-friends-cards time, .new-friends-cards a {
    text-align: start;

    word-wrap: break-word;
    white-space: normal;

    width: 100%;
    padding-top: 2%;

    margin-top: 2%;

    font-family: 'Times New Roman', Times, serif;

    /*Truncating the Pet Description.
      Limits the pet description paragraph into 3 lines  
    */

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

time, i {
    color: gray;
}

.new-friends-cards button {
    margin: 0%;
    margin-top: 5%;

    /* width: 5rem; */

    padding: 2%;

    font-weight: bolder;
    font-family: 'Times New Roman', Times, serif;

    color: cornflowerblue;
    background-color: white;
    border: 1px solid gray;

    cursor:pointer;
}

.new-friends-cards a {
    text-decoration: none;
}

@media screen and (max-width: 850px){    
    #other-services {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }

    .service-card {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }

    .service-card > div {
        justify-content: space-evenly;
        padding: 2%;
    }

    .service-card > img {
        width: clamp(10%, 50%, 50%);
    }

    .new-friends-cards {
        width: clamp(25%, 35%, 45%);

    }

    .new-friends-cards > img {
        height: 12rem;
    }

    .carousel-button i {
        display: none;
    }
}



