/* Tailwind-inspired custom CSS for institutional look */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #222;
}
.header {
  background: #00660c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
}
.logo {
  height: 48px;
}
.site-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  margin-left: 1rem;
  letter-spacing: 1px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.navbar {
  display: flex;
  gap: 2rem;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-link.active, .nav-link:hover {
  background: #0055a5;
}
.hero {
  background: linear-gradient(90deg, #e3f0ff 0%, #f8fbff 100%);
  padding: 3rem 0 2rem 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 1rem;
}
.subtitle {
  color: #555;
  margin-bottom: 2rem;
}
.btn-primary {
  background: #0055a5;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #003366;
}
.features-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 1.5rem;
  width: 260px;
  text-align: center;
  margin-bottom: 1rem;
}
.icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.dashboard {
  background: #f8fbff;
  padding: 2rem 0;
}
.timetable {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.timetable-slot {
  background: #fff;
  border: 2px solid #e3f0ff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 1rem;
  min-width: 120px;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.timetable-slot.gap {
  border-color: #ffb347;
  background: #fffbe6;
  color: #a67c00;
}
.suggestions {
  background: #e3f0ff;
  padding: 2rem 0;
}
.suggestion-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.suggestion-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.2rem;
  width: 220px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.suggestion-card:hover {
  box-shadow: 0 4px 16px rgba(0,85,165,0.12);
}
.suggestion-category {
  font-size: 0.9rem;
  color: #0055a5;
  margin-bottom: 0.5rem;
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  position: relative;
}
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.footer {
  background: #003366;
  color: #fff;
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.footer-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.2s;
}
.footer-links a:hover {
  text-decoration: underline;
}
@media (max-width: 800px) {
  .features-grid, .suggestion-grid, .timetable {
    flex-direction: column;
    align-items: center;
  }
  .nav-flex {
    flex-direction: column;
    gap: 1rem;
  }
  .site-title {
    margin-left: 0;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
  }
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
    background: #00660c;
    padding: 0.5rem 0;
    display: none;
  }
  .navbar.mobile-active {
    display: flex;
  }
  .logo {
    height: 40px;
  }
  .header {
    padding-bottom: 0.5rem;
  }
  .hero {
    padding: 2rem 0 1rem 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
  .card, .suggestion-card {
    width: 90vw;
    min-width: unset;
    padding: 1rem;
    font-size: 1rem;
  }
  .modal-content {
    min-width: 90vw;
    padding: 1rem;
  }
  .footer-info, .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  .footer {
    padding: 1rem 0;
  }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
}
@media (max-width: 800px) {
  .mobile-menu-btn {
    display: block;
  }
}
