/* Import Montserrat font */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

:root {
  --dblue: #1c4474;
  --bblue: #2241a5;
  --red: #e62e2d;
  --hover: #212529;
}

/* ============================= */
/* HEADER STYLES                 */
/* ============================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  color: var(--dblue);
  padding: 16px 20px;
  flex-wrap: wrap;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--dblue);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 8px 12px;
  display: block;
}

.nav-links li a:hover {
  color: #007bff;
}

/* Dropdown styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  border-radius: 5px;
  z-index: 10;
  min-width: 180px;
}

.dropdown-menu li a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f8f9fa;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

/* CTA section */
.cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.header-subtitle {
  font-size: 0.9rem;
  display: block;
  margin-top: 4px;
}

.submit-button {
  padding: 10px 15px;
  background-color: var(--dblue);
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.submit-button:hover {
  background-color: #007bff;
  color: white;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dblue);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2000;
  position: relative;
}

/* Accessibility */
.nav-links li a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* ============================= */
/* PAGE CONTENT (Index Section)  */
/* ============================= */

/* Push content below fixed header */
.index-section {
  margin-top: 80px;   /* adjust to match header height */
  padding: 90px 16px;
  width: 100%;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.1rem;
  color: #333;
}

.index-section .img-div {
  object-position: center;
  object-fit: cover;
}

.index-section img {
  height: 250px;
  width: 100%;
  border-radius: 8px;
}

.index-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bblue);
  text-align: center;
  margin-bottom: 16px;
}

.index-section p {
  width: 100%;
  max-width: 1200px;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #555;
}

/* Newsletter block */
.newsletter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.1rem;
}

.newsletter span {
  color: var(--bblue);
  font-weight: 600;
}

.newsletter input {
  padding: 12px 16px;
  width: 300px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.newsletter button {
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  color: white;
  background: var(--bblue);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.newsletter button:hover {
  background-color: #004a8e;
}

/* ============================= */
/* RESPONSIVE RULES              */
/* ============================= */
@media screen and (max-width: 768px) {
  /* Header nav */
  .nav-links {
    display: none;
    flex-direction: column;
    background: #004085;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    padding: 10px 0;
    border-radius: 4px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    color: white;
    padding: 10px 16px;
  }

  .nav-links li a:hover {
    background-color: #0056b3;
    color: #fff;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #003366;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-menu li a {
    color: #fff;
    padding-left: 30px;
  }

  .dropdown-menu li a:hover {
    background: #0056b3;
  }

  .menu-toggle {
    display: block;
  }


  /* Content spacing */
  .index-section {
    margin-top: 100px; /* extra space when menu stacks */
    padding: 40px 16px;
  }

  .newsletter input {
    width: 250px;
  }

  .newsletter button {
    padding: 12px 24px;
  }
}
