/* News & Updates Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #4A90E2;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
    padding-left: 30px; /* Increased left padding for better text alignment */
    text-align: left;
}

.news-category {
    display: inline-block;
    background-color: #f0f5ff;
    color: #4A90E2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #0A3161;
    font-weight: 700;
    line-height: 1.4;
}

.news-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #f0f5ff;
    color: #4A90E2;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #4A90E2;
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f5ff;
    color: #4A90E2;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-item:hover, .pagination-item.active {
    background-color: #4A90E2;
    color: #fff;
}

.pagination-item.prev, .pagination-item.next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-content {
        padding: 20px;
    }
}


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 60px;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s ease-in-out;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.modal-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin-bottom: 20px;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.modal-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body ul li {
    margin-bottom: 8px;
    color: #555;
}

.modal-body a {
    color: #007bff;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Animations for modal */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Ensure modal is responsive */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    .modal-title {
        font-size: 20px;
    }
}

