/* ==========================================================================
   Posts Grid Cards — Design System
   ========================================================================== */

.pgc-section {
    --pgc-blue:    #04418C;
    --pgc-navy:    #1B2A4A;
    --pgc-gray:    #757575;
    --pgc-surface: #F4F6F9;
    --pgc-border:  #E2E8F0;
    max-width: 1600px;
    margin: 0 auto;
    padding: 48px 24px;
}

.pgc-section,
.pgc-section *,
.pgc-section *::before,
.pgc-section *::after {
    box-sizing: border-box;
}

/* Header row ------------------------------------------------------------- */

.pgc-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.pgc-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--pgc-navy);
}

.pgc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pgc-blue);
    text-decoration: none;
    white-space: nowrap;
}

.pgc-view-all:hover { text-decoration: underline; }

/* Filter Bar ------------------------------------------------------------- */

.pgc-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: space-between;
}

.pgc-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 42px;
}

.pgc-search-input {
    width: 100%;
    height: 100%;
    padding: 0 12px 0 40px;
    border: 1px solid var(--pgc-border);
    border-radius: 8px;
    background: var(--pgc-surface);
    font-size: 14px;
    color: var(--pgc-navy);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pgc-search-input::placeholder { color: var(--pgc-gray); }

.pgc-search-input:focus {
    border-color: var(--pgc-blue);
    box-shadow: 0 0 0 3px rgba(4, 65, 140, 0.1);
}

.pgc-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--pgc-gray);
    pointer-events: none;
}

.pgc-search-input:focus + .pgc-search-icon { color: var(--pgc-blue); }

.pgc-select-wrapper {
    position: relative;
    height: 42px;
}

.pgc-filter-select {
    appearance: none;
    -webkit-appearance: none;
    height: 100%;
    padding: 0 36px 0 14px;
    border: 1px solid var(--pgc-border);
    border-radius: 8px;
    background: var(--pgc-surface);
    font-size: 14px;
    color: var(--pgc-navy);
    cursor: pointer;
    outline: none;
    min-width: 160px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pgc-filter-select:focus {
    border-color: var(--pgc-blue);
    box-shadow: 0 0 0 3px rgba(4, 65, 140, 0.1);
}

.pgc-select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--pgc-gray);
    pointer-events: none;
}

.pgc-select-wrapper:focus-within::after { border-top-color: var(--pgc-blue); }

.pgc-clear-filters {
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    color: var(--pgc-blue);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.pgc-clear-filters:hover { background: rgba(4, 65, 140, 0.08); }

/* Grid ------------------------------------------------------------------- */

.pgc-grid {
    display: grid;
    gap: 56px 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pgc-cols-1 { grid-template-columns: 1fr; }
.pgc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .pgc-cols-3, .pgc-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .pgc-grid { grid-template-columns: 1fr; gap: 40px; }
    .pgc-filter-bar { flex-direction: column; align-items: stretch; }
    .pgc-search-wrapper { max-width: 100%; }
    .pgc-select-wrapper { width: 100%; }
    .pgc-filter-select { width: 100%; }
}

/* Card ------------------------------------------------------------------- */

.pgc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.pgc-media {
    display: block;
    width: 100%;
	aspect-ratio: 512 / 280;
    border-radius: 12px;
    overflow: hidden;
    background: var(--pgc-surface);
    border: 1px solid var(--pgc-border);
}

.pgc-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.pgc-card:hover .pgc-image { transform: scale(1.04); }
.pgc-image--empty { background: var(--pgc-surface); }

.pgc-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(4, 65, 140, 0.10);
    color: var(--pgc-blue);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.pgc-badge:hover { background: rgba(4, 65, 140, 0.16); }

.pgc-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--pgc-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pgc-card-title a { color: inherit; text-decoration: none; }
.pgc-card-title a:hover { color: var(--pgc-blue); }

.pgc-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pgc-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pgc-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pgc-blue);
    text-decoration: none;
}

.pgc-readmore:hover { text-decoration: underline; }

.pgc-readmore .pgc-arrow,
.pgc-view-all .pgc-arrow {
    transition: transform 0.2s ease;
}

.pgc-readmore:hover .pgc-arrow,
.pgc-view-all:hover .pgc-arrow { transform: translateX(3px); }

/* Empty State --------------------------------------------------------------- */

.pgc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: var(--pgc-gray);
    text-align: center;
}

.pgc-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--pgc-border);
}

.pgc-empty p {
    font-size: 16px;
    margin: 0;
}


.elementor hr{
        margin-bottom: 20px !important;
        border-color: #f9f9f921;
}
}