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

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ============================================
   Header & Navigation (fixed, with scroll effect)
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background-color: 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;
    height: 70px;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e7e6c;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background-color: #1a2c3e;
    transition: 0.2s;
}

/* Mobile menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 54px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

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

    .main-nav .nav-menu {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* ============================================
   Top Banner (announcement bar)
   ============================================ */
.top-banner {
    background: #f0f4f9;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 70px;
}

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

/* ============================================
   Section Headers
   ============================================ */
.section {
    margin: 4rem 0;
}

.section-header {
    text-align: center;
    margin: 2.5rem 0;
}

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

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.section-tag {
    font-size: 0.85rem;
    color: #6c7a8e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Card Grids & Card Styles (Homepage)
   ============================================ */
.cards-grid {
    display: grid;
    gap: 2rem;
}

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

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

.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eef2f5;
}

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

.card-img {
    overflow: hidden;
}

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

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

.card-category {
    display: inline-block;
    background: #e0f2ef;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #1e7e6c;
    margin-bottom: 0.8rem;
}

.card-content {
    padding: 1.2rem;
}

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

.card-excerpt {
    color: #4a5b6e;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.75rem;
    color: #8a99aa;
    display: flex;
    gap: 1rem;
}

/* Feature card (wide) */
.card-feature {
    display: flex;
    flex-direction: column;
}

.card-img-wide {
    height: 220px;
}

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

/* Special Reports */
.special-reports {
    background: #fafcfc;
    padding: 2rem 0;
    border-radius: 40px;
}

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

.special-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f5;
}

.special-img {
    height: 250px;
}

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

.special-content {
    padding: 1.5rem;
}

.badge {
    background: #1e7e6c;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: #1e7e6c;
}

/* Hot Topics */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #eef2f5;
    transition: transform 0.2s;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.topic-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.topic-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.topic-card p {
    font-size: 0.8rem;
    color: #6c7a8e;
    margin-bottom: 0.8rem;
}

.topic-count {
    font-size: 0.7rem;
    font-weight: 500;
    color: #1e7e6c;
    background: #e0f2ef;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
}

/* ============================================
   List Page & Sidebar Styles (reused in detail)
   ============================================ */
.list-layout {
    display: flex;
    gap: 2.5rem;
    margin: 2rem 0;
}

.main-content {
    flex: 0 0 70%;
    max-width: 70%;
}

.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

/* Breadcrumb */
.breadcrumb-area {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f5;
    margin-top: 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

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

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #8c9aa8;
}

.breadcrumb a {
    color: #2c3e50;
}

.breadcrumb a:hover {
    color: #1e7e6c;
}

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

/* List cards */
.list-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #edf2f7;
}

.list-card-img {
    flex: 0 0 20%;
    border-radius: 12px;
    overflow: hidden;
}

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

.list-card-content {
    flex: 1;
}

.list-card-category {
    display: inline-block;
    background: #e0f2ef;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: #1e7e6c;
    margin-bottom: 0.5rem;
}

.list-card h3 {
    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: #4a5b6e;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card-meta {
    font-size: 0.75rem;
    color: #8a99aa;
    display: flex;
    gap: 1rem;
}

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

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 40px;
    color: #2c3e50;
    font-weight: 500;
}

.page-link.active {
    background: #1e7e6c;
    border-color: #1e7e6c;
    color: white;
}

.page-link:hover:not(.active) {
    background: #f8f9fa;
    border-color: #cbd5e0;
}

/* Sidebar widgets */
.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eef2f5;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e7e6c;
    display: inline-block;
}

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

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

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

.sidebar-list a {
    font-weight: 500;
    color: #1f2e3a;
}

.sidebar-list a:hover {
    color: #1e7e6c;
}

.sidebar-list .post-meta {
    font-size: 0.7rem;
    color: #8a99aa;
    display: block;
    margin-top: 0.25rem;
}

.cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-count {
    background: #eef2fa;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
}

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

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid #1e7e6c;
}

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

.author-bio {
    font-size: 0.85rem;
    color: #4f5e6f;
}

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

.article-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.article-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #4b5e77;
    margin-bottom: 1rem;
    border-left: 3px solid #1e7e6c;
    padding-left: 1rem;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #5c6f87;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

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

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

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

.article-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.article-body img {
    max-width: 100%;
    border-radius: 16px;
    margin: 1.5rem 0;
}

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

.tag {
    background: #eef2fa;
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2c3e50;
}

.tag:hover {
    background: #e0e7f0;
}

.author-bio-card {
    background: #f8fafd;
    border-radius: 24px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    border: 1px solid #eef2f5;
}

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

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

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

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

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

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e7e6c;
    display: inline-block;
}

.comment-list {
    margin-bottom: 2rem;
}

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

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

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 700;
    margin-right: 0.5rem;
}

.comment-date {
    font-size: 0.7rem;
    color: #8a99aa;
}

.comment-text {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.comment-form-static {
    background: #f8fafd;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 1rem;
}

.comment-form-static .form-group {
    margin-bottom: 1rem;
}

.comment-form-static input,
.comment-form-static textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #dce5ec;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.85rem;
}

.comment-form-static button {
    background: #1e7e6c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
}

.comment-form-static button:hover {
    background: #0f5e50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eef2f5;
}

.related-img {
    overflow: hidden;
}

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

.related-content {
    padding: 1rem;
}

.related-content h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.related-meta {
    font-size: 0.7rem;
    color: #8a99aa;
}

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

.author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e7e6c;
    margin: 0 auto 1.5rem;
}

.author-name-large {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.author-bio-full {
    font-size: 1rem;
    line-height: 1.7;
    color: #2c3e50;
    max-width: 700px;
    margin: 1rem auto;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e7e6c;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c7a8e;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f4f9;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.social-link:hover {
    background: #1e7e6c;
    color: white;
    transform: translateY(-2px);
}

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



/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #f8fafc;
    margin-top: 4rem;
    padding: 1rem 0;
    border-top: 1px solid #eef2f5;
}

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

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

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

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

.footer-col a {
    color: #4b5e6f;
    font-size: 0.85rem;
}

.footer-col a:hover {
    color: #1e7e6c;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e7e6c;
    margin-bottom: 0.5rem;
}

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

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

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

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

.back-to-top:hover {
    background: #0f5e50;
    transform: translateY(-2px);
}

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

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

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

@media (max-width: 768px) {
    .top-header{
        margin-top: 0;
    }
    .site-header {
        position: relative;
    }

    .nav-container {
        height: 54px;
    }

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

    .list-layout {
        flex-direction: column;
    }

    .main-content,
    .sidebar {
        flex: 1;
        max-width: 100%;
    }

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

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

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

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

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

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

    .author-name-large {
        font-size: 1.8rem;
    }

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

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

    .container {
        padding: 0 1.2rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.4rem;
    }

    .topic-card {
        padding: 1rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}