/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: #c62828;
    color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

/* Section Styles */
section {
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #c62828;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Event and Document Styles */
.event, .document {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.event:last-child, .document:last-child {
    border-bottom: none;
}

/* Link Styles */
.document-link {
    color: #1565c0;
    text-decoration: none;
    font-weight: bold;
}

.document-link:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    section {
        padding: 15px;
    }
}

/* Table Styling */
/* Enhanced Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
    table-layout: fixed; /* This enforces the column widths */
}

table th {
    background-color: #0066cc;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;

}

table td {
    padding: 10px 8px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    word-break: break-word; /* Ensures text wraps in cells */
}

table tr:nth-child(even) {
    background-color: #f8f8f8;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* More robust column width control */
table colgroup col:nth-child(1) {
    width: 15%;
}
table colgroup col:nth-child(2) {
    width: 50%;
}
table colgroup col:nth-child(3) {
    width: 35%;
}

/* List styling within tables */
.violation-list, .charter-list {
    margin: 0;
    padding-left: 1.2em;
}

.violation-list li, .charter-list li {
    margin-bottom: 0.5em;
    font-size: 0.9rem;
}

.violation-list li:last-child, 
.charter-list li:last-child {
    margin-bottom: 0;
}