body {
    background-image: url("gradient2.svg");

    background-position: center center; /* Center the background horizontally and vertically */
    background-attachment: fixed;
    background-repeat: no-repeat;
    /*background-size: cover; */
}
/* Sticky footer styles */

.footer {
    /*position: absolute;*/
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    color: #212020;
}

.ncrm-logo {
    width: 100%; /* Both images take full width initially */
    max-width: 100%; /* Responsive max-width */
}

a {
    color: #0265a6;
}

a:hover {
    color: #0dcaf0;
}

.box {
    /*background-color: #f0f0f0;*/
    background: rgb(240,240,240);
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgba(240,240,240,1) 100%);
    padding: 2rem;
    margin: 10px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.box-blue-dark {
    background-color: #24305E;
    color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.box-blue-dark a {
    color: #0dcaf0;
}

.box-blue-dark a:hover {
    color: #ffffff;
}

.box-blue-light {
    background-color: #0265a6;
    color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.bi-envelope-fill {
    fill: white;
    /* Set the envelope icon color to white */
}

h1, h2, h3 {
    margin: 0.2em 0 0.6em 0;
    padding: 0 0 0 20px;
    font-weight: normal;
    position: relative;
    line-height: 40px;
}

h1 {
    font-size: calc(1.375rem + 1vw - 5px);
}

h2 {
    font-size: calc(1.175rem + 1vw);
}

h3 {
    font-size: calc(1rem + 1vw);
}

h1::after, h2::after, h3::after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 2px;
    background: #0265a6;
}

button .menu-class::before {
    position: absolute;
    content: "MENU";
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 2px;
    background: #0265a6;
}

.nav-link:hover {
    color: #0265a6;
}

.navbar-nav {
    text-align: end;
}

/* Custom CSS for Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    /* Additional styling, if needed */
}

/* Custom CSS for Navbar */
.navbar {
    font-family: 'Roboto', sans-serif;
    /* Additional styling, if needed */
}

/* Custom CSS for Paragraph (p) Elements */
p {
    font-family: 'Open Sans', sans-serif;
    /* Additional styling, if needed */
}

.p-copyright{
    margin-bottom: 2rem;
}

.image-container {
    display: flex;
    flex-direction: column;
}

.image-container a:hover {
    opacity: 0.6;
}

.soton-logo, .ncrm-logo {
        width: auto; /* Reset the width to original for mobile */
        margin: 2rem;
}

.gsc-control-cse {
    background-color: transparent !important;
    border: none !important;
}

#navigation {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
}

.nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    text-align: center;
}


@media (min-width: 992px) {
    .image-container {
        display: inline-block;
    }

    .soton-logo, .ncrm-logo {
        width: auto; /* Reset the width to original for mobile */
        margin: 2rem 4rem !important;
    }

    /* Add the underline animation on hover */
    .nav-link {
        position: relative;
        text-decoration: none;
        transition: color 0.3s;
        margin-left: 20px;
    }

    .nav-link:hover {
        color: #007bff; /* Change color on hover to blue */
    }

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #007bff; /* Blue color */
        transition: width 0.3s; /* Animation duration */
    }

    .nav-link:hover::after {
        width: 100%;
    }

    /* Make the underline permanent for links with the "active" class */
    .nav-link.active::after {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .nav-item {
        font-size: 1.2rem;
    }
}