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

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

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

ul,
ol {
    list-style: none;
}

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

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

/* ---------- HEADER / NAVIGATION (sticky + scroll effect) ---------- */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.7rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    color: #2563eb;
}

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

.main-nav a {
    font-weight: 500;
    color: #334155;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e293b;
    line-height: 1;
}

/* Responsive nav */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.open {
        max-height: 400px;
    }

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

/* ---------- TOP ANNOUNCEMENT BAR ---------- */
.top-banner {
    background: #f1f5f9;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.top-banner .container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: baseline;
}

.breaking-label {
    font-weight: 700;
    background: #2563eb;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.75rem;
}

.top-banner p {
    color: #1e293b;
}

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

/* ---------- TYPOGRAPHY & SHARED ---------- */
.section {
    padding: 3rem 0;
}

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

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-left: 1.5rem;
}

.card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #eef2ff;
    color: #2563eb;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

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

/* Cards general */
.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
}

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

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

.card-content {
    padding: 1.2rem;
}

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

.card h3 a,
.list-card h2 a {
    color: #0f172a;
}

.card p,
.excerpt {
    color: #334155;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 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;
}

.mt-4 {
    margin-top: 2rem;
}

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

.card-horizontal .card-img {
    flex: 0 0 40%;
}

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

/* Category showcase */
.triple-category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cat-block {
    background: #f8fafc;
    border-radius: 24px;
    padding: 1.2rem;
}

.cat-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.cat-title h3 {
    font-size: 1.3rem;
}

.view-all {
    font-size: 0.8rem;
    color: #2563eb;
}

.mini-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.mini-card img {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

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

.special-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.special-card {
    display: flex;
    gap: 2rem;
    background: #fef9f0;
    border-radius: 28px;
    overflow: hidden;
}

.special-card.reverse {
    flex-direction: row-reverse;
    background: #f1f5fe;
}

.special-img {
    flex: 1;
}

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

.special-content {
    flex: 1;
    padding: 2rem;
}

.special-label {
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.special-content h3 {
    font-size: 1.6rem;
    margin: 0.5rem 0;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: #eef2ff;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag:hover {
    background: #2563eb;
    color: white;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 3rem;
}

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

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

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

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2563eb;
    color: white;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

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

/* ---------- BREADCRUMB (shared) ---------- */
.breadcrumb-nav {
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background: #f9fafb;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
}

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

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

.breadcrumb [aria-current="page"] {
    color: #1e293b;
}

/* ---------- CATEGORY PAGE ---------- */
.two-column-layout {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
}

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

.sidebar {
    flex: 0 0 30%;
}

.category-headline {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #475569;
    margin-bottom: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 2rem;
}

.list-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

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

.list-card-img {
    flex: 0 0 35%;
}

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

.list-card-content {
    flex: 1;
    padding: 0.5rem 0;
}

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

.list-card-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #334155;
}

/* Sidebar components */
.sidebar-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2ff;
}

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

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

.author-card h3 {
    font-size: 1.3rem;
}

.author-title {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.sidebar-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #2563eb;
    padding-left: 0.8rem;
}

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

.sidebar-list li {
    margin-bottom: 0.8rem;
}

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

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

.latest-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.update-date {
    font-size: 0.7rem;
    color: #94a3b8;
}

.sidebar-categories {
    list-style: none;
}

.sidebar-categories li {
    margin-bottom: 0.7rem;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    color: #334155;
}

.sidebar-categories span {
    color: #64748b;
    font-size: 0.8rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 1rem;
    flex-wrap: wrap;
}

.pagination a {
    padding: 0.5rem 1rem;
    border-radius: 40px;
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a.active,
.pagination a:hover:not(.disabled) {
    background: #2563eb;
    color: white;
}

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

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ---------- ARTICLE PAGE ---------- */
.article-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

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

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

.article-stats {
    display: flex;
    gap: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.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,
.article-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content img {
    margin: 1.5rem 0;
    border-radius: 20px;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.article-category-badge {
    display: inline-block;
    background: #eef2ff;
    color: #2563eb;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

.author-bio-card {
    background: #f8fafc;
    border-radius: 28px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

.author-bio-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

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

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

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

.comment-section {
    margin: 2rem 0;
}

.comment-list {
    margin: 1.5rem 0;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2ff;
}

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

.comment-body p {
    margin-bottom: 0.2rem;
}

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

.comment-form button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
}

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

.related-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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 .card-content {
    padding: 0.8rem;
}

.related-card h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

/* ---------- AUTHOR PAGE ---------- */
.author-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.author-avatar-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid #2563eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.social-link:hover {
    background: #2563eb;
    color: white;
}

.author-bio-full {
    background: #f8fafc;
    border-radius: 28px;
    padding: 2rem;
    margin: 2rem 0;
    line-height: 1.7;
    color: #1e293b;
}

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

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

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

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
}

.author-article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.author-article-card .card-content {
    padding: 1rem;
}

.author-article-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.author-article-card .card-meta {
    font-size: 0.75rem;
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
@media (max-width: 992px) {
    .two-column-layout {
        flex-direction: column;
    }

    .content-main,
    .sidebar {
        flex: auto;
    }

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

    .list-card-img {
        flex: auto;
    }
}

@media (max-width: 768px) {

    .site-header {
        position: relative;
    }

    .article-meta-top {
        gap: 0.5rem;
    }

    .article-stats,
    .author-mini {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .articles-grid {
        flex-direction: column;
    }

    .grid-2,
    .grid-3,
    .triple-category,
    .footer-grid,
    .related-grid {
        grid-template-columns: 100%;
    }

    .card-horizontal,
    .special-card,
    .special-card.reverse {
        flex-direction: column;
    }

    .special-content {
        padding: 1.5rem;
    }

    .article-title {
        font-size: clamp(20px, 5vw, 25px);
    }

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

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

    .author-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

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