/**
 * Öne Çıkan Haberler — vitrin slider (ana sayfa)
 */

.news-showcase {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    overflow-anchor: none;
}

.news-showcase__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.news-showcase__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-maroon);
    margin-bottom: 0.35rem;
}

.news-showcase__head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.news-showcase__all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--brand-maroon);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.news-showcase__all-link:hover {
    background: var(--brand-maroon);
    border-color: var(--brand-maroon);
    color: #fff;
    transform: translateY(-1px);
}

.news-showcase__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: stretch;
}

/* Ana sahne */
.news-showcase__stage {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 40, 53, 0.08);
    border: 1px solid var(--border-color);
}

.news-showcase__slides {
    position: relative;
    flex: 1;
    min-height: 420px;
}

.news-showcase__slide {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
    min-height: 420px;
    animation: newsSlideIn 0.45s ease;
}

.news-showcase__slide[hidden] {
    display: none !important;
}

@keyframes newsSlideIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-showcase__slide-media {
    position: relative;
    display: block;
    min-height: 240px;
    max-height: 320px;
    overflow: hidden;
    text-decoration: none;
}

.news-showcase__slide-media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-showcase__slide.is-active .news-showcase__slide-media:hover img {
    transform: scale(1.04);
}

.news-showcase__slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 40, 53, 0.35) 100%);
    pointer-events: none;
}

.news-showcase__slide-body {
    padding: 1.5rem 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.news-showcase__slide-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-showcase__cat {
    display: inline-flex;
    padding: 0.2rem 0.65rem;
    background: var(--brand-gold-muted);
    color: var(--brand-maroon);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
}

.news-showcase__slide-meta time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-showcase__slide-title {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
}

.news-showcase__slide-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.news-showcase__slide-title a:hover {
    color: var(--brand-maroon);
}

.news-showcase__slide-excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-showcase__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    color: var(--brand-maroon);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: gap 0.2s;
}

.news-showcase__read-more:hover {
    gap: 0.65rem;
    color: var(--brand-maroon-dark);
}

/* Kontroller */
.news-showcase__bar {
    border-top: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    background: var(--bg-light);
}

.news-showcase__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.65rem;
}

.news-showcase__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--brand-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.news-showcase__arrow:hover {
    background: var(--brand-maroon);
    border-color: var(--brand-maroon);
    color: #fff;
    transform: scale(1.05);
}

.news-showcase__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.news-showcase__counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 3rem;
    text-align: center;
}

.news-showcase__counter-sep {
    color: var(--text-light);
    margin: 0 0.15rem;
}

.news-showcase__progress {
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.news-showcase__progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-maroon), var(--brand-gold));
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Sağ liste */
.news-showcase__rail {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-maroon) transparent;
}

.news-showcase__rail-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.news-showcase__rail-item:hover {
    border-color: rgba(43, 143, 199, 0.35);
    box-shadow: 0 4px 16px rgba(15, 40, 53, 0.06);
}

.news-showcase__rail-item.is-active {
    border-color: var(--brand-maroon);
    background: linear-gradient(135deg, rgba(43, 143, 199, 0.06) 0%, rgba(110, 197, 240, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(43, 143, 199, 0.1);
}

.news-showcase__rail-thumb {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
}

.news-showcase__rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-showcase__rail-num {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: var(--brand-maroon);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-showcase__rail-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.news-showcase__rail-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-maroon);
}

.news-showcase__rail-text strong {
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-showcase__rail-text time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Alt küçük resimler */
.news-showcase__thumbs {
    display: none;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.news-showcase__thumbs::-webkit-scrollbar {
    display: none;
}

.news-showcase__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 52px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    background: none;
}

.news-showcase__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-showcase__thumb.is-active,
.news-showcase__thumb:hover {
    opacity: 1;
    border-color: var(--brand-gold);
    transform: translateY(-2px);
}

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

    .news-showcase__rail {
        display: none;
    }

    .news-showcase__thumbs {
        display: flex;
    }

    .news-showcase__slides {
        min-height: 380px;
    }

    .news-showcase__slide {
        min-height: 380px;
    }
}

@media (max-width: 575px) {
    .news-showcase {
        padding: 2.5rem 0;
    }

    .news-showcase__slide-body {
        padding: 1.15rem;
    }

    .news-showcase__slide-media {
        min-height: 200px;
        max-height: 220px;
    }

    .news-showcase__slide-media img {
        min-height: 200px;
        max-height: 220px;
    }

    .news-showcase__head {
        flex-direction: column;
        align-items: flex-start;
    }
}
