/* =========================
   RESET DEFAULT STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE STYLES
========================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9faff;
  color: #222;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HEADER & NAVIGATION
========================= */
.header {
  background-color: #004080;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Header layout fix */
.header-container {
  display: flex;
  align-items: center;              /* vertical centering FIX */
  justify-content: space-between;
  min-height: 100px;                /* prevents nav crowding */
}

/* LOGO */
.logo {
  height: 80px;
  width: auto;
}

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;              /* keeps nav centered vertically */
  gap: 25px;
  flex-wrap: wrap;
}

.nav a {
  color: #dbe9ff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background-color: #0a3d66;
  color: #ffffff;
}

/* =========================
   HERO / BANNER
========================= */
.banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner {
  width: 100%;
  height: 280px;       /* wide, not tall */
  object-fit: cover;   /* crops height, keeps width */
  display: block;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px 30px;
  border-radius: 8px;
}

.banner-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.banner-text p {
  font-size: 1.1rem;
}

/* =========================
   SECTION STYLING
========================= */
.section {
  padding: 80px 0;
  background-color: #ffffff;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #004080;
}

.section h4 {
  font-size: 1.5rem;
  margin: 20px 0 10px;
  color: #004080;
}

.section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto 20px;
}

.section img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 30px;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: #004aad; /* your school blue */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #003080;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .contact-form {
    margin: 20px;
    padding: 15px;
  }
}


/* =========================
   MAP
========================= */
.map-container {
  width: 100%;
  height: 600px;
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   NEWS & EVENTS
========================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.news-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
  text-align: left;
}

.news-content h4 {
  color: #004080;
  margin-bottom: 10px;
}

.news-content p {
  color: #555;
  font-size: 1rem;
}

/* =========================
   FOOTER
========================= */
.footer {
  background-color: #00264d;
  color: #cbd5e1;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    justify-content: center;
    gap: 15px;
  }

  .logo {
    height: 60px;
  }

  .nav {
    justify-content: center;
    gap: 15px;
  }

  .map-container {
    height: 400px;
  }

  .banner {
    height: 180px;
  }

  .banner-text h2 {
    font-size: 1.5rem;
  }

  .banner-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section h3 {
    font-size: 1.5rem;
  }

  .section p {
    font-size: 1rem;
  }
}
