body {
    font-family: 'Spoqa Han Sans Neo', 'sans-serif';
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    background-color: #f8f9fa;
    color: #212529;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

header {
    background-color: #1a2f4e;
    padding: 1.5rem 2rem;
    text-align: center;
}

header h1 {
    font-size: 22px;
    margin: 0;
    color: #ffffff;
}

header p {
    font-size: 13px;
    margin: 0.25rem 0 0;
    color: rgba(255,255,255,0.8);
}

header a {
    color: #ffffff;
    text-decoration: none;
}

nav {
    background-color: #ffffff;
    border-bottom: 2px solid #1a2f4e;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

nav a {
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: color 0.15s ease-in-out, border-bottom-color 0.15s ease-in-out;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .container {
        grid-template-columns: 3fr 1fr;
    }
}

.main-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.sidebar {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    position: sticky;
    top: 2rem;
}

.ad-placeholder {
    background-color: #e9ecef;
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    font-size: 12px;
    color: #6c757d;
}

footer {
    background-color: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
    font-size: 12px;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

/* --- Components --- */

/* News Grid & Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-card h3 {
    margin-top: 0;
    font-size: 14px; /* News Card Title */
    font-weight: 600;
}

.news-card a {
    color: inherit;
    text-decoration: none;
}

.news-card a:hover {
    color: #007bff;
}

.news-card p {
    color: #495057;
    flex-grow: 1;
    margin: 1rem 0;
}

.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px; /* News Card Date/Tags */
    color: #6c757d;
}

/* Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    border-bottom: 1px solid #dee2e6;
    text-align: left;
    padding: 0.75rem; /* Reduced Padding */
    vertical-align: middle;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

tr:hover {
    background-color: #f1f3f5;
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.controls input[type="text"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.controls p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
}

/* Skeleton UI */
.skeleton-loader {
    width: 100%;
    height: 1em;
    background-color: #e9ecef;
    border-radius: 4px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

@keyframes skeleton-loading {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Utility */
.text-center {
    text-align: center;
}