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

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

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

ul,
li {
    list-style: none;
}

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

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

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e9eef2;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}

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

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

.logo a {
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #0f1825;
}

.logo span {
    font-weight: 300;
    color: #4b6a8b;
}

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

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

.nav-list a:hover,
.nav-list .active {
    color: #0066cc;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 40px;
    overflow: hidden;
}

.search-form input {
    border: none;
    padding: 8px 16px;
    width: 200px;
    outline: none;
    font-size: 0.9rem;
}

.search-form button {
    background: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.breadcrumb {
    margin: 24px 0 16px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 8px 20px;
    background: #f8fafc;
    border-radius: 40px;
}

.breadcrumb li {
    font-size: 0.95rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 12px;
    color: #8a9bb0;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

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

.breadcrumb [aria-current="page"] {
    color: #3a4d65;
    font-weight: 500;
}

.two-columns {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
    margin: 30px 0 50px;
}

.content-main {
    width: 100%;
}

.sidebar {
    width: 100%;
}

.section {
    padding: 48px 0;
}

.bg-light {
    background: #f8fafc;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.view-all {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.view-all:hover {
    border-bottom-color: #0066cc;
}

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

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

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s;
    border: 1px solid #edf2f7;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

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

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

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

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

.card-tag {
    display: inline-block;
    background: #e6f0fa;
    color: #0066cc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

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

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

.card-excerpt {
    color: #4a5a6e;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #6b7b8d;
}

.mixed-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 280px;
    gap: 24px;
}

.card-horizontal {
    display: flex;
    gap: 16px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid #eef2f6;
    transition: 0.2s;
}

.card-horizontal .card-img {
    width: 100px;
    flex-shrink: 0;
    border-radius: 12px;
}

.card-horizontal .card-content {
    padding: 0;
}

.card-horizontal h3 {
    font-size: 1rem;
}

.mini-list {
    list-style: none;
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #eef2f6;
}

.mini-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ecf1f6;
    font-size: 0.95rem;
}

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

.mini-list a {
    text-decoration: none;
    color: #1e2a3a;
    font-weight: 500;
}

.mini-list span {
    color: #7a8a9a;
    font-size: 0.8rem;
    margin-left: 6px;
}

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

.feature-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #0b1a2a;
    color: white;
}



.feature-card .card-img img {
    opacity: 0.7;
}

.feature-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, #000000b0);
}

.feature-card .card-overlay h3{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card .card-tag {
    background: #ffc857;
    color: #1e1e1e;
}

.feature-card h3 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.feature-card .card-excerpt {
    color: #e0e7ef;
}

.feature-card .card-meta {
    color: #cfdbe9;
}

.topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topic-item {
    background: white;
    border: 1px solid #dce5ec;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    color: #1f2a3f;
    font-weight: 500;
    transition: 0.15s;
}

.topic-item:hover {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.topic-item span {
    background: #eef4f9;
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 8px;
    font-size: 0.8rem;
    color: #2f4058;
}

.topic-item:hover span {
    background: #ffffff50;
    color: white;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    border-bottom: 2px solid #e2e9f2;
    padding-bottom: 16px;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.card-featured {
    grid-column: span 2;
    display: flex;
    gap: 24px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease, box-shadow 0.3s;
    padding: 20px;
}

.card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
}

.card-featured .card-img {
    flex: 0 0 40%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
}

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

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

.card-featured .card-content {
    flex: 1;
    padding: 8px 0;
}

.card-featured h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 12px 0;
}

.card-featured h2 a {
    text-decoration: none;
    color: #0f1825;
}

.card-featured .card-excerpt {
    font-size: 1rem;
    margin-bottom: 20px;
}

.sidebar-widget {
    background: #f9fbfd;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e9eef2;
}

.sidebar-widget h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

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

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

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

.author-bio {
    color: #4a5f73;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.post-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e9f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

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

.post-list a {
    text-decoration: none;
    color: #1e2f40;
    font-weight: 500;
    flex: 1;
}

.post-list a:hover {
    color: #0066cc;
}

.post-list span {
    color: #7a8b9f;
    font-size: 0.8rem;
    margin-left: 12px;
    white-space: nowrap;
}

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

.category-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #d0ddee;
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

.category-list a:hover {
    color: #0066cc;
}

.category-list span {
    color: #7f94aa;
    background: #eaf0f6;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
}

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

.pagination a {
    padding: 8px 16px;
    border: 1px solid #dee7ef;
    border-radius: 30px;
    text-decoration: none;
    color: #1f2a41;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #e6f0fa;
    border-color: #b0c8dd;
}

.pagination .active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

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

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f1825;
}

.article-subhead {
    font-size: 1.3rem;
    color: #4a5e75;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.2rem 0;
    border-top: 1px solid #e9eef2;
    border-bottom: 1px solid #e9eef2;
    margin-bottom: 2rem;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

.meta-author {
    font-size: 0.95rem;
    color: #2c3e50;
}

.meta-author strong {
    font-weight: 600;
}

.meta-date {
    font-size: 0.9rem;
    color: #6f8ba0;
}

.meta-right {
    font-size: 0.9rem;
    color: #4f6f8f;
    background: #f0f6fd;
    padding: 4px 12px;
    border-radius: 30px;
}

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

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

.article-body p {
    margin-bottom: 1.8rem;
}

.article-figure {
    margin: 2rem 0;
}

.article-figure img {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.article-figure figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7f95;
    margin-top: 8px;
}

.article-categories {
    margin: 1.5rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-label {
    font-weight: 600;
    color: #1e2f40;
}

.cat-link {
    background: #eaf0f8;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: #0066cc;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.cat-link:hover {
    background: #d4e2f0;
}

.author-bio-block {
    display: flex;
    gap: 24px;
    background: #f5faff;
    border-radius: 24px;
    padding: 28px;
    margin: 2.5rem 0 1.5rem;
    border: 1px solid #e2ebf5;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.author-info h4 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.author-role {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 12px;
}

.author-description {
    color: #2d4058;
    line-height: 1.6;
    margin-bottom: 16px;
}

.author-social a {
    text-decoration: none;
    color: #2c3e50;
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-right: 10px;
    border: 1px solid #dae3ec;
    transition: background 0.2s;
}

.author-social a:hover {
    background: #e2ecf7;
}

.share-buttons {
    margin: 2rem 0 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e9f2;
    border-bottom: 1px solid #e2e9f2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.share-btn {
    background: #eef4f8;
    border: none;
    border-radius: 30px;
    padding: 8px 22px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

.comments-section {
    margin: 2.5rem 0 3rem;
}

.comments-section h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.8rem;
}

.comment-count {
    font-size: 1rem;
    color: #7f96ab;
    font-weight: 400;
}

.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    background: #fafdff;
    padding: 18px;
    border-radius: 20px;
}

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

.comment-body {
    flex: 1;
}

.comment-body strong {
    font-size: 1rem;
    color: #0f1e2f;
}

.comment-time {
    color: #7c93aa;
    font-size: 0.85rem;
    margin-left: 8px;
}

.comment-body p {
    margin-top: 6px;
    color: #2b3f54;
    line-height: 1.5;
}

.comment-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form textarea {
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-family: inherit;
    resize: vertical;
}

.comment-form button {
    align-self: flex-end;
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 34px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.comment-form button:hover {
    background: #004c99;
}

.related-posts {
    margin: 2.5rem 0;
}

.related-posts h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

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

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

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

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

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

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

.related-card h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 6px 0 8px;
    max-height: 2.8em;
    overflow: hidden;
}

.related-card h3 a {
    text-decoration: none;
    color: #0f1825;
}

.related-card .card-tag {
    margin-bottom: 4px;
    font-size: 0.7rem;
}

.related-card .card-meta {
    font-size: 1rem;
}

.site-footer {
    background: #0f1a28;
    color: #b7c9dd;
    padding: 60px 0 30px;
    margin-top: 40px;
}

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

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


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col .logo {
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

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

.footer-col li {
    margin-bottom: 12px;
}

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

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

.social-links a {
    display: inline-block;
    margin-right: 12px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 30px;
    background: #1e2f40;
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    box-shadow: 0 4px 12px #00000020;
    z-index: 99;
}

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

@media (max-width: 1024px) {
    .two-columns {
        grid-template-columns: 100%;
    }

    .sidebar {
        margin-top: 40px;
    }

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

@media (max-width: 768px) {

    .meta-author,
    .meta-right,
    .meta-date {
        font-size: 0.75rem;
    }

    .nav-list {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav.open .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 20px 30px #0000001a;
        border-top: 1px solid #eee;
    }

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

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

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

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

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

    .card-featured .card-img {
        width: 100%;
    }

    .article-title {
        font-size: 1.5rem;
    }

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

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

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

    .search-form input {
        width: 140px;
    }
}