/* =====================================================
   CASE STUDIES
===================================================== */

.pcs-case-studies {
    width: 100%;
}

.pcs-case-studies-grid {
    display: grid;

    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );

    gap: 30px;

    width: 100%;
}


/* =====================================================
   CARD
===================================================== */

.pcs-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border-radius: 20px;

    border: 1px solid #e5e7eb;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.pcs-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 50px rgba(
            0,
            0,
            0,
            0.10
        );
}


/* =====================================================
   MEDIA
===================================================== */

.pcs-card-media {
    position: relative;

    overflow: hidden;

    aspect-ratio: 16 / 8;

    background: #f1f3f5;
}


.pcs-card-image {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.pcs-card-placeholder {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

    color: #6b7280;

    font-size: 18px;
}


/* =====================================================
   CONTENT
===================================================== */

.pcs-card-content {
    padding: 15px;
}


.pcs-card-categories {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 10px;
}


.pcs-card-category {
    display: inline-flex;

    padding: 5px 10px;

    border-radius: 100px;

    background: #f1f5f9;

    color: #334155;

    font-size: 12px;

    line-height: 1;
}


.pcs-card-client {
    margin-bottom: 7px;

    color: #64748b;

    font-size: 13px;

    font-weight: 500;
}


.pcs-card-title {
    margin: 0 0 12px;

    font-size: 24px;

    line-height: 1.2;
}


.pcs-card-title a {
    color: inherit;

    text-decoration: none;
}


.pcs-card-description {
    margin-bottom: 20px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.6;
}


.pcs-card-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #0f3453;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;
}


.pcs-card-arrow {
    transition:
        transform 0.2s ease;
}


.pcs-card-link:hover .pcs-card-arrow {
    transform: translateX(4px);
}


/* =====================================================
   GALLERY
===================================================== */

.pcs-gallery {
    position: absolute;

    inset: 0;
}


.pcs-gallery-track {
    position: relative;

    width: 100%;

    height: 100%;
}


.pcs-gallery-slide {
    position: absolute;

    inset: 0;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.35s ease;
}


.pcs-gallery-slide.is-active {
    opacity: 1;

    visibility: visible;
}


.pcs-gallery-prev,
.pcs-gallery-next {
    position: absolute;

    top: 50%;

    z-index: 3;

    width: 34px;

    height: 34px;

    border: 0;

    border-radius: 50%;

    background: rgba(
        255,
        255,
        255,
        0.9
    );

    color: #111827;

    cursor: pointer;

    transform: translateY(-50%);
}


.pcs-gallery-prev {
    left: 12px;
}


.pcs-gallery-next {
    right: 12px;
}


.pcs-gallery-dots {
    position: absolute;

    left: 50%;

    bottom: 12px;

    z-index: 3;

    display: flex;

    gap: 5px;

    transform: translateX(-50%);
}


.pcs-gallery-dot {
    width: 7px;

    height: 7px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(
        255,
        255,
        255,
        0.6
    );

    cursor: pointer;
}


.pcs-gallery-dot.is-active {
    background: #ffffff;
}


/* =====================================================
   NO RESULTS
===================================================== */

.pcs-no-results {
    padding: 40px;

    text-align: center;

    color: #64748b;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media ( max-width: 1024px ) {

    .pcs-case-studies-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media ( max-width: 767px ) {

    .pcs-case-studies-grid {
        grid-template-columns:
            1fr;

        gap: 20px;
    }


    .pcs-card-content {
        padding: 20px;
    }


    .pcs-card-title {
        font-size: 21px;
    }

}