
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-muted: #334155;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}
.logo-accent {
    color: var(--primary);
}
.logo-dot {
    color: var(--accent);
}
.site-nav {
    display: flex;
    gap: 20px;
}
.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-muted);
}
.nav-link:hover {
    color: var(--primary);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.92rem;
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}
.hero-tag {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    max-width: 800px;
    margin: 0 auto 16px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 30px;
}

/* Category Filter Bar */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.cat-pill {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-muted);
}
.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.badge {
    background: #f1f5f9;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
}
.read-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--dark);
}
.card-title a:hover {
    color: var(--primary);
}
.card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}
.card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.read-more-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
}
.read-more-link:hover {
    color: var(--primary-dark);
}

/* Single Article Post */
.article-container {
    max-width: 840px;
    margin: 40px auto 60px;
    padding: 0 20px;
}
.article-header {
    margin-bottom: 30px;
}
.article-header .badge {
    margin-bottom: 12px;
    display: inline-block;
}
.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}
.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.article-content {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 1.08rem;
    line-height: 1.8;
    color: #334155;
}
.article-content h1, .article-content h2, .article-content h3 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin: 32px 0 16px;
    line-height: 1.3;
}
.article-content h2 { font-size: 1.65rem; border-left: 4px solid var(--primary); padding-left: 12px; }
.article-content h3 { font-size: 1.35rem; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-left: 24px; margin-bottom: 20px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--dark); }

/* In-Content Ad Placeholder */
.ad-slot-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Institutional Pages */
.page-container {
    max-width: 800px;
    margin: 40px auto 60px;
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col .site-logo {
    color: #ffffff;
    margin-bottom: 16px;
    display: inline-block;
}
.footer-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    margin-bottom: 20px;
    max-width: 400px;
}
.publisher-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 600;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .site-nav, .header-actions { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .article-content, .page-container { padding: 24px 18px; }
}
