/* ===============================
   FEATURED PROJECTS
================================ */

.featured-projects {
    background: rgba(0,0,0,0.95);
}

/* CARD */
.featured-card {
    height: 100%;
}

.featured-link {
    position: relative;
    display: block;
    height: 100%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
}

.project-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--bs-secondary);
    color: #fff;
}


/* MEDIA – SAME SIZE EVERYWHERE */
.featured-media {
    aspect-ratio: 4 / 5; /* forces same height */
    overflow: hidden;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

/* TITLE BAR */
.featured-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.2rem;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0)
    );
}

.featured-caption h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.04em;
}

/* OVERLAY */
.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}

.featured-action {
    padding: 0.6rem 1.6rem;
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* HOVER EFFECTS */
.featured-link:hover .featured-media img {
    transform: scale(1.05);
}

.featured-link:hover .featured-overlay {
    opacity: 1;
}

/* MOBILE REFINEMENT */
@media (max-width: 575.98px) {
    .featured-caption {
        padding: 1rem;
    }

    .featured-caption h3 {
        font-size: 0.95rem;
    }
}
