/* --- General Styles --- */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.main-header {
  background: #fff;
  padding: 1em 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: 3px solid #003366;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5em;
  font-weight: 700;
  color: #003366;
}

.main-nav a {
  color: #333;
  margin: 0 1em;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: #00509e;
}

/* --- Hero Section --- */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-background.png');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4em 0;
}

.hero h1 {
  font-size: 3em;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 2em;
}

.btn {
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background: #ffc107;
  color: #333;
}

.btn-primary:hover {
  background: #ffca2c;
}

/* --- Services Overview --- */
.services-overview {
  padding: 3em 0;
  text-align: center;
}

.services-overview h2 {
  font-size: 2.5em;
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #003366;
}

.service-cards {
  display: flex;
  flex-wrap: wrap; /* Allow cards to wrap */
  justify-content: center; /* Center cards when they wrap */
  gap: 2em;
  margin-bottom: 2em; /* Add space between rows */
}

.card {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-basis: calc(33% - 2em); /* Three cards per row with gap */
  text-align: center;
}

.card-icon {
  font-size: 3em;
  color: #003366;
  margin-bottom: 0.5em;
}

.card-icon i {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.card h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.card p {
  text-align: left;
}

/* --- Why Choose Us Section --- */
.why-choose-us {
  background-color: #f4f7f6;
  padding: 4em 0;
  text-align: center;
}

.why-choose-us h2 {
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 1.5em;
}

.features {
  display: flex;
  justify-content: space-around;
  gap: 2em;
}

.feature {
  flex-basis: 30%;
  text-align: center;
}

.feature-icon {
  font-size: 3em;
  color: #00509e;
  margin-bottom: 0.5em;
}

.feature h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #003366;
}

/* --- Testimonials Section --- */
.testimonials {
  padding: 4em 0;
  background-color: #fff;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 1.5em;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 2em;
  background-color: #f9f9f9;
  border-left: 5px solid #ffc107;
  margin: 0 1em;
}

.testimonial-slide p {
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 1em;
}

.testimonial-slide cite {
  font-weight: 700;
  color: #00509e;
}

/* --- CTA Section --- */
.cta {
  background: #00509e;
  color: white;
  text-align: center;
  padding: 3em 0;
}

.cta h2 {
  font-size: 2.5em;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.cta p {
  font-size: 1.2em;
  margin-bottom: 2em;
}

.btn-secondary {
  background: #fff;
  color: #00509e;
}

.btn-secondary:hover {
  background: #f4f7f6;
}

/* --- Footer --- */
.main-footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1.5em 0;
}

.content-wrap {
  flex: 1;
}

/* --- About Us Section --- */
.about-us {
  padding: 4em 0;
  background-color: #fff; /* Changed to white for a cleaner look */
}

.about-us h2 {
  text-align: center;
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 1.5em; /* Increased margin */
}

.about-us-content {
  display: flex;
  gap: 3em;
  align-items: flex-start; /* Align items to the top */
}

.about-us-text {
  flex-basis: 60%;
  text-align: left;
}

.about-us-text h3 {
  font-size: 1.8em;
  color: #00509e;
  margin-top: 0;
  margin-bottom: 1em;
}

.about-us-text p {
  font-size: 1.1em;
  line-height: 1.7; /* Increased line-height */
}

.about-us-benefits {
  flex-basis: 40%;
  text-align: left;
}

.about-us-benefits h4 {
  font-size: 1.5em;
  color: #003366;
  margin-top: 0;
  margin-bottom: 1em;
}

.about-us-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-us-benefits ul li {
  background-color: #f9f9f9; /* Light background for list items */
  margin-bottom: 0.8em;
  padding: 1em;
  border-left: 5px solid #ffc107;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-size: 1em;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
  }

  .main-nav {
    margin-top: 1em;
  }

  .service-cards,
  .about-us-content {
    flex-direction: column;
  }

  .hero h1 { font-size: 2.5em; }
  .services-overview h2, .cta h2 { font-size: 2em; }
}
