* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: rgb(229, 247, 245);
}

h1 {
    text-align: center;
    margin-top: 50px;
    color: rgb(75, 91, 107);
}

h1 span {
    color: rgb(211, 116, 32);
}

h2 {
    text-align: center;
    margin-top: 50px;
    color: rgb(75, 91, 107);
}

p {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: rgb(75, 91, 107);
    border-radius: 10px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-shadow: #837f7f 0px 5px 15px;
    background-color: rgb(236, 242, 246);

}

section ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: #837f7f 0px 5px 15px;
    width: 50%;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    background-color: rgb(236, 242, 246);
}

section ul li {
    margin: 10px 0;
    font-size: 18px;
    color: rgb(75, 91, 107);
}

img {
    width: 30%;
    height: 60vh;
    object-fit: cover;
    border-radius: 25px;
    margin: 50px;
    justify-content: center;
}
#logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
    width: 250px;
    height: 250px;
    margin-top: 40px;
}

nav {
    display: flex;
    justify-content: center;
    background: rgb(75, 91, 107);
    padding: 20px;
    flex-direction: row;
    position: sticky;
    top: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

nav ul li a:hover {
    color: rgb(211, 116, 32);
}

section {
    border-bottom: 2px solid #837f7f;
    padding: 40px 0;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#gallery img {
    width: 30%;
    border-radius: 10px;
}

#gallery img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

#teachers img {
    width: 30%;
    border-radius: 10px;
}

#teachers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#teachers img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {

    h1 {
        font-size: 28px;
        margin-top: 30px;
    }

    h2 {
        font-size: 22px;
        margin-top: 30px;
    }

    p {
        width: 90%;
        font-size: 16px;
        padding: 15px;
    }

    section ul {
        width: 90%;
        padding: 15px;
    }

    section ul li {
        font-size: 16px;
    }

    nav {
        display:none;
    }

   

    #gallery img,
    #teachers img {
        width: 80%;
        margin: 10px 0;
    }

}
