/* Bizden Haberler Section Styles */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Grid Layout */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Haber Kartları */
.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.news-section .section-title h2 {
    font-family: 'PT Sans Narrow', sans-serif !important;
    font-weight: 700 !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.news-section .section-title h2::before {
    content: "\f1ea";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #1a1a1a;
    font-size: 0.9em;
    animation: pulse 2s infinite;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Haber Kategori Butonları */
.news-categories-buttons {
    margin-bottom: 30px;
}

/* Blog Kategori Butonları */
.blog-categories-buttons {
    margin-bottom: 30px;
}

.category-filter-btn {
    display: inline-block;
    margin: 5px;
    padding: 8px 16px;
    background-color: #616161;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #616161;
}

.category-filter-btn:hover {
    background-color: #4a4a4a;
    color: white;
    border-color: #4a4a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(97, 97, 97, 0.3);
}

/* Haber Kartları için Özel Etiketler */
.news-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #616161;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    z-index: 1;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.news-date-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Haber kartlarında resim containerı için özel stiller */
.news-section .category-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    background-color: #f5f5f5;
}

/* Haber resimlerinin genişlik tam oturur, yükseklik otomatik */
.news-section .category-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

/* Placeholder resimler için özel stil */
.news-section .category-image img[src*="logo-web-amb.png"] {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 20px;
    background-color: #f8f9fa;
    opacity: 0.8;
    box-sizing: border-box;
}

/* Haber kartlarında hover efekti */
.news-section .category-card {
    height: auto;
    display: flex;
    flex-direction: column;
}

.news-section .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Haber içeriği için özel padding */
.news-section .category-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Haber başlığı için özel stiller */
.news-section .category-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    min-height: 60px; /* Başlık yüksekliğini sabitler */
}

/* Haber açıklaması için stiller */
.news-section .category-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    min-height: 75px; /* Açıklama yüksekliğini sabitler */
}

/* Haber okuma butonları */
.category-button {
    display: inline-block;
    padding: 12px 24px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.category-button:hover {
    background-color: #ffb900;
    color: black;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive iyileştirmeler */
@media screen and (max-width: 768px) {
    .news-section .category-content h3 {
        font-size: 18px;
        min-height: auto;
    }
    
    .news-section .category-description {
        font-size: 14px;
        min-height: auto;
    }
    
    .category-filter-btn {
        font-size: 0.85em;
        padding: 6px 12px;
        margin: 3px;
    }
}

@media screen and (max-width: 576px) {
    .news-categories-buttons {
        text-align: center;
    }
    
    .category-filter-btn {
        display: inline-block;
        width: auto;
        margin: 2px;
    }
}