.news-page-hero {
    background: linear-gradient(135deg, #008dab 0%, #0b4660 100%);
    color: #fff;
    padding: 28px 0 32px;
    margin-bottom: 32px;
}

.news-page-hero h1 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.news-detail-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 16px 60px;
}

body:has(.news-detail-container) {
    background-color: #f3f4f6;
    color: #1f2937;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(260px, 300px);
    gap: 24px;
    justify-content: center;
    align-items: start;
}

.news-sidebar {
    align-self: start;
}

.news-sidebar .sidebar-card {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 141, 171, 0.35) transparent;
}

/* —— En son haberler (detay sidebar) —— */
.recent-news-panel {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 8px 32px rgba(11, 70, 96, 0.08);
    padding: 0;
    overflow: hidden;
}

.recent-news-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #008dab 0%, #0b4660 100%);
    color: #fff;
}

.recent-news-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.recent-news-panel .sidebar-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading, 'Marlide Display', sans-serif);
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.recent-news-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    background: #fafbfc;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.recent-news-card:hover {
    transform: translateX(4px);
    background: #fff;
    border-color: rgba(0, 141, 171, 0.35);
    box-shadow: 0 10px 24px rgba(0, 141, 171, 0.12);
    color: inherit;
}

.recent-news-media {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #e8f4f8 0%, #f1f5f9 100%);
    flex-shrink: 0;
    position: relative;
    isolation: isolate;
}

.recent-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.recent-news-card:hover .recent-news-img {
    transform: scale(1.06);
}

.recent-news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.4rem;
}

.recent-news-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 4px;
}

.recent-news-date {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #008dab;
}

.recent-news-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-news-read {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.recent-news-card:hover .recent-news-read {
    opacity: 1;
    transform: translateX(0);
    color: #008dab;
}

.recent-news-read i {
    font-size: 1.1rem;
    line-height: 1;
}

.recent-news-empty {
    margin: 0;
    padding: 12px 4px;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.recent-news-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 16px 16px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #008dab 0%, #0a5f78 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-news-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 141, 171, 0.35);
}

.recent-news-cta i {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        margin-top: 8px;
    }

    .news-sidebar .sidebar-card {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .recent-news-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .recent-news-media {
        width: 72px;
        min-width: 72px;
        max-width: 72px;
    }

    .recent-news-read {
        opacity: 1;
        transform: none;
    }

    .recent-news-card:hover {
        transform: none;
    }
}

@media (max-width: 420px) {
    .recent-news-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .recent-news-media {
        width: 100%;
        min-width: 0;
        max-width: none;
        aspect-ratio: 16 / 9;
    }

    .recent-news-title {
        -webkit-line-clamp: 2;
    }
}

.news-grid-page {
    padding-bottom: 64px;
}

.news-pagination .page-link {
    color: #0b4660;
    border-color: #e2e8f0;
    min-width: 42px;
    text-align: center;
}

.news-pagination .page-item.active .page-link {
    background-color: #008dab;
    border-color: #008dab;
}

.news-pagination .page-link:hover {
    background-color: rgba(0, 141, 171, 0.08);
    color: #008dab;
}

.news-pagination .page-item.disabled .page-link {
    color: #94a3b8;
}

.news-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.news-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 141, 171, 0.15);
    color: inherit;
}

.news-card-modern .card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.news-card-modern .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-card-modern .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-modern .card-date {
    font-size: 0.8rem;
    color: #008dab;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card-modern .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #0f172a;
}

.news-card-modern .card-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    flex: 1;
    line-height: 1.6;
}

.news-card-modern .card-link {
    margin-top: 14px;
    font-weight: 600;
    color: #008dab;
    font-size: 0.9rem;
}

.news-files-section {
    margin-top: 40px;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.news-files-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0b4660;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #008dab;
}

.news-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-file-list li {
    margin-bottom: 10px;
}

.news-file-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    border: 1px solid #e8ecf0;
    transition: all 0.2s;
}

.news-file-list a:hover {
    background: #008dab;
    color: #fff;
    border-color: #008dab;
}

.news-file-list a i {
    font-size: 1.25rem;
    color: #c41e3a;
}

.news-file-list a:hover i {
    color: #fff;
}
