/* assets/css/haberler.css - Bizden Haberler & Etkinlikler Bölüm Stilleri */

#haberler {
    position: relative;
    z-index: 10;
    background-color: #fcfdfe;
    padding: 70px 5% 90px; /* diğer bölümlerle aynı kenar boşluğu */
}

.haberler-wrapper {
    width: 100%;
    overflow: hidden;
}

.haberler-container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 5%; */
}

/* --- BAŞLIK ALANI --- */
.haberler-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 45px;
}

.haberler-header-left h2 {
    /* font-family: "Inter", sans-serif; */
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #782b90;
    letter-spacing: -0.5px;
    margin: 0 0 10px 0;
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #782b90;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.2;
}

.haberler-header-left h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #782b90;
    border-radius: 2px;
    margin-top: 8px;
}

.haberler-header-left p {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.haberler-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #782b90;
    color: #782b90;
    padding: 11px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(120, 43, 144, 0.08);
}

.haberler-all-btn:hover {
    background: linear-gradient(135deg, #782b90 0%, #9B2C8C 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(120, 43, 144, 0.3);
}

/* --- HABER KARTLARI IZGARASI --- */
.haberler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.haber-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #eef2f6;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.haber-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(120, 43, 144, 0.12);
    border-color: #fbcfe8;
}

.haber-img-box {
    position: relative;
    width: 100%;
    height: 240px;
    background: #f1f5f9;
    overflow: hidden;
}

.haber-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.haber-card:hover .haber-img-box img {
    transform: scale(1.08);
}

.haber-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(120, 43, 144, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 2;
}

.haber-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.haber-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #782b90;
    font-weight: 600;
}

.haber-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.haber-meta i {
    font-size: 0.9rem;
}

.haber-title {
    /* font-family: "Inter", sans-serif; */
    /* font-size: 1.25rem; */
    /* font-weight: 700; */
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 10px 0;
    transition: color 0.25s ease;
}

.haber-card:hover .haber-title {
    color: #782b90;
}

.haber-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.haber-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: #782b90;
}

.haber-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease;
}

.haber-card:hover .haber-read-more {
    gap: 10px;
}

.haber-location {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #haberler {
        padding: 50px 5% 70px;
    }
    .haberler-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .haberler-grid {
        grid-template-columns: 1fr;
    }
}
