/* HEADER AND FOOTER STYLING
   Remains the same for every page */
body {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

header {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 10;
}

header img {
    width: 60px;
    height: 81px;
}

.header-content {
    background-color: #01264d;
    display: flex;
    justify-content: space-between;
    
    align-items: center;
    width: 100%;
    height: 120px;

    padding: 0 40px; 
    box-sizing: border-box; 
}

nav {
    display: flex;
    gap: 25px;
    
}

nav a{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    font-size: 28px;
    font-style: italic;
    text-shadow: 2px 0px 2px rgb(4, 4, 4);
    text-decoration: none;
}

nav a:hover{
    cursor: pointer;
    color: rgb(180, 178, 178);
}

.belowheader {
    background-color: #001f3d;
    height: 30px;
    position: sticky;
}

html {
    background-color: #001f3d;
}

body {
    margin: 0;
    padding: 0;
}


footer {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color:#001f3d;
    color: white;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    gap: 100px;
    padding-right: 70px;
}

.footer-column {
    max-width: 200px;
}

.footer-column h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column a {
    color: #cccccc;
    margin-bottom: 10px;
    font-size: 12px;
    text-decoration: underline;
}
.footer-column a:hover {
    color: white;
}

.footer-column p, .footer-column span {
    display: block;
    font-size: 12px;
    line-height: 1.6;
}

.inter-300 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

/* END OF PAGE SIMILAR CONTENT */

#subteam-main-pic{
    display: flex;
    height: 810px;
    width: 100%;
    position: relative;
    background-color: black;
    background-attachment: fixed;
}

.slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center 68%;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.slidetext {
    margin-left: 260px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    color: white;
    font-size: 60px;
    font-style: italic;
    text-shadow: 4px 2px 2px rgb(4, 4, 4);
}

#subteam-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #01264d;
}

.card {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    height: 60vh;
    width: 60%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cardhead {
    margin-left: 20px;
    width: 450px;
    color: white;
    font-size: clamp(36px, 8vh, 70px);
    font-style: italic;
    text-align: flex-start;
    margin-top: 0;
    margin-bottom: 5px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    text-shadow: 2px 2px black;
}

.cardtext {
    margin-left: 20px;
    margin-top: 0px;
    width: 450px;
    color: white;
    font-size: clamp(14px, 2.3vh, 19px);
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0 10px;
}

@media (max-width: 768px) {

    .header-content {
        justify-content: space-between;
        
        gap: 0;
    }

    .menu-toggle {
        display: block; 
    }

    /* dropdown menu on mobile */
    nav {
        display: none;
        position: absolute;
        top: 150px;
        left: 0;
        width: 100%;
        background-color: #01264d;
        
        flex-direction: column; 
        margin-left: 0;
        gap: 0;
        
        border-bottom: 3px solid #001f3d;
    }

    nav.show {
        display: flex;
    }

    nav a {
        font-size: 22px;
        padding: 20px 0;
        width: 100%;
        text-align: center;
        text-shadow: none;
        border-bottom: 1px solid #001f3d;
    }

    nav a:last-child {
        border-bottom: none;
    }
    
    nav a:hover {
        background-color: #001f3d;
        color: white;
    }

    .slidetext {
        margin-left: 0;
        text-align: center;
        font-size: 40px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        padding-right: 20px;
    }

    .card {
        width: 90%; 
        height: 50vh; 
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .cardhead {
        width: 90%; 
        font-size: 40px;
    }
    .cardtext {
        width: 90%; 
        font-size: 15px; 
    }
    .slide {
        background-repeat: no-repeat;
        background-attachment: scroll;
        zoom: 1;  
        background-size: cover;
        background-position: center 30%;
    }
}

@media (max-width: 411px) {
    .cardtext {
        font-size: 13px;
    }
}