/* goodboog News - Article Styles */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #1f5ea8;
    --primary-soft: #eaf2ff;
    --text-color: #1f2937;
    --text-light: #5a6b82;
    --bg-color: #ffffff;
    --bg-secondary: #f4f7fb;
    --border-color: #d7e2ef;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-secondary);
}

.content-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.2rem 1rem 2rem;
}

main {
    width: 100%;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.article-breadcrumb a {
    color: #275d9e;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.1rem;
    align-items: start;
}

article {
    background: var(--bg-color);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.article-sidebar {
    position: sticky;
    top: 84px;
}

.sidebar-card {
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
}

.sidebar-card h2 {
    margin: 0 0 0.8rem;
    color: #103f7f;
    font-size: 1.05rem;
}

.sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-item + .sidebar-item {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #edf2f8;
}

.sidebar-item a {
    color: #173f74;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.45;
    display: block;
}

.sidebar-item a:hover {
    color: #0f5bb9;
    text-decoration: underline;
}

.sidebar-meta {
    display: block;
    margin-top: 0.18rem;
    color: #677a92;
    font-size: 0.83rem;
}

.sidebar-all-link {
    display: inline-flex;
    margin-top: 0.95rem;
    font-weight: 700;
    color: #0f5bb9;
    text-decoration: none;
}

.sidebar-all-link:hover {
    text-decoration: underline;
}

.article-header {
    margin-bottom: 1.45rem;
}

.category {
    display: inline-block;
    background: var(--primary-soft);
    color: #134f96;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    letter-spacing: 0.02em;
}

h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 2.7vw, 2.45rem);
    font-weight: 800;
    line-height: 1.2;
    color: #102c53;
}

.meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.featured-image {
    margin: 1.4rem 0 1.9rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.featured-image figcaption {
    margin-top: 0.4rem;
    font-size: 0.83rem;
    color: var(--text-light);
    text-align: center;
}

.article-content {
    font-size: 1.07rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    margin: 2rem 0 0.8rem;
    line-height: 1.3;
    color: #0f376b;
}

.article-content h3 {
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    font-weight: 700;
    margin: 1.55rem 0 0.7rem;
    line-height: 1.35;
    color: #134882;
}

.article-content p {
    margin: 0 0 1.2rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.25rem;
    padding-left: 1.2rem;
}

.article-content li {
    margin-bottom: 0.55rem;
}

.article-content a {
    color: #0f5bb9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #0a4b9a;
}

.article-content strong {
    font-weight: 700;
    color: #102c53;
}

.article-content code {
    background: #eef3f8;
    border: 1px solid #e2eaf3;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #eef3f8;
    border: 1px solid #e2eaf3;
    padding: 0.9rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.2rem 0;
}

.article-footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.2rem 1rem 2rem;
    text-align: center;
    color: #6c7d93;
    font-size: 0.86rem;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-sidebar {
        position: static;
    }

    .sidebar-card {
        margin-top: 0.8rem;
    }
}

@media (max-width: 720px) {
    .content-wrapper {
        padding: 1rem 0.8rem 1.5rem;
    }

    article {
        padding: 1.3rem 1rem;
        border-radius: 12px;
    }

    .article-content {
        font-size: 1rem;
    }
}