/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#title {
    margin-bottom: 1em;
    margin-top: 1em;
}

.blurb-space {
    margin-bottom: 1.5em;
    line-height: 1.6;
    max-width: 70ch;
    text-align: left;
}

/* List styling within blurb-space */
.blurb-space ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.blurb-space ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.blurb-space ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Nested list indentation */
.blurb-space ul ul {
    margin: 0.5rem 0 0 0;
}

.blurb-space ul ul li {
    padding-left: 1.5rem;
}

/* Header Styles */

/* Header Ticker*/
/* Static Hero Ticker Styles */
.hero-ticker {
    background: #007bff; /* Ticker background color */
    color: white; /* Text color */
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ticker-content {
    display: flex;
    justify-content: center;
    gap: 40px; /* Space between messages */
}

.ticker-content span {
    display: inline-block;
}

/* Modern Styles */

.header-hero-wrapper {
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: 0% 40%; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-image: linear-gradient(to bottom, #1e3c72, #ffffff); /* Fallback gradient */
    color: white; /* Text color for the header and hero */
    padding: 1rem 1rem 5rem; /* Adjust padding as needed */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative
}


.hero-section {
    position: relative;
    z-index: 1; /* Ensures the content is above the image */
    background: transparent;
    color: white; 
    padding: 2rem;
    text-align: center;
    width: 100%;

}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-button {
    background: white;
    color: #007bff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background: #f4f4f4;
    color: #0056b3;
}

.content-section {
    padding: 60px 20px;
    text-align: left;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.content-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

.content-section .vapyr-nav-button {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.content-section .vapyr-nav-button:hover {
    background: #0056b3;
}

h2.content {
    margin-top: 1rem;
}

ul.content {
    margin: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    background: #f8f9fa;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
}

/* Sidebar Styles */
/* Sidebar Styles - Base */
.sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 250px;
    margin-right: 2rem;
}

/* Sidebar Navigation Structure */
.sidebar-nav,
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

/* Common Link Styles */
.sidebar a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Hover and active states */
.sidebar a:hover {
    background-color: #e9ecef;
}

.sidebar a.current {
    background-color: #007bff;
}

.sub-item a.current::before {
    filter: brightness(0) invert(1);
}

/* First Level - Water System Table */
.sidebar li:first-child a,
.main-item a {
    font-weight: bold;
    border-bottom: 2px solid #007bff;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
}

/* Second Level - Contam and Facility Tables */
.sidebar li:not(:first-child) a,
.parent-item > a {
    padding-left: 30px;
    position: relative;
    margin-left: 15px;
    border-left: 2px solid #dee2e6;
}
/* Parent items (Contam Table and Facility Table) */
.parent-item {
    margin-bottom: 15px;
}

.parent-item > a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}


/* Third Level - Timeline */
.sub-items {
    list-style: none;
    padding-left: 35px !important;
    margin: 5px 0;
}

.sub-item {
    position: relative;
}

.sub-item a {
    font-size: 0.95em;
    color: #666;
    border-left: none !important;
    margin-left: 0 !important;
    padding-left: 25px;
}

/* L-shaped Arrow for Timeline Items */
.parent-item a::before, .sub-item a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}


/* === Footer Wrapper & Layout === */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* === Footer Sections === */
.footer-section {
    flex: 1;
    padding: 0 15px;
}

.footer-section h4 {
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Contact Info Styles === */
/* Updated Footer Styles for Blue & White Palette */
/* 1) Overall Footer Styling */
.site-footer {
    background-color: #007bff; /* Matches your brand's blue */
    color: #ffffff;
    padding: 2rem 0;
  }
  
  .site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }

/* 2) Flex Layout for the Two Columns */
.footer-content {
    display: flex;
    justify-content: flex-start;  /* Place columns from left to right */
    align-items: flex-start;      /* Align them at the top */
    gap: 2rem;                    /* Control the horizontal space between columns */
    flex-wrap: wrap;             /* Allow wrapping on smaller screens */
    margin-bottom: 1rem;
  }
  
.footer-section {
flex: 0 0 auto;
/* Optional: Remove or reduce side margins */
margin: 0;
}

.footer-section h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}


/* 4) Contact Info on the Right */
.contact-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block; /* vertical list by default */
  }


.contact-info ul li {
  margin-bottom: 0.5rem;
}

.contact-info ul li a {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem; /* space between icon & text */
}

.contact-info ul li a:hover {
  color: #d1e8ff;
}

/* If phone text is shown next to the phone icon */
.contact-info ul li a span {
  font-size: 1rem;
}


/* Quick Links Styles */
/* 3) Quick Links on the Left */
.quick-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-links ul li {
margin-bottom: 0.5rem;
}

.quick-links ul li a {
color: #ffffff;
text-decoration: none;
transition: color 0.3s;
}

.quick-links ul li a:hover {
color: #d1e8ff;
}

/* 5) Copyright */
.site-footer .copyright {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
  }
  
  .site-footer .copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #d1e8ff;
  }

/* Contact Form Styles - Integrated with existing site styles */

/* Contact Container */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-container h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-container p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Alternative Contact Methods */
.alternative-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.alternative-contact a {
    color: #007bff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.alternative-contact a:hover {
    color: #0056b3;
}

.phone-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-contact i {
    font-size: 1.5rem;
    color: #007bff;
}

.phone-contact span {
    font-size: 1rem;
    color: #333;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2rem;
}

.footer-contact a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #0056b3;
}

.footer-phone-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-phone-contact i {
    font-size: 1.5rem;
    color: #007bff;
}

.footer-phone-contact span {
    font-size: 1rem;
    color: #333;
}

/* Form Layout */
#contact-form {
    width: 100%;
}

.name-fields {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.name-fields .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.required-label {
    color: #999;
    font-size: 0.8rem;
    font-weight: normal;
}

/* Form Inputs */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit Button */
#contact-form .submit-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#contact-form .submit-button:hover {
    background-color: #0056b3;
}

/* Loading Indicator */
#contact-form .htmx-indicator {
    display: none;
}

#contact-form.htmx-request .htmx-indicator {
    display: inline-block;
}

/* Messages */
#contact-form .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

#form-response .success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .name-fields {
        flex-direction: column;
        gap: 0;
    }
    
    .alternative-contact {
        flex-wrap: wrap;
    }
    
    #contact-form .submit-button {
        width: 100%;
        justify-content: center;
    }
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important; /* Remove any background color */
    color: inherit !important; /* Inherit text color from parent */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logo img {
    width: 100px;
    height: auto;
}

/* Front Page Styles */
.front-page-name {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.front-page-name img {
    width: 600px;
    height: auto;
    max-width: 100%;
}

.nav-links {
    display: flex;
    list-style-type: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.vapyr-nav-button {
    background-color: #007bff;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.vapyr-nav-button:hover {
    background-color: #0056b3;
}

/* Container and Main Content */
.container {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* Changed from flex-start to center */
    /* margin: 1rem; */
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-content-inner {
    background-color: #ffffff;
    border-radius: 4px;
    width: fit-content;
    padding: 2.5% 10%;
}

/* Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

/* Profile Picture*/
.profile-picture {
    width: 200px;
    height: 200px;
}

/* Search Component */
.search-box {
    margin: 15px 0;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input {
    padding: 8px 12px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

.search-info {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 2px;
    border-radius: 2px;
}

/* Table Layout */
.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: normal; /* Changed from nowrap to allow wrapping */
    word-wrap: break-word;
    max-width: 200px; /* Maximum width for cells */
    min-width: 100px; /* Minimum width for cells */
}

.table-container th {
    background-color: #f8f9fa;
    font-weight: 600;
    vertical-align: top;
}

/* Sortable Headers */
.sortable-header {
    cursor: pointer;
    position: relative;
    padding-right: 25px;
}

.sort-indicator::after {
    content: '↕️';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.sort-asc .sort-indicator::after {
    content: '↑';
    opacity: 1;
}

.sort-desc .sort-indicator::after {
    content: '↓';
    opacity: 1;
}

/* Pagination */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pagination-btn:hover {
    background-color: #0056b3;
}

/* Loading States */
.loading-indicator {
    display: none;
}

.htmx-request .loading-indicator {
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Route-specific styles */
.route-contam a.fac,
.route-fac a.contam {
    display: none;
}

/* Table styles for pages with tables */
.has-table .container {
    max-width: none;
}

.has-table .main-content {
    justify-content: flex-start;
    overflow-x: auto;
}

.has-table .main-content-inner {
    max-width: none;
    overflow-x: auto;
}

/* HTMX-specific styles */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request.htmx-indicator {
    display: inline;
}



/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .vapyr-nav-button {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .parent-item {
        margin-left: 10px;
    }

    .sub-items {
        padding-left: 25px !important;
    }

    .sidebar li:not(:first-child) a {
        padding-left: 20px;
        margin-left: 10px;
    }
    .search-input {
        width: 100%;
    }

    .pagination-controls {
        flex-direction: column;
    }

    .hide-mobile {
        display: none;
    }

    .table-container th,
    .table-container td {
        padding: 8px;
        font-size: 14px;
    }


}

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* Image Attribution */


.image-attribution {
    position: absolute;
    bottom: 10px;
    left: 15px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    line-height: 1.2;
    max-width: 300px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
  }
  
  .image-attribution a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
  }
  
  .image-attribution a:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  /* Divider Attribution Styles */
.divider-attribution {
    position: absolute;
    bottom: 10px;
    left: 15px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    line-height: 1.2;
    max-width: 300px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
    }
.divider-attribution a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.divider-attribution a:hover {
    color: #ffffff;
    text-decoration: underline;
  }