body { 
    font-family: Vazir, sans-serif; 
    background-color: #f5f5f0; 
}

.page-hero {
    position: relative; 
    min-height: 300px;
    background: linear-gradient(135deg, #085041 0%, #1D9E75 50%, #0F6E56 100%);
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    overflow: hidden;
}

.page-hero::before {
    content: ''; 
    position: absolute; 
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.page-hero-content { 
    position: relative; 
    z-index: 1; 
    padding: 2.5rem 2rem; 
}

.page-hero h1 {
    font-family: 'A Rezvan', Vazir, sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff; 
    margin: 0 0 0.5rem;
    position: relative; 
    display: inline-block;
}

.page-hero h1::after {
    content: ''; 
    position: absolute; 
    bottom: -6px; 
    right: 0;
    height: 3px; 
    width: 0%; 
    background: #9FE1CB; 
    border-radius: 2px;
    animation: underline-grow 0.9s ease-out 0.4s forwards;
}

@keyframes underline-grow { 
    to { width: 100%; } 
}

.page-hero p {
    font-family: Vazir, sans-serif; 
    font-size: 1rem;
    color: rgba(255,255,255,0.78); 
    margin: 0.8rem 0 0;
}

/* Stats bar */
.news-stats {
    background: #fff; 
    border-bottom: 1px solid #e8e8e0;
    padding: 1rem 0;
}

.news-stats-inner {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem;
    display: flex; 
    gap: 2rem; 
    align-items: center;
    font-family: Vazir, sans-serif; 
    font-size: 0.9rem; 
    color: #777;
}

.news-stats-inner span { 
    color: #085041; 
    font-weight: bold; 
}

.news-section { 
    padding: 2.5rem 0 4rem; 
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Pure-CSS grid replacing the old Bootstrap row-cols-* classes */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
}

.card {
    border: none; 
    border-radius: 14px; 
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s; 
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(8,80,65,0.14) !important;
}

.card-img-top { 
    height: 220px; 
    width: 100%; 
    object-fit: cover;
    display: block;
}

.card-body { 
    padding: 1.2rem 1.4rem 1.4rem; 
}

.card-title {
    font-family: 'A Rezvan', Vazir, sans-serif;
    font-size: 1.1rem; 
    color: #085041; 
    margin-bottom: 0.5rem;
}

.card-text { 
    font-family: Vazir, sans-serif; 
    font-size: 0.9rem; 
    color: #555; 
    line-height: 1.7; 
}

.card-link {
    display: inline-flex; 
    align-items: center; 
    gap: 0.3rem;
    margin-top: 0.8rem; 
    font-family: 'A Rezvan', Vazir, sans-serif;
    font-size: 0.9rem; 
    color: #1D9E75; 
    text-decoration: none;
    border: 1.5px solid #1D9E75; 
    padding: 0.35rem 0.9rem;
    border-radius: 50px; 
    transition: background 0.2s, color 0.2s;
}

.card-link:hover { 
    background: #085041; 
    color: #fff; 
    border-color: #085041; 
}

.empty-state {
    text-align: center; 
    padding: 6rem 1rem; 
    color: #aaa;
    font-family: 'A Rezvan', Vazir, sans-serif; 
    font-size: 1.3rem;
}

.empty-state::before { 
    content: '📰'; 
    display: block; 
    font-size: 3rem; 
    margin-bottom: 1rem; 
}

/* Pagination (new — the original static site had none) */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 3rem;
}
.news-pagination a, .news-pagination span {
    font-family: 'A Rezvan', Vazir, sans-serif;
    font-size: 0.9rem;
    color: #085041;
    background: #fff;
    border: 1.5px solid #e0e0d8;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
}
.news-pagination a:hover { background: #085041; color: #fff; border-color: #085041; }
.news-pagination .current { background: #085041; color: #fff; border-color: #085041; }
