/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.8;
  background-color: #f9f9f9;
  color: #333;
}

/* Container */
.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header */
header {
  background: linear-gradient(90deg, #1a3c5e, #2a6d9e);
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: center; /* Center the navigation bar */
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 1400px; /* Increased from 1200px to provide more space */
}

header nav {
  width: 100%; /* Take full available width */
}

header nav ul {
  display: flex;
  gap: 30px; /* Reduced spacing to prevent wrapping */
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: space-between; /* Distributes items evenly */
  flex-wrap: nowrap; /* Prevents wrapping to next line */
  width: 100%;
}

header nav ul li {
  white-space: nowrap; /* Prevents text wrapping within each menu item */
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem; /* Slightly reduced font size */
  transition: color 0.3s ease;
  display: inline-block; /* Helps with spacing */
  padding: 5px 0;
}

/* Hero Image Section */
.hero-image {
  position: relative;
  width: 100%;
  text-align: center; /* Center the image */
}

.hero-image img {
  width: 100%;
  max-width: 900px; /* Caps the width to prevent stretching and quality loss */
  height: auto; /* Maintains aspect ratio */
  display: block;
  margin: 0 auto; /* Centers the image */
}

.hero-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 80%;
  max-width: 800px;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.hero-text p {
  font-size: 1.1rem;
}

/* Sections */
section {
  padding: 40px 0;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

section:nth-of-type(even) {
  background: #f4f7fa;
}

section h2 {
  font-size: 2rem;
  color: #1a3c5e;
  margin-bottom: 20px;
  border-bottom: 2px solid #2a6d9e;
  padding-bottom: 10px;
}

section h3 {
  font-size: 1.5rem;
  color: #2a6d9e;
  margin-top: 20px;
  margin-bottom: 10px;
}

section p,
section ul {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

section ul {
  list-style: disc;
  padding-left: 30px;
}

section ul li {
  margin-bottom: 10px;
}

section a {
  color: #2a6d9e;
  text-decoration: none;
  font-weight: 500;
}

section a:hover {
  text-decoration: underline;
  color: #1a3c5e;
}

/* Footer */
footer {
  background: #1a3c5e;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}

footer p {
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1100px) {
  header nav ul {
    gap: 15px; /* Further reduced spacing on smaller screens */
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
  }

  header nav ul li {
    margin: 5px 8px;
  }
  
  header nav ul li a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 10px;
    text-align: left; /* Ensures title stays left-aligned */
    padding: 0 10px; /* Reduce padding on mobile for tighter layout */
  }

  header nav ul {
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 12px; /* Reduced from 15px */
    justify-content: center;
  }

  header nav ul li a {
    font-size: 0.9rem;
  }

  .hero-image img {
    max-width: 100%; /* Ensures image fits smaller screens */
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  section h3 {
    font-size: 1.3rem;
  }

  section p,
  section ul {
    font-size: 1rem;
  }
}
