.widget-gazete-yatay {
    position: relative;
    width: 100%;
    outline: none;
}

.widget-gazete-yatay:focus,
.widget-gazete-yatay:focus-within,
.widget-gazete-yatay .slider-container:focus,
.widget-gazete-yatay .slider-container:focus-within {
    outline: none !important;
}

.widget-gazete-yatay .slider-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 5px;
    /* Hover gölgesi taşmasın diye biraz padding */
    scrollbar-width: none;
    /* Firefox scrollbar gizle */
    -ms-overflow-style: none;
    /* IE scrollbar gizle */
}

.widget-gazete-yatay .slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari scrollbar gizle */
}

.widget-gazete-yatay .item {
    scroll-snap-align: start;
    flex: 0 0 calc(50% - 10px);
    /* Mobilde 2'li görünsün diye */
    text-align: center;
    text-decoration: none;
    color: var(--text-color, #222);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
}

@media (min-width: 576px) {
    .widget-gazete-yatay .item {
        flex: 0 0 145px;
        /* Büyük ekranda sabit genişlik */
    }
}

.widget-gazete-yatay .item:hover {
    transform: translateY(-4px);
}

.widget-gazete-yatay img {
    width: 100%;
    aspect-ratio: 2/2.85;
    /* Oran koruması */
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Daha yumuşak, premium bir gölge */
    padding: 6px;
    display: block;
    transition: all 0.3s ease;
}

body.dark-theme .widget-gazete-yatay img,
body.dark .widget-gazete-yatay img,
body.night-mode .widget-gazete-yatay img {
    background: #111;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.widget-gazete-yatay .item:hover img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color, #c8102e);
}

body.dark-theme .widget-gazete-yatay .item:hover img,
body.dark .widget-gazete-yatay .item:hover img,
body.night-mode .widget-gazete-yatay .item:hover img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.widget-gazete-yatay span {
    display: block;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: inherit;
    transition: color 0.3s;
}

.widget-gazete-yatay .item:hover span {
    color: var(--primary-color, #c8102e);
}

body.dark-theme .widget-gazete-yatay span,
body.dark .widget-gazete-yatay span,
body.night-mode .widget-gazete-yatay span {
    color: #e5e5e5;
}

.widget-gazete-yatay .nav-btn {
    position: absolute;
    top: calc(50% - 22px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.96);
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 20px;
    line-height: 1;
    backdrop-filter: blur(8px);
    /* Hafif flulaştırma efekti */
}

body.dark-theme .widget-gazete-yatay .nav-btn,
body.dark .widget-gazete-yatay .nav-btn,
body.night-mode .widget-gazete-yatay .nav-btn {
    background: rgba(40, 40, 40, 0.96);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.widget-gazete-yatay .nav-btn:hover {
    background: var(--primary-color, #c8102e);
    color: #fff;
    border-color: var(--primary-color, #c8102e);
    transform: translateY(-50%) scale(1.08);
    /* Hover'da hafif büyüme */
}

.widget-gazete-yatay .nav-prev {
    left: -15px;
}

.widget-gazete-yatay .nav-next {
    right: -15px;
}

@media (max-width: 768px) {
    .widget-gazete-yatay .nav-prev {
        left: -5px;
    }

    .widget-gazete-yatay .nav-next {
        right: -5px;
    }
}