/* =========================
   GENERAL STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f4f6f9;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #1a237e;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   HEADER
========================= */
header {
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: white;
  text-align: center;
  padding: 25px 15px;
}

header .logo {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}

#schoolMotto {
  font-style: italic;
  margin-top: 5px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 10px;
  gap: 25px;
}

.navbar li {
  position: relative;
}

.navbar a {
  font-weight: 600;
  color: #1a237e;
  padding: 8px 12px;
  transition: background 0.3s, color 0.3s;
}

.navbar a:hover {
  background-color: #e8eaf6;
  border-radius: 5px;
}

/* =========================
   DROPDOWN MENU
========================= */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* =========================
   MAIN CONTENT
========================= */
main {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

section, main > h2 {
  margin-bottom: 20px;
}

.welcome {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* =========================
   STAFF GRID
========================= */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.staff-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.staff-card:hover {
  transform: translateY(-5px);
}

.staff-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.staff-card h3 {
  margin: 10px 0 5px;
}

.staff-card p {
  color: #555;
  padding-bottom: 15px;
}

/* =========================
   SUBJECT LIST
========================= */
#subjectsList {
  background: white;
  padding: 20px;
  border-radius: 10px;
  list-style: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

#subjectsList li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

#subjectsList li:last-child {
  border-bottom: none;
}

/* =========================
   IFRAME (MAP & RESULTS)
========================= */
iframe {
  margin-top: 15px;
  border-radius: 10px;
}

/* =========================
   FOOTER
========================= */
footer {
  background-color: #1a237e;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
  }
}
