@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #f2f2f2;
    color: #333;
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
    overflow-x: hidden;
}

.title {
    text-align: center;
    margin-bottom: 3rem;
}

.title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.title span {
    font-size: 1.1rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-container {
    display: flex;
    gap: 2rem; /* Spacing between items */
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
    animation: scroll 60s linear infinite 0s; /* Auto scroll */
}

.scroll-item {
    flex: 0 0 300px; /* Set the item width */
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.scroll-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.scroll-item img {
    width: 100%;
    height: 250px; /* Height of the image */
    object-fit: cover; /* Keep image aspect ratio */
}

.scroll-item h2 {
    font-size: 1.3rem;
    margin: 1rem;
    text-align: center;
    color: #333;
}

.scroll-item span {
    display: block;
    font-size: 0.9rem;
    text-align: center;
    color: #888;
    margin-bottom: 1rem;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Infinite scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 6)); /* Width of one item times the number of items */
    }
}
/* .breaking-news {
    background-color: white;
    color: black;
    padding: 15px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 1000;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
} */

.news-content {
    display: flex;
    align-items: center;
}

.news-content img {
    width: 50px;
    height: 50px;
    /* margin-right: 10px; */
}

.breaking-news button {
    background: none;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.hidden {
    display: none;
}