/* ============================================
   Featured Projects Section - CSS
   ============================================ */

/* Projects Grid */
.featured-projects-section .projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.6rem;
    padding: 0 150px;
}

.featured-projects-section.pro-details__related-projects .projects__grid{ padding: 0; }

/* Project Card */
.featured-projects-section .project__card {
    display: flex;
    flex-direction: column;
}

/* Project Image */
.featured-projects-section .project__image {
    position: relative;
    border-radius: 1.6rem;
    overflow: hidden;
    margin-bottom: 2.4rem;
    display: block;
}

.featured-projects-section .project__image::before {
    content: '';
    display: block;
    padding-top: 158.82%;
}

.featured-projects-section .project__image video,
.featured-projects-section .project__image iframe,
.featured-projects-section .project__image img {
    width: 108%;
    height: 120%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* Tool Logo */
.featured-projects-section .project__tool-logo {
    position: absolute;
    top: 2.4rem;
    left: 2.4rem;
    width: 3.6rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-projects-section .project__tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Duration Badge */
.featured-projects-section .project__duration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 0.4rem 1.6rem;
    border-radius: 100px;
    margin-bottom: 1.6rem;
    width: fit-content;
}

/* Project Title */
.featured-projects-section .project__title {
    margin-bottom: 1rem;
}

/* Project Description */
.featured-projects-section .project__description {
    margin-bottom: 1.6rem;
    line-height: 1.6;
}

/* Project Button */
.featured-projects-section .project__btn {
    margin-top: auto;
    width: 100%;
    line-height: normal;
    height: auto;
    padding: 1rem 2rem;
    min-height: 4.8rem;
}

/* ============================================
   Featured Projects Section - Responsive CSS
   ============================================ */

@media (max-width: 1599px) {
    .featured-projects-section .projects__grid {
        gap: 2rem;
    }
}

@media (max-width: 1439px) {
    .featured-projects-section .projects__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.6rem;
    }
    .featured-projects-section .project__tool-logo {
        width: 2.8rem;
        height: 2.8rem;
    }
}

@media (max-width: 1199px) {
    .featured-projects-section .projects__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 0;
    }
    
}

@media (max-width: 991px) {
    .featured-projects-section .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.4rem;
    }
}

@media (max-width: 767px) {
    .featured-projects-section .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }
    .featured-projects-section .project__image {
        margin-bottom: 1.2rem;
    }
    .featured-projects-section .project__duration {
        font-size: 1.2rem;
        padding: 0.4rem 1rem;
    }
    .featured-projects-section .project__description {
        font-size: 1.4rem;
    }
    .featured-projects-section .project__btn {
        width: 100%;
        font-size: 1.4rem;
        padding: 0 1.6rem;
        height: 42px;
    }
}

@media (max-width: 576px) {
    .featured-projects-section .projects__grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }
    .featured-projects-section .project__btn {
        width: 100%;
    }
}

