html {
    scroll-behavior: smooth;
}
.bg-red{
    background-color: rgb(210, 0, 1);
    box-shadow: 0px 3px 4px #aaaaaa, 0px 4px 8px #ededed;
}

.nav-link{
    color: #dedede!important;
}
.nav-link:hover{
    color: #fefefe!important;
}
.active > .nav-link{
    color: #ffffff!important;
}
.bg-article{
    background-color: #dedede;
}
.date-time{
    color: #999;
    font-size: .8rem;
}


.sidebar{
    min-height: Calc(100vh - 3.5rem);
    background-color: #ededed;
    box-shadow: 3px 5px 4px #cccccc, 5px 7px 8px #ededed;
    padding-top: 1rem;
    text-align: right;
}

.sidebar-link{

}
.sidebar-link > a{
    text-decoration: none;
    display: block;
    color: #666666;
    border-right: 3px solid rgba(0,0,0,0);
    background-color: rgba(0,0,0,0);
    padding: .3rem .9rem;
    font-size: 1.2rem;
    transition: all .4s;
}

.sidebar-link > a:hover{
    border-left: 3px solid rgba( 210, 0, 1, 1);
    background-color: rgba(0,0,0,.2);
    transition: all .4s;
}

.news-section {
    background: #eef2ff;
    padding: 60px 0;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 50px;
    color: #1f2937;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #111827;
    line-height: 1.7;
}

.news-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 2;
    margin-bottom: 25px;
}

.read-more {
    margin-top: auto;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: #337edb;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background .3s ease;
}

.read-more:hover {
    background: #4338ca;
    color: white;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
