* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.hero {
  position: relative;
  background: url('../images/thumb.JPG') no-repeat center center/cover;
  height: 100vh;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  align-items: center;
}

.nav-links li {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 51, 102, 0.9);   display: none;
  flex-direction: column;
  list-style: none;
  padding: 10px;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.logo img {
  height: 50px;
  margin-right: 0.5rem;
}

nav .language-toggle {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #007bff;
  background: rgba(0, 123, 255, 0.05);
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.15);
  backdrop-filter: blur(4px);
  margin-left: auto;
}

nav .language-toggle .lang-btn {
  background: transparent;
  border: none;
  padding: 1vh 2vh;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #007bff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

nav .language-toggle .lang-btn:hover {
  background: #007bff;
  color: #fff;
}

nav .language-toggle .lang-btn.active {
  background: #007bff;
  color: #fff;
  cursor: default;
}

nav .language-toggle .lang-btn .flag-icon {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .logo img {
    height: 40px;
  }

  .language-toggle {
    margin-top: 1rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 51, 102, 0.6);   z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

.btn-primary {
  margin-top: 1.5rem;
  background: #ffd700;
  color: #003366;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #ffc107;
}

.slideshow-container {
  width: 100%;
  height: 80vh;   position: relative;
  margin: 0;
  overflow: hidden;
}

.mySlides {
  width: 100%;
  height: 100%;
  display: none;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;   display: block;
}

@media (max-width: 768px) {
  .slideshow-container {
    height: 40vh;   }
}


.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}


.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.main-nav {
  background: linear-gradient(90deg, #005599, #003366);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.main-nav ul li {
  margin: 0;
}

.main-nav ul li a {
  display: block;
  padding: 1rem;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease, background 0.3s ease;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
  color: #ffd700;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.logo img {
  height: 50px;
  width: auto;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 0.5rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .logo img {
    height: 40px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
}

.feature-card i {
  color: #005599;
  margin-bottom: 1rem;
}

.site-footer {
  background: #003366;
  color: white;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #ffd700;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-icons a {
  margin-right: 10px;
  font-size: 1.2rem;
  color: white;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.teacher-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
}

.teacher-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
