.news {
    margin-top: 10px;
    width: 100%;
    position: relative;
}

.news-header {
    
    color: #003153;
    text-align: center;
    width: 100%;
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
   
}

.news-title {
    font-size: 2.5rem;
    z-index: 1;
    margin-bottom:40px;
}

.news-box {
    width: 8vw;
    height: 8vh;
    background-color: #f0f0f0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.news-left-box {
    left: 0px;
    border-top-right-radius: 45%;
    border-bottom-right-radius: 45%;
}

.news-right-box {
    right: 0px;
    border-top-left-radius: 45%;
    border-bottom-left-radius: 45%;
}

.news-container {
    padding: 5vw;
    background-color: #f0f0f0;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 3vw;
    height: 120vh;
}

.news-layer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3vh;
}

.news-part {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 40%;
    background-size: cover;
    background-position: top;
    border-bottom: 3px solid black;
    transition: transform 0.3s ease;
}

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

.news-card-text {
    color: #000000;
    padding: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 100;
}

.overlay-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #161145;
    font-size: 2.2rem;
    font-weight: 900;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-part:hover .overlay-text {
    opacity: 1;
}
.news-card:hover{
    background-color: #f6f6f6;
    border:1px solid black;
}
.news-part::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(0);
    transition: filter 0.3s ease;
}

.news-part:hover::before {
    filter: blur(12px);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.news-link:hover {
    color: orangered;
}

/* Grid adjustments for news cards */
.news-part.multi-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3vh;
}

.news-part.multi-card .news-card {
    width: 100%;
    height: 100%;
}