﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #1e1e2f;
    line-height: 1.5;
    scroll-behavior: smooth;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ----------------------------------------------
   NAVBAR (fixed + scroll effect)
---------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0a2540;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0a58ca;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
}

/* ----------------------------------------------
   TOP BANNER (announcement bar)
---------------------------------------------- */
.top-banner {
    background: #1e2a3a;
    color: #f0f2f5;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 68px;
}

.top-banner a {
    color: #ffc107;
    font-weight: 500;
}

/* ----------------------------------------------
   BREADCRUMB (rich style)
---------------------------------------------- */
.breadcrumb {
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 40px;
    margin: 6.5rem 0 2rem;
    font-size: 0.85rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #0a58ca;
}

.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}

/* ----------------------------------------------
   CARDS & GRIDS (shared)
---------------------------------------------- */
.section-header {
    margin: 30px 0;
}

.section-top {
    margin-top: 100px;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
}

.card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f0f2f5;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.25rem;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #0a58ca;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Feature card (list page / inline image) */
.feature-card {
    display: flex;
    gap: 1.2rem;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.03);
}

.feature-card .card-img {
    flex: 1;
    aspect-ratio: 4/3;
}

.feature-card .card-content {
    flex: 1.5;
    padding: 1rem 1rem 1rem 0;
}

/* List card (category page) */
.list-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
}

.list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.1);
}

.list-card-img {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f2f5;
}

.list-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-card:hover .list-card-img img {
    transform: scale(1.02);
}

.list-card-content {
    flex: 1;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.list-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-excerpt {
    color: #4a5568;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar (shared) */
.sidebar-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid #0a58ca;
    padding-left: 0.75rem;
    font-weight: 600;
}

.author-info {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-bio {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0.75rem 0;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.6rem;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: block;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: #0a58ca;
}

.sidebar-list .post-meta {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.category-tag {
    display: inline-block;
    background: #e9ecef;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    margin: 0.25rem 0.25rem 0 0;
}

.category-tag:hover {
    background: #0a58ca;
    color: white;
}

/* Pagination (static) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0;
}

.page-item {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: 0.2s;
}

.page-item.active {
    background: #0a58ca;
    border-color: #0a58ca;
    color: white;
}

.page-item:hover:not(.active) {
    background: #f1f3f5;
    border-color: #adb5bd;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #0a58ca;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid #0a58ca;
    color: #0a58ca;
}

.btn-outline:hover {
    background: #0a58ca;
    color: white;
}

/* Hot Topics */
.hot-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.topic-tag {
    background: #f1f3f5;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.topic-tag:hover {
    background: #0a58ca;
    color: white;
    transform: translateY(-2px);
}

/* Article Detail Styles */
.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.article-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    font-size: 0.85rem;
    color: #5b677c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.article-body {
    font-size: 0.985rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
    color: #171717;
    margin: 1.5rem 0;
}

.article-body img {
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 1.6rem 0 0.8rem;
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 1.2rem 0 0.6rem;
}

.article-body img {
    margin: 1.5rem 0;
    border-radius: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tag {
    background: #eef2ff;
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0a58ca;
}

.author-bio-block {
    background: #f8fafc;
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
}

.author-bio-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-bio-info p {
    font-size: 0.85rem;
    color: #4b5563;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.share-btn {
    background: #f1f3f5;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.share-btn:hover {
    background: #0a58ca;
    color: white;
}

.comments-section {
    margin: 2rem 0;
    background: #f9f9fc;
    padding: 1.8rem;
    border-radius: 28px;
}

.comment-list {
    margin: 1.5rem 0;
}

.comment {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.comment strong {
    color: #0a2540;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ced4da;
    border-radius: 16px;
    font-family: inherit;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: 0.25s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.1);
}

.related-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-content {
    padding: 0.8rem;
}

.related-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-meta {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Author Page */
.author-hero {
    background: #f8fafc;
    border-radius: 32px;
    padding: 2rem;
    margin: 7rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 1rem;
    color: #0a58ca;
    font-weight: 500;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1rem;
    max-width: 80%;
}

.author-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a2540;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    background: #e9ecef;
    padding: 0.4rem 0.9rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.2s;
}

.social-link:hover {
    background: #0a58ca;
    color: white;
}

.author-detailed {
    background: #ffffff;
    border-radius: 28px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f2f5;
}

.author-detailed h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0a58ca;
    padding-left: 1rem;
}

.author-detailed p {
    margin-bottom: 1.2rem;
    font-size: 0.985rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
    color: #171717;
}

.articles-section {
    margin: 2rem 0 3rem;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0a58ca;
    padding-left: 1rem;
}

/* Two columns layout */
.two-columns {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2.5rem;
    margin: 2rem 0 3rem;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: #4b5563;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #0a58ca;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
}


.footer-bottom a {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Back to top button */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0a58ca;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {

    .grid-3col,
    .grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-columns {
        grid-template-columns: 100%;
        gap: 2rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .section-top {
        margin-top: 30px;
    }

    .navbar {
        position: relative;
    }

    .breadcrumb {
        margin-top: 1rem;
    }

    .feature-card .card-img {
        flex: auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 68px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .container {
        padding: 0 20px;
    }

    .grid-2col,
    .grid-3col,
    .grid-4col {
        grid-template-columns: 1fr;
    }

    .list-card {
        flex-direction: column;
        padding: 0;
    }

    .list-card-img {
        width: 100%;
    }

    .feature-card {
        flex-direction: column;
    }

    .feature-card .card-content {
        padding: 1rem;
    }

    .article-header h1 {
        font-size: 1.4rem;
    }

    .article-meta {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-hero {
        flex-direction: column;
        text-align: center;
        margin: 2rem 0;
    }

    .author-bio {
        max-width: 100%;
    }

    .author-stats {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .author-bio-block {
        flex-direction: column;
        text-align: center;
    }
}