body {
    background: #0a0a0a;
    font-family: 'Georgia', serif;
}


/* CONTENEDOR */

.news-wrapper {
    max-width: 1400px;
    margin: auto;
}


/* BREAKING */

.breaking-bar {
    background: red;
    color: #fff;
    display: flex;
    overflow: hidden;
    padding: 10px;
    font-weight: bold;
}

.breaking-text {
    display: flex;
    gap: 50px;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}


/* SLIDER */

.news-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 1s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
}


/* GRID */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
}

.news-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, black, transparent);
}

.content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
}


/* RESPONSIVE */

@media(max-width:768px) {
    .news-slider {
        height: 300px;
    }
}