/* -----------------------------
   Global Styles
------------------------------ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff8f0;
  color: #4b2e2e;
  margin: 0;
  padding: 0;
}

/* -----------------------------
   Header + Navbar
------------------------------ */
header {
  background-color: #800000; /* Maroon */
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 50px;
  margin-right: 10px;
}

/* Navigation */
header nav ul {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

header nav ul li a {
  color: white;             /* default nav text color */
  text-decoration: none;
  font-weight: bold;
}

/* Hover + Active (highlight) */
header nav ul li a:hover,
header nav ul li a.active,
header nav ul li.active a {
  color: #ffa500;
}

/* -----------------------------
   Hero Section
------------------------------ */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto;
  gap: 20px;
  align-items: flex-start;
  padding: 0 20px;
}

.hero-image {
  flex: 1 1 33%; /* About a third of screen width */
  position: relative;
}

.hero-image img {
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.fading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: bold;
  color: #ffa500;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  animation: fadeInOut 4s infinite;
  text-align: center;
}

/* Fading animation */
@keyframes fadeInOut {
  0% {opacity: 0;}
  20% {opacity: 1;}
  80% {opacity: 1;}
  100% {opacity: 0;}
}

.hero-text {
  flex: 1 1 66%;
  min-width: 300px;
  text-align: center;
}

.hero-text h2 {
  font-size: 28px;
  color: #003366;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 15px;
}

/* -----------------------------
   Content Links (NOT nav links)
------------------------------ */
section a,
.content-section a,
main a {
  color: #ff6600;
  text-decoration: none;
}

section a:hover,
.content-section a:hover,
main a:hover {
  text-decoration: underline;
}

/* -----------------------------
   Footer
------------------------------ */
footer {
  background-color: #800000;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* -----------------------------
   Responsive
------------------------------ */
@media(max-width: 768px) {
  /* Stack hero section */
  .hero-section {
    flex-direction: column;
  }

  .fading-text {
    font-size: 24px;
  }

  /* Stack header/nav for mobile */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  header .logo {
    margin-bottom: 10px; /* space between logo and nav */
  }

  header nav ul {
    flex-direction: column; /* stack links vertically */
    width: 100%;
    gap: 5px;
    padding-left: 0;
  }

  header nav ul li {
    width: 100%;
  }

  header nav ul li a {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-align: left;
    font-size: 16px;
  }
}

/* Extra small phones */
@media(max-width: 480px) {
  header nav ul li a {
    font-size: 14px;
    padding: 6px 0;
  }
}
