/* Base Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    color: #333;
}
a {
    text-decoration: none;
}

/* Layout Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Header */
.site-header {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}
.logo {
    flex: 1;
    text-align: left;
}
.logo img {
    max-height: 50px;
    margin-left: 10px;
}

/* Navigation */
.main-menu {
    flex: 2;
    text-align: center;
}
.main-menu .menu {
    display: inline-flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-menu .menu li a {
    color: #333;
    font-weight: 600;
    padding: 10px 0;
}

/* Auth Button */

.auth-dropdown {
  position: relative;
}


.auth-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 9;
}

.auth-dropdown:hover .auth-menu,
.auth-dropdown:focus-within .auth-menu {
  display: block;
}


.auth-btn {
    background-color: #002D72;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
  z-index: 10;
}

.auth-menu a {
    color: #333;
    padding: 10px 16px;
    display: block;
    border-bottom: 1px solid #f0f0f0;
}
.auth-menu a:hover {
    background-color: #f7f7f7;
}
.auth-dropdown:hover .auth-menu {
    display: block;
}

/* Hero Banner */
.hero-banner {
    background: #0073aa;
    color: white;
    padding: 60px 0;
    text-align: center;
}
.hero-banner h1 {
    font-size: 48px;
    margin: 0;
}
.hero-banner p {
    font-size: 18px;
    margin-top: 10px;
}

/* News Ticker */
.news-ticker marquee {
    background: #fef3c7;
    padding: 10px;
    font-weight: bold;
    color: #c2410c;
}

/* Features Section */
.features {
    padding: 40px 0;
    text-align: center;
}
.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}
.feature-box {
    width: 200px;
    margin-bottom: 20px;
}
.feature-box img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

/* Top Teachers Section */
.top-teachers {
    background: #f1f5f9;
    padding: 40px 0;
    text-align: center;
}
.teachers-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.teacher-box img {
    width: 100px;
    border-radius: 50%;
}
.teacher-box p {
    margin-top: 10px;
    font-weight: bold;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #ccc;
    padding: 40px 0;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-col {
    width: 23%;
    margin-bottom: 20px;
}
.footer-col h3 {
    color: #fff;
    margin-bottom: 15px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li a {
    color: #ccc;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #999;
}

/* --- Responsive Breakpoint for Tablets --- */
@media (max-width: 992px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-menu .menu {
    flex-direction: column;
    gap: 10px;
  }

  .login-links,
  .auth-dropdown {
    margin-top: 10px;
    align-self: flex-end;
  }

  .features .feature-grid,
  .teachers-grid,
  .footer-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-box,
  .teacher-box,
  .footer-col {
    width: 45%;
    margin-bottom: 20px;
    text-align: center;
  }
}

/* --- Responsive Breakpoint for Mobiles --- */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .logo img {
    max-height: 40px;
    margin: 0 auto 10px;
  }

  .main-menu .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-banner h1 {
    font-size: 32px;
  }

  .hero-banner p {
    font-size: 16px;
  }

  .feature-box,
  .teacher-box,
  .footer-col {
    width: 100%;
    text-align: center;
  }

  .auth-btn {
    width: 100%;
    text-align: center;
  }

  .auth-menu {
    left: 0;
    right: auto;
    width: 100%;
  }
}


/* Login CSS */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background: #f1f5f9;
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.login-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #1e293b;
}

.login-box label {
  display: block;
  margin: 15px 0 5px;
  font-weight: 600;
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-box input[type="submit"] {
  margin-top: 20px;
  background: #002D72;
  color: white;
  padding: 10px;
  border: none;
  width: 100%;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.error {
  color: red;
  margin-bottom: 10px;
}

.signup-link {
  margin-top: 15px;
  font-size: 14px;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.site-header {
  font-family: 'Segoe UI', sans-serif;
  padding: 15px 0;
  border-bottom: 1px solid #eaeaea;
}

.logo img {
  max-height: 50px;
}

.main-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  color: #002D72;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s;
}

.main-menu li a:hover {
  color: #0056b3;
}

.auth-dropdown {
  position: relative;
}

.auth-btn {
  background-color: #002D72;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}

.auth-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: none;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 99;
}

.auth-menu a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.auth-menu a:hover {
  background: #f9f9f9;
}

.auth-dropdown:hover .auth-menu {
  display: block;
}

