﻿/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #111;
    background: #fff;
}

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

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

ul,
li {
    list-style: none;
}

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

.ratio-43 {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

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

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    color: #0b1c33;
}

.logo span {
    font-weight: 300;
    color: #526e8a;
}

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

.primary-nav a {
    text-decoration: none;
    color: #2c3e4f;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.primary-nav a:hover,
.primary-nav a.active {
    border-bottom-color: #0b5e8a;
    color: #0b1c33;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1d3557;
}

/* ===== Announcement Bar ===== */
.breaking-announcement {
    background: #f9f5e8;
    padding: 12px 0;
    border-bottom: 1px solid #ffe9c7;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge-live {
    background: #c5283d;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.announcement-text {
    font-weight: 500;
    color: #4b2e1a;
}

.announcement-link {
    color: #b13e3e;
    font-weight: 600;
    text-decoration: none;
}

/* ===== Section Headings ===== */
.section-heading {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    border-left: 6px solid #2b6f9e;
    padding-left: 20px;
    margin: 40px 0 32px;
}

/* ===== Cards & Grids ===== */
.grid-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}

.grid-side-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-horizontal {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.card-horizontal .card-img {
    width: 120px;
    flex-shrink: 0;
}

.card-featured {
    background: #fafcff;
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0, 20, 30, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 16px 6px 16px 0;
}

.card-featured .card-content {
    padding: 20px;
}

.category-tag {
    background: #e5edf3;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    color: #1f5068;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

.card-title a:hover {
    color: #1f4e7a;
}

.card-excerpt {
    color: #3e4d5e;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-info {
    font-size: 0.85rem;
    color: #5f6c7a;
    margin-top: 12px;
}

/* Category Grid */
.grid-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 48px;
}

.category-item {
    background: #f3f7fb;
    padding: 24px 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: 0.15s;
    border: 1px solid transparent;
}

.category-item:hover {
    background: #fff;
    border-color: #cedce8;
    transform: scale(1.02);
}

.cat-icon {
    font-size: 2.2rem;
    display: block;
}

.cat-name {
    font-weight: 600;
    margin: 12px 0 4px;
    display: block;
}

.cat-count {
    font-size: 0.8rem;
    color: #57758c;
}

/* 6-card grid */
.grid-cards-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.card-vertical {
    background: white;
    border-bottom: 1px solid #eef3f7;
    padding-bottom: 20px;
    transition: all 0.2s;
}

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

.card-vertical .card-img {
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
}

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

/* Special reports */
.grid-special {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.card-wide {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8fafc;
    padding: 20px;
}

.card-wide .card-img {
    width: 100%;
        flex: 0 0 40%;
    border-radius: 10px;
}
.card-wide .card-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.label-special {
    background: #b13e3e;
    color: white;
    padding: 3px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Tags & Filter */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.tag {
    background: #eaf0f6;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: #1f3a4b;
    font-weight: 500;
    transition: 0.15s;
}

.tag:hover {
    background: #1f3a4b;
    color: white;
}

.static-filter {
    margin: 30px 0;
}

.filter-select {
    padding: 8px 18px;
    border: 1px solid #bdcbd6;
    border-radius: 40px;
    background: white;
    font-size: 1rem;
    min-width: 200px;
}

/* ===== Breadcrumb ===== */
.breadcrumb-wrap {
    background: #f3f7fc;
    padding: 16px 0;
}

.breadcrumb {
    display: flex;
    list-style: none;
    gap: 8px;
}

.breadcrumb li+li::before {
    content: "›";
    margin-right: 8px;
    color: #8199ab;
}

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

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

.breadcrumb .active {
    color: #6f7e8c;
}

/* ===== Main Content Layout (2 columns) ===== */
.main-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
    margin: 40px auto;
}

/* ===== Pagination ===== */
.pagination ul {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
    margin: 50px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #d0dde5;
    border-radius: 30px;
    text-decoration: none;
    color: #1d3f57;
}

.pagination a.active {
    background: #1d3f57;
    color: white;
    border-color: #1d3f57;
}

.pagination a:hover {
    background: #e4ecf3;
}

/* ===== Sidebar ===== */
.sidebar .author-card {
    background: #f3f8fc;
    padding: 24px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 32px;
}

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

.author-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.author-bio {
    color: #2a4b6e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-social a {
    text-decoration: none;
    color: #2c577c;
    font-size: 1.2rem;
}

.sidebar-block {
    margin-bottom: 32px;
}

.sidebar-block h4 {
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 2px solid #d2e2f0;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.rec-list,
.update-list,
.cat-list {
    list-style: none;
}

.rec-list li,
.update-list li,
.cat-list li {
    margin-bottom: 10px;
}

.rec-list a,
.update-list a,
.cat-list a {
    text-decoration: none;
    color: #1e3f5c;
    display: block;
    padding: 4px 0;
    border-bottom: 1px dotted #cbdae6;
}

.rec-list a:hover,
.update-list a:hover,
.cat-list a:hover {
    color: #0c263a;
    border-bottom-color: #1e3f5c;
}

/* ===== Article Detail Page Styles ===== */
.article-subhead {
    font-size: 1.25rem;
    font-weight: 350;
    color: #2d4a68;
    margin: 0 0 1.2rem 0;
    line-height: 1.5;
    border-left: 3px solid #9bb7d4;
    padding-left: 1.2rem;
}

.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin: 1.5rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e6edf3;
    color: #3e5670;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.article-body {
    font-size: 0.985rem;

    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.75;
    margin: 2rem 0;
}

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

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

.article-categories {
    margin: 2rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-link {
    background: #ecf3f8;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d4e6b;
    text-decoration: none;
    transition: 0.15s;
}

.category-link:hover {
    background: #1d4e6b;
    color: white;
}

.author-bio-card {
    background: #f6fafd;
    padding: 1.8rem 2rem;
    margin: 2.5rem 0 2rem;
    display: flex;
    gap: 1.8rem;
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 30, 50, 0.04);
}

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

.author-bio-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.author-bio-info p {
    color: #2b4055;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.share-block {
    margin: 1.8rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    background: #eaf1f9;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    color: #1e3d58;
    cursor: pointer;
    transition: 0.15s;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: #1e3d58;
    color: white;
}

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

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

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #cbdbe8;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #0c2c44;
}

.comment-date {
    font-size: 0.8rem;
    color: #6a7f94;
    margin-left: 10px;
}

.comment-text {
    margin-top: 6px;
    color: #1f3d54;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.related-card {
    border-bottom: 1px solid #e2eaf1;
    padding-bottom: 1rem;
}

.related-card .card-img {
    margin-bottom: 0.8rem;
}

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

.related-card .card-title {
    font-size: 1rem;
}

.related-card .meta-info {
    margin-top: 6px;
}

/* ===== Author Page Styles ===== */
.author-hero {
    max-width: 1000px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 0 1rem;
}

.author-hero .author-avatar-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.8rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.author-hero .author-avatar-large:hover {
    transform: scale(1.02);
}

.author-hero h1 {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #0a1c2f;
    margin-bottom: 0.5rem;
}

.author-hero .author-title {
    font-size: 1.2rem;
    color: #2e5572;
    font-weight: 350;
    border-bottom: 2px solid #d6e2ed;
    display: inline-block;
    padding-bottom: 0.4rem;
    margin-bottom: 1.5rem;
}

.author-hero .author-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #405e7a;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.author-hero .author-meta a {
    color: #1d4e7a;
    text-decoration: none;
    border-bottom: 1px dotted #98b8d4;
}

.author-hero .author-meta a:hover {
    color: #0a2a42;
}

.author-bio-full {
    background: #f6fbfe;
    padding: 2.5rem 3rem;
    border-radius: 36px;
    text-align: left;
    margin: 2rem 0 3.5rem;
    font-size: 1.085rem;
    line-height: 1.75;
    color: #1e3447;
    box-shadow: 0 8px 20px rgba(0, 40, 60, 0.05);
}

.author-bio-full p {
    margin-bottom: 1.5rem;
}

.author-bio-full p:last-child {
    margin-bottom: 0;
}

.author-stats {
    display: flex;
    justify-content: space-around;
    margin: 2.5rem 0;
    background: white;
    border-radius: 48px;
    padding: 1.8rem 1rem;
    border: 1px solid #e0ecf5;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 350;
    color: #1d4e6b;
}

.stat-label {
    color: #617e98;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-articles-heading {
    font-size: 2rem;
    font-weight: 400;
    border-left: 6px solid #2b6f9e;
    padding-left: 20px;
    margin: 4rem 0 2rem;
}

.grid-author-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 3rem;
}

.author-article-card {
    border-bottom: 1px solid #dbe6f0;
    padding-bottom: 1.5rem;
    transition: all 0.2s;
}

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

.author-article-card .card-img {
    margin-bottom: 1rem;
    overflow: hidden;
}

.author-article-card .card-img img {
    transition: transform 0.25s ease;
}

.author-article-card .card-title {
    font-size: 1.1rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.list-card {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e6ecf2;
    padding-bottom: 24px;
}

.list-card .card-img {
    flex: 0 0 40%;
}

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

.related-posts {
    margin: 3rem 0 1rem;
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #0f1a24;
    color: #b6c8d9;
    padding: 40px 0 40px;
    margin-top: 70px;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.footer-col li {
    margin-bottom: 12px;
}

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

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
}

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

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

.back-to-top:hover {
    background: #0b2b42;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .grid-categories {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

@media (max-width: 768px) {
    .article-title {
        font-size: 1.4rem;
    }

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

    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid #eee;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    }

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

    .primary-nav .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

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

    .grid-cards-6 {
        grid-template-columns: 1fr;
    }

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

    .main-layout {
        grid-template-columns: 100%;
    }

    .card-wide {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

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

    .author-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .author-bio-full {
        padding: 1.8rem;
    }

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

    .author-hero .author-avatar-large {
        width: 140px;
        height: 140px;
    }

    .comment-item {
        flex-direction: column;
    }

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

    h1 {
        font-size: 1.6rem;

    }
}