.pgp-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.pgp-filters .pgp-radio-filters{
    width: 220px;
    border-right: 1px solid #eee;
    padding-right: 15px;
    background:#fafafa;
    border-radius:6px;
    padding:12px;
}
.pgp-posts {
    flex: 1;
    position: relative; /* loader ke liye */
}
.pgp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pgp-post {
    border: 1px solid #eee;
    padding: 20px 15px 30px 15px ;
    border-radius: 8px;
    background: #f9f9fb;
    text-align: center;
}
.pgp-cat-icon {
    margin-bottom: 8px;
}
.pgp-cat-icon img {
    max-width: 100%;
    display: inline-block;
    border-radius: 5px;
    background: #ffffff;
    padding: 8px;
    object-fit: contain;
    height: 80px;
    border: 1px solid #eee8d2;
}
.pgp-post h3 { 
    margin: 8px 0 12px 0 !important; 
    font-size: 18px !important; 
}
.pgp-date {
    background: #eac5322b;
    padding: 0px 8px;
    border-radius: 5px;
    color: #000;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 15px;
}
.pgp-excerpt { 
    color:#444; 
    font-size:14px; 
    margin-top:6px; 
}
.pgp-btn {
    position: relative;
    margin-top: 0px !important;
    margin-right: 0px;
    text-align: center;
    background: #000;
    color: #FFF !important;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 14px;
}
.pgp-btn:hover { opacity: 0.8; }

/* pagination */
.pgp-pagination {
    text-align: center;
    margin-top: 20px;
}
.pgp-pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
    font-size: 14px;
}
.pgp-pagination a.active {
    background: #000;
    color: #fff;
    border-color: #000;
}
.pgp-pagination a:hover {
    background: #333;
    color: #fff;
}

/* loader */
.pgp-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.pgp-loader span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 3px;
    background: #000;
    border-radius: 50%;
    animation: pgp-bounce 0.6s infinite alternate;
}
.pgp-loader span:nth-child(2) { animation-delay: 0.2s; }
.pgp-loader span:nth-child(3) { animation-delay: 0.4s; }


@keyframes pgp-bounce {
    from { transform: translateY(0); opacity: 0.6; }
    to { transform: translateY(-8px); opacity: 1; }
}


/* Filter radio buttons style */
.pgp-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #000;
}

.pgp-filters input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease-in-out;
}

.pgp-filters input[type="radio"]:checked {
    border-color: #000;
    background-color: #fff;
}

.pgp-filters input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #eac532;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pgp-filters input[type="radio"]:checked + span {
    font-weight: 600; /* active filter text bold */
}

/* Desktop filters default */
.pgp-radio-filters { display: block; }
.pgp-accordion-filter { display: none; }


.pgp-tag-filter {
    margin-top: 10px;
    margin-bottom: 15px;
    background: #fafafa;
    padding: 12px;
}

.pgp-tag-filter select {
    padding: 6px 8px;
    font-size: 16px;
    min-width: 100%;
    border: 2px solid #ccc;
}



/* Mobile view */
@media (max-width: 768px) {
    .pgp-radio-filters { display: none; }
    .pgp-accordion-filter { display: block; width: 100%; }

    .pgp-accordion-btn {
        width: 100%;
        padding: 10px 14px;
        background: #000;
        color: #fff;
        text-align: left;
        border-radius: 6px;
        font-size: 15px;
        cursor: pointer;
        border: none;
    }
    .pgp-accordion-btn.active {
        background: #eac532;
        color: #000;
    }

    .pgp-accordion-content {
        display: none;
        background: #fafafa;
        border: 1px solid #eee;
        border-radius: 6px;
        margin-top: 5px;
        padding: 10px;
    }
    .pgp-accordion-content label {
        display: block;
        margin-bottom: 6px;
        cursor: pointer;
    }

/* accordion button base */
.pgp-accordion-btn {
    background: #000;         /* black bg */
    color: #fff;              /* white text */
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    position: relative;
    font-weight: bold;
    border-radius: 6px;
}

/* arrow add karne ke liye pseudo element */
.pgp-accordion-btn::after {
    content: '\25BC';   /* ▼ */
    font-size: 14px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;        /* white arrow */
    transition: transform 0.3s ease;
}

/* active hone pe arrow rotate up */
.pgp-accordion-btn.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.pgp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100% !important;
}

.pgp-posts, 
.pgp-grid {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
}


}


/* responsive */
@media (max-width: 900px) {
    .pgp-wrapper { flex-direction: column; }
    .pgp-filters { width: 100%; border-right: none; border-bottom: 1px solid #eee; padding-bottom:12px; margin-bottom:12px; }
    .pgp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .pgp-grid { grid-template-columns: 1fr; }
}
