.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.32);
    z-index: 999;
    transition: opacity 0.3s;
}

* {
    margin: 14px 0;
    margin-top: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9
}

a{
    text-decoration: none;
}

.background {
    position: relative;
    width: 100%;
    height: 100dvh;
    margin: 0;
}

.bg-image {
    width: 100%;
    height: 90%;
    object-fit: cover;
    margin-top: 92px;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    padding: 0 50px;
    color: white;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px; 
    margin-top: -70px;
    padding: 0;
}

.logo {
    width: 200px;
    height: 100px;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    text-decoration: none;
    color: #D3E6E4;
    font-size: 20px;
    font-weight: bold;
}

.menu a:hover {
    color: #003058;;
}

.text-button {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 195px;
}

.description {
    font-size: 50px;
    text-align: center;
    margin-bottom: 20px;
    color: azure;
}

.cta-button {
    background-color: #003058;
    margin-top: 14px;
    color: white;
    font-size:21px;
    padding: 10px 20px;
    border: 2px solid black;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 5px 5px 0px 0px black;
    transition: all 0.2s ease-in-out;
}

.cta-button:hover {
    box-shadow: 2px 2px 0px 0px black;
    background-color: white;
    color: #003058;
}


.text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-button1 {
    background-color: white;
    color:  #f0c040;
    padding: 10px 20px;
    border: 2px #f0c040 solid;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.cta-button1:hover {
    background-color: #003058; 
    color: white;
    border: 2px #003058 solid;
}


.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    gap: 20px;
    padding: 40px;
    margin-top: 92px;
}

.text h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.text p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* cards */
.Newsfile {
    padding: 40px;
    text-align: center;
}

.Newsfile h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.Newsfile h2{
    text-align: center;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-cards p:hover{
    color: #003058;
    text-decoration: underline;
}

.card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
}

.card img {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.card h2 {
    color: black;
    font-size: 24px;
    margin: 15px 0;
}

.card p {
    font-size: 16px;
    color: #555;
}


.card:hover {
    box-shadow: 20px 20px 30px rgba(172, 172, 172, 0.6);
}

/* See All button */
.see-all-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #004080;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.see-all-button:hover {
    background-color: #011527;
}

/* splash screen  */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #D3E6E4;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#content {
    display: block; 
} 


/* media queries */

@media (max-width: 768px) {
    .background {
        height: 60vh;
    }

    .menu a{
        color: #003058;
    }

    .logo {
        width: 150px;
        height: 80px;
    }

    .cta-button {
        font-size: 21px;
        border-radius: 5px;
    }


    .overlay-content {
        padding: 0 5px;
    }

    .description {
        font-size: 35px;
    }

    .content-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .image-container {
        margin-top: 20px;
    }

    .news-cards {
        grid-template-columns: 1fr; 
    }

}

@media screen and (max-width:320px) {
    .background {
        height: 75vh;
    }

    .cta-button {
        font-size: 15px;
    }

    .logo {
        width: 125px;
        height: 60px;
    }

    footer p{
        font-size: 0.5em;
    }

    .description {
        font-size: 25px;
    }

    .news-cards p{
        text-align: center;
    }

}

@media screen and (max-width:375px) {
    footer p{
        font-size: 1em;
    }

    .news-cards p{
        text-align: center;
    }
}
