/* =========================================
    MP1 PREMIUM PAGE
========================================= */

.mp1-page-header {
    padding: 60px 15px 35px;
    text-align: center;
}

.mp1-page-header h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.mp1-page-header h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 50px;
    background: linear-gradient(90deg,
            #0068b7,
            #00b9e8);
}

.mp1-page-header p {
    max-width: 750px;
    margin: 18px auto 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
           GRID
        ========================================= */

.masonry {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 25px 70px;

    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));

    gap: 24px;
}


/* =========================================
           CARD
        ========================================= */

.masonry .item {
    position: relative;

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    border: 1px solid rgba(0, 145, 210, .10);

    box-shadow:
        0 10px 35px rgba(15, 23, 42, .07);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.masonry .item:hover {
    transform: translateY(-8px);

    border-color:
        rgba(0, 145, 210, .25);

    box-shadow:
        0 20px 50px rgba(15, 23, 42, .13);
}


/* =========================================
           IMAGE
        ========================================= */

.masonry .item img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    display: block;

    transition:
        transform .6s ease;
}

.masonry .item:hover img {
    transform: scale(1.06);
}


/* =========================================
           IMAGE AREA
        ========================================= */

.mp1-image-box {
    position: relative;
    overflow: hidden;
}

.mp1-image-box::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 45%,
            rgba(0, 0, 0, .25));

    pointer-events: none;
}


/* =========================================
           CARD TITLE
        ========================================= */

.masonry .item h4,
.masonry .item b {
    display: block;

    margin: 0;

    color: #1e293b;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.5;

    transition:
        color .3s ease;
}

.masonry .item:hover h4,
.masonry .item:hover b {
    color: #008fd3;
}


.masonry .item h4 i,
.masonry .item b i {
    color: #008fd3;
    margin-right: 5px;
}


/* =========================================
           CONTENT
        ========================================= */

.masonry .item dfn {
    display: block;

    font-style: normal;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;

    margin-top: 8px;
}


/* =========================================
           LINK
        ========================================= */

.masonry .item a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
           MOBILE
        ========================================= */

@media(max-width:768px) {

    .mp1-page-header {
        padding: 45px 15px 25px;
    }

    .masonry {
        padding:
            15px 15px 50px;

        gap: 18px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .masonry .item img {
        height: 180px;
    }

    .masonry .item h4,
    .masonry .item b {
        font-size: 14px;
    }

    .masonry .item dfn {
        font-size: 13px;
    }

}


@media(max-width:480px) {

    .masonry {
        grid-template-columns: 1fr;
    }

    .masonry .item img {
        height: 210px;
    }

}