.carousel {
    width: 90%;
    margin: 50px auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 auto;
    width: 230px; /* Adjust width of each item */
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

    .carousel-item img {
        width: 100%;
        height: auto;
        display: block;
    }

    .carousel-item.active {
        transform: scale(1.2); /* Enlarge the active item */
        z-index: 2; /* Ensure active item is on top */
        margin: 17px;
    }

.button1 {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 18px;
    color: #333;
    padding: 10px 15px;
    border-radius: 50%;
    outline: none;
    transition: background 0.3s ease;
}

button1:hover {
    background: rgba(255, 255, 255, 0.9);
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#newsContainer {
    max-height: 300px; /* Adjust the maximum height as needed */
    overflow-y: auto; /* Add vertical scrollbar */
    padding-right: 20px; /* Add space for scrollbar */
}

h2 {
    color: #333;
}

.news {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

    .news h3 {
        margin-top: 0;
        color: #0066cc;
    }

    .news p {
        color: #666;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
