/*
====================================
Feature Cards
====================================
*/

.fc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

/*
====================================
Card
====================================
*/

.fc-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    min-height: 420px;
    background: #222;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
    transition: transform .35s ease, box-shadow .35s ease;
}

.fc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,.18);
}

/*
====================================
Background Image
====================================
*/

.fc-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}

.fc-image::before {
    content: "";
    position: absolute;
    inset: 0;

    background: inherit;
    background-position: inherit;
    background-size: inherit;

    transform: scale(1);
    transition: transform .6s ease;
    z-index: 0;
}

.fc-card:hover .fc-image::before {
    transform: scale(1.08);
}

/*
====================================
Dark Overlay
====================================
*/

.fc-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.82) 0%,
            rgba(0,0,0,.55) 45%,
            rgba(0,0,0,.12) 100%
        );

    color: #fff;
}

/*
====================================
Title
====================================
*/

.fc-overlay h3 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    line-height: 1.25;
    color: #fff;
    font-weight: 700;
}

/*
====================================
Description
====================================
*/

.fc-overlay p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.92);
    line-height: 1.7;
    font-size: .95rem;
}

/*
====================================
Button
====================================
*/

.fc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 12px 24px;

    background: #ffffff;
    color: #222;

    text-decoration: none;
    border-radius: 999px;

    font-weight: 600;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.fc-button:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
}

/*
====================================
Responsive
====================================
*/

@media (max-width:1200px){

    .fc-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:768px){

    .fc-grid{

        grid-template-columns:1fr;

        gap:20px;

    }

    .fc-card,
    .fc-image{

        min-height:360px;

    }

    .fc-overlay{

        padding:24px;

    }

    .fc-overlay h3{

        font-size:1.4rem;

    }

}