* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global styles */
.portfolio {
    font-family: "Nunito", serif !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive columns */
    gap: 20px;
    padding: 20px;
}

.mainweb1 {
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    position: relative;
}

.main-image {
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    filter: brightness(30%);
    overflow: hidden;
}

.headline {
    background: #ffffff;
    position: absolute;
    top: 15vh;
    padding: 30px;
    border-radius: 30px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    color: black;
    text-align: center;
    z-index: 9;
    width: 80%;
    max-width: 100%;
    overflow: hidden;
}

.headline p {
    background: #000;
    border-radius: 20px;
    padding: 10px;
    color: white;
    word-wrap: break-word;
}

.headline img {
    width: 150px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.headline h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.headline h2 {
    font-size: 1.2rem;
}

.headline1 h2 {
    text-align: center;
    margin: 10px;
}

.headcontent {
    display: block;
    font-size: 1.2rem;
    margin: 10px;
}

.headline1 {
    padding: 20px;
    color: rgb(2, 2, 2);
    text-align: center;
    margin: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.headline1 span {
    color: blue;
}

.headline1 p{
    font-size: larger;
}

/* read more functionality */
.full-text {
    display: block;
    /* Show full text by default on large screens */
}

.read-more {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}
.clamped-text{
    display: none;
}
.read-more {
    display: none;
}

/* For small screens, apply line clamp and hide the full text */
@media (max-width: 768px) {
    .clamped-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        /* Number of lines to show */
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5em;
        max-height: 4.5em;
    }
    /* .clamped-text {
        display: block;
    } */
    .full-text {
        display: none;
        /* Hide the full text by default on small screens */
    }
    .read-more {
        display: inline-block;
    }
}

/* For very small screens, show the "Read More" link */
@media (max-width: 480px) {
    .read-more {
        display: inline-block;

    }
}

/* ======portfolio====== */


.portfolio .section-title h2 {
    margin-bottom: 10px;
    font-family: "Oswald", sans-serif;
}

.portfolio .section-title p {
    color: #000000;
    font-size: 1rem;
}

.portfoliogallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-item {
    width: 40% !important;
    margin: 10px;
    padding: 10px;
    /* position: relative; */
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 23%; /* Default for large screens (4 cards per row) */
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.3);
}

.portfolio-item .img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-item .details {
    padding: 20px;
    text-align: center;
}

.portfolio-item .details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.portfolio-item .details p {
    font-size: 1rem;
    color: #6c757d;
}

.detailsPara{
    color: #6c757d;
    text-align:  left;
}

.portfolio-item .icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.portfolio-item .stretched-link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}
/* faq section */
.accordion{
    width: 70%;
    margin: 10vh;
}
/* /faq section */

/* Tablet layout (2 cards per row) */
@media (max-width: 991px) {
    .portfolio-item {
        flex: 0 0 48%; /* 2 cards per row */
    }

    .portfolio-item .img img {
        height: 180px;
    }
}

/* Mobile layout (1 card per row) */
@media (max-width: 767px) {
    .portfolio-item {
        flex: 0 0 100%; /* 1 card per row */
    }

    .portfolio-item .img img {
        height: 180px;
    }
}

/* @media (max-width: 575px) {
} */
@media (max-width: 480px) {
    .main-image {
        display: none;
    }

    .mainweb1 {
        /* width: 100% !important; */
        /* padding: 0px;
        height: auto; */
    }

    .mainweb1 {
        width: 100%;
        height: 60vh;
        display: flex;
        align-items: start;
        padding: 0;
        position: relative;
    }

    .portfolio {
        padding: 10px;
    }

    .headline {
        width: 100% !important;
        height: 100%;
        position: relative;
        top: -1px;
        background-image: url("https://plus.unsplash.com/premium_photo-1672423154405-5fd922c11af2?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8YnVpbGRpbmd8ZW58MHx8MHx8fDA%3D");
        background-size: cover;
        background-position: center;
        text-align: center;
        padding: 20px;
        color: #ffffff;
    }

    .headline img {
        width: 100px;
        margin-bottom: 10px;
    }

    .portfolio-item .img img {
        height: 150px;
    }

    .headline1 h2 {
        font-size: 1.3rem;
        font-weight: 700;
    }
    .headline1 {
        padding: 0px;
        text-align: left;
        margin: 20px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    
    .headline1 p{
        font-size: 1rem;
    }
    .portfolio-item{
        margin: 0px;
    }
}