/* --- Root Variables & Douglas County Branding --- */
:root {
    --dc-red: #882121;
    --dc-green: #1e5933;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.7; 
    margin: 0; 
    color: var(--text-main); 
    background-color: #f1f5f9; 
    overflow-x: hidden;
}

/* --- Header & Responsive Logo --- */
header { 
    background: var(--white); 
    border-bottom: 4px solid var(--dc-green); 
    padding: 1.5rem 5%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

.logo img { 
    max-width: 100%; 
    height: auto; 
    max-height: 70px; 
    display: block;
}

/* --- Hero Section with 50% Black Overlay --- */
.hero { 
    position: relative;
    background: url('panorama-v1.png');
    background-size: cover;
    background-position: center; 
    color: var(--white); 
    padding: 120px 10%; 
    text-align: center; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% Black Overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 { 
    margin: 0; 
    font-size: 3rem; 
    font-weight: 800; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
}

.hero p {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* --- Layout Wrapper (Corrected Margin) --- */
.main-wrapper { 
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    width: 95%; 
    max-width: 1300px; 
    margin: 40px auto; /* Margin fixed to avoid clipping */
}

/* --- Sidebar Navigation --- */
.side-nav {
    position: sticky;
    top: 30px;
    height: fit-content;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav li {
    margin-bottom: 12px;
}

.side-nav a {
    text-decoration: none;
    color: var(--dc-red);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.side-nav a:hover {
    color: var(--dc-green);
}

/* --- Main Container with White Background --- */
.container { 
    background: var(--white); /* White background reinstated */
    padding: 50px; 
    border-radius: 12px; 
    box-shadow: var(--shadow-md); 
}

h2 { 
    color: var(--dc-green); 
    font-weight: 700; 
    border-bottom: 2px solid #f1f5f9; 
    padding-bottom: 10px; 
    margin-top: 3rem; 
}

.left-justify { text-align: left; margin-top: 0.5rem; }

/* --- Side-by-Side Phase Boxes --- */
.phase-row { 
    display: flex;
    flex-wrap: wrap; 
    gap: 25px; 
    justify-content: center; 
    margin: 40px 0;
}

.feature-card { 
    flex: 1;
    min-width: 300px; 
    max-width: 450px;
    padding: 35px 25px; 
    background: var(--white); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    text-align: center; 
}

.feature-card.highlighted { 
    background: var(--dc-green); 
    color: var(--white); 
}

.feature-icon { width: 48px; height: 48px; margin: 0 auto 20px; color: var(--dc-red); }
.feature-card.highlighted .feature-icon { color: var(--white); }

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* --- Scope/Details Box --- */
.details-box { 
    background: #f8fafc; 
    padding: 35px; 
    border-radius: 12px; 
    border-left: 6px solid var(--dc-red); 
    margin: 40px 0; 
}

.details-box h2 { border: none; margin-top: 0; }
.details-box ul { padding-left: 20px; }
.details-box li { margin-bottom: 15px; }

#scope li { margin-bottom: 20px; }

/* --- Feedback Form --- */
#feedback-section { margin-top: 60px; padding: 40px; background: #f8fafc; border-radius: 16px; border: 1px solid var(--border-color); }
.modern-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit; }
.modern-submit { background: var(--dc-red); color: white; padding: 16px 32px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; text-transform: uppercase; width: fit-content; transition: 0.3s; }
.modern-submit:hover { background: var(--dc-green); }

footer { text-align: center; padding: 40px; background: #1e293b; color: #94a3b8; }

/* --- Roadway Exhibits --- */
.exhibit-subheading {
    color: var(--dc-green);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 30px 0 16px;
}

.exhibit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.exhibit-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    background: var(--white);
    overflow: hidden;
}

.exhibit-badge {
    background: var(--dc-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.exhibit-card h3 {
    margin: 8px 0 6px;
    font-size: 1rem;
    color: var(--text-main);
}

.exhibit-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.exhibit-card img, .large-exhibit-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
    display: block;
}

.exhibit-card img:hover, .large-exhibit-card img:hover {
    transform: scale(1.01);
}

.large-exhibit-card {
    margin-top: 10px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img { max-width: 90%; max-height: 85%; border: 4px solid white; }

.close-btn {
    position: absolute;
    top: 30px; right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    font-weight: bold;
}

/* --- Mobile Breakpoints --- */
@media screen and (max-width: 1024px) {
    .main-wrapper { grid-template-columns: 1fr; margin-top: 20px; }
    .side-nav { display: none; }
    .container { padding: 30px; }
    .exhibit-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}