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

body, html {
  height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: #222;
  background-color: #fdfdfd;
  scroll-behavior: smooth;
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #002b5c; /* deep IMFM blue */
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid #cba135; /* gold accent */
}

.header-line {
  text-align: center;
  padding: 0.6rem 0;
}

.nav-line {
  text-align: center;
  padding: 1.2rem 0 0.6rem;
}

.header-line h1 {
  font-size: 2rem;
  color: #cba135; /* gold */
  margin: 0;
  letter-spacing: 0.5px;
}

.sub-header-line {
  text-align: center;
  padding: 0.2rem 0;
  color: #cba135; /* gold, consistent with h1 */
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.4px;
}

/* === Navigation === */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #a20000; /* crimson red */
  transition: width 0.3s ease;
}

nav a:hover {
  color: #cba135; /* gold on hover */
}

nav a:hover::after {
  width: 100%;
}

/* === Footer === */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #002b5c;
  color: #f0f0f0;
  text-align: center;
  padding: 0.8rem 0;
  font-size: 0.9rem;
  border-top: 3px solid #CE2029; /* crimson red top border */
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
}

footer a {
  color: #FF6347;
}

footer a:hover {
  color: #FF6347; /* same color on hover */
}

/* === Main content === */
main {
  padding: 10rem 0 4rem; /* enough padding for fixed header/footer */
  min-height: 100vh;
}

main .container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Links inside content === */
main a {
  color: #002b5c;
  text-decoration: underline;
}

main a:hover {
  color: #a20000;
}

/* === Responsive === */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-line h1 {
    font-size: 1.6rem;
  }

  nav a {
    font-size: 0.95rem;
  }
}

.image-wrapper {
  text-align: center;
  margin: 40px 0 20px 0; /* top and bottom margin */
}

.centered-image {
  max-width: 100%;
  height: auto;
}

h2 {
  margin-top: 30px; /* or whatever value you want */
}

ul {
    padding-left: 40px;
}

.sponsor-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15rem; /* space between logos */
  padding: 2rem;
}

.sponsor {
  max-height: 200px; /* adjust as needed */
  height: auto;
  width: auto;
}

.nice-paragraph {
  margin-bottom: 1em; /* or 16px, etc. */
  text-align: justify;
}
