.news-section {
    position: relative;
    max-width: 1660px;
    margin: 0 auto;
}

.news-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.news-title {
    text-align: center;
}

.news-controls {
    position: absolute;
    right: 0;
    display: flex;
    gap: 8px;
}

.news-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-btn:focus {
    outline: none;
}

.news-btn svg {
    width: 12px;
    height: 16px;
    display: block;
}

.news-btn:disabled {
    opacity: 0.3;
}

.news-thumb {
    width: 100%;
    height: 200px;
    background-color: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.news-card.no-thumbnail .news-thumb {
    position: relative;
    background-color: #0b0b0b;
    overflow: hidden;
}

.news-card.no-thumbnail .news-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/logo/visionspace_logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 120px auto;
    filter: invert(100%);
}

.news-track-wrapper {
    /* overflow: hidden; */
    overflow-x: auto;
    padding-bottom: 12px;
}

.news-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;

    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}
.news-track,
.news-track * {
    -webkit-user-drag: none;
    user-select: none;
}
.news-track::-webkit-scrollbar {
    /* display: none; */
    height: 6px;
}

.news-track::-webkit-scrollbar-track {
    background: transparent;
}

.news-track::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.news-track::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.55);
}

.news-card {
    max-width: 320px;
    min-width: 320px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;

    border: 1px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.5s ease;
}

.news-card:hover {
    cursor: pointer;
    border-color: #2176FF;
}

.news-card img {
    transition: transform 0.5s ease;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.news-card .date {
    display: block;
    padding: 12px 16px 0;
    font-size: 12px;
    color: #aaa;
}

.news-card h6 {
    padding: 8px 16px 16px;
    font-size: 15px;
    color: #fff;
    line-height: 1.4;
}

@media (max-width: 768px) {

    .news-section {
        padding: 0 16px;
    }

    .news-header {
        justify-content: center;
    }

    .news-controls {
        display: none;
    }

    .news-track {
        gap: 16px;
        padding-bottom: 8px;
    }

    .news-track-wrapper {
        padding-left: 16px;
    }

    .news-card img {
        height: 180px;
    }
}
