/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Black with opacity */
}

/* Modal Content */
.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 10px;
    width: 79%;
    max-width: 85%;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
}

.news-image {
    width: 100%;
    height: 200px;
    /* or any small fixed height you like */
    object-fit: cover;
    /* important to keep image nice */
    border-radius: 4px;
    /* optional: nice rounded corners */
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(60, 140, 74, 0.5), #26af44);
    /* Green gradient background background: linear-gradient(90deg, rgba(60, 140, 74, 0.5), rgba(38, 175, 68, 0.));*/

    border-radius: 3px 3px 0 0;
    color: white;
}

.modal-logo img {
    width: 42px !important;
    height: auto;
}

.modal-title {
    font-size: 1.2rem;
    margin: 0;
}

/* Modal Body */
.modal-body {
    padding: 10px;
    font-size: 1rem;
    color: #333;
    overflow-y: auto;
    /* Add vertical scroll when needed */
    max-height: 60vh;
    /* Limit height so it can scroll inside modal */
}

.modal-footer {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.modal-close-btn {
    background-color: #4CAF50;
    /* Green background */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}


.modal-close-btn:hover {
    background-color: #388E3C;
    /* Darker green on hover */
}

/* Modal display */
@media (max-width: 576px) {
    .modal-content {
        width: 99% !important;
        max-width: 98% !important;
    }

    .modal-logo img {
        width: 40px;
    }

    .modal-title {
        font-size: 1 rem;
    }

    .modal-body {
        font-size: 0.85rem;
    }

    .modal {
        width: 99% !important;
    }
}