﻿* {
    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;
}

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

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

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

/* ===== Header & Navigation (with scroll effect) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom-color: #eef2ff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}

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

.logo span {
    color: #2563eb;
    background: #eef2ff;
    padding: 0 4px;
    border-radius: 6px;
}

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

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

.nav-menu a:hover {
    color: #2563eb;
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: #1e1e2f;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 44px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
        gap: 1rem;
        z-index: 99;
    }

    .main-nav.active .nav-menu {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .header-container {
        padding: 0.8rem 20px;
    }
}

/* ===== Breadcrumbs (list page style) ===== */
.breadcrumbs-ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 24px 0 16px;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 60px;
    font-size: 0.85rem;
}

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

.breadcrumbs-ol li:not(:last-child):after {
    content: "›";
    margin: 0 8px;
    color: #94a3b8;
}

.breadcrumbs-ol a {
    text-decoration: none;
    color: #2563eb;
}

.breadcrumbs-ol a:hover {
    text-decoration: underline;
}

.breadcrumbs-ol .current {
    color: #334155;
    font-weight: 500;
}

/* ===== Section Headers ===== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.section-header h1,
.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.section-line {
    height: 3px;
    width: 70px;
    background: #2563eb;
    border-radius: 4px;
}

/* ===== Cards & Grids ===== */
.card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f2f5;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 36px -12px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ff;
}

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.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: 20px 20px 24px;
}

.card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #5b6e8c;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

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

.card-content h3 a {
    text-decoration: none;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content p,
.excerpt {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more,
.read-link {
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
}

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

/* ===== Category Page Two-Column Layout ===== */
.category-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 48px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.main-content {
    flex: 2.3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 260px;
}

/* ===== Post Page (Article) ===== */
.post-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 48px;
    margin: 32px 0 64px;
    flex-wrap: wrap;
}

.post-main {
    flex: 2.3;
    min-width: 0;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.article-subhead {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 20px;
    font-weight: 400;
    border-left: 3px solid #2563eb;
    padding-left: 16px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin: 20px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2ff;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
}

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

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

.featured-img {
    margin: 24px 0 32px;
    border-radius: 28px;
    overflow: hidden;
}

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

.article-body {
    font-size: 0.985rem;
    line-height: 1.7;
    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.6rem;
    margin: 2rem 0 1rem;
    color: #0f172a;
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
}

.article-body blockquote {
    border-left: 4px solid #2563eb;
    background: #f1f5f9;
    padding: 20px 28px;
    margin: 28px 0;
    font-style: italic;
    border-radius: 24px;
    color: #1e293b;
}

.post-tags {
    margin: 32px 0 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.post-tags a {
    background: #eef2ff;
    padding: 6px 16px;
    border-radius: 40px;
    text-decoration: none;
    color: #1e40af;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.2s;
}

.post-tags a:hover {
    background: #2563eb;
    color: white;
}

.author-bio-box {
    background: #fafcff;
    border-radius: 28px;
    padding: 28px;
    margin: 32px 0;
    display: flex;
    gap: 24px;
    align-items: center;
    border: 1px solid #edf2f7;
}

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

.author-bio-info{
    flex: 1;
}

.share-section {
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
}

.share-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.comments-area {
    margin: 48px 0 32px;
    border-top: 1px solid #eef2ff;
    padding-top: 32px;
}

.comment-list {
    margin: 24px 0;
}

.comment {
    background: #f9fafb;
    padding: 18px;
    border-radius: 24px;
    margin-bottom: 20px;
}

.comment strong {
    font-size: 0.95rem;
}

.comment span {
    font-size: 0.7rem;
    color: #6c757d;
    margin-left: 12px;
}

.comment p {
    margin-top: 8px;
    font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 32px;
    font-family: inherit;
    background: white;
}

.btn-submit {
    background: #0f172a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.btn-submit:hover {
    background: #2563eb;
}

.related-section {
    margin: 48px 0 24px;
}

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

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    transition: all 0.3s;
}

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

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

.related-card-content {
    padding: 16px;
}

.related-card-content h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-card-content h4 a {
    text-decoration: none;
    color: #0f172a;
}

.related-card-content p {
    font-size: 0.8rem;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Sidebar Widgets ===== */
.sidebar-widget {
    background: #fafcff;
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #edf2f7;
    transition: box-shadow 0.2s;
}

.sidebar-widget:hover {
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #2563eb;
    border-radius: 4px;
}

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

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin:0 auto 16px;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.author-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-bio {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

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

.sidebar-list li {
    margin-bottom: 14px;
    border-bottom: 1px solid #eef2ff;
    padding-bottom: 12px;
}

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

.sidebar-list a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
}

.sidebar-list a:hover {
    color: #2563eb;
}

.sidebar-list .post-meta-sm {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 4px;
    display: block;
}

.cat-list span {
    float: right;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #2563eb;
}

/* ===== Home Page Specific Blocks ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.cat-block {
    background: #fafcff;
    border-radius: 24px;
    padding: 20px;
    transition: all 0.2s;
}

.cat-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.3rem;
}

.view-all {
    font-size: 0.85rem;
    font-weight: normal;
    color: #2563eb;
    text-decoration: none;
}

.cat-cards {
    display: grid;

    gap: 24px;
}

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

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

.card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0 10px;
}

.card-horizontal .card-img {
    width: 35%;
}

.card-horizontal .card-content {
    width: 65%;
}

.card-overlay {
    position: relative;
}

.card-overlay .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, black, transparent);
    padding: 20px;
    color: white;
}

.card-overlay .overlay-content h3 a {
    color: white;
}

.white-meta {
    color: #ddd;
}

.card-minimal {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 16px;
}

.card-icon-left {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 20px;
}

.card-icon {
    font-size: 2rem;
}

.report-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.report-main {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

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

.report-content {
    padding: 28px;
}

.report-content h2 a {
    font-size: 1.8rem;
    text-decoration: none;
    color: #0f172a;
}

.read-more-btn {
    display: inline-block;
    margin-top: 16px;
    background: #0f172a;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.hot-topics {
    background: #f9f9ff;
}

.topic-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 48px;
}

.static-select {
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    background: white;
    font-family: inherit;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.topic-card {
    background: white;
    padding: 24px;
    border-radius: 28px;
    position: relative;
    transition: all 0.2s;
}

.topic-rank {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb20;
    position: absolute;
    top: 16px;
    right: 20px;
}

.topic-card h3 a {
    font-size: 1.25rem;
    text-decoration: none;
    color: #0f172a;
}

.topic-meta {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #5b6e8c;
}

.static-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.static-pagination a,
.pagination a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 30px;
    background: white;
    color: #1e293b;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.static-pagination a.active,
.pagination .active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-wrap {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .prev-next {
    font-weight: 600;
}

/* ===== Author Page ===== */
.author-profile {
    margin: 32px 0 48px;
}

.profile-card {
    background: #fafcff;
    border-radius: 40px;
    padding: 40px;
    text-align: center;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 48px;
}

.author-avatar-lg {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    margin:0 auto 24px;
}

.author-name-lg {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.author-title {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 16px;
}

.author-bio-expanded {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: 0.2s;
}

.social-link:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.author-detailed {
    background: #ffffff;
    border-radius: 32px;
    padding: 32px 0;
    margin-bottom: 48px;
    border-top: 1px solid #eef2ff;
    border-bottom: 1px solid #eef2ff;
}

.author-detailed h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.author-detailed h3 {
    font-size: 1.3rem;
    margin: 28px 0 12px;
    font-weight: 600;
}

/* ===== Top Banner ===== */
.top-banner {
    background: #f1f5f9;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

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

/* ===== Footer ===== */
.site-footer {
    background: #0a0c14;
    color: #cbd5e1;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 32px;
}

.footer-brand .logo a {
    color: white;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
    margin-top: 12px;
}

.footer-links a,
.footer-services a,
.footer-contact a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 2;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

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

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

.back-to-top:hover {
    transform: translateY(-3px);
    background: #1e40af;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 100%;
    }

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

    .card-horizontal .card-img,
    .card-horizontal .card-content {
        width: 100%;
    }

    .site-header {
        position: relative;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 40px 0;
    }

    .category-layout,
    .post-layout {
        flex-direction: column;
        grid-template-columns: 100%;
        gap: 32px;
    }

    .sidebar {
        order: 2;
    }

    .main-content,
    .post-main {
        order: 1;
    }

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

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

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

    .post-meta {
        gap: 0.5rem;
    }

    .meta-item {
        font-size: 0.75rem;
    }

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

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

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

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

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

    .profile-card {
        padding: 24px;
    }

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

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

    .author-social {
        flex-wrap: wrap;
    }

    .breadcrumbs-ol {
        font-size: 0.75rem;
        padding: 10px 16px;
    }
}