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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f9f9fc;
}

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

a:hover {
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

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

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ANNOUNCEMENT BAR ===== */
.top-announcement {
    background: #f0f3f7;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid #edf2f7;
}

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

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

.logo span {
    color: #2563eb;
}

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

.main-nav a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

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

/* ===== SECTIONS & COMMON ===== */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #eaeef2;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: #0a1929;
    letter-spacing: -0.02em;
    border-left: 5px solid #2563eb;
    padding-left: 20px;
}

.card-grid {
    display: grid;
    gap: 25px;
}

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

.cat-card {
    background: white;
    padding: 28px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f4f9;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 20, 40, 0.1);
}

.cat-emoji {
    font-size: 2.4rem;
    margin-bottom: 15px;
    display: block;
}

.cat-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cat-card p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.cat-count {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    background: #e8f0fe;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
}

.news-mixed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card-horizontal,
.post-card-vertical {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f4f9;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.post-card-horizontal {
    flex-direction: row;
    /* grid-column: span 2; */
}

.post-card-horizontal .card-img {
    width: 40%;
}

.post-card-horizontal .card-content {
    width: 60%;
    padding: 25px;
}

.post-card-vertical .card-img img,
.post-card-horizontal .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.card-content {
    padding: 20px;
}

.card-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    font-weight: 600;
}

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

.card-content h3 a {
    color: inherit;
}

.card-excerpt {
    color: #4a5568;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.9rem;
    color: #718096;
}

.author {
    font-weight: 500;
    margin-right: 15px;
}

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

.special-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    transition: 0.2s;
    padding-bottom: 20px;
}

.special-card:hover {
    transform: translateY(-5px);
}

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

.special-card .card-tag {
    display: block;
}

.special-card h3 {
    font-size: 1.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.special-card h3 a {
    color: inherit;
}

.special-card p {
    margin: 0 20px 10px;
}

.hot-topics {
    background: #ffffff;
}

.filter-bar-static {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.custom-dropdown {
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 0.95rem;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: default;
}

.custom-dropdown .arrow {
    font-size: 0.8rem;
    color: #64748b;
}

.hot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hot-tag {
    background: #f1f5f9;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.95rem;
    color: #1e293b;
    text-decoration: none;
    transition: 0.1s;
}

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

.breadcrumb-nav {
    padding: 20px 0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 8px;
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
}

.breadcrumb-list li {
    color: #4a5568;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #94a3b8;
}

.breadcrumb-list a {
    color: #2563eb;
    text-decoration: none;
}

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

.breadcrumb-list [aria-current="page"] {
    color: #0a1929;
    font-weight: 500;
}

.category-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 50px;
    margin-bottom: 60px;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #0a1929;
    margin-bottom: 10px;
}

.category-description {
    color: #4a5568;
    margin-bottom: 30px;
}

.list-card {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #eef2f6;
    transition: transform 0.2s;
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.list-img {
    width: 200px;
    flex-shrink: 0;
}

.list-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
}

.list-content h3 {
    font-size: 1.5rem;
    margin: 5px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-content h3 a {
    color: #0a1929;
    text-decoration: none;
}

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

.excerpt {
    color: #4a5568;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination-static {
    margin: 40px 0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.page-active {
    background: #2563eb;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 500;
}

.page-link {
    color: #2563eb;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 30px;
    background: #f1f5f9;
}

.page-link.disabled {
    color: #94a3b8;
    background: #f1f5f9;
    pointer-events: none;
}

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

.page-dots {
    color: #64748b;
    padding: 0 4px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #eef2f6;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #0a1929;
    font-weight: 600;
}

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

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

.author-name {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.author-bio {
    color: #4a5568;
    font-size: 0.95rem;
}

.related-list li,
.latest-list li,
.category-list li {
    list-style: none;
    margin-bottom: 12px;
}

.related-list a,
.latest-list a,
.category-list a {
    text-decoration: none;
    color: #0a1929;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.related-list a:hover,
.latest-list a:hover,
.category-list a:hover {
    color: #2563eb;
}

.related-date,
.latest-list .date,
.category-list .count {
    color: #64748b;
    font-size: 0.85rem;
}

.full-width {
    width: 100%;
    justify-content: space-between;
}

.static-form input,
.static-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    background: #f9f9fc;
    font-family: inherit;
}

.static-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 40px;
    cursor: default;
    font-weight: 500;
}

.full-article {
    background: white;
    padding: 40px;
    border-radius: 32px;
    margin: 20px 0;
    border: 1px solid #eef2f6;
}

.article-header h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin: 20px 0 10px;
    color: #0a1929;
}

.article-subhead {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 10px 0 20px;
    font-weight: 400;
    line-height: 1.5;
}

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

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

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

.author-mini-name {
    font-weight: 600;
    color: #0a1929;
}

.meta-item {
    color: #64748b;
    font-size: 0.95rem;
}

.meta-item.views::before {
    content: "👁️";
    margin-right: 5px;
    opacity: 0.7;
}

.featured-image {
    margin: 30px 0;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

figcaption {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: center;
}

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

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

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

.article-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
    color: #0a1929;
}

.article-tags {
    margin: 30px 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags a {
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 30px;
    text-decoration: none;
    color: #2563eb;
    font-size: 0.9rem;
}

.article-tags a:hover {
    background: #e2e8f0;
}

.author-detailed {
    display: flex;
    gap: 25px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 24px;
    margin: 40px 0 20px;
    border: 1px solid #eef2f6;
}

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

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

.author-detailed-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0a1929;
}

.author-detailed-info p {
    color: #334155;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.author-social .social-link {
    display: inline-block;
    margin-right: 15px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.author-social .social-link:hover {
    text-decoration: underline;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 40px 0 20px;
}

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

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

.comments-section {
    background: white;
    padding: 30px;
    border-radius: 24px;
    margin: 40px 0;
    border: 1px solid #eef2f6;
}

.comment-list .comment {
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
}

.comment strong {
    color: #0a1929;
}

.comment .date {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 15px;
}

.comment p {
    margin-top: 5px;
    color: #334155;
}

.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: #0a1929;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.related-content {
    padding: 15px;
}

.related-content h4 {
    font-size: 1rem;
    margin: 8px 0 5px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.related-content h4 a:hover {
    color: #2563eb;
}

.related-content .meta {
    color: #64748b;
    font-size: 0.85rem;
}

.author-profile-full {
    background: white;
    border-radius: 32px;
    padding: 50px;
    margin: 30px 0 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
}

.author-profile-header {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeef2;
}

.author-profile-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.author-profile-intro {
    flex: 1;
}

.author-profile-name {
    font-size: 2.8rem;
    font-weight: 600;
    color: #0a1929;
    margin-bottom: 10px;
    line-height: 1.2;
}

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

.author-profile-location {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 20px;
}

.author-profile-social {
    display: flex;
    gap: 15px;
}

.author-profile-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #334155;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.2s;
}

.author-profile-social .social-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
}

.author-profile-bio {
    max-width: 900px;
    margin: 0 auto;
}

.author-profile-bio h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    font-weight: 600;
    color: #0a1929;
}

.author-profile-bio p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.author-profile-bio ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.author-profile-bio li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2d3748;
    margin-bottom: 10px;
}

.author-profile-short {
    font-size: 1.3rem !important;
    font-weight: 400;
    color: #1e293b !important;
    background: #f8fafc;
    padding: 30px;
    border-radius: 24px;
    border-left: 5px solid #2563eb;
}

.author-profile-note {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 16px;
    font-style: italic;
    margin-top: 30px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0f172a;
    color: #cbd5e0;
    padding: 30px 0;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 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: 10px;
}

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

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

.brand-col p {
    margin-bottom: 10px;
}

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    /* shown by js */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    transition: background 0.2s;
}

#backToTop:hover {
    background: #1d4ed8;
}

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

    .news-mixed-grid {
        grid-template-columns: 1fr;
    }

    .post-card-horizontal {
        grid-column: span 1;
        flex-direction: column;
    }

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

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

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

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

    .full-article {
        padding: 15px;
    }

    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

    .hamburger {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

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

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

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

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

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

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

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

    .list-img {
        width: 100%;
    }

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

    .author-profile-full {
        padding: 25px;
    }

    .author-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

    .author-profile-name {
        font-size: 2rem;
    }

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

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

    .breadcrumb-list {
        border-radius: 30px;
    }
}

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

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

    .author-profile-short {
        font-size: 1.1rem !important;
        padding: 20px;
    }
}