.pgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 0 !important;
}
.pgrid__card {
    background: #ffffff;
    overflow: hidden;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    margin-bottom: 20px;
}
.pgrid__image {
    display: block;
    position: relative;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
}
.pgrid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.35s ease;
}
.pgrid__img--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.pgrid__image:hover .pgrid__img--main:only-child {
    transform: scale(1.05);
}
.pgrid__image:hover .pgrid__img--main:not(:only-child) {
    opacity: 0;
}
.pgrid__image:hover .pgrid__img--hover {
    opacity: 1;
}
.pgrid__title {
    display: block;
    padding: 16px 16px 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #b23b3b;
    text-decoration: none;
    text-align: center;
    align-self: start;
}
.pgrid__title:hover {
    color: #8a2828;
}
.pgrid__desc {
    padding: 0 16px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: center;
    word-break: break-word;
    align-self: start;
}
.pgrid__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    margin: 0 16px 16px;
    padding: 16px 20px;
    background-color: #f07a1e;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}
.pgrid__btn:hover {
    background-color: #d86410;
    color: #ffffff;
}
.pgrid__btn-text {
    display: block;
}

/* Pagination */
.pgrid-pag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pgrid-pag a,
.pgrid-pag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.pgrid-pag a {
    color: #555;
    background-color: #f0f0f0;
}
.pgrid-pag a:hover {
    color: #fff;
    background-color: #2a6cb6;
}
.pgrid-pag .current {
    color: #fff;
    background-color: #2a6cb6;
}
.pgrid-pag .dots {
    background: none;
    color: #999;
}
.pgrid-pag__icon {
    width: 18px;
    height: 18px;
    display: block;
}