/* ================= Category Filter ================= */
.pf-cat-list {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0 0 25px;
    padding: 0;
    flex-wrap: wrap;
}

.pf-cat-item {
    position: relative;
}

/* Parent + Subcategory arrow */
.pf-cat-item.has-sub > .pf-cat-link::after {
    content: " ▼";
    font-size: 0.7em;
}

.pf-cat-link {
    padding: 10px 22px;
    border: none;
    border-radius: 30px;
    background: #f7f9fc;
    text-decoration: none;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.pf-cat-link.active,
.pf-cat-link:hover {
    background: #3E8ACA;
    color: #fff;
    box-shadow: 0 4px 10px rgba(62,138,202,0.35);
}

/* Subcategory Dropdown */
.pf-subcats {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: none !important;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 220px;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    animation: fadeIn 0.25s ease;
}

.pf-subcats li {
    list-style: none;
    border: none !important;
}

.pf-subcats a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none !important;
}

.pf-subcats a:hover {
    background: #f7faff;
    color: #3E8ACA;
    padding-left: 22px;
}

.pf-cat-item:hover > .pf-subcats,
.pf-subcats:hover {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================= Post Cards Grid ================= */
.pf-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .pf-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pf-posts-grid { grid-template-columns: 1fr; }
}

/* ================= Post Cards ================= */
.pf-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.pf-card img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    margin-bottom: 12px;
}

.pf-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #000;
    font-weight: 700;
}

/* পোস্ট কার্ড title কালো করার জন্য */
.pf-card h3 a {
    color: #000 !important;
    text-decoration: none;
}

/* hover হলে আগের নীল রঙের মতো হবে */
.pf-card h3 a:hover {
    color: #3E8ACA !important;
}

/* ব্লগের description ও Read More লিঙ্ক লুকানো */
.pf-card .pf-excerpt,
.pf-card a.read-more {
    display: none !important;
}

/* ================= Load More Button ================= */
#pf-load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 25px;
    background: #3E8ACA;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
#pf-load-more:hover {
    background: #1d5f91;
}
