/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Open Sans', sans-serif;
  color: #fff; /* White text for consistency */
  line-height: 1.6;
  background: #003366; /* Dark Blue background */
}

img {
  max-width: 100%;
  height: auto;
}

/* NAVBAR */
.navbar {
  background: #003366;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  height: 80px; /* Fixed height for the navbar */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 60px;
  max-height: 8vh;
}

/* MENU */
.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 1rem;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: #003366; /* Match navbar background */
    position: absolute;
    top: 80px; /* Adjust according to navbar height */
    right: 10px;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 200px; /* Set the width of the mobile menu */
  }

  /* When the menu is open */
  .menu.menu-open {
    display: flex;
  }

  .menu li a {
    color: #FFD700; /* Gold text color for links */
    padding: 0.5rem 0;
    text-align: center;
    font-weight: bold;
  }

  /* Adjust the spacing between menu items */
  .menu li {
    margin-bottom: 15px;
  }
}

/* HERO SECTION */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  background: url('../assets/hero-bg.jpg') no-repeat center center / cover;
  color: #fff;
  min-height: 80vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 77, 0.6); /* Darker overlay */
  z-index: 1;
}

.hero .overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
  padding: 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #FFDA44; /* Gold text color */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* MAIN SECTION */
main {
  padding: 2rem;
}

.features {
  padding: 4rem 2rem;
  text-align: center;
}

/* Feature Grid Layout */
.feature-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Feature Boxes */
.feature-box {
  flex: 1 1 calc(33% - 20px); /* Allow each feature box to take up 1/3 of the space */
  background-color: #003366; /* Dark blue background */
  color: #fff; /* White text */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center; /* Center the text */
}

.feature-box h2 {
  font-size: 20px;
  color: #FFD700; /* Gold color for headings */
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: #fff; /* White text */
}

/* Feature Images Section */
.feature-four {
  display: flex;
  flex-direction: column; /* Stack images and feature box vertically */
  gap: 20px; /* Adds space between the feature box and images */
  justify-content: center; /* Centers content within the container */
  align-items: center; /* Ensures both items are centered horizontally */
}

.feature-images {
  display: flex;
  flex-direction: row; /* Side by side on larger screens */
  gap: 10px; /* Space between images */
  justify-content: center; /* Center images within the container */
}

.feature-image {
  width: 250px; /* Set fixed size */
  height: 250px;
  object-fit: cover; /* Ensures images are scaled to fit the dimensions */
  border-radius: 8px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Stack feature boxes vertically on mobile */
  .feature-grid {
    flex-direction: column;
    gap: 15px;
  }

  .feature-box {
    flex: 1 1 100%; /* Take full width on smaller screens */
  }

  /* Stack images vertically on mobile */
  .feature-images {
    flex-direction: column;
    align-items: center;
  }

  .feature-image {
    width: 100%; /* Ensure images take up full width on mobile */
    height: auto; /* Maintain aspect ratio */
  }

  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
  }
}

/* BUTTON STYLES */
.cta-button {
  background: #FFDA44;
  color: #1A1C4E;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e0c145;
}

/* FOOTER */
footer {
  text-align: center;
  background-color: #001b4d;
  color: #fff;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 40px;
}
