/* ============================================================
   NSC News Carousel — v1.5
   Mobile fix: overflow taşması giderildi, clip container eklendi
   ============================================================ */

/* Dış sarmalayıcı: taşmayı engelle */
.nsc-carousel-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    -webkit-user-select: none;
    user-select: none;
    padding: 12px 0 20px;
    box-sizing: border-box;
    /* Mobilde yan taşmayı engelle */
    overflow: hidden;
}

/* Swiper container: clip ile içeride tut */
.nsc-swiper {
    width: 100%;
    /* Kartlar görünür alanın dışına taşmasın */
    overflow: hidden !important;
    /* Oklar için padding */
    padding: 0 40px !important;
    box-sizing: border-box;
}

/* Swiper wrapper: görünür */
.nsc-swiper .swiper-wrapper {
    overflow: visible;
}

/* Kart */
.nsc-card {
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(0,0,0,0.28);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    height: 100%;
}

.nsc-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.42);
    transform: translateY(-5px);
}

/* Kart içi link */
.nsc-card-inner {
    display: block;
    text-decoration: none;
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 14px;
}

/* Arka plan resmi */
.nsc-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.65s ease;
    transform: scale(1.0);
    filter: brightness(0.92);
}

.nsc-card-img--empty { background-color: #1a1a1a; }

.nsc-card-inner:hover .nsc-card-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Gradient overlay */
.nsc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0)    0%,
        rgba(0,0,0,0.05) 25%,
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.88) 100%
    );
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nsc-card-inner:hover .nsc-card-overlay {
    opacity: 0.9;
}

/* İçerik */
.nsc-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Etiket */
.nsc-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    width: fit-content;
    line-height: 1.5;
}

/* Başlık */
.nsc-title {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.nsc-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.80);
    flex-wrap: wrap;
}

.nsc-meta-sep { opacity: 0.55; font-size: 11px; }

/* ── Swiper ok butonları ── */
.nsc-swiper-prev,
.nsc-swiper-next {
    width: 34px !important;
    height: 34px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
    color: #222 !important;
    transition: background 0.2s, color 0.2s, transform 0.2s !important;
    top: 50% !important;
    margin-top: -17px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nsc-swiper-prev:hover,
.nsc-swiper-next:hover {
    background: #1a73e8 !important;
    color: #fff !important;
    transform: translateY(0) scale(1.1) !important;
}

/* Ok butonları padding içinde konumlandı */
.nsc-swiper-prev { left: 2px !important; }
.nsc-swiper-next { right: 2px !important; }

/* Ok ikonları */
.nsc-swiper-prev::after {
    content: '' !important;
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    border-left: 2.5px solid currentColor !important;
    border-bottom: 2.5px solid currentColor !important;
    transform: rotate(45deg) translate(1px, -1px) !important;
    margin-left: 3px !important;
}

.nsc-swiper-next::after {
    content: '' !important;
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2.5px solid currentColor !important;
    border-top: 2.5px solid currentColor !important;
    transform: rotate(45deg) translate(-1px, 1px) !important;
    margin-right: 3px !important;
}

/* ── Pagination dots ── */
.nsc-swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 14px !important;
    display: none;
}

.nsc-swiper-pagination .swiper-pagination-bullet {
    background: #aaa !important;
    opacity: 0.5 !important;
}

.nsc-swiper-pagination .swiper-pagination-bullet-active {
    background: #1a73e8 !important;
    opacity: 1 !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .nsc-card-inner { height: 420px; }
    .nsc-swiper { padding: 0 36px !important; }
}

@media (max-width: 600px) {
    .nsc-carousel-wrap {
        padding: 8px 0 16px;
    }
    .nsc-swiper {
        padding: 0 36px !important;
    }
    .nsc-card-inner    { height: 300px; }
    .nsc-title         { font-size: 14px; -webkit-line-clamp: 3; }
    .nsc-swiper-pagination { display: block; }
    /* Mobilde hover transform'u devre dışı bırak (titreme önle) */
    .nsc-card:hover {
        transform: none;
    }
}
