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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

ul,
li {
    list-style: none;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

.logo span {
    color: #1e3a8a;
}

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

.nav-menu li a {
    font-weight: 500;
    color: #1e293b;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    border-bottom-color: #1e3a8a;
    color: #1e3a8a;
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #1e293b;
    transition: all 0.3s;
}

/* Mobile Menu */


/* ============================================
   Top Announcement Bar
   ============================================ */
.top-announcement {
    background-color: #f1f5f9;
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.top-announcement a {
    color: #1e3a8a;
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    margin-top: 4rem;
    padding: 1.5rem 0;
}

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

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-col ul li a {
    color: #cbd5e1;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

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

.logo-footer span {
    color: #3b82f6;
}

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

/* ============================================
   Common Components (Cards, Buttons, etc.)
   ============================================ */
.tag {
    display: inline-block;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.btn-read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e3a8a;
    text-decoration: none;
}

.btn-read-more:hover {
    text-decoration: underline;
}

/* ============================================
   Home Page Specific
   ============================================ */
.categories-section {
    margin: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

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

.section-line {
    display: block;
    width: 60px;
    height: 3px;
    background: #1e3a8a;
    margin: 0.5rem auto 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.category-block {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #e9eef3;
}

.cat-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.2rem;
}

.view-all {
    font-size: 0.8rem;
    color: #1e3a8a;
}

.cat-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-small {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.card-small .card-img {
    flex: 0 0 240px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.5rem;
}

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

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

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

.card-small h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Special Report */
.special-report {
    margin: 3rem 0;
}

.feature-card {
    display: flex;
    flex-wrap: wrap;
    /* gap: 2rem; */
    margin-bottom: 25px;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e9eef3;
}

.feature-img {
    flex: 0 0 25%;
    aspect-ratio: 4 / 3;
}

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

.feature-content {
    flex: 1 1 45%;
    padding: 1.5rem;
}

.feature-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    margin: 1rem 0;
}

/* Topics Grid */
.topics-section {
    margin: 3rem 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.topic-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9eef3;
}

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

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

.topic-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* ============================================
   Category Page Specific
   ============================================ */
.category-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.main-content {
    flex: 1 1 68%;
    min-width: 0;
}

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

.breadcrumb {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

.breadcrumb a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumb [aria-current="page"] {
    color: #2d3748;
    font-weight: 600;
}

/* List cards */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #edf2f7;
    padding: 1rem;
}

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

.list-card-img {
    flex: 0 0 260px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.75rem;
}

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

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

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

.list-card .tag {
    display: inline-block;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.list-card h3 {
    font-size: 1.35rem;
    margin: 0 0 0.6rem 0;
    line-height: 1.3;
}

.list-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.list-card h3 a:hover {
    color: #1e3a8a;
}

.list-card p {
    color: #334155;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .list-card {
        flex-direction: column;
    }

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

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
}

.pagination .active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
    pointer-events: none;
}

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

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

.sidebar-widget h4 {
    font-size: 1.2rem;
    font-weight: 700;
    border-left: 4px solid #1e3a8a;
    padding-left: 0.8rem;
    margin-bottom: 1.2rem;
    color: #0f172a;
}

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

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

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

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

.trending-list,
.latest-list,
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-list li,
.latest-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.75rem;
}

.trending-list li:last-child,
.latest-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.trending-list a:hover,
.latest-list a:hover {
    color: #1e3a8a;
}

.trending-list .post-meta,
.latest-list .post-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.cat-list li {
    margin-bottom: 0.7rem;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #334155;
    transition: color 0.2s;
}

.cat-list a:hover {
    color: #1e3a8a;
}

.cat-list span.count {
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.7rem;
}

/* ============================================
   Article Page Specific
   ============================================ */
.article-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.main-article {
    flex: 0 0 68%;
    min-width: 0;
}

.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.8rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-header h1 {
    margin: 0.5rem 0 0.75rem;
}

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

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid #e9eef3;
    border-bottom: 1px solid #e9eef3;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #475569;
}

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

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

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

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

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

.article-content h2 {
    font-size: 1.6rem;
    margin: 1.8rem 0 1rem;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-content blockquote {
    border-left: 4px solid #1e3a8a;
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

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

.tag-link {
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.2s;
}

.tag-link:hover {
    background: #e2e8f0;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.85rem;
    transition: background 0.2s;
    cursor: pointer;
}

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

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

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

.author-bio-info h4 {
    margin: 0 0 0.5rem;
}

.comments-section {
    margin: 2rem 0;
    border-top: 1px solid #e9eef3;
    padding-top: 2rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    background-size: cover;
}

.comment-content {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 1rem;
    flex: 1;
}

.comment-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.7rem;
    color: #64748b;
}

.comment-text {
    margin-top: 0.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.comment-form button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

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

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

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

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

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

.related-card .tag {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
}

.related-card h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

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

.related-card h4 a:hover {
    color: #1e3a8a;
}

/* ============================================
   Author Page Specific
   ============================================ */
.author-hero {
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #e9eef3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.author-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.author-avatar-large {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eef2ff;
}

.author-title {
    flex: 1;
}

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

.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.social-link:hover {
    background: #e2e8f0;
}

.author-bio-full {
    margin-top: 2rem;
    border-top: 1px solid #e9eef3;
    padding-top: 2rem;
}

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

.author-stats {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1rem 0;
}

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

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

.stat-label {
    font-size: 0.8rem;
    color: #475569;
}

.author-articles {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

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

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

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

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

.article-card-content {
    padding: 1.2rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.article-card h3 a {
    text-decoration: none;
    color: #0f172a;
}

.article-card h3 a:hover {
    color: #1e3a8a;
}


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

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

    .article-layout {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .site-header {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

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

    .card-small,
    .feature-card {
        display: block;
    }

    .feature-img {
        aspect-ratio: 4 / 3;
    }

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

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

    .author-meta,
    .social-links {
        justify-content: center;
    }

    .author-stats {
        justify-content: center;
    }

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

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

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