.gallery-items {
    min-height: 400px;
}

.single-item {
    display: block;
    margin-bottom: 30px;
}

.gallery-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-filter li {
    cursor: pointer;
    padding: 3px 14px;
    /* slightly reduced padding */
    border-radius: 50px;
    font-size: 11px !important;
    /* added !important */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    line-height: 1;
}

/* Category filter specific styles */
.category-filter li {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    min-width: 70px;
    /* reduced minimum width */
    text-align: center;
}

.category-filter li[data-filter="*"].active {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.category-filter li[data-filter=".education"].active {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.category-filter li[data-filter=".community"].active {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.category-filter li[data-filter=".health"].active {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.category-filter li[data-filter=".environment"].active {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

/* Year filter specific styles */
.year-filter li {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.year-filter li.active {
    background: rgba(255, 194, 34, 0.1);
    color: #ffc222;
}

.gallery-filter li.active {
    color: #ffc222;
}

.blog-post {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    transition: all 0.3s ease;
}

.blog-post:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content .date {
    color: #ffc222;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    margin-bottom: 15px;
    min-height: 3em;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content h3 a {
    display: block;
    height: 100%;
}

.blog-content p {
    margin-bottom: 15px;
    min-height: 4.5em;
    /* 3 lines × 1.5 line height */
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    color: #ffc222;
    font-weight: 600;
}

.post-meta:hover {
    color: #e6ae1e;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group+.filter-group {
    margin-top: 15px;
}

.filter-label {
    display: block;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag.education {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.category-tag.community {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.category-tag.health {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.category-tag.environment {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.pager-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.pexels.com/photos/6994992/pexels-photo-6994992.jpeg?auto=compress&cs=tinysrgb&w=1900') center/cover no-repeat !important;
}

.page-content {
    text-align: left;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: #fff;
}

.breadcrumb-item.active {
    color: #ffc222;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
}

/* Sidebar Filter Styles */
.filters-sidebar .gallery-filter li {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0px;
    border: none;
}

.filters-sidebar .gallery-filter li:hover {
    background: rgba(254, 215, 0, 0.1);
    color: #fed700;
}

.filters-sidebar .gallery-filter li.active {
    background: #fed700;
    color: #000;
    font-weight: 600;
}