/* --- Global Reset & Base --- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #ffffff;
}

/* --- Header --- */
header {
  background: #1c3b5a;
  padding: 22px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

header .logo img {
  height: 70px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

header .logo img:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.05em;
  letter-spacing: 0.4px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 3px;
}

nav ul li a:hover,
nav ul li a.active {
  color: #a0c4ff;
  border-bottom: 2px solid #a0c4ff;
}

/* --- Hero Section --- */
.hero {
  background-size: cover;
  background-position: center;
  padding: 120px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
}
.hero::after {
 content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 59, 90, 0.5);

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text p {
  font-size: 1.9em;
  font-weight: 600;
  margin: 0;
  letter-spacing: 1px;
}

/* --- About Section --- */
.about {
  background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%);
  padding: 60px 10%;
  color: #333;
}

.about h2 {
  text-align: center;
  font-size: 2.4em;
  color: #1c3b5a;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.about p {
  text-align: center;
  font-size: 1.05em;
  line-height: 1.8;
  color: #444;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* --- Divisions Grid --- */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 60px auto;
  max-width: 1100px;
}

.division-card {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.division-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.division-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.division-card h3 {
  color: #1c3b5a;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.division-card p {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.division-card .cta-button {
  display: inline-block;
  background: #1c3b5a;
  color: #fff;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.division-card .cta-button:hover {
  background: #a0c4ff;
  color: #1c3b5a;
}

/* --- Image Gallery --- */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  border: 3px solid #1c3b5a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* --- CTA Box --- */
.cta-box {
  position: relative;
  z-index: 10; /* Ensure above overlay */
  text-align: center;
  background: linear-gradient(135deg, #1c3b5a 0%, #2b5275 100%);
  color: #ffffff;
  padding: 60px 25px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin: 70px auto 0;
  max-width: 920px;
}

.cta-box h2,
.cta-box p,
.cta-box a {
  position: relative;
  z-index: 11; /* text above background */
}

.cta-box h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-box p {
  font-size: 1.15em;
  line-height: 1.8;
  margin-bottom: 25px;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background: #ffffff;
  color: #1c3b5a;
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #a0c4ff;
  color: #ffffff;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 700px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #1c3b5a;
  border-radius: 8px;
  font-size: 1em;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a0c4ff;
  box-shadow: 0 0 6px rgba(160,196,255,0.5);
}

.contact-form button {
  background: #1c3b5a;
  color: #fff;
  padding: 12px 30px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #a0c4ff;
  color: #1c3b5a;
}

/* --- Footer --- */
footer.footer {
  background: #1c3b5a;
  color: #ffffff;
  text-align: center;
  padding: 30px 10%;
}

footer.footer p {
  margin: 5px 0;
  font-size: 0.95em;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 5%;
  }

  header .logo img {
    height: 55px;
    margin-bottom: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 18px;
  }

  nav ul li a {
    font-size: 0.95em;
  }

  .hero-text p {
    font-size: 1.5em;
  }

  .cta-box {
    padding: 40px 15px;
  }

  .divisions-grid {
    gap: 25px;
  }

  .division-card img,
  .image-gallery img {
    height: 160px;
  }
}
