/* Premium Modern Dark Theme Design Core Variables */
:root {
    --bg-dark: #0f111a;
    --bg-card: #181c28;
    --bg-input: #222836;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --border-color: #2e3748;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Layouts */
h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation Interface */
header {
    background-color: rgba(24, 28, 40, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.05em;
}

header h1 span {
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 6px 0;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
}

/* Card Content Feed Architecture Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: #4b5563;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.card-img-container {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
    background: #1e2533;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .card-img-container img {
    transform: scale(1.04);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #fff;
}

.card-content p.date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-content p.description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Global Functional Elements */
.btn-read {
    background-color: var(--primary);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.btn-read:hover {
    background-color: var(--primary-hover);
}

/* Responsive Table Components for Marketplace */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-color);
}

.spec-table th {
    padding: 8px 0;
    color: var(--text-muted);
    text-align: left;
    font-weight: 500;
}

.spec-table td {
    padding: 8px 0;
    color: #fff;
    text-align: right;
    font-weight: 600;
}

/* Form Styling Architecture */
input[type="text"], input[type="url"], input[type="number"], select, textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Footer Container Styling */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}