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

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

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

ul,
ol {
    list-style: none;
}

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

a {
    text-decoration: none;
    color: #1a5f7a;
    transition: color 0.2s ease;
}

a:hover {
    color: #0c3b4f;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #111;
}

.section-title {
    font-size: 1.8rem;
    margin: 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e2e8f0;
    display: inline-block;
}

/* ---------- Header & Navigation (with scroll effect) ---------- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0f3b2c;
}

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

.main-nav a {
    font-weight: 500;
    color: #2c3e50;
}

.main-nav a.active,
.main-nav a:hover {
    color: #1a5f7a;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #2c3e50;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav {
    margin: 1rem 0 1.5rem;
}

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

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: #4b5563;
}

.breadcrumb [aria-current="page"] {
    color: #1a5f7a;
    font-weight: 500;
}

/* ---------- Buttons & Cards (shared) ---------- */
.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

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

.card-title a {
    color: #111;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

/* ---------- Homepage Specific ---------- */
.top-banner {
    background: #f0f9ff;
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.9rem;
}

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

.cat-card {
    background: #fafaf9;
    border-radius: 20px;
    padding: 1rem;
}

.cat-header {
    margin-bottom: 1rem;
}

.cat-label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    background: #e2e8f0;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}

.tech-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-list {
    list-style: none;
    margin-top: 1rem;
}

.mini-list li {
    margin-bottom: 0.75rem;
}

.politics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.card-img-sm {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.news-card-c {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

.report-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

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

.report-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.report-content {
    padding: 1.2rem;
}

.report-tag {
    font-size: 0.7rem;
    background: #e9ecef;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.read-more {
    display: inline-block;
    margin-top: 0.8rem;
    font-weight: 500;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.topic-card {
    background: #f1f5f9;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
}

.topic-card span {
    font-size: 0.75rem;
    color: #475569;
}

/* ---------- Category & List Page ---------- */
.main-content-grid {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2.5rem;
    margin: 2rem auto;
}

.primary-content {
    flex: 0 0 70%;
}

.sidebar {
    flex: 0 0 30%;
}

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

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

.list-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.2s;
}

.list-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s;
}

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

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

.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #eef2ff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

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

.list-card-excerpt {
    font-size: 0.9rem;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.page-numbers a {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: #f1f5f9;
}

.page-numbers a.active {
    background: #1a5f7a;
    color: white;
}

.prev.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Sidebar */
.sidebar-card {
    background: #fafaf9;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #1a5f7a;
    padding-left: 0.75rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

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

.author-sidebar-name {
    text-align: center;
    margin-bottom: 15px;
}


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

.sidebar-list li,
.category-list li {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.update-time {
    font-size: 0.7rem;
    color: #6c757d;
}

.cat-count {
    background: #e2e8f0;
    padding: 0.1rem 0.5rem;
    border-radius: 30px;
    font-size: 0.7rem;
}

/* ---------- Post (Detail) Page ---------- */
.post-title {
    font-size: 2.2rem;
    margin: 0.5rem 0 0.25rem;
    line-height: 1.2;
}

.post-subtitle {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 1rem;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

.meta-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.author-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.post-featured-img {
    margin: 1.5rem 0;
}

.post-featured-img figcaption {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
}

.post-content {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.7;
}

.post-content img {
    margin: 0 auto;
}

.post-content p {
    margin-bottom: 1.4rem;
}

.post-footer-meta {
    margin: 2rem 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.author-bio-box {
    display: flex;
    gap: 1.5rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.author-bio-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.share-section {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    background: #eef2ff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
}

.comments-section {
    margin: 2rem 0;
}

.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.submit-comment {
    background: #1a5f7a;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
}

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

/* ---------- Author Page ---------- */
.author-full-page {
    max-width: 1100px;
    margin: 0 auto;
}

.author-profile-container {
    margin: 2rem 0;
}

.author-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    background: #fafaf9;
    padding: 2rem;
    border-radius: 32px;
}

.author-avatar-large {
    flex-shrink: 0;
    margin: 0 auto ;
}

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

.author-name-large {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.author-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.75rem 0;
}

.author-social-links a {
    margin-right: 1rem;
}

.author-detailed-bio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.bio-main h2,
.bio-main h3 {
    margin: 1.5rem 0 0.8rem;
}

.achievements-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tags span {
    background: #e2e8f0;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
}

.bio-side-quote {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 24px;
}

blockquote {
    font-style: italic;
    border-left: 4px solid #1a5f7a;
    padding-left: 1rem;
}

.author-latest-articles {
    margin: 3rem 0;
}

.author-articles-grid {
    margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-col a {
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom p {
    text-align: center;
    margin: 0;
}

.footer-bottom a {
    font-size: 0.8rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1a5f7a;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

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

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

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

@media (max-width: 768px) {

    .categories-grid,
    .reports-grid,
    .editors-grid {
        grid-template-columns: 100%;
    }

    .site-header {
        position: relative;
    }

    .nav-container {
        height: 54px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 54px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 54px);
        background: white;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 2rem;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-content-grid {
        flex-direction: column;
        grid-template-columns: 100%;
    }

    .primary-content,
    .sidebar {
        flex: 1 1 100%;
    }

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

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

    .author-detailed-bio {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .meta-left,
    .meta-author {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

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

@media (max-width: 480px) {
    .post-meta-top {
        gap: 0.5rem;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }

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