/* =========================================================
   OUR WORKS
   ========================================================= */

.our-works-section {
    padding: 2.5rem 0;
    /* padding-bottom: 5.5rem; */

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );

    position: relative;
}


/* Header */

.our-works-header {
    margin-bottom: 3rem;
}

.section-eyebrow {
    color: var(--mst-gold);
}

.our-works-header .section-title {
    color: var(--brand-navy);
    margin-bottom: .7rem;
}

.our-works-header .section-sub {
    color: #687386;
    line-height: 1.7;
}


/* Grid */

.our-works-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 26px;
}


/* =========================================================
   WORK CARD
   ========================================================= */

.work-card {
    background: #fff;

    border: 1px solid rgba(27, 42, 74, .12);

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 6px 24px rgba(27, 42, 74, .06);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.work-card:hover {
    border-color: rgba(53, 80, 144, .35);
}


/* =========================================================
   IMAGE
   ========================================================= */

.work-image-wrapper {
    height: 245px;

    position: relative;

    overflow: hidden;

    background: #e9edf3;
}

.work-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .5s ease;
}

.work-card:hover .work-image {
    transform: scale(1.06);
}


/* Image overlay */

.work-image-wrapper::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(15, 28, 52, .28) 100%
        );

    pointer-events: none;
}


/* =========================================================
   DATE BADGE
   ========================================================= */

.work-date {
    position: absolute;

    left: 15px;
    bottom: 15px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: .42rem .75rem;

    border-radius: 7px;

    background: rgba(27, 42, 74, .92);

    color: #fff;

    font-size: .76rem;

    font-weight: 600;

    backdrop-filter: blur(5px);
}

.work-date i {
    color: var(--brand-sky);
}


/* =========================================================
   CONTENT
   ========================================================= */

.work-content {
    padding: 1.35rem 1.4rem 1.25rem;
}


/* Category */

.work-category {
    display: inline-block;

    font-size: .68rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .12em;

    color: var(--brand-sky);

    margin-bottom: .5rem;
}


/* Title */

.work-content h3 {
    margin: 0 0 .55rem;

    font-family: var(--font-display);

    font-size: 18px;

    line-height: 1.25;

    color: var(--brand-navy);

    font-weight: 700;
}


/* Description */

.work-content p {
    margin: 0;

    color: #687386;

    font-size: .88rem;

    line-height: 1.65;

    min-height: 120px;
}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.work-footer {
    margin-top: 1.15rem;

    padding-top: .9rem;

    border-top: 1px solid #edf0f4;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.work-year {
    color: #8a93a2;

    font-size: .78rem;

    font-weight: 600;
}

.work-link {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--brand-primary);

    font-size: .82rem;

    font-weight: 700;

    transition:
        color .2s ease,
        gap .2s ease;
}

.work-link:hover {
    color: var(--brand-sky);

    gap: 8px;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.our-works-button {
    margin-top: 3rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .our-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 767px) {

    .our-works-section {
        padding: 4rem 0;
    }

    .our-works-header {
        margin-bottom: 2rem;
    }

    .our-works-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .work-image-wrapper {
        height: 230px;
    }

}


@media (max-width: 480px) {

    .work-content {
        padding: 1.2rem;
    }

    .work-content h3 {
        font-size: 1.2rem;
    }

}