/* ========== BASELINE / RESET ========== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body{
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

img{ max-width: 100%; height: auto; }

/*============HEADINGS AND LINKS============== */
h1, h2, h3, h4, h5, h6{
  font-family: Arial, sans-serif;
  color: #2f496a;
  line-height: 1.2;
  margin: 0.7em 0 0.3em;
}

p{ margin: 0.6em 0; }

a{
  color: #2f496a;
  text-decoration: underline;
}
a:hover{ text-decoration: none; }

/*============BANNER=================*/
.emergency-banner{
  padding: 20px 12px;
  text-align: center;
  background-color: #9ad07a;
  border-bottom: 6px solid #2f496a;
  transition: background-color 300ms ease;
}
.banner-wrap {
  padding: 10px 12px 0;
}

.banner-wrap .nav {
  margin-top: 12px;
}

/* ===== HERO / HEADER BANNER IMAGE CONTROL ===== */

.hero-banner{
  width: 100%;
  height: clamp(180px, 40vh, 360px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Extra shortening on large screens */
@media (min-width: 1200px){
  .hero-banner{
    height: clamp(220px, 32vh, 300px);
  }
}

.site-header .nav{
  margin-top: 10px;
}
/* Banner headings intentionally override global h1 spacing */
.emergency-banner h1{ margin: 0; color: #fff; }
.emergency-banner p{ margin: 6px 0 0; color: #fff; }

/* ===== NAV PILLS STYLING ===== */

.nav {
  background-color: #304492;   /* banner blue */
  padding: 0.5rem 0;
}

.nav-pills .nav-link {
      color: #ffffff;
  border-radius: 50rem;  /* classic Bootstrap pill */
}

.nav-pills .nav-link:hover {
  color: #f5c946;              /* yellow hover */
}

.nav-pills .nav-link.active {
  background-color: #7a3fa1;   /* purple */
  color: #ffffff;
}

/*==============RETURN TO TOP BUTTON ========================*/
#myBtn{
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: red;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover{ background-color: #555; }


/* =============DIVIDERS / UTILITIES============= */
hr.new {
  border: 3px solid hsl(274, 52%, 25%);
}

/* ================================
   HOME PAGE SLIDESHOW
   ================================ */

.slideshow-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
min-height: 700px; /* adjust to tallest image */
}

.mySlides {
  display: none;
  text-align: center;
}

.mySlides img {
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.mySlides h5 {
  margin: 10px 0 0 0;
}

.mySlides:first-child { display: block; }

/* Fade animation */
.slidefade {
  animation-name: slidefade;
  animation-duration: 1.2s;
}

@keyframes fade {
  from { opacity: .4; }
  to   { opacity: 1; }
}

/* =============MEDIA QUERIES (LAST)======== */
@media (max-width: 768px) { … }
