/* all fonts */
.c-link, .card-heading {
    font-family: "Ubuntu", sans-serif;
}

.card-text {
    font-family: "poppins", sans-serif;
    font-size: 14px;
    color: #6c6c6c;
}


/* fonts finish */
.rect {
    position: relative;
    /* height: 00%; */
    text-align: left;
    
}

.rect img {
    width: 100%;
    max-height: 300px;
    /* min-height: 200px; */
}

.rect .less-than-symbol {
    display: inline-block;
    vertical-align: middle; /* Align the symbol with the text */
    margin: 0 5px; /* Adjust spacing between Home and Blogs */
    width: 16px; /* Adjust the width to make it smaller */
    height: auto; /* Maintain aspect ratio */
}

.rect h2 {
    position: absolute; 
    top: 60%;
    /* left: 100px; */
    transform: translateY(-50%);
    margin: 0;
    font-size: 2rem;
    color: white;
    font-family: "Ubuntu", sans-serif;
}

.rect p {
    /* margin-left: 100px; Align with h2 */
    font-size: 1rem;
    margin-top: 10px; /* Space between h2 and p */
    color: white;
    font-family: "Ubuntu", sans-serif;
    position: absolute; /* Keep p absolutely positioned */
    top: 65%; /* Position below h2 (adjust +30px for desired spacing) */
}

.rect p span {
    color: white; /* Teal color for the span */
}

@media (max-width: 768px) {
    
    
    .rect h2 {
        padding-top: 10px;
        top: 60%;
        font-size: 1.5rem;
    }

    .rect p {
        top: calc(50% + 30px);
        font-size: 0.9rem;
    }
}


@media (max-width: 480px) {
    

    .rect h2 {
        padding-top: 10px;
        top: 70%;
        font-size: 1.2rem; /* Smaller font for mobile devices */
    }

    .rect p {
        top: calc(50% + 30px);
        font-size: 0.8rem; /* Smaller text for mobile */
    }
}
.card {
    margin-bottom: 50px;
    width: 100%;
    height: 380px;
    padding: 0;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.c-link {
    color: #008080;
}

.c-link span {
    border-bottom: 1px solid #008080;
}

.card-body{
    padding-bottom: 55px;
}

.card-body p {
    margin: 0;
    padding: 0;
}

/* Move the m-content slightly upwards */
.m-content {
    position: relative;
    top: -1px; /* Move it up by 15px */
    padding-bottom: 10px; /* Adjust padding so content doesn't overflow */
    transition: top 0.7s ease; /* Smooth transition when moving */
}

/* Optional: add hover effect to move it more */
.card:hover .m-content {
    top: -25px; /* Moves more on hover if desired */
}

.dash {
    margin-left: 120px;
    height: 4px;
    width: 110px;
    background-color: #008080;
    opacity: 0;
    transition: margin-left 1s ease, opacity 1s ease;
}

/* On hover, update margin and make it visible */
.card:hover .dash {
    margin-left: 110px;
    opacity: 1;
}

/* Wrapper to contain the images and position them */
.card-img-wrapper {
    position: relative;
    width: 100%; /* Adjust based on the image size */
    height: auto;
}

.card-img-top {
    display: block;
    width: 100%; /* Full width of the container */
    height: auto;
}

.overlay-img {
    position: absolute;
    top: 20px; /* Adjust based on how much space you want from the top */
    left: 20px; /* Adjust based on how much space you want from the left */
    width: 50px; /* Set desired size for the overlay image */
    height: auto; /* Maintain aspect ratio */
}

.blogs a{
    text-decoration: none; /* Removes underline */
            color: inherit; /* Inherits the color from parent */
            border: none;
}