:root {
    --primary-color: #0056b3;
    /* Deep Blue */
    --secondary-color: #00a8e8;
    /* Bright Blue */
    --accent-color: #ffc107;
    /* Amber for CTAs */
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --font-main: 'Source Sans 3', 'Libre Franklin', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0056b3 0%, #00a8e8 100%);
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
    position: relative;
    color: var(--light-text);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 60, 0.6);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.search-info {
    margin-top: 2rem;
    color: var(--light-text);
    text-align: center;
}

.search-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.search-info ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.search-info li {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 0.95rem;
}

/* Search Form */
.search-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    /* Increased padding */
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: nowrap;
    /* Force single line */
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    /* Allow it to be wider */
}

.search-box input,
.search-box select {
    padding: 15px 20px;
    /* Larger inputs */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    /* Larger text */
    flex: 1;
    min-width: 0;
    /* Allow shrinking if needed, but flex:1 grows them */
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus,
.search-box select:focus {
    border-color: var(--primary-color);
}

.search-box button {
    padding: 15px 40px;
    /* Larger button */
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.search-box button:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

/* Content Section */
.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.container h2 {
    text-align: center;
}

article h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-align: center;
}

article h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

article h3 {
    color: #444;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article h4 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

article p {
    margin-bottom: 1rem;
    color: #555;
}

article ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
}

article a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

article a:hover {
    text-decoration: underline;
}

.alert {
    background-color: #e3f2fd;
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.disclaimer {


    color: #856404;
    padding: 15px;
    margin: 3rem auto;
    max-width: 1000px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
}

/* Screenshots */
.screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    border: 1px solid #eee;
   
   
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        flex-direction: column;
    }

    nav.active {
        max-height: 300px;
        /* Adjust based on content */
        border-top: 1px solid #eee;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 15px;
        font-size: 1rem;
        width: 100%;
    }

    nav a:hover {
        background-color: #f9f9f9;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        min-height: auto;
        padding: 2rem 3%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .search-box {
        flex-direction: column;
        padding: 1.5rem;
    }

    .search-box input,
    .search-box select,
    .search-box button {
        width: 100%;
        font-size: 1rem;
        padding: 12px 15px;
    }

    .search-info p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .search-info ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .search-info li {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .container {
        padding: 20px;
        margin: 2rem auto;
    }

    article h1 {
        font-size: 1.75rem;
    }

    article h2 {
        font-size: 1.5rem;
    }

    article h3 {
        font-size: 1.25rem;
    }

    article h4 {
        font-size: 1.1rem;
    }

    .disclaimer {
        padding: 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .search-box {
        padding: 1rem;
    }

    article h1 {
        font-size: 1.5rem;
    }
}
/* Inmate Search additions */
:root {
    --font-main: 'Source Sans 3', 'Libre Franklin', sans-serif;
}

.stats-panel {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: #eef5fb;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.stats-panel h2 {
    margin-bottom: 0.35rem;
}

.stats-source {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.stat-card {
    background: #fff;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: #555;
}

.stat-card.stat-fbi {
    border-top: 3px solid #1b4f72;
}

.stats-attribution {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.45;
}

.stats-attribution a {
    color: var(--primary-color);
}

.stats-notice {
    margin: 0.25rem 0 0.6rem;
}

.resource-item img.screenshot,
img.screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.info-grid {
    margin-top: 1.5rem;
    color: #fff;
}

.info-grid ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.35rem 1rem;
    list-style: disc;
    margin-left: 1.25rem;
}

/* County multi-page */
nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.facility-card {
    margin: 1.25rem 0 1.75rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.facility-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.facility-card dl {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
}

.facility-card dt {
    font-weight: 700;
    color: #445;
}

.facility-card dd {
    margin: 0;
}

.facility-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.5rem 0 0;
    padding: 0;
}

.facility-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.facility-notes {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    color: #555;
}

.related-pages {
    margin: 2.5rem 0 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.related-card {
    display: block;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.12);
}

.related-card h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.related-card p {
    font-size: 0.9rem;
    color: #555;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .facility-card dl {
        grid-template-columns: 1fr;
    }

    nav a.active {
        border-bottom: none;
        background: #eef5fb;
    }
}
