/* Base styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* Header */
header {
  background: url('/images/header-bg.png') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 30px 20px; /* desktop default */
  text-align: center;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 64, 128, 0.5),
    rgba(0, 64, 128, 0)
  );
  pointer-events: none;
}

header h1, header p {
  position: relative;
  z-index: 1;
}

header h1 {
  margin: 0;
  font-size: 2.8em;
}

header p {
  font-size: 1.2em;
  margin-top: 10px;
}

header img.logo {
  max-width: 150px;
  height: auto;
}

/* Navigation */
nav {
  background-color: #392766;
  padding: 10px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 10px;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #ffd700;
}

.menu a.active {
  border-bottom: 2px solid #ffd700;
  color: #ffd700;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

/* Main content */
main {
  padding: 40px 20px;
  text-align: center;
}

main p {
  font-size: 1.1em;
  line-height: 1.6;
}

/* Call-to-action buttons */
.cta {
  display: inline-block;
  margin: 15px;
  padding: 14px 28px;
  background: #004080;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta:hover {
  background: #003366;
}

.cta-secondary {
  background: #008000;
}

.cta-secondary:hover {
  background: #006600;
}

.cta-tertiary {
  background: #cc6600;
}

.cta-tertiary:hover {
  background: #994d00;
}

/* Footer (flexbox sticky layout) */
footer {
  background: #eee;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  height: 60px;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  margin: 10px 0;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #004080;
}

.social-icons a {
  color: #333;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #004080;
}

/* Sticky footer wrapper */
#page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content-wrap {
  flex: 1; /* pushes footer down */
}

.footer {
  flex-shrink: 0; /* prevents footer from shrinking */
}

/* Video card hover effects */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.card-title {
  font-weight: 600;
  color: #333;
}

.card-body {
  padding: 1rem;
}

/* Responsive adjustments */

/* Tablet */
@media (max-width: 768px) {
  header {
    padding: 30px 15px; /* smaller banner */
  }

  header img.logo {
    max-width: 120px;
  }

  .menu {
    display: none;
    flex-direction: column;
    text-align: center;
  }

  .menu li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu.active {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 600px) {
  header {
    padding: 15px 10px; /* compact banner */
  }

  header h1 {
    font-size: 1.6em;
  }

  header img.logo {
    max-width: 90px;
  }

  header::after {
    background: linear-gradient(
      rgba(0, 64, 128, 0.3),
      rgba(0, 64, 128, 0)
    ); /* lighter overlay on phones */
  }

  .cta {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
}