/* ==========================================================================
   Base Theme & General Layout
   ========================================================================== */

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #212529;
  background-color: #fff;
}

a {
  color: #198754;
  text-decoration: none;
}

a:hover {
  color: #145c32;
  text-decoration: underline;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  font-weight: 500;
  background-color: #157347 !important;
  border-bottom: 3px solid #198754;
}

.navbar-brand {
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  color: #f8f9fa !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffd700 !important; /* Irish gold accent */
}

.navbar .btn-light {
  color: #157347;
  font-weight: 600;
  border-radius: 0.3rem;
  padding: 0.4rem 0.75rem;
}

.navbar-nav .nav-link.active {
  color: #ffd700 !important;
}

/* ==========================================================================
   Hero Section - Gradient Background
   ========================================================================== */

.bg-hero {
  background: linear-gradient(90deg, #198754, #157347);
}

.hero-img {
  max-height: 180px;
}

/* ==========================================================================
   Wayback-style Hero Banner (Shamrocks + FSB Overlay)
   ========================================================================== */

.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1070 / 406; /* maintain original proportions */
  min-height: 260px;
  overflow: hidden;
}

.hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

/* Centered FSB overlay, slightly elevated for better framing */
.hero-banner .hero-foreground {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: min(1070px, 94vw);
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero-banner {
    min-height: 200px;
  }

  .hero-banner .hero-foreground {
    width: 92vw;
    transform: translate(-50%, -55%);
  }
}

/* ==========================================================================
   About Page Image (Header)
   ========================================================================== */

.content-about-aoh img.page-header {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Cards, Lists, and Footer
   ========================================================================== */

.card {
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.075);
}

.card-body h3 a {
  color: #0d6efd;
  text-decoration: none;
}

.card-body h3 a:hover {
  text-decoration: underline;
}

footer {
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

footer .text-muted {
  color: #6c757d !important;
}
/* --- Hero section layout --- */
.hero {
  position: relative;
  min-height: 40vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Background shamrocks image */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1.0;
}

/* Foreground banner image */
.hero-foreground {
  position: relative;
  max-width: min(100%, 1000px);
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .hero { min-height: 30vh; }
}
