* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background:#007bff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 10px 20px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
    .logo {
        height: 60px;
    }
    
    .logo img {
        max-width: 180px;
    }
}
.logo h1 {
    color: white;
    font-size: 1.8rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.about-hero {
    position: relative;
    height: 60vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.about-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.about-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
}

.about-hero p {
    color: white;
    font-size: 1.2rem;
    max-width: 800px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 1;
}

.teachers-grid {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    gap: 2rem;
}

.teacher-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    padding: 2rem;
    flex: 1;
}

.teacher-info h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.teacher-info h3 {
    color:#007bff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.teacher-credentials {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.teacher-credentials span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.teacher-credentials i {
    color:#007bff;
}

@media screen and (max-width: 768px) {
    .teacher-card {
        flex-direction: column;
    }

    .teacher-image {
        width: 100%;
        height: 250px;
    }

    .teacher-info {
        padding: 1.5rem;
    }

    .about-hero {
        height: 50vh;
    }

    .about-hero h1 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .about-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }
}