html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.glass {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.shadow-soft {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.05);
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.88));
}

.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
    border-color: #059669;
}

.admin-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: #0f172a;
    color: #cbd5e1;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.article-content h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.7rem;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    color: #1e293b;
}

.article-content h2:first-child,
.article-content h3:first-child {
    margin-top: 0;
}

.article-content ul {
    margin: 1rem 0 1.35rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.article-content li {
    margin: 0.45rem 0;
    padding-left: 0.25rem;
    color: #334155;
}

.article-content li::marker {
    color: #059669;
}

.article-content a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(15, 118, 110, 0.45);
    text-underline-offset: 0.16em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover {
    color: #0f172a;
    text-decoration-color: rgba(15, 23, 42, 0.5);
}

.article-content a:focus-visible {
    outline: 2px solid rgba(5, 150, 105, 0.45);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 1023px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .article-content h2 {
        font-size: 1.4rem;
        margin-top: 1.7rem;
    }

    .article-content h3 {
        font-size: 1.15rem;
        margin-top: 1.35rem;
    }

    .article-content ul {
        padding-left: 1.1rem;
    }
}