﻿/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

ul,
li {
    list-style: none;
}

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

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

/* ===== HEADER (sticky + scroll effect) ===== */
.site-header {
    position: sticky;
    top: 0;
    background: #ffffffdd;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eaeef2;
    z-index: 100;
    padding: 12px 0;
    transition: background 0.2s, box-shadow 0.2s;
}

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

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

.logo a {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #0b1c2f;
}

.logo span {
    font-weight: 300;
    color: #5c6b7e;
}

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

.nav-list a {
    text-decoration: none;
    font-weight: 450;
    color: #2e3b4e;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

.nav-list a:hover,
.nav-list a.active {
    border-bottom-color: #b31b1b;
    color: #0a1c2c;
}

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1f2a3f;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: #f3f7fc;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #dee7ef;
}

.announcement-bar p {
    text-align: center;
}

.announcement-bar a {
    color: #1167a8;
    font-weight: 500;
    text-decoration: underline;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2rem;
    font-weight: 450;
    margin: 2.5rem 0 1.8rem 0;
    letter-spacing: -0.01em;
    border-left: 6px solid #b31b1b;
    padding-left: 20px;
}

.section-title span {
    color: #b31b1b;
}

/* ===== CARDS (base) ===== */
.card-img {
    overflow: hidden;
    background-color: #eef2f5;
}

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

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

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

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

.card-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #b31b1b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

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

.card-content h3 a,
.card-content h4 a {
    text-decoration: none;
    color: #0b1c2f;
}

.card-content h3 a:hover {
    color: #b31b1b;
}

.card-excerpt {
    color: #3e4b5d;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-meta {
    font-size: 1rem;
    color: #6f7b8b;
}

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

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

/* ===== LATEST NEWS SECTION (homepage) ===== */
.latest-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.latest-news-grid .card-img {
    flex: 0 0 15%;
}

.latest-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-horizontal {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.small-img {
    width: 110px;
    flex-shrink: 0;
}

.card-feature .card-content {
    padding-top: 0;
}

/* ===== TOPICS CLOUD ===== */
.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 20px;
}

.topic-item {
    padding: 12px 20px;
    background: #f3f3f6;
    border-radius: 60px;
    text-decoration: none;
    color: #0b1c2f;
    font-weight: 480;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.topic-item:hover {
    background: #ffffff;
    border-color: #b31b1b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
}

.topic-item span {
    font-size: 0.8rem;
    background: #ffffffaa;
    padding: 3px 8px;
    border-radius: 40px;
    margin-left: 8px;
    color: #4d5a6b;
}

/* ===== FOOTER (4 columns) ===== */
.site-footer {
    background: #f8fafd;
    border-top: 1px solid #dce3ec;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

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

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #1a293b;
}

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

.footer-col li,
.footer-col p {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.footer-col a {
    text-decoration: none;
    color: #3e4f62;
    border-bottom: 1px dotted transparent;
}

.footer-col a:hover {
    border-bottom-color: #b31b1b;
    color: #b31b1b;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 450;
    margin-bottom: 0.8rem;
    color: #101d2f;
}

.social-links a {
    font-size: 1.6rem;
    margin-right: 12px;
    border: none;
}

.sub-footer {
    text-align: center;
    font-size: 0.9rem;
}

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

.sub-footer a {
    font-size: 0.9rem;
    color: inherit;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 30px;
    background: #1e2b39;
    color: white;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    display: none;
    /* shown by js */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
    z-index: 90;
}

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

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin: 20px 0 10px;
    font-size: 0.9rem;
    color: #6c7b8c;
}

.breadcrumb a {
    color: #1d3f5c;
    text-decoration: none;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #b3c1d0;
}

/* ===== CATEGORY PAGE (two‑column) ===== */
.category-two-col {
    display: flex;
    gap: 3rem;
    margin: 2rem 0 4rem;
}

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

.category-headline {
    margin-bottom: 20px;
}

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

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

/* filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 30px 0 30px;
    padding: 15px 0;
    border-top: 1px solid #eaeef2;
    border-bottom: 1px solid #eaeef2;
}

.static-select {
    padding: 8px 30px 8px 12px;
    background: #fff;
    border: 1px solid #bcc9d6;
    border-radius: 30px;
    font-size: 0.95rem;
    appearance: none;
}

.tag-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-filter {
    padding: 6px 16px;
    background: #eef2f6;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: default;
    color: #2c3a4a;
}

.tag-filter.active {
    background: #1e2f40;
    color: white;
}

/* pagination */
.pagination {
    margin: 40px 0 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.page {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #d3dee9;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2e41;
}

.page.active {
    background: #b31b1b;
    border-color: #b31b1b;
    color: white;
}

.page.prev,
.page.next {
    font-weight: 500;
}

/* sidebar modules (shared) */
.sidebar-module {
    background: #f8fafd;
    border-radius: 24px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    border: 1px solid #edf2f7;
}

.sidebar-module h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #b31b1b;
    display: inline-block;
}

.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: 500;
    color: #0b1c2f;
}

.author-bio {
    color: #3e4f62;
    font-size: 0.95rem;
    margin: 0.8rem 0 1rem;
    line-height: 1.5;
}

.link-list {
    list-style: none;
}

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

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

.link-list a {
    text-decoration: none;
    color: #1a2c3f;
    font-weight: 450;
    transition: color 0.1s;
    display: block;
    line-height: 1.4;
}

.link-list a:hover {
    color: #b31b1b;
}

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

.category-list {
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e2eaf2;
}

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

.category-list a {
    text-decoration: none;
    color: #1f3a57;
    font-weight: 450;
}

.category-list span {
    background: #e6edf5;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #2b4c6f;
}

/* ===== ARTICLE DETAIL PAGE ===== */
.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 450;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0b1c2f;
    margin: 0 0 0.75rem 0;
}

.article-subhead {
    font-size: 1.3rem;
    font-weight: 350;
    color: #3e4f62;
    margin-bottom: 1rem;
    border-left: 3px solid #b31b1b;
    padding-left: 1.2rem;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2rem;
    padding: 1.2rem 0;
    border-top: 1px solid #eaeef2;
    border-bottom: 1px solid #eaeef2;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #4a5b6e;
}

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

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

.author-mini .name {
    font-weight: 550;
    color: #0b1c2f;
}

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

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

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

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 450;
    margin: 2.2rem 0 1rem;
    color: #0b1c2f;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 550;
    margin: 1.8rem 0 0.8rem;
    color: #1f3a57;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f6fafd;
    border-left: 5px solid #b31b1b;
    font-style: italic;
    color: #2b3f54;
    border-radius: 0 16px 16px 0;
}

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

.article-tag {
    background: #f0f4fa;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a3850;
    text-decoration: none;
    transition: background 0.15s;
}

.article-tag:hover {
    background: #b31b1b;
    color: white;
}

.author-card-large {
    display: flex;
    gap: 1.8rem;
    background: #f8fafd;
    border-radius: 24px;
    padding: 2rem;
    margin: 2.5rem 0 2rem;
    border: 1px solid #edf2f7;
}

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

.author-card-large h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.author-card-large .bio {
    color: #3e4f62;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.share-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0 2.5rem;
    flex-wrap: wrap;
}

.share-btn {
    background: #eef2f5;
    border: none;
    border-radius: 40px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

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

.comment-list .comment {
    padding: 1.2rem 0;
    border-bottom: 1px dashed #cbd5e2;
}

.comment strong {
    color: #0b1c2f;
}

.comment-date {
    float: right;
    color: #7d8b9f;
    font-size: 0.85rem;
}

.comment-form-static {
    margin: 2rem 0 0;
}

.comment-form-static textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bcc9d6;
    border-radius: 16px;
    margin: 0 0 12px;
    font-family: inherit;
    resize: vertical;
}

.static-btn {
    background: #1a2c3f;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 500;
    cursor: default;
}

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

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

.related-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0.5rem 0 0.2rem;
}

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

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

.related-card .meta {
    font-size: 0.8rem;
    color: #6f7b8b;
}

/* ===== AUTHOR PROFILE PAGE ===== */
.author-profile {
    display: flex;
    gap: 3rem;
    margin: 2rem 0 3rem;
    align-items: flex-start;
    background: #fafcff;
    padding: 2.5rem;
    border-radius: 32px;
    border: 1px solid #edf2f7;
}

.author-avatar-large {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 12px 24px -8px rgba(0, 20, 40, 0.15);
}

.author-details {
    flex: 1;
}

.author-details h1 {
    font-size: 2.8rem;
    font-weight: 450;
    margin: 0 0 0.3rem 0;
    color: #0b1c2f;
    line-height: 1.2;
}

.author-title {
    font-size: 1.2rem;
    font-weight: 450;
    color: #b31b1b;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.author-social {
    margin: 1.2rem 0 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

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

.author-bio-full {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.7;
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid #dde5ef;
}

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

.author-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.5rem 0 0.5rem;
}

.author-tag {
    background: #e6edf5;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #1f3a57;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 960px) {
    .category-two-col {
        flex-direction: column;
    }

    .category-main,
    .category-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .grid-3,
    .grid-2,
    .latest-news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-header {
        position: relative;
    }

    .hamburger {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid #ddd;
        padding: 20px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
    }

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

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

    .footer-grid {
        gap: 2rem;
    }

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

    .latest-news-grid .card-img {
        flex: auto;
    }

    .small-img {
        width: 90px;
    }

    .topic-item {
        padding: 10px 16px;
    }

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

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

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

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

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

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

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

@media (max-width: 600px) {
    .article-meta-bar {
        gap: 0.5rem;
    }

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

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

    .meta-item,
    .author-mini .name {
        font-size: 0.75rem;
    }

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

    .author-title {
        font-size: 1rem;
    }

    .card-grid-2 {
        grid-template-columns: 1fr;
    }

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