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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1e2a3a;
    background: #f9fbfd;
}

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



ul,
ol {
    list-style: none;
}

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

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

/* ===== Header & Navigation ===== */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eaeef2;
    transition: background 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom-color: transparent;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #0b1c2f;
}

.logo span {
    font-weight: 300;
    color: #4a6fa5;
}

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

.nav-list a {
    text-decoration: none;
    color: #2c3e4f;
    font-weight: 450;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: #2b6c9e;
    border-bottom: 2px solid #2b6c9e;
    padding-bottom: 4px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #2c3e4f;
    padding: 0 4px;
}

.menu-toggle {
    display: none;
}

/* ===== Breadcrumb (common) ===== */
.breadcrumb {
    margin: 1.5rem 0 2rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background: #f0f5fa;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li+li::before {
    content: "›";
    margin: 0 0.7rem;
    color: #7c94a8;
    font-weight: 300;
    font-size: 1.2rem;
}

.breadcrumb a {
    text-decoration: none;
    color: #2c5779;
}

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

.breadcrumb li[aria-current="page"] {
    color: #1a2e40;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== General Sections ===== */
.section {
    padding: 3rem 0;
}

.bg-light {
    background: #f1f6fa;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 400;
    margin-bottom: 2rem;
    border-left: 5px solid #4a6fa5;
    padding-left: 1rem;
    letter-spacing: -0.3px;
}

.section-title .sub {
    font-size: 1rem;
    font-weight: 300;
    color: #5e6f7e;
    margin-left: 12px;
}

/* ===== Card Grid & Cards ===== */
.card-grid {
    display: grid;
    gap: 2rem;
}

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

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

.story-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eef2f6;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 20, 40, 0.08);
}

.card-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1rem 1.2rem 1.3rem;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #e2eaf1;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    color: #1f4973;
    display: inline-block;
    margin-bottom: 8px;
}

h3,
h4 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

h3 a,
h4 a {
    text-decoration: none;
    color: inherit;
}

h3 a:hover {
    color: #1f4973;
}

.excerpt {
    color: #3e525e;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.meta {
    font-size: 0.85rem;
    color: #6f7d8a;
}

/* horizontal card */
.story-card.horizontal {
    display: flex;
    gap: 0.5rem;
}

.story-card.horizontal .card-img {
    flex: 0 0 180px;
    width: 100%;
    height: 100%;
}

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

.story-card.horizontal h3 {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
}

.story-card.compact .card-img {
    flex: 0 0 100px;
}

.story-card.compact h4 {
    font-size: 1rem;
    -webkit-line-clamp: 2;
}

/* card stack */
.card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* overlay card for special reports */
.story-card.overlay-light {
    position: relative;
    background: #2e4053;
    color: #fff;
    border: 0;
}

.overlay-light .card-content {
    position: absolute;
    bottom: 0;
    background: linear-gradient(transparent, #123b7eb3);
    width: 100%;
}

.overlay-light .card-content .excerpt,
.overlay-light .card-content .meta {
    color: #fff;
}

.overlay-light .card-content h3:hover a{
    color: #30caf7;
}

.overlay-light .tag {
    background: #dfeefb;
    color: #111;
}

/* ===== Category Grid (home) ===== */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.cat-item {
    background: white;
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    text-decoration: none;
    color: #1e2a3a;
    font-weight: 500;
    box-shadow: 0 2px 8px #dfe5ec;
    transition: background 0.15s, transform 0.15s;
    border: 1px solid #d9e2ec;
}

.cat-item:hover {
    background: #e6eff9;
    transform: scale(1.02);
}

.cat-item .count {
    color: #5a707d;
    font-size: 0.85rem;
    margin-left: 6px;
}

/* ===== Pagination ===== */
.pagination {
    margin: 3rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    border-radius: 30px;
    background: white;
    border: 1px solid #cfdeed;
    color: #1d3952;
    text-decoration: none;
    font-weight: 450;
    transition: background 0.15s, border-color 0.15s;
}

.pagination a:hover {
    background: #e1ecf5;
    border-color: #7fa1c2;
}

.pagination .current,
.pagination a.current {
    background: #1d3952;
    border-color: #1d3952;
    color: white;
}

.pagination .prev,
.pagination .next {
    font-weight: 500;
    padding: 0 1.4rem;
}

/* ===== Sidebar Widgets (common for list/detail) ===== */
.sidebar-widget {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.8rem 1.5rem;
    margin-bottom: 2.2rem;
    border: 1px solid #e4edf5;
    box-shadow: 0 2px 8px rgba(0, 20, 30, 0.02);
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4a6fa5;
    padding-left: 0.8rem;
}

/* author card (sidebar) */
.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid white;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.author-name {
    font-size: 1.4rem;
    font-weight: 450;
    margin-bottom: 0.3rem;
}

.author-bio {
    color: #4e6275;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* list widget */
.list-widget ul {
    list-style: none;
}

.list-widget li {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #d4e0ea;
}

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

.list-widget a {
    text-decoration: none;
    color: #1e3a5c;
    font-weight: 450;
    display: block;
    transition: color 0.2s;
}

.list-widget a:hover {
    color: #0077be;
}

.list-widget .meta {
    font-size: 0.8rem;
    color: #6f8ba0;
    margin-top: 0.2rem;
}

/* category list with count */
.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list .count {
    background: #e7f0f8;
    color: #1d4e75;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== Two Column Layout (category & post) ===== */
.category-layout,
.post-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 3rem;
    margin: 2rem 0;
}

/* ===== Article Detail Page ===== */
.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 1rem 0 0.5rem;
    color: #0f1e2e;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem 1.8rem;
    color: #5a707d;
    font-size: 0.95rem;
    border-bottom: 1px solid #e5eef7;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

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

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

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 380;
    margin: 2.2rem 0 1rem;
    color: #1f2b35;
}

.article-body blockquote {
    border-left: 4px solid #4a6fa5;
    background: #f6fafd;
    padding: 1.2rem 1.8rem;
    margin: 2rem 0;
    font-style: italic;
    color: #2c4156;
    border-radius: 8px 20px 20px 8px;
}

.article-category-tag {
    margin: 2rem 0 1.5rem;
}

.article-category-tag .tag {
    font-size: 0.85rem;
    background: #e2eaf1;
    padding: 0.4rem 1.2rem;
    margin-right: 0.5rem;
}

/* author info card (large) */
.author-info-card {
    display: flex;
    gap: 1.8rem;
    background: #f5faff;
    border-radius: 28px;
    padding: 2rem;
    margin: 2.5rem 0;
    border: 1px solid #ddebf5;
}

.author-info-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.author-info-card .bio {
    color: #3a4f60;
    line-height: 1.6;
}

/* share block */
.share-block {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #d4e2ef;
    border-bottom: 1px solid #d4e2ef;
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.share-label {
    font-weight: 500;
    color: #2d4a6a;
}

.share-btn {
    background: #edf4fb;
    border: none;
    border-radius: 40px;
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}

.share-btn:hover {
    background: #d3e3f2;
}

/* comments */
.comments-section {
    margin: 3rem 0;
}

.comment {
    display: flex;
    gap: 1.2rem;
    background: #f8fbfe;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #cbdae6;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #1c3448;
}

.comment-date {
    font-size: 0.8rem;
    color: #7890a2;
    margin-left: 1rem;
}

.comment-text {
    margin-top: 0.3rem;
    color: #233a4a;
}

.comment-form {
    background: #f1f7fd;
    border-radius: 28px;
    padding: 2rem;
    margin-top: 2rem;
}

.comment-form h4 {
    margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #bed0e0;
    border-radius: 40px;
    margin-bottom: 1.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
}

.comment-form textarea {
    border-radius: 28px;
}

.comment-form button {
    background: #1e3a5c;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.comment-form button:hover {
    background: #11314f;
}

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

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2edf6;
    transition: transform 0.15s, box-shadow 0.15s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 20, 30, 0.05);
}

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

.related-card .card-content {
    padding: 1rem 1.2rem 1.3rem;
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.related-card .meta {
    font-size: 0.8rem;
}

/* ===== Author Page ===== */
.author-header {
    background: #ffffff;
    border-radius: 32px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 8px 24px rgba(0, 20, 30, 0.03);
    border: 1px solid #eaf1f8;
}

.author-header-inner {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.author-avatar-large {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.author-info {
    flex: 1;
}

.author-info h1 {
    font-size: 2.8rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: #0f1e2e;
    line-height: 1.2;
}

.author-tagline {
    font-size: 1.2rem;
    color: #1e4973;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.author-bio-short {
    font-size: 1.05rem;
    color: #2e445a;
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ecf3fa;
    color: #1d3a5c;
    text-decoration: none;
    font-size: 1.4rem;
    transition: background 0.15s, transform 0.15s;
}

.author-social a:hover {
    background: #d0e2f2;
    transform: translateY(-2px);
}

/* author detailed */
.author-detailed {
    background: white;
    border-radius: 32px;
    padding: 2.8rem;
    margin: 2rem 0 3rem;
    border: 1px solid #eaf1f8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.01);
}

.author-detailed h2 {
    font-size: 1.8rem;
    font-weight: 380;
    margin: 2rem 0 1.2rem;
    color: #1f2b35;
}

.author-detailed h2:first-of-type {
    margin-top: 0;
}

.author-detailed p {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d4053;
    margin-bottom: 1.5rem;
}

.author-detailed ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.author-detailed li {
    background: #f5faff;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    color: #1e3f62;
    font-weight: 450;
    border: 1px solid #daeaf5;
}

/* latest articles by author */
.author-posts {
    margin: 4rem 0;
}

.author-posts h3 {
    font-size: 1.6rem;
    font-weight: 380;
    margin-bottom: 2rem;
    border-left: 5px solid #4a6fa5;
    padding-left: 1.2rem;
}

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

.post-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2edf6;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 20, 30, 0.08);
}

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

.post-card .card-content {
    padding: 1.2rem 1.5rem 1.8rem;
}

.post-card h4 {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.post-card h4 a {
    text-decoration: none;
    color: #111f2c;
}

.post-card h4 a:hover {
    color: #1e4973;
}

.post-card .meta {
    font-size: 0.85rem;
    color: #6f8ba0;
}

/* ===== Footer ===== */
.site-footer {
    background: #142433;
    color: #b6c8d9;
    padding: 1rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-col .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: white;
    font-weight: 450;
    margin-bottom: 1rem;
}

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

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

.footer-col a {
    color: #b6c8d9;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
}

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

.footer-bottom a {
    color: #b6c8d9;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c3e50;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 30px;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: background 0.2s;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #1d3343;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .article-meta {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .story-card.horizontal {
        display: block;
    }

    .story-card.horizontal .card-img {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .story-card.horizontal .card-content {
        padding: 1rem;
    }

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

    .category-layout,
    .post-layout {
        grid-template-columns: 100%;
        gap: 2rem;
    }

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

    .menu-toggle {
        display: block;
    }

    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem 0;
        box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.show {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .author-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .author-info h1 {
        font-size: 2.2rem;
    }

    .author-detailed {
        padding: 2rem;
    }
}

@media (max-width: 600px) {

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

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

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

    .author-header {
        padding: 2rem 1.5rem;
    }

    .author-info h1 {
        font-size: 1.8rem;
    }

    .author-detailed {
        padding: 1.8rem;
    }

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

    .breadcrumb ol {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .author-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .comment {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }
}

/* Ensure icons/text are crisp (emoji) */
.search-toggle,
.menu-toggle,
.back-to-top,
.share-btn,
.author-social a {
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}