/* Güncel Gelişmeler — profesyonel haberler bölümü */

.news-section {
    --ns-brand: #491720;
    --ns-gold: #c4a052;
    --ns-slate: #394854;
    --ns-muted: #6b7280;
    --ns-surface: #f7f5f2;
    position: relative;
    width: 100%;
    padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px);
    background:
        linear-gradient(180deg, rgba(73, 23, 32, 0.03) 0%, transparent 28%),
        var(--ns-surface);
    overflow: hidden;
}

.news-section.is-hidden {
    display: none !important;
}

.news-section__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

.news-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 48px);
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(73, 23, 32, 0.12);
}

.news-section__eyebrow {
    margin: 0 0 8px;
    font: 600 11px/1.3 var(--font-body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ns-gold);
}

.news-section__title {
    margin: 0;
    font: 700 clamp(28px, 3.2vw, 40px)/1.15 var(--font-body);
    letter-spacing: -0.03em;
    color: var(--ns-brand);
}

.news-section__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-section__all-link {
    margin-right: 6px;
    font: 600 0.78rem / 1 var(--font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ns-brand);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.news-section__all-link:hover {
    color: var(--ns-gold);
}

.news-section__nav-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(73, 23, 32, 0.15);
    border-radius: 50%;
    background: #fff;
    color: var(--ns-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.news-section__nav-btn:hover {
    background: var(--ns-brand);
    border-color: var(--ns-brand);
    color: #fff;
    transform: translateY(-1px);
}

.news-section__nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.news-section__track-wrap {
    overflow: hidden;
}

.news-section__track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 2px 18px;
    -webkit-overflow-scrolling: touch;
}

.news-section__track::-webkit-scrollbar {
    display: none;
}

.ns-card {
    flex: 0 0 min(360px, 82vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(73, 23, 32, 0.08);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(28, 12, 16, 0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.ns-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(28, 12, 16, 0.12);
}

.ns-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e8e4de center / cover no-repeat;
    overflow: hidden;
}

.ns-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(73, 23, 32, 0.35) 100%);
}

.ns-card__date {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.ns-card__day {
    font: 700 22px/1 var(--font-body);
    color: var(--ns-brand);
}

.ns-card__month {
    margin-top: 2px;
    font: 600 10px/1.2 var(--font-body);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ns-muted);
    text-align: center;
}

.ns-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 24px;
    flex: 1;
}

.ns-card__title {
    margin: 0;
    font: 700 19px/1.3 var(--font-body);
    letter-spacing: -0.02em;
    color: var(--ns-brand);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-card__excerpt {
    margin: 0;
    font: 400 14px/1.55 var(--font-body);
    color: var(--ns-slate);
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.ns-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font: 700 12px/1 var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ns-gold);
}

.ns-card__cta svg {
    transition: transform 0.25s ease;
}

.ns-card:hover .ns-card__cta svg {
    transform: translateX(4px);
}

.news-section__empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--ns-muted);
    font: 500 15px/1.5 var(--font-body);
}

/* Modal */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 10, 12, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.news-modal.show {
    display: flex;
    opacity: 1;
}

.news-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: newsModalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes newsModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.news-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ns-brand);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.news-modal__media {
    aspect-ratio: 16 / 9;
    background: #e8e4de center / cover no-repeat;
}

.news-modal__media.is-empty {
    display: none;
}

.news-modal__body {
    padding: 28px 28px 32px;
}

.news-modal__date {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    font: 600 13px/1 var(--font-body);
    color: var(--ns-gold);
}

.news-modal__date strong {
    font-size: 20px;
    color: var(--ns-brand);
}

.news-modal__title {
    margin: 0 0 16px;
    font: 700 clamp(22px, 3vw, 30px)/1.2 var(--font-body);
    letter-spacing: -0.02em;
    color: var(--ns-brand);
}

.news-modal__content {
    font: 400 16px/1.7 var(--font-body);
    color: var(--ns-slate);
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .news-section {
        padding-left: 16px;
        padding-right: 16px;
        overflow: hidden;
    }

    .news-section__title {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    }

    .news-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-section__nav {
        align-self: flex-end;
    }

    .ns-card {
        flex-basis: min(280px, 82vw);
    }

    .news-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .news-modal__dialog {
        max-height: 92vh;
        border-radius: 18px 18px 12px 12px;
    }

    .news-modal__body {
        padding: 20px;
    }
}
