body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
}

nav {
  height: 90px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.847);
  padding: 20px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid rgb(91, 102, 242);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 30px;
  height: 4px;
  background-color: rgb(0, 0, 0);
  margin: 5px 0;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: lime;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: rgb(0, 0, 0);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 100%;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(91, 102, 242);
  list-style: none;
  padding: 15px 0;
  margin: 10px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.dropdown li a {
  color: white;
  padding: 10px 20px;
  display: block;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dropdown li a:hover {
  color: lime;
}

.nav-links li:hover .dropdown {
  display: block;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo p {
  font-size: 20px;
  margin-top: 18px;
  margin-left: 10px;
  color: #1976d2;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  nav {
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 100;
    padding-bottom: 10px;
    margin-top: 20px;
    background-color: rgb(91, 102, 242);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .nav-links li a {
    color: white;
  }

  .dropdown {
    position: static;
    width: 100%;
    transform: none;
  }

  .dropdown li {
    text-align: center;
  }
  .logo p {
    font-size: 17px;
  }
}

header {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  padding: 60px 20px;
  text-align: center;
  padding-top: 120px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1976d2;
}

h2 i {
  margin-right: 10px;
}

.school-overview {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.school-overview p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}


.director-message,
.principal-message {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.message-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-image {
  width: 500px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2196f3;
  transition: transform 0.3s ease;
}

.profile-image:hover{
  transform: scale(1.1);
}
.message-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.message-text strong {
  color: #1976d2;
}


.achievements {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.achievement-item {
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-5px);
}

.achievement-item i {
  font-size: 2rem;
  color: #2196f3;
  margin-bottom: 10px;
}

.achievement-item p {
  font-size: 1rem;
  color: #555;
}









/* Section Heading */
.best-teachers{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.best-teachers h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 30px;
}


.teachers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
}

.teacher-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: calc(33.333% - 40px); 
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.teacher-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.teacher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-image img {
  transform: scale(1.1);
}

/* Teacher Details */
.teacher-details {
  padding: 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teacher-details h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.teacher-details .subject {
  font-size: 1.1rem;
  color: #007bff;
  margin-bottom: 15px;
}

.teacher-details .description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Read More Button */
.read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .teacher-card {
      flex: 1 1 calc(50% - 40px); /* 2 columns on tablets */
      max-width: calc(50% - 40px);
  }

  .best-teachers h2 {
      font-size: 2rem;
  }

  .teacher-details h3 {
      font-size: 1.3rem;
  }

  .teacher-details .subject {
      font-size: 1rem;
  }

  .teacher-details .description {
      font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .teacher-card {
      flex: 1 1 100%; /* 1 column on mobile */
      max-width: 100%;
  }
}














/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  color: white;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #2196f3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .message-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }
}

footer {
  background: rgb(18, 22, 77);
  color: white;
  padding: 30px 0;
  text-align: center;
}

footer h2 {
  color: white;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.footer-section {
  width: 250px;
  margin-bottom: 20px;
}

.footer-section h2 {
  font-size: 20px;
  margin: 15px 0;
}

.footer-section p,
.footer-section ul {
  font-size: 14px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;

  &:hover {
    color: #1abc25;
  }
}

.footer-section .contactme,
.socialme {
  display: flex;
  flex-direction: column;
}

.footer-section .aboutme {
  display: flex;
  justify-content: center;
}

.socialme a {
  text-decoration: none;
  color: white;
  font-size: 25px;
  padding-bottom: 10px;
}
