* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f5f5;
  color: #333;
}

header h1 {
   position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  margin: 0;
  font-size: 32px;
  color: #fff;
}

nav {
  position: absolute;
  top: 20px;
  right: 20px;
}


/* Main header layout */
header {
  display: flex;
  
  justify-content: space-between;
  align-items: center;
  padding:14px 30px;
  background-color: #0b74c4;;
}

/* Left side: Logo and Title */
.logo-title {
  display: flex;
  align-items: center;
}

/* Logo image */
.logo-title .logo {
  height: 50px;
  width: auto;
  margin-right: 12px;
  object-fit: contain;
}




/* Navigation aligned to right */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Navigation links */
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Login link style */
nav a.login {
  font-weight: bold;
  color: #fff;
}


.banner {
  position: relative;
  text-align: center;
}

.banner img {
  width: 100%;
  height: 400px;
}

.banner h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 128, 0.8);
  color: #fff;
  padding: 15px 25px;
  border-radius: 5px;
  font-size: 24px;
}

.about {
  display: flex;
  padding: 30px;
  background: #fff;
}

.about img {
  width: 40%;
  margin-right: 30px;
  border-radius: 8px;
  
}

.about div {
  flex: 1;
}

.teachers, .courses, .admission {
  padding: 30px;
  background: #f9f9f9;
  text-align: center;
}

.teacher-cards, .course-images {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  flex-wrap: wrap;
}

.card {
  height: 300px;
  width: 300px;
  background: #fff;
  margin: 10px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.course-images img {
  width: 30%;
  margin: 10px;
  border-radius: 8px;
}

.admission form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
}

.admission input, .admission textarea {
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
}

.admission button {
  padding: 10px;
  background: #0b74c4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 30px;
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer p {
    margin: 5px;
    font-size: 15px;
  }

  .footer strong {
    color: #1abc9c;
  }

  /* Responsive Design */

/* Tablets (768px and up) */
/* Large Desktops (above 1200px) */
@media (min-width: 1200px) {
  .card {
    width: 280px;
  }

  .course-images img {
    width: 28%;
  }

  .admission form {
    max-width: 450px;
  }

  header h1 {
    font-size: 36px;
  }

  .banner h2 {
    font-size: 32px;
  }
}

/* Small Tablets (600px to 767px) */
@media (max-width: 767px) and (min-width: 600px) {
  .card {
    width: 85%;
  }

  .course-images img {
    width: 85%;
  }

  .banner img {
    height: 250px;
  }

  .banner h2 {
    font-size: 20px;
  }

  .admission input,
  .admission textarea {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
    nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
  }

  .nav-left,
  .nav-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  nav a {
    font-size: 14px;
    color: #fff;
    text-align: left;
  }

  header {
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    text-align: center;
  }

  .logo-title {
    flex-direction: column;
    align-items: center;
  }

  header h1 {
    position: static;
    transform: none;
    font-size: 20px;
    color: #fff;
    margin-top: 8px;
  }


  .banner img {
    height: 200px;
    object-fit: cover;
  }

  .banner h2 {
    font-size: 18px;
    padding: 10px 15px;
  }

  .about {
    flex-direction: column;
    padding: 20px;
  }

  .about img {
    width: 100%;
    margin: 0 0 20px 0;
  }


  .card {
    width: 90%;
  }

  .course-images img {
    width: 90%;
  }

  .admission form {
    width: 100%;
    padding: 0 10px;
  }

  .admission input,
  .admission textarea {
    font-size: 14px;
  }

  .footer p {
    font-size: 13px;
    padding: 0 10px;
  }
}