body {
    margin: 0;
}

.blog-content {
    background: linear-gradient(to bottom, #DDE6EE 0%, #DDE6EE 90%, #183D71 90%, #183D71 100%);
}

.header-blog {
    position: relative;
    padding: 8px 4px;
    border-radius: 12px;
    top: 20%;
    text-align: center;
    font-family: "Inter", sans-serif;
    margin: 10px;
}

.header-blog h1 {
    display: inline;
    margin: 0;
    font-size: 3rem;
    vertical-align: middle;
}

.header-blog p {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.46);
    margin: 0;
    padding: 0;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 5px;
    margin: 10px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    min-height: 500px;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 180px;
    object-fit: cover;
    margin: 8%;
}

.news-content {
    padding: 8%;
    display: flex;
    flex-direction: column;
    flex: 1;
    font-family: "Inter", sans-serif;
}

.news-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-summary {
    font-size: 0.9rem;
    color: #333;
    flex: 1;
    margin-bottom: 10px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: auto;
}

.news-footer .calendar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-footer .calendar::before {
    content: "\1F4C5";
    font-size: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    background-color: #185993;
    color: white;
    position: relative;
    font-size: 0.8rem;
    border-radius: 9999px;
    padding: 15px 25px;
}

.arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: white;
    color: #185993;
    font-weight: bolder;
    font-size: 0.8rem;
    border: 1px solid #185993;
    transition: background 0.3s, color 0.3s;
}

.modal {
    display: none;
    width: 90%;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s;
    margin: 5% 5% 0 5%;
    border-radius: 20px;
    min-height: 1000px;
}

.modal-content {
    display: flex;
    flex-direction: column;
    background-color: white;
    width: 100%;
    border-radius: 20px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    font-family: "Inter", sans-serif;
}

.modal-body img {
    border-radius: 20px 20px 0 0;
    padding: 0;
    margin: 0;
    height: 400px;
    width: 100%;
    object-fit: cover;
}

#modalTitle {
    margin: 5%;
    font-family: "Inter", sans-serif;
    font-size: 3rem;
    font-weight: 600;
}

#modalContent {
    margin: 5%;
    font-family: "Inter", sans-serif;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px 4% 0;
    font-weight: bold;
    font-family: "Inter", sans-serif;
}

.article-nav .prev-article, .article-nav .next-article {
    background: #183D71;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.article-nav .prev-article:hover, .article-nav .next-article:hover {
    color: gold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal {
    display: none;
    position: relative; /* or fixed if you want overlay */
    padding: 10px;
    margin-top: 20px;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
}
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    padding: 0px 0;
    transition: all 0.3s ease-in-out;
}

/* When scrolling */
.nav-overlay.scrolled {
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 0;
}
