html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    font-family: var(--content-font);
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
}

.logo-menu {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    height: 60px;
    align-items: center;
    width: fit-content;
}

.mun-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-top: -30px;
    background: white;
    background-color: white;
    padding: 5px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    grid-area: logo;
}

.mun-title {
    color: var(--color-text-red) !important;
    font-weight: 800;
    font-size: 1.8rem;
    font-family: var(--content-font);
    letter-spacing: 1px;
    margin: 0 50px 0 20px;
    white-space: nowrap;
    grid-area: title;
    text-align: center;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .mobile-header {
        height: 3rem !important;
        padding: 0 !important;
    }

    .logo-menu {
        display: grid;
        grid-template-areas: "logo title menu";
        grid-template-columns: 1fr 2fr 1fr;
        align-items: center;
        width: 100vw;
        margin-top: 1.2rem;
        padding: 0 0.5rem;
        box-sizing: border-box;
        justify-items: center;
    }

    .mun-logo {
        grid-area: logo;
        margin-top: 0;
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 50%;
        background-color: white;
        padding: 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        justify-self: start;
    }

    .mun-title {
        grid-area: title;
        text-align: center;
        font-size: 1.4rem;
        font-weight: 800;
        margin: 0;
        white-space: nowrap;
        /*margin-bottom: 0.5rem;*/
    }

    .navbar-toggler {
        grid-area: menu;
        justify-self: end;
        margin-right: 4px;
        padding: 0 !important;
    }

    .navbar-collapse {
        background-color: white;
        padding: 1rem;
    }

    .navbar-nav .nav-link {
        color: #f5fefe !important;
    }


    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0,127,127, 0.8);
        width: 60vw;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        border-radius: 0 0 0 10px;
        z-index: 1000;
    }

        .mobile-menu.show {
            display: block;
        }

        .mobile-menu .nav-link {
            /*color: #ff0000 !important;*/
            font-weight: 600;
            padding: 0.5rem 1rem;
            text-align: right;
            font-weight: 700;
        }
}

.navbar-nav .nav-link.nav-hover:hover,
.navbar-nav .nav-link.nav-hover.active {
    background-color: rgba(255, 255, 255, 0.5) !important;
    transition: background-color 0.3s;
}

.navbar-collapse {
    width: 100%;
}

.navbar-nav {
    margin: 0 auto;
}

.nav-link {
    color: var(--primary-teal);
    font-weight: 700;
    position: relative;
}

    .nav-link:hover {
        color: #005f5f;
    }
    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 4px;
        background: linear-gradient(60deg, #007f7f, #cae6e6);
        border-radius: 0;
        transition: all 0.3s ease-in-out;
    }

    .nav-link:hover::before {
        width: 100%;
        border-radius: 50%;
    }

.section-title {
    font-family: var(--heading-cursive);
    font-size: 3rem;
    color: #004c4c; /* Deep Teal */
    line-height: 1.8;
    max-width: 800px;
    margin: 1rem auto;
    /*padding: 1rem;*/
    text-align: center;
}

.welcome-txt {
    justify-self: center !important;
    padding: 1rem;
    width: 75%;
    font-size: 1.25rem;
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .section-title {
        margin: 0;
        font-size: 2rem !important;
    }

    .image-mob-full {
        padding: 0 !important;
    }

    .welcome-txt {
        padding: 0 !important;
        width: 100% !important;
        font-size: 0.75rem !important;
        font-weight: 200 !important;
    }

    .small-img-shadow {
        display: flex;
        justify-self: center;
    }
}

.section-image {
    box-shadow: 0 -10px 15px rgba(0, 0, 0, 0.2), /* top shadow */
    0 10px 15px rgba(0, 0, 0, 0.2); /* bottom shadow */
}

.small-img-shadow {
    border-radius: 0.5rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2); /* right and bottom shadow */
}

.belief-section {
    padding: 3rem 1rem;
}

.belief-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
    .belief-text p {
        font-size: 0.75rem;
    }
}

.belief-image {
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer {
    margin-top: auto;
}

.footer-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

    .footer-icon:hover {
        transform: scale(1.2);
        color: #00c0c0;
    }

@media screen and (max-width: 750px) {
    .footer-text {
        font-size: 0.6rem;
    }
}
