/* ============================
   Civic Overview Page Styles
   ============================ */

.overview-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Section Styling */
.overview-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid var(--border-primary);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.overview-section.collapsed > *:not(h2) {
    display: none;
}

.overview-section h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0;
    padding: 1rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-card);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.25s ease, padding-left 0.2s ease;
}

.overview-section h2::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.overview-section h2 + * {
    margin-top: 0.5rem;
}

.overview-section.collapsed h2::after {
    transform: translateY(-50%) rotate(-90deg);
}

.overview-section h2:hover {
    background: var(--gradient-cta);
    padding-left: 1.75rem;
}

.overview-section > *:not(h2) {
    padding: 0 1.5rem 0rem;
}

.overview-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.overview-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 600;
}

.overview-section h4 {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.75rem;
    font-weight: 600;
}

/* Table Styling */
.table-wrapper {
    overflow-x: auto;
    margin: 0.5rem !important;  
    padding: 0.5rem !important;  
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

thead {
    background: var(--primary-color);
}

thead th {
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid color-mix(in srgb, #ffffff 30%, transparent);
}

tbody tr {
    border-bottom: 1px solid var(--border-primary);
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: color-mix(in srgb, var(--primary-color) 18%, var(--bg-secondary) 82%);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 1rem;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

tbody td strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Lists */
.timeline-list,
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.timeline-list li,
.feature-list li {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.timeline-list li:hover,
.feature-list li:hover {
    background: color-mix(in srgb, var(--primary-color) 18%, transparent);
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .overview-container {
        padding: 1rem;
    }

    .overview-section h2 {
        font-size: 1.5rem;
    }

    .overview-section h3 {
        font-size: 1.2rem;
    }

    .overview-section h4 {
        font-size: 1.1rem;
    }

    thead th,
    tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .overview-section h2 {
        font-size: 1.3rem;
    }

    table {
        font-size: 0.8rem;
    }

    thead th,
    tbody td {
        padding: 0.5rem 0.3rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer {
        display: none;
    }

    .overview-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    body {
        background: white;
        color: black;
    }

    table {
        border: 1px solid #000;
    }

    thead {
        background: #333 !important;
    }

    tbody tr {
        border-bottom: 1px solid #ccc;
    }
}
