*{
box-sizing:border-box;
font-family:"Cairo",Tahoma,Arial;
}


body{

margin:0;
background:#fff;
color:#1f2937;

}


.header{

height:80px;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 8%;

}


.logo{

font-size:32px;
font-weight:800;
color:#dc3545;

}


nav a{

margin:0 15px;
text-decoration:none;
color:#333;
font-weight:600;

}



.hero{

min-height:600px;
display:flex;
align-items:center;
justify-content:center;
background:#f8fafc;
text-align:center;

}


.hero h1{

font-size:55px;
margin-bottom:20px;

}


.hero p{

font-size:22px;
color:#6b7280;

}



.search-box{

margin:40px auto;
background:white;
padding:10px;
border-radius:50px;
display:flex;
max-width:600px;
box-shadow:0 10px 30px #ddd;

}


.search-box input{

flex:1;
border:0;
outline:none;
padding:15px;
font-size:18px;

}


.search-box button{

background:#dc3545;
color:white;
border:0;
border-radius:50px;
padding:15px 35px;

}


.main-btn{

display:inline-block;
background:#dc3545;
color:white;
padding:15px 40px;
border-radius:50px;
text-decoration:none;
font-weight:bold;

}

/* Grades */

.grades{

padding:80px 8%;
text-align:center;
background:#fff;

}


.grades h2{

font-size:36px;
font-weight:800;
margin-bottom:15px;

}



.grades-container{

display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
max-width:1000px;
margin:auto;

}



.grade-card{

background:#f8fafc;
padding:35px 20px;
border-radius:20px;
font-size:35px;
transition:.3s;
cursor:pointer;

}


.grade-card h3{

font-size:22px;
margin-top:15px;
font-weight:700;

}


.grade-card:hover{

transform:translateY(-8px);
box-shadow:0 15px 35px rgba(0,0,0,.08);

}



@media(max-width:768px){

.grades-container{

grid-template-columns:repeat(2,1fr);

}


.grades h2{

font-size:28px;

}

}

/* Teachers */

.teachers{

padding:80px 8%;
background:#f8fafc;
text-align:center;

}



.teachers-container{

display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
max-width:1100px;
margin:auto;

}



.teacher-card{

background:white;
border-radius:20px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.08);

}



.teacher-card:hover{

transform:translateY(-10px);

}


.teacher-card img{

width:100%;
height:250px;
object-fit:cover;
object-position:center top;
display:block;

}


.teacher-card h3{

font-size:24px;
font-weight:800;


}



.teacher-card p{

color:#dc3545;
font-weight:700;


}



.teacher-card a{

display:inline-block;
margin-top:15px;
background:#dc3545;
color:white;
padding:10px 25px;
border-radius:50px;
text-decoration:none;


}

.teacher-card h3,
.teacher-card p,
.teacher-card a{

margin-left:25px;
margin-right:25px;

}

@media(max-width:768px){

.teachers-container{

grid-template-columns:1fr;

}

}