
.news-events {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.news-events h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: bold;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.news-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

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

.news-card h2 {
    color: #444;
    margin-bottom: 10px;
    font-size: 1.2em;
    transition: color 0.3s;
}

.news-card:hover h2 {
    color: #007acc;
}

.news-card p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.more-events {
    text-align: center;
    margin-top: 20px;
}

.more-events-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #007acc;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.more-events-button:hover {
    background-color: #005f99;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .news-events h1 {
        font-size: 2em;
    }

    .news-card h2 {
        font-size: 1.1em;
    }

    .news-card p {
        font-size: 0.85em;
    }

    .more-events-button {
        font-size: 0.9em;
        padding: 8px 15px;
    }
}
