*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Times New Roman";
}
body{
    background-color: #fdfce8;
}
.emptybox{
    height: 220px;
    background-color: #fdfce8;
}
#navbar {
    height: 215px;
    padding-top: 15px;
    background-color:#391E10;
    color: white;
    display: flex;
    justify-content: space-evenly;
    position: fixed;
    top: 0%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: wrap;
}
.links{
    color: white;
    text-decoration: none;
    display: flex;
    justify-content:space-evenly;
    flex-wrap: wrap;
}
.links a{
    font-size: 20px;
    color: white;
    text-decoration: none;
}
#schoolname{
    font-weight: bolder;
    padding-top: 20px;
    line-height: 50px;
    height: 180px;
    background-color: #734128;
    color: white;
    text-align: center;
    width: 100%;
}
h1{
    text-align: center;
    font-size:60px;
}
h4,h5{
    text-align: center;
    font-size: 20px;
}
#image {
    height: 780px;
    background-color: #e2ceb1;
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    padding-bottom: 20px;
}
h2{
    background-color:#c7a07a;
    text-align: center;
    font-size:40px;
}
.section1{
    height: 390px;
    background-color: #e2ceb1;
    display: flex;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
}
.vision{
    background-color: white;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 7px;
}
.vision p{
    font-size: 22px;
    text-align: center;
}

.section2{
    height: 480px;
    background-color: #e2ceb1;
    display: flex;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
}
.mission{
    background-color: white;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 4px;
}
.mission p{
    font-size: 22px;
    text-align: center;
}
#schoolphoto {
    height: 750px;
    background-color: #e2ceb1;
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;   
    padding-bottom: 20px;
    text-align: center;
}
#team{
    display: flex;
    justify-content:space-around;
    height: 280px;
    background-color: #e2ceb1;
    padding-top: 20px;
    padding-left: 85px;
    padding-right: 85px;
    line-height: 20px;
    text-align: center;
    flex-wrap: wrap;
}
.team1, .team2, .team3, .team4 {
    margin: 10px;
}

.team1 p{
    padding-left: 5px;
    font-size: 20px;
}
.team2 p{
    padding-left: 23px;
    font-size: 20px;
    padding-top: 8px;
}
.team3 p{
    padding-left: 20px;
    font-size: 20px;
    padding-top: 8px;
}
.team4 p{
    padding-left: 20px;
    font-size: 20px;
    padding-top: 8px;
}
.icon a{
    color: black;
    font-size: 18px;
}
.box{
    height: 50px;
    color: #fdfce8;
}
/* Responsive Design for #schoolname */
@media (max-width: 1024px) {
    #schoolname h1 {
        font-size: 45px;
    }
    #schoolname h4,
    #schoolname h5 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    #schoolname {
        height: auto;
        padding: 15px 10px;
    }
    #schoolname h1 {
        font-size: 35px;
        line-height: 1.2;
    }
    #schoolname h4,
    #schoolname h5 {
        font-size: 16px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    #schoolname {
        height: auto;
        padding: 15px 8px;
    }
    #schoolname h1 {
        font-size: 25px;
        line-height: 1.2;
    }
    #schoolname h4,
    #schoolname h5 {
        font-size: 14px;
    }
}
/* Responsive for tablets and mobiles */
@media (max-width: 1024px) {
    #image {
        height: auto;
        padding: 15px;
    }

    #image img {
        width: 100%;
        height: auto;
    }
}
/* Responsive for Tablets and Mobiles */
@media screen and (max-width: 992px) {
    .section1 {
        flex-direction: column; /* Stack vertically */
        height: auto; /* Allow height to adjust based on content */
    }
    .visionimg img {
        max-width: 100%;
        height: auto;
    }
    .vision {
        margin-top: 15px;
    }
    .vision p {
        font-size: 18px;
        padding: 10px;
    }
}
/* Responsive for Tablets and Mobiles */ 
@media (max-width: 992px) {
    .section2 {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .missionimg {
        width: 100%;
        text-align: center;
    }

    .missionimg img {
        height: auto;
        width: 60%;
        max-width: 900px;
    }

    .mission {
        width: 60%;
        max-width: 900px;
    }

    .mission p {
        font-size: 18px;
        text-align: justify;
    }
}
/* Responsive for tablets & mobiles: screens below 992px */
@media (max-width: 992px) {
    #schoolphoto {
        height: auto;
        padding: 15px 5px;
    }

    #schoolphoto img {
        width: 100%;
        height: auto;
    }
}
/* For medium screens - tablets */
@media (max-width: 992px) {
    #team {
        height: auto;
        padding-left: 40px;
        padding-right: 40px;
        justify-content: center;
        gap: 20px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    #team {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    .team1, .team2, .team3, .team4 {
        margin: 15px 0;
    }
    .team1 img, .team2 img, .team3 img, .team4 img {
        width: 120px;
        height: 160px;
    }
    .team1 p, .team2 p, .team3 p, .team4 p {
        font-size: 18px;
    }
}
/* Responsive Location Map */
#location-map iframe {
    width: 90%;
    max-width: 1200px;
    height: 400px;
    border: 4px solid black;
}
/* Default desktop style already exists, no changes to original design */

/* Responsive Navbar for Tablets and Mobile Devices */
@media (max-width: 992px) {
    #navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 120px;
    }

    .poster-name img {
        height: 90px;
    }

    .links {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .links a {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    #navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 90px;
    }

    .poster-name img {
        height: 88px;
    }

    .links {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .links a {
        font-size: 16px;
    }
}
@media (max-width: 576px) {
    #navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 80px;
    }

    .poster-name img {
        height: 80px;
    }

    .links {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .links a {
        font-size: 10px;
    }
}
@media (max-width: 513px) {
    #navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 75px;
    }

    .poster-name img {
        height: 75px;
    }

    .links {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .links a {
        font-size: 10px;
    }
}
@media (max-width: 480px) {
    #navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 65px;
    }

    .poster-name img {
        height: 65px;
    }

    .links {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .links a {
        font-size: 10px;
    }
}
@media (max-width: 419px) {
    #navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 50px;
    }

    .poster-name img {
        height: 50px;
    }

    .links {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .links a {
        font-size: 10px;
    }
}
@media (max-width: 322px) {
    #navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 45px;
    }

    .poster-name img {
        height: 35px;
    }

    .links {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .links a {
        font-size: 7px;
    }
}

/* Responsive emptybox for all devices without changing laptop/PC layout */
@media (max-width: 1024px) {
    .emptybox {
        height: 0px;
    }
}

@media (max-width: 768px) {
    .emptybox {
        height: 0px;
    }
}

@media (max-width: 480px) {
    .emptybox {
        height: 0px;
    }
}
