/* ── Posts Grid with Pagination — Widget 1115 ── */

.pgp1115-wrapper {
    background-color: #7B6FD8;
    padding: 40px 30px;
    border-radius: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

/* Section Title */
.pgp1115-section-title {
    text-align: center;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 32px;
    letter-spacing: 0.01em;
}

/* Grid */
.pgp1115-grid {
    display: grid;
    gap: 22px;
    margin-bottom: 40px;
}
.pgp1115-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pgp1115-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
    .pgp1115-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .pgp1115-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pgp1115-cols-4,
    .pgp1115-cols-3 { grid-template-columns: 1fr; }
}

/* Card */
.pgp1115-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease;
}
.pgp1115-card:hover { transform: translateY(-5px); }

.pgp1115-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 14px;
    background: rgba(0,0,0,0.2);
}
.pgp1115-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.pgp1115-card:hover .pgp1115-img-wrap img { transform: scale(1.05); }

.pgp1115-card-body { padding: 0 2px; }

.pgp1115-cat {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #FFD700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pgp1115-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}

/* Meta */
.pgp1115-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: #ddd8ff;
    font-size: 0.76rem;
    line-height: 1.4;
}
.pgp1115-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.pgp1115-meta-item svg {
    width: 12px;
    height: 12px;
    fill: #ddd8ff;
    flex-shrink: 0;
}
.pgp1115-sep {
    color: #ddd8ff;
    opacity: 0.6;
    font-size: 0.85rem;
}

/* No posts */
.pgp1115-no-posts {
    color: #fff;
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px 0;
    opacity: 0.8;
}

/* Loading */
.pgp1115-grid.pgp1115-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* Pagination */
.pgp1115-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pgp1115-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
    line-height: 1;
}
.pgp1115-page-btn:hover {
    background-color: #e8e4ff;
    transform: translateY(-1px);
}
.pgp1115-page-btn.pgp1115-active {
    background-color: #4A90E2;
    color: #ffffff;
    pointer-events: none;
}
.pgp1115-page-btn.pgp1115-prev,
.pgp1115-page-btn.pgp1115-next {
    padding: 0 18px;
    font-size: 0.82rem;
}

.pgp1115-dots {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 42px;
    padding: 0 2px;
}
