/* ============================= */
/* 1. Basic Structure & Resets   */

body {
    background: linear-gradient(to top, #111, #222);
    background-attachment: fixed; /* Keeps it in place when scrolling */
    background-size: cover; /* Ensures it covers the entire viewport */
    margin: 0;
    padding: 0;
}



/* ============================= */
/* 2. Header Styles */

/* 🔥 HEADER STYLES */
.header-content {
    width: 100%; /* Ensures it spans the full header */
    display: flex;
    justify-content: space-between; /* Ensures left & right sections move apart */
    align-items: center;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

/* 🔥 Beveled Red Line at Bottom Edge of Header */
#main-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Thin 5px bar */
    background: #cc0000; /* Red color, adjust hex if needed */
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.3), /* Subtle inner highlight (top bevel) */
                inset 0 -2px 3px rgba(0, 0, 0, 0.4); /* Subtle inner shadow (bottom bevel) */
    z-index: 3001; /* Ensures it sits atop content cleanly */
}


#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Default height */
    background: rgba(0, 0, 0, 0.85); /* Semi-transparent black */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 3000;
    transition: height 0.3s ease-in-out;
}

/* 🔹 Left: Logo + Department Name */
.header-left {
    display: flex;
    align-items: center;
}

.dept-logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.dept-name {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 
        -1px -1px 0 black,  
        1px -1px 0 black,  
        -1px 1px 0 black,  
        1px 1px 0 black;
    transition: font-size 0.3s ease-in-out;
}

/* 🔹 Right: Login / Register */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 30px; /* Pulls it away from the screen edge */
    white-space: nowrap; /* Ensures text stays in one line */
}

.header-link {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: normal;
    color: white;
    text-decoration: none;
    text-shadow: -1px -1px 0 black, 1px 1px 0 black;
    transition: color 0.2s ease-in-out, font-size 0.3s ease-in-out;
}

.header-link:hover {
    color: #ffcc00; /* Gold hover effect */
}

.user-menu {
    position: fixed; /* Breaks it out of the header's local context */
    top: 10px;
    right: 65px; 
    z-index: 5000; 
}

.username-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-shadow: -1px -1px 0 black, 1px 1px 0 black;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.username-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown {
    display: none;
    top: 100%;
    right: 0;
    position: absolute;
    z-index: 5001;
    transform: translateX(-100%); /* 🔄 Push entire menu to the left of username */
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 0;
    list-style: none;
    min-width: 180px;
    max-width: 240px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    overflow-wrap: break-word;
}

.user-dropdown li a {
    display: block;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown li a:hover {
    background: #222;
    color: gold;
}

.notif-badge {
    background: crimson;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 6px;
    color: white;
    font-weight: bold;
}






/* 🔹 Ensure header does NOT block scrolling content */
body {
    padding-top: 80px; /* Prevents content from hiding under the header */
}

/* 📏 Responsive Design: Adjustments for Scaling (1860px → 480px) */

/* ✅ Large Screens (1200px - 1860px) */
@media screen and (max-width: 1860px) {
    .dept-name {
        font-size: 20px;
    }
    .header-link, .username-btn {
        font-size: 16px;
    }
}

/* ✅ Medium Screens (900px - 1199px) */
@media screen and (max-width: 1199px) {
    #main-header {
        height: 65px;
    }
    .dept-logo {
        height: 45px;
    }
    .dept-name {
        font-size: 18px;
    }
    .header-link, .username-btn {
        font-size: 15px;
    }
}

/* ✅ Tablet Screens (600px - 899px) */
@media screen and (max-width: 899px) {
    #main-header {
        height: 60px;
        padding: 8px 15px;
    }
    .dept-logo {
        height: 40px;
    }
    .dept-name {
        font-size: 16px;
    }
    .header-link, .username-btn {
        font-size: 14px;
    }
}

/* ✅ Mobile Screens (480px - 599px) */
@media screen and (max-width: 599px) {
    #main-header {
        height: 55px;
        padding: 5px 10px;
    }
    .dept-logo {
        height: 35px;
    }
    .dept-name {
        font-size: 14px;
    }
    .header-link, .username-btn {
        font-size: 13px;
    }
    .header-right {
        gap: 8px;
    }
}

/* ✅ Smallest Screens (Less than 480px) */
@media screen and (max-width: 479px) {
    #main-header {
        height: 50px;
        padding: 5px;
    }
    .dept-logo {
        height: 30px;
    }
    .dept-name {
        font-size: 12px;
    }
    .header-link, .username-btn {
        font-size: 12px;
    }
    .header-right {
        gap: 5px;
    }
}




/* 🔥 HERO IMAGE CONTAINER (Fixed Edge Overflow) */
.hero-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; /* 🔥 Force full-width container */
    z-index: 2998;

    box-shadow:
        -50px 0px 50px rgba(0, 0, 0, 0.5),
         50px 0px 50px rgba(0, 0, 0, 0.5),
         0px 4px 10px rgba(0, 0, 0, 0.2);

    overflow-x: clip; /* Prevent side scroll */
}

/* 🔥 Extend Red Border Without Spilling Overflow */
.hero-container::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100vw;  /* Extend only to viewport width */
    height: 4px;
    background: gold;
    z-index: -1;
}


/* 🔥 Black Background Fill */
.hero-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: black;
    z-index: -1;
}

/* 🔥 Keeps Image Styling Intact */
.hero-container img {
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    display: block;
}



/* ============================= */
/* 3. Navigation Styles          */

#main-nav {
    position: absolute;
    top: 353px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px; /* 🔥 Ensures it fits between logo & login/register */
    display: flex;
    justify-content: center;
    background: none;
    padding: 5px 145px; /* 🔥 Adds equal padding to both sides */
	z-index: 3001;
}

/* 🔹 Nav List */
#main-nav ul {
    display: flex;
    justify-content: space-evenly; /* 🔥 Evenly spaces menu items */
    flex-wrap: nowrap; /* 🔥 Prevents wrapping */
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

/* 🔹 Ensure Items Get Equal Space */
#main-nav li {
    flex-grow: 1;
    text-align: center;
    min-width: 0; /* 🔥 Prevents flex items from growing too much */
}

#main-nav a {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: white;

	text-shadow: 
    -2px -2px 6px rgba(0, 0, 0, 0.5),  /* Soft shadows */
     2px -2px 6px rgba(0, 0, 0, 0.5),  
    -2px  2px 6px rgba(0, 0, 0, 0.5),  
     2px  2px 6px rgba(0, 0, 0, 0.5),  
     0px  0px 10px rgba(0, 0, 0, 0.6); /* soft glow */

    padding: 10px 15px;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.3s ease-in-out; /* Smooth color change */
}

/* 🔥 Gold Color on Hover (Shadow Stays the Same) */
#main-nav a:hover {
    color: #ffcc00; /* Gold */
}




/* ✅ RESPONSIVE FIXES */

/* 🔥 Medium Screens: Adjust Size & Prevent Overlap */
@media screen and (max-width: 1280px) {
    #main-nav {
        max-width: 900px;
    }
    #main-nav a {
        font-size: 16px;
        padding: 8px 12px;
    }
}

/* 🔥 Small Screens: Adjust Width, Spacing & Background */
@media screen and (max-width: 900px) {
    #main-nav {
        max-width: 700px;
        top: 330px;
        display: inline-block; /* 🔥 Background wraps around text */
        background: rgba(34, 34, 34, 0.8); /* 🔥 Semi-transparent gray */
        padding: 5px 15px; /* 🔥 Adds just enough space around text */
        border-radius: 8px; /* 🔥 Smooth edges */
    }
    #main-nav ul {
        gap: 8px;
    }
    #main-nav a {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* 🔥 Extra Small Screens (600px and below): Reduce Spacing */
@media screen and (max-width: 600px) {
    #main-nav {
        max-width: 95%;
        top: 320px;
        display: inline-block;
        background: rgba(34, 34, 34, 0.8);
        padding: 5px 10px;
        border-radius: 8px;
    }
    #main-nav ul {
        gap: 5px;
    }
    #main-nav a {
        font-size: 12px;
        padding: 4px 6px;
    }
}

/* 🔥 Mobile Screens (480px and below): Final Adjustments */
@media screen and (max-width: 480px) {
    #main-nav {
        top: 310px;
        display: inline-block;
        background: rgba(34, 34, 34, 0.8);
        padding: 3px 8px;
        border-radius: 8px;
    }
    #main-nav ul {
        gap: 3px;
    }
    #main-nav a {
        font-size: 11px;
        padding: 2px 4px;
    }
}





/* ============================= */
/* 4. Burn Widget - Capsule Shape Fix */

/* 🔥 Keeps the Capsule Shape Correct */
#burn-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background: #222; /* Default gray */
    color: white;
    padding: 5px 8px;  /* 🔥 Reduced side padding to maintain shape */
    border-radius: 50px; /* 🔥 Fixes the half-circle sides */
    position: fixed;  
    right: 20px;     
    top: 75px;       
    width: 135px;    
    height: 50px;    
    font-size: 10px;
    z-index: 3002;    
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.25);
}

/* 🔥 Gloss Effect for Depth */
#burn-widget::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 10px;
    width: 85%;
    height: 40%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    pointer-events: none;
}

/* 🔥 Compass on the Left - Fix Squishing */
.burn-compass {
    width: 38px; /* Slightly reduced width */
    height: 38px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 🔥 Prevents it from shrinking */
    aspect-ratio: 1 / 1; /* 🔥 Ensures a perfect circle */
    position: relative;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
}

#wind-direction-text {
    font-size: 20px;
    font-family: sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    
    /* 🔥 White Stroke */
    text-shadow: 
        -2px -2px 3px white,  
         2px -2px 3px white,  
        -2px  2px 3px white,  
         2px  2px 3px white;

    /* ✅ Default color (will be overridden by JS) */
    color: #222;
}


/* 🔥 Compass Needle */
#needle {
    width: 3px;
    height: 16px; /* 🔥 Adjusted for proper visibility */
    background: gold;
    border-radius: 2px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.4); 
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
}


/* 🔹 Middle Section (Wind & Humidity) */
.burn-info {
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;  /* ✅ Prevents wrapping */
}

.burn-speed {
    white-space: nowrap; /* ✅ Keeps the text together */
    display: inline-block; /* ✅ Ensures correct spacing */
}

/* 🌡️ Temperature on Right */
.burn-temp {
    font-size: 18px;
    font-weight: bold;
    padding-right: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* 🔄 Mobile Fix */
@media screen and (max-width: 480px) {
    #burn-widget {
        width: 120px;
        height: 50px;
        padding: 4px 10px;
        right: 10px;
        top: 65px;
    }

    .burn-compass {
        width: 32px; /* Keep it small but a perfect circle */
        height: 32px;
    }
}





/* ============================= */
/* 🔥 Urgent Notice Banner Bar */

#urgent-notices-container {
    position: fixed;
    top: 405px; /* hero 353 + nav 52 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1860px;
    z-index: 3001;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.no-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    padding: 2px 26px 2px 12px; /* top/bottom tight, right padded for ❌ */
    border: 2px solid black;
    width: 100%;
    margin: -1px 0 0 0; /* overlap previous */
    border-radius: 0;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.no-title {
    flex-grow: 1;
    padding-right: 10px;
}

.no-time {
    font-size: 14px;
    opacity: 0.7;
    margin-right: 10px;
    white-space: nowrap;
}

.no-view-details {
    font-size: 14px;
    text-decoration: underline;
    color: black;
    margin-right: 10px;
    white-space: nowrap;
}

.no-view-details:hover {
    color: red;
}

.no-hide {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: black;
    padding: 0 0 0 4px;
    flex-shrink: 0;
}

/* 🔒 Color Code Mapping for Public Notices */
.alert-blue     { background-color: #2196f3; }
.alert-red      { background-color: #f44336; }
.alert-yellow   { background-color: #ffeb3b; }
.alert-amber    { background-color: #ffc107; }
.alert-white    { background-color: #ffffff; }
.alert-orange1  { background-color: #f26522; }
.alert-orange2  { background-color: #f7941d; }
.alert-orange3  { background-color: #ff9933; }
.alert-orange4  { background-color: #ff6600; }
.alert-olive    { background-color: #6b8e23; }
.alert-earth    { background-color: #a67c52; }
.alert-lime     { background-color: #c0ff00; }


/* content */

#content {
  background-color: #000;
  color: #fff;
  font-family: sans-serif;
  font-size: 14pt;
  padding: 0 20px 60px 20px;   /* Uniform horizontal padding + bottom */
  text-align: center;
  border: none;
  margin-top: 330px;           /* Use margin instead of padding-top */
  box-sizing: border-box;
}

#content h1 {
  color: gold;
  font-weight: bold;
}

#content a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

#content a:hover {
  color: red;
}



/* ============================= */
/* 7. Staggered Content Blocks   */
/* Updated for clarity and balance */

.staggered-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 960px;
  margin: 60px auto;
  padding: 30px;
  background: #1e1e1e; /* Slightly lighter than black for contrast */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease-in-out;
}

.staggered-block img {
  width: 40%;
  max-width: 280px;
  border-radius: 8px;
}

.staggered-block .text {
  width: 50%;
  color: #eee;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.staggered-block .text strong {
  color: gold;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5em;
  font-size: 18px;
}

/* Alternate left-right layout */
.staggered-block:nth-child(even) {
  flex-direction: row-reverse;
}

/* Hover effect */
.staggered-block:hover {
  transform: scale(1.015);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .staggered-block {
    flex-direction: column !important;
    text-align: center;
  }

  .staggered-block img {
    width: 90%;
  }

  .staggered-block .text {
    width: 100%;
    text-align: center;
  }

  .staggered-block .text strong {
    font-size: 17px;
  }
}




/* ===============================
   COMMUNITY UPDATES STYLESHEET
   For: /community-updates.php
   Scope: .cu-
   =============================== */

/* 🔼 Top-level container padding to clear hero */
.cu-container {
    padding-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

/* 📚 Sidebar column */
.cu-left {
    width: 300px;
    flex-shrink: 0;
}

.cu-recent-posts,
.cu-recent-comments {
    margin-bottom: 30px;
}

.cu-post-list,
.cu-comment-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.cu-post-list li,
.cu-comment-list li {
    margin-bottom: 8px;
}

.cu-post-list li a,
.cu-comment-list li a {
    color: #fff;
    text-decoration: none;
}

.cu-post-list li a:hover,
.cu-comment-list li a:hover {
    color: gold;
}

.cu-pagination {
    margin-top: 10px;
    font-size: 0.9em;
}

/* 📰 Main content column */
.cu-main {
    flex: 1;
    min-width: 0;
}

.cu-post h2 {
    margin-top: 0;
    font-size: 24px;
    color: gold;
}

.cu-body {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    margin-top: 10px;
    background: none;
    font-size: 16px;
    padding: 0;
}

/* ➡️ Next Post */
.cu-next-link {
    margin-top: 30px;
}

.cu-next-link hr {
    margin-bottom: 10px;
    border-color: #555;
}

.cu-next-link a {
    color: #ccc;
    text-decoration: underline;
}

.cu-next-link a:hover {
    color: gold;
}

/* 💬 Comment section */
.cu-comments {
    margin-top: 40px;
}

.cu-comments h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffcc00;
}

.cu-comment {
    border-left: 3px solid #555;
    padding-left: 12px;
    margin-bottom: 20px;
}

.cu-comment strong {
    color: #fff;
}

.cu-comment small {
    color: #888;
    font-size: 0.85em;
}

.cu-comment p {
    margin-top: 6px;
    font-size: 15px;
}

/* ✍️ Comment Form */
.cu-comment-form {
    margin-top: 30px;
}

.cu-comment-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.cu-comment-form textarea {
    width: 100%;
    resize: vertical;
    padding: 8px;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    border: 1px solid #555;
    font-size: 15px;
}

.cu-comment-form button {
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #cc0000;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.cu-comment-form button:hover {
    background-color: #990000;
}

/* ❗ Error messages */
.cu-errors {
    color: darkred;
    margin-top: 20px;
}

.cu-errors ul {
    margin: 0;
    padding-left: 18px;
}

/* ✅ Global CU font fix */
.cu-container,
.cu-container * {
    font-family: Arial, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    box-sizing: border-box;
}



/* Public Resources */
.re-container {
	margin-top: 420px;
    max-width: 1260px;
    margin: 60px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #fff;
}

.re-search {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.re-search input {
    padding: 10px 14px;
    width: 280px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
}

.re-search button {
    padding: 10px 18px;
    font-size: 16px;
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.re-search button:hover {
    background-color: #990000;
}

/* Grid Layout */
.re-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Resource Tile */
.re-resource-item {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 14px;
    transition: background 0.2s ease;
    position: relative;
}

.re-resource-item:hover {
    background: #222;
}

.re-thumb-container {
    position: relative;
    height: 180px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.re-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.re-thumb img.re-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.re-fallback-box {
    font-size: 38px;
    font-weight: bold;
    color: #bbb;
}

/* Metadata Overlay */
.re-meta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: #eee;
    padding: 10px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.re-thumb-container:hover .re-meta-overlay {
    opacity: 1;
}

/* Resource Info */
.re-file-info {
    text-align: center;
}

.re-resource-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: gold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Download Button */
.re-resource-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.re-download-btn {
    background-color: #555;
    color: white;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
}

.re-download-btn:hover {
    background-color: #777;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .re-search {
        flex-direction: column;
        align-items: center;
    }

    .re-search input {
        width: 90%;
    }

    .re-search button {
        width: 90%;
    }

    .re-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .re-thumb-container {
        height: 160px;
    }

    .re-resource-title {
        font-size: 14px;
    }
}





/* 8. Footer Styles              */

footer {
    position: fixed;
    bottom: -130px;
    width: 100%;
    background: #111; /* 🔥 Deep near-black */
    color: white;
    padding: 0px 20px 20px 20px;
    z-index: 3000;
    text-align: center;
    transition: bottom 0.3s ease-in-out;

    /* 🔥 Refined Cel-Shaded Gloss Effect */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, #111 20%);
    box-shadow: inset 0px 6px 8px rgba(255, 255, 255, 0.08), /* Softer top gloss */
                0px 4px 12px rgba(0, 0, 0, 0.6); /* Deeper shadow for stronger contrast */
}

footer:hover {
    bottom: 0;
}


.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px; /* Ensures it doesn’t stretch too far */
    margin: 0 auto; /* Centers the container */
    width: 100%; /* Makes sure it spans the full width */
    text-align: left;
}

/* 🔥 Footer Column Headers (Sans-Serif, Bold, Caps) */
.footer-column h3 {
    font-family: 'Arial', sans-serif; /* Ensures a clean, modern look */
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase; /* Makes text ALL CAPS */
    color: gold;
    margin-bottom: 10px;
}

/* 🔥 Remove Bullet Points from Footer Links */
.footer-column ul {
    list-style: none; /* Removes bullet points */
    padding: 0; /* Removes extra spacing */
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 5px; /* Adds subtle spacing between links */
}

/* 🔥 Footer Links */
.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-column ul li a:hover {
    color: red;
}


/* ============================= */
/* 9. Contact Modal              */
/* (New rules override conflicting modal styles)            */
/* ============================= */
.contact-btn {
    background: red;
    color: gold;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.contact-btn:hover {
    background: darkred;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}

/* Contact Form */
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact-form button {
    background: red;
    color: white;
    padding: 10px 15px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact-form button:hover {
    background: darkred;
}


html, body {
    overflow-x: hidden;
}

.hero-container,
#burn-widget,
#urgent-notices-container,
#main-header {
    max-width: 100vw;
}

/* 🔥 Dialog-based Contact Modal (Custom for Fire Dept) */
dialog.contact-modal {
    width: 90%;
    max-width: 420px;
    padding: 1.5em;
    border: 2px solid #cc0000;
    background-color: #111;
    color: #fff;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.6);
    text-align: left;
}

.contact-modal form,
.contact-modal #contactSuccess {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact-modal h2 {
    margin-top: 0;
    font-size: 1.4em;
    color: #ff3333;
    text-align: center;
}

.contact-modal label {
    font-weight: bold;
    color: #eee;
}

.contact-modal input[type="text"],
.contact-modal input[type="email"],
.contact-modal select,
.contact-modal textarea {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5em;
    border-radius: 4px;
}

.contact-modal input[readonly] {
    background-color: #333;
    color: #aaa;
    cursor: not-allowed;
}

.contact-modal button {
    background-color: #cc0000;
    color: white;
    padding: 0.6em;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.contact-modal button:hover {
    background-color: #e60000;
}

.contact-modal button[data-close-contact] {
    background-color: #555;
    margin-top: -0.5em;
}

.contact-modal button[data-close-contact]:hover {
    background-color: #777;
}
