/* Military Content Pages - Table Styles */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Top navigation bar */
.mil-nav {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mil-nav .mil-logo {
    font-size: 20px;
    font-weight: bold;
}

.mil-nav .mil-logo span {
    color: #3498db;
}

.mil-nav .mil-links {
    display: flex;
    gap: 25px;
}

.mil-nav .mil-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.mil-nav .mil-links a:hover {
    color: #3498db;
}

/* Page title banner */
.mil-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.mil-banner h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.mil-banner p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Table container */
.mil-table-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    overflow-x: auto;
}

/* Intro text */
.mil-intro {
    background-color: white;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    font-size: 13px;
    margin-bottom: 30px;
}

td, th {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    vertical-align: top;
    white-space: normal;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Year header rows */
.year-header td {
    background-color: #3498db;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    padding: 14px 16px;
    letter-spacing: 0.5px;
}

/* Column header rows */
.col-header th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

/* Zebra striping */
tr:nth-child(even):not(.year-header):not(.col-header) td {
    background-color: #fafbfc;
}

/* Hover effect */
tr:not(.year-header):not(.col-header):hover td {
    background-color: #edf2f7;
}

/* First column (number) styling */
td:first-child {
    font-weight: 600;
    text-align: center;
    color: #2c3e50;
    min-width: 40px;
}

/* Footer */
.mil-footer {
    background-color: #1a252f;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 25px;
    font-size: 13px;
    margin-top: 40px;
}

.mil-footer a {
    color: #3498db;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mil-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .mil-nav .mil-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .mil-banner h1 {
        font-size: 20px;
    }

    table {
        font-size: 11px;
    }

    td, th {
        padding: 8px 10px;
        font-size: 11px;
    }

    .year-header td {
        font-size: 14px;
    }
}
