html {
    scroll-behavior: smooth;
}

h1, h2 {
    font-weight: 700;
}
  
p {
    margin-bottom: 20px;
}

a {
    color: #54a2a3;
}

body {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #1F3F99;
}

.allSections {
    display: flex;
    align-items: center;
}

ul {
    margin-left: 16px;
}

.nav {
    margin: 0;
    padding: 0;
    font-size: 18px;
}

ul li a {
    list-style-type: none;
    color: #1F3F99;
    text-decoration: none;
    padding: 16px 24px;
    display: block;
}

ul li a:hover {
    background-color: #B9BAE4;
    border-radius: 5px;
}

.introContent {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.introTop {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.introBottom {
    display: flex;
    align-items: center;
}

.logo {
    width: 350px;
    height: auto;
    margin-bottom: 50px;
}

#majorIntro {
    font-size: 24px;
    margin-top: 100px;
    max-width: 600px;
}

#minorIntro {
    max-width: 950px;
}

.middleSubSection {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    border-top-style: solid;
    border-color: #1F3F99;
    border-width: 1px;
}
  
.middleSubSection .content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 40px;
    padding: 0 20px;
}
  
.middleSubSection .text {
    flex: 1;
    text-align: left;
}
  
.middleSubSection .image {
    flex: 1;
    display: flex;
    justify-content: center;
}
  
.middleSubSection .image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/*
.middleSubSection:nth-of-type(odd) .content {
    flex-direction: row;
    text-align: left;
}
  
.middleSubSection:nth-of-type(even) .content {
    flex-direction: row-reverse;
    text-align: right;
}
*/

#topBtn {
    border: 1px solid #1F3F99;
    outline: none;
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
}

.textdiv1 {
    margin-left: 16px;
}

.textdiv2 {
    margin-left: 32px;
}

.allSections {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.leftSection {
    width: 20%;
    background-color: white;
    border-right: 1px solid #1F3F99;
    position: relative;
}

.middleSection {
    width: 80%;
    overflow-y: scroll;
    height: 100vh;
    padding: 20px;
}

/* Tablet & Phone adjustments */
@media (max-width: 768px) {
    .nav {
        top: 0;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 1000;
        border-bottom: 1px solid #1F3F99;
        padding: 8px 0;
    }

    .nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav li {
        width: 100%;
    }

    .nav li a {
        display: block;
        padding: 10px;
        font-size: 14px;
        text-align: center;
    }

    .nav ul,
    .nav li {
    list-style: none !important;
    }

    .allSections {
        flex-direction: column;
        height: auto;
    }

    .leftSection,
    .middleSection,
    .rightSection {
        width: 100%;
        height: auto;
        border: none;
    }

    .middleSection {
        overflow-y: visible;
        padding: 10px;
    }

    ul li a {
        padding: 12px 16px;
        font-size: 16px;
    }

    .introContent {
        padding: 0 10px;
    }

    .logo {
        width: 80%;
        max-width: 250px;
        margin-bottom: 30px;
    }

    #majorIntro {
        font-size: 20px;
        margin-top: 40px;
    }

    .middleSubSection {
        padding: 40px 10px;
    }

    .middleSubSection .content {
        flex-direction: column !important;
        gap: 20px;
        text-align: center !important;
    }

    .middleSubSection .text,
    .middleSubSection .image {
        flex: unset;
        width: 100%;
    }

    #topBtn {
        padding: 8px 12px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    #majorIntro {
        font-size: 18px;
    }
    p {
        font-size: 13px;
    }
    .nav {
        font-size: 16px;
    }
}