/* Reset & Fonts */
:root {
    --primary-color: #0d47a1;
    --primary-dark: #002171;
    --secondary-color: #00838f;
    --accent-color: #f57f17;
    --bg-light: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.header-top {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.875rem;
}

.top-info {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    word-break: break-word;
}

.main-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    padding: 12px 16px;
}

.brand-section {
    display: block;
    margin-bottom: 12px;
}

.brand-section a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.brand-logo {
    height: 48px;
    width: auto;
    float: left;
    margin-right: 12px;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-toggle {
    display: block;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.nav-menu {
    display: none;
    list-style: none;
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    margin: 4px 0;
}

.nav-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Clearfix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Banner Card H1 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.page-banner h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.page-banner p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Cards & Content */
.card-grid {
    margin: 20px 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.card h2, .card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Table Responsive Cards for Mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--white);
}

.data-table th, .data-table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Mobile Table as Cards */
@media (max-width: 768px) {
    .responsive-card-table {
        border: 0;
    }
    .responsive-card-table thead {
        display: none;
    }
    .responsive-card-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 12px;
    }
    .responsive-card-table td {
        display: block;
        text-align: right;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--border-color);
        padding: 8px 0;
    }
    .responsive-card-table td:last-child {
        border-bottom: 0;
    }
    .responsive-card-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: var(--primary-color);
    }
}

/* Stats Display */
.stats-grid {
    margin: 16px 0;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}

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

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 16px 0;
}

/* Random Links SEO Section */
.random-links {
    background: var(--white);
    border-top: 2px solid var(--border-color);
    padding: 20px 16px;
    margin-top: 40px;
}

.random-links-container {
    max-width: 1200px;
    margin: 0 auto;
}

.random-links h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.random-links ul {
    list-style: none;
    padding: 0;
}

.random-links li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
}

.random-links a {
    color: var(--secondary-color);
    font-size: 0.875rem;
    text-decoration: none;
}

.random-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 20px 16px;
    text-align: center;
    font-size: 0.875rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
    .nav-container {
        display: block;
    }
    .brand-section {
        float: left;
        margin-bottom: 0;
    }
    .nav-menu {
        display: block !important;
        float: right;
        margin-top: 8px;
        border-top: none;
        padding-top: 0;
    }
    .nav-menu li {
        display: inline-block;
        margin: 0 2px;
    }
    .card-grid-3 {
        display: block;
    }
    .card-grid-3 .card {
        width: 31%;
        float: left;
        margin-right: 3.33%;
    }
    .card-grid-3 .card:last-child {
        margin-right: 0;
    }
    .stats-grid-4 .stat-card {
        width: 23%;
        float: left;
        margin-right: 2.66%;
    }
    .stats-grid-4 .stat-card:last-child {
        margin-right: 0;
    }
}