.containerUpdates {
    padding: 60px 0;
    min-height: 100vh;
    width: 100%;
    margin-top: 3%;
   /* display: flex;
    flex-direction: column; */
    align-items: center;
    justify-content: center;
    text-align: center; 
}

.containerUpdates h1 {
    font-size: 4rem;
    font-weight: 1000;
    text-align: center; /* Center the heading */
    margin-bottom: 20px;
}

.containerUpdates h5 {
    font-size: 1.2rem;
    text-align: center; /* Center the heading */
    margin-top: 80px;
}

.search-bar {
    margin-top: 10px; /* Adjust margin as needed */
    display: inline-flex; /* Use inline-flex to center horizontally */
    align-items: center;
    max-width: 100%;
    width: 600px; 
    border: 1px solid #ccc;
    border-radius: 30px;
    overflow: hidden;
    padding: 5px 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.search-bar input{
    background-color: transparent;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-bar i {
    padding: 10px;
    color: #555; /* Icon color */
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius:50%;
}

.search-bar i:hover {
    background-color: #e0e0e0;
}
.activity-container {
    text-align: left;
    max-width: 100%;
    margin: 30px 100px;
}
.activity{

    padding: 40px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.activity-container h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.activity-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin:30px 20px;
}

.activity-images img {
    max-width: 30%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-images img:hover{
    cursor: pointer;
    transform: scale(1.08);
    opacity: 0.8;
}

.activity-container p {
    line-height: 1.6;
    text-align: justify;
    text-indent: 40px;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0px 20px;
}
.activity-container b{
    font-size: 1.2rem;
}
/* Modal container */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    background-color: rgba(0,0,0,0.8); 
    padding-top: 30px;
}

/* Modal image */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption text */
#caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 16px; /* Adjust font size for better readability */
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 15px; /* Adjusted to fit better on smaller screens */
    color: #fff;
    font-size: 36px; /* Slightly smaller for better fit on mobile */
    font-weight: bold;
    cursor: pointer;
}

/* Close button hover effect */
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    outline: none;
}

/* Additional responsive design rules */
@media (max-width: 992px) {
    .modal{
        padding-top: 150px;  
    }
    .modal-content {
        width: 90%;
        max-width: 95%;
    }
    #caption {
        font-size: 14px; /* Smaller font size for smaller screens */
    }
    .close {
        top: 20px; /* Reduce top spacing for smaller screens */
        right: 20px; /* Reduce right spacing for smaller screens */
        font-size: 30px; /* Smaller font size for better fit */
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .modal-content {
        width: 95%;
        max-width: 100%;
    }
    #caption {
        font-size: 12px; /* Even smaller font size for very small screens */
    }
    .close {
        top: 10px; /* Reduce top spacing for very small screens */
        right: 10px; /* Reduce right spacing for very small screens */
        font-size: 28px; /* Further smaller font size */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .containerUpdates{
        margin-top: 10%;
    }
    .activity-container{
        margin: 30px;
        padding: 5px;
    }
    .activity-images img:nth-child(n+2) {
        display: none; /* Hide all images from the second one onwards on smaller screens */
    }

    .activity-images {
        flex-wrap: nowrap; /* Prevent wrapping on smaller screens */
        justify-content: center; /* Center the single image */
    }

    .activity-images img:first-child {
        max-width: 100%; /* Ensure the first image takes full width on smaller screens */
    }

    .containerUpdates h1 {
        font-size: 1.5rem;
    }

    .search-bar{
        margin-top: 0;
        max-width: 85%;
    }
}
