:root {
    --white: #ffffff;
}
.page-header {
    background: transparent;
    padding: 140px 5% 0;
    text-align: center;
}
.page-header h1 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.content-section {
    padding: 3rem 5% 5rem;
    max-width: 1720px;
    margin: 0 auto;
}

/* Search and Filter Panel */
.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2ef;
}
@media (min-width: 768px) {
    .filter-panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 450px;
}
.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}
.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(80, 121, 3, 0.15);
}
.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.categories-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}
.categories-filter::-webkit-scrollbar {
    display: none;
}

.btn-filter {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn-filter.active, .btn-filter:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(80, 121, 3, 0.2);
}

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #eef2ef;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(24, 80, 18, 0.08);
}

.news-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.glass-icon-holder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 
                inset 0 2px 3px rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-icon-holder i {
    font-size: 3rem;
    color: var(--white);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

.news-card:hover .glass-icon-holder {
    transform: translateY(-5px) scale(1.08) rotate(3deg);
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 
                inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

.news-card:hover .glass-icon-holder i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.22));
}

.news-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.news-meta span i {
    color: var(--card-accent, #64748b);
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--card-accent-dark, var(--secondary-color));
    margin-bottom: 0.75rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.news-card:hover .news-title {
    color: var(--card-accent, var(--primary-color));
}

.news-excerpt {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-readmore {
    font-size: 0.85rem;
    color: var(--card-accent, var(--primary-color));
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.news-card:hover .news-readmore {
    gap: 0.75rem;
    color: var(--card-accent-dark, var(--primary-color));
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    grid-column: 1 / -1;
    font-size: 1.1rem;
}
