
<style>
/* 1. Global Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: #1a202c;
  line-height: 1.6;
  background-image: url(''); /* Adjusted path if CSS is in a /css/ subfolder */
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  padding: 2.5rem 1.5rem;
}

/* Ensure inputs, buttons, and links inherit the body font */
input, button, textarea, select, a {
  font-family: inherit;
}

/* 2. Page Container */
.main-wrapper {
  max-width: 90%;
  margin: 0 auto;
}

/* 3. Modern Link Styles */
a, a:visited {
  color: #8b4513;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* 4. Section Headers and Separators */
hr.long {
  border: 0;
  border-top: 3px solid #e2e8f0;
  width: 100%;
  margin: auto;
}
hr.med {
  border: 0;
  border-top: 3px solid #e2e8f0;
  width: 80%;
  margin: auto;
}
hr.short {
  border: 0;
  border-top: 2px solid #979899;
  width: 20%;
  margin: auto;
}

/* 5. Flexbox Header (Replaces the first table) */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.header-right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 6. Sub-Header Section (Replaces the second table) */
.subheader-section {
  text-align: center;
  padding: 1rem 0;
}

.title-text {
  font-size: 1.75rem;
  font-weight: bold;
}

/* 7. Centered Content Utilities */
.center-box {
  text-align: center;
  margin: 1.5rem 0;
}
.center {
  text-align: center;
  font-size: 1.25rem;
}
.contact {
  text-align: center;
  margin: 1.5rem 0;
    font-size: 0.75rem;
}
.pink-text {
  color: pink;
  text-align: center;
  display: block;
  margin: 1rem 0;
}

.top-link {
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* 8. Spacer Utilities (Replaces stacked <br> tags) */
.spacer-large {
  height: 20vh;
}
/* Make all layout images responsive */
img {
  max-width: 100%;
  height: auto;     /* Maintains the original aspect ratio so images don't look squished */
}
/* --- UPDATE YOUR DESKTOP STYLE SECTIONS --- */

/* 5. Flexbox Header Container */
.header-container {
  display: flex;
  justify-content: space-between; /* Pushes Perl left, Badges right */
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;                  /* Forces header to span full content area */
}

/* 6. Badges Group Container (Prevents squeezing/centering) */
.header-right {
  display: flex;
  flex-direction: row;          /* Guarantees badges stay side-by-side on PC */
  align-items: center;
  justify-content: flex-end;    /* Snaps them neatly against the right margin */
  gap: 1rem;                     /* Spacing between the Apache and Alma logos */
}

/* Fixes the Apache badge on PC layouts */
.header-right img[alt="Apache Powered"] {
  height: 75px;
  width: auto;
}

/* Fixes the AlmaLinux badge on PC layouts so it never squashes */
.header-right img[alt="Powered By"] {
  height: 40px;
  width: auto;
}


/* --- UPDATE YOUR MOBILE MEDIA QUERY SECTION --- */

/* Mobile Specific Styles (Applies to screens 600px wide or smaller) */
@media (max-width: 600px) {
  /* Shrink the Perl logo on mobile safely */
  .header-container img[alt="South First Responders"] {
    width: 80px !important;
  }

  /* Scale down Apache for tiny smartphone screens */
  .header-right img[alt="Apache Powered"] {
    height: 34px;
  }

  /* Scale down Alma for tiny smartphone screens */
  .header-right img[alt="Powered By"] {
    height: 30px;
  }

  /* Centers everything neatly ONLY when viewed on mobile screen widths */
  .header-container {
    justify-content: center;
  }

  .header-right {
    justify-content: center;
    width: 100%;               /* Ensures badges center row-wise together */
  }
}

/* 9. System Status Badge Components */
.status-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(16, 185, 129, 0.1); /* Soft #ff5500 background */
  border: 1px solid #aa0000;                  /* Solid #aa0000 border */
  color: #ff5500;                             /* Dark #ff5500 text */
  padding: 0.4rem 1rem;
  border-radius: 9999px;                      /* Fully rounded pill shape */
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 1rem auto;
}

/* The physical dot */
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #aa0000;
  border-radius: 50%;
  position: relative;
}

/* The breathing pulse ring around the dot */
.status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ff5500;
  border-radius: 50%;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Pulse animation mechanics */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }


}

</style>
