/* Haberler Anasayfası Stilleri */
.haberler-page {
    font-family: 'Open Sans', sans-serif;
    padding: 3rem 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.haberler-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

h1.page-title {
    color: #000000;
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

h1.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Haber Kartı Grid Yapısı */
.haberler-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(400px, 1fr));
    gap: 3rem;
    padding: 1rem 0;
}

/* Haber Kartı Stili */
.haber-card {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 400px;
}

.haber-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.haber-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Haber Görseli */
.haber-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.haber-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.haber-card:hover .haber-image img {
    transform: scale(1.05);
}

/* Haber Bilgileri */
.haber-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
    position: relative;
    padding-bottom: 1.2rem;
}

/* Haber Başlığı */
.haber-title {
    color: #333;
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0.6rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em; /* 2 satır için: line-height * 2 */
}

/* Tarih Bilgisi */
.haber-tarih {
    color: #666;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.haber-tarih i {
    color: #666;
    font-size: 1rem;
}
/* Sayfalama Stilleri */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #255938;
    border-radius: 50%;
    color: #255938;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.page-btn:hover {
    background: #255938;
    color: white;
}

.page-btn.active {
    background: #255938;
    color: white;
}


/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Düzenlemeler */
@media (max-width: 1200px) {
    .haberler-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .haberler-content {
        padding: 0 1.5rem;
    }

    .haberler-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .haber-card {
        min-width: unset;
    }

    h1.page-title {
        font-size: 2rem;
    }
    .pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .haberler-page {
        padding: 2rem 0;
    }

    .haber-image {
        height: 200px;
    }

    .haber-info {
        padding: 1.5rem;
    }
    .pagination {
        gap: 4px;
        margin-top: 25px;
    }

    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}