/* === News Section === */

.news-section {
    padding: 60px 0;
}


/* Filter Tags */

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 90px;
}

.filter-tags button {
    padding: 19px 30px;
    border-radius: 30px;
    background: #F5F6F8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #51678F;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.filter-tags button:hover {
    background: rgba(188, 0, 66, 0.06);
    color: #BC0042;
}

.filter-tags button.active {
    background: rgba(188, 0, 66, 0.06);
    color: #BC0042;
    border-color: #c50032;
}


/* News Grid */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* News Card */

.news-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
    /* animasyon ekledik */
}

.news-card .news-meta {
    color: #51678F;
    leading-trim: both;
    text-edge: cap;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    /* 250% */
    margin-bottom: 20px;
}

.news-card h3 {
    color: #51678F;
    leading-trim: both;
    text-edge: cap;
    font-family: "DM Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    height: 120px;
    transition: .3s all linear;
    margin-bottom: 20px;
}

.news-card:hover h3 {
    color: #BC0042
}


/* Highlighted Card */

.news-card.highlight h3 .red {
    color: #c50032;
    font-weight: 600;
}

.related-posts {
    margin-bottom: 100px;
}

.related-posts h2 {
    color: #51678F;
    leading-trim: both;
    text-edge: cap;
    font-family: "DM Sans";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #51678F;
    background: #f5f6f8;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #e9ecf1;
    border-color: #ccc;
    color: #BC0042;
}

.pagination a.btn-primary {
    background: #BC0042;
    color: #fff;
    border-color: #BC0042;
}

.pagination a.btn-primary:hover {
    background: #a20035;
    border-color: #a20035;
}