* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f7f6;
  color: #333;
  line-height: 1.6;
}

/* Navigation Bar */
.navbar {
  background-color: #0d2c54;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  background-color: #00a896;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

.school-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00a896;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0d2c54 0%, #16425b 100%);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
}

.btn {
  padding: 10px 22px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.2s;
}

.btn-primary {
  background-color: #00a896;
  color: white;
}

.btn-primary:hover {
  background-color: #028090;
}

/* Campus Photo Container */
.campus-container {
  text-align: center;
  margin: 25px 15px;
}

.campus-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Stats Ribbon */
.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  padding: 0 15px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card h3 {
  color: #0d2c54;
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 0.85rem;
  color: #666;
}

/* Content Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px 40px 15px;
}

.section {
  margin-bottom: 30px;
}

.section h2 {
  color: #0d2c54;
  margin-bottom: 15px;
}

.card {
  background: white;
  padding: 22px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 15px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-card h3 {
  color: #028090;
  margin-bottom: 10px;
}

/* Announcement Tags */
.announcement {
  border-left: 4px solid #00a896;
}

.tag {
  background-color: #e0f2f1;
  color: #004d40;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.announcement h3 {
  margin: 8px 0 5px 0;
  color: #0d2c54;
}

/* Page Header (Students Page) */
.page-header {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.page-header h1 {
  font-size: 2rem;
  color: #0d2c54;
  font-weight: 600;
}

.page-header p {
  color: #666;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Minimalist Search Bar */
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.search-container input {
  width: 100%;
  max-width: 480px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: 1px solid #dcdfe6;
  border-radius: 24px;
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.search-container input:focus {
  border-color: #00a896;
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.15);
}

/* Card Grid Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Student Profile Card (Hidden by default) */
.student-card {
  display: none; /* Keeps cards hidden until searched */
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 1.5rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Avatar Image */
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 2px solid #edf2f7;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-name {
  font-size: 1.1rem;
  color: #0d2c54;
  margin-bottom: 0.25rem;
}

.student-grade {
  font-size: 0.85rem;
  color: #666;
}

/* Footer */
footer {
  background-color: #0d2c54;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  margin-top: 40px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }
  
  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .stats {
    flex-direction: column;
    gap: 12px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Student Card Cursor Indicator */
.student-card {
  cursor: pointer;
}

/* Full-Screen Dark Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: pointer; /* Displays pointer indicating click-to-close */
}

/* ID Image Styling & Entry Animation */
.overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.2s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}