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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1e2a3a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

ul,
ol {
    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-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eaeef2;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.2s, box-shadow 0.2s;
}

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

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

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

.logo span {
    color: #0057b3;
    font-weight: 300;
}

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

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

.nav-list a:hover,
.nav-list a.active {
    color: #0057b3;
}

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

.top-announcement {
    background-color: #f0f4f9;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #dce5ec;
}

.top-announcement p {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-announcement a {
    color: #0057b3;
    font-weight: 600;
    text-decoration: none;
}

.top-announcement a:hover {
    text-decoration: underline;
}

.breadcrumb-wrapper {
    margin: 20px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 12px 0;
    background: transparent;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: #4e657b;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #9aafc4;
}

.breadcrumb a {
    color: #0057b3;
    text-decoration: none;
}

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

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

.section {
    padding: 48px 0;
    border-bottom: 1px solid #edf2f7;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    border-left: 6px solid #0057b3;
    padding-left: 18px;
}

.section-title span {
    font-weight: 300;
    color: #4e657b;
}

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

.card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.3s;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f4fa;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px -12px rgba(0, 87, 179, 0.12);
}

.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 16px;
}

.card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0057b3;
    background-color: #e7f0fe;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

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

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

.card h3 a:hover {
    color: #0057b3;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7f92;
    border-top: 1px dashed #dee7ef;
    padding-top: 12px;
}

.author {
    font-weight: 500;
    color: #2c4c73;
}

.special-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 30px;
}

.card-feature {
    background: #fafcff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8ecf3;
}

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

.feature-content {
    padding: 24px 20px;
}

.feature-content h3 {
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.feature-excerpt {
    font-size: 1rem;
    color: #2d4259;
    margin-bottom: 20px;
}

.stack-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.card-horizontal:hover {
    background-color: #f5f9ff;
}

.card-horizontal .card-img {
    flex: 0 0 240px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
}

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

.card-horizontal h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-horizontal h4 a {
    text-decoration: none;
    color: #0f1a2c;
}

.card-horizontal .card-meta {
    border: none;
    padding: 0;
}

.cat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cat-heading {
    font-size: 1.5rem;
    font-weight: 400;
    border-bottom: 2px solid #dae2ec;
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: #0f1a2c;
}

.card-simple {
    margin-bottom: 24px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 20px;
}

.card-simple .card-img {
    border-radius: 16px;
    margin-bottom: 12px;
}

.card-simple h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-simple h4 a {
    text-decoration: none;
    color: #1e2e41;
}

.card-simple .card-meta {
    border: none;
    padding: 0;
    justify-content: flex-start;
    gap: 8px;
}

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

.topic {
    display: inline-block;
    padding: 8px 20px;
    background: #f2f6fb;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 500;
    color: #0057b3;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}

.topic:hover {
    background: #0057b3;
    color: white;
    border-color: #0057b3;
}

.list-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 40px;
    padding: 40px 24px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-bar h1 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
}

.filter-dropdown select {
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    padding: 8px 32px 8px 18px;
    font-size: 0.9rem;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

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

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

.card-grid-compact .card .card-excerpt {
    -webkit-line-clamp: 3;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #dee7ef;
    color: #1f3a5f;
    text-decoration: none;
}

.pagination a.active {
    background: #0057b3;
    border-color: #0057b3;
    color: white;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 16px;
    border-radius: 40px;
}

.sidebar-card {
    background: #f8fbfe;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 30px;
}

.sidebar-card h4{
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin: 12px 0;
    border-bottom: 1px dashed #e2eaf2;
    padding-bottom: 10px;
}

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

.sidebar-list a {
    text-decoration: none;
    color: #1e2e41;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: #0057b3;
}

.sidebar-list .meta-date {
    display: block;
    font-size: 0.8rem;
    color: #6b7f92;
    margin-top: 4px;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.Categories-card li {
    background: #eef3f8;
    padding: 4px 12px;
    border-radius: 40px;
    display: inline-block;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: #d9e2ec;
}

.article-main {
    max-width: 100%;
}

.article-header {
    margin-bottom: 24px;
}

.article-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 16px 0 8px;
    color: #0f1a2c;
}

.article-subhead {
    font-size: 1.3rem;
    font-weight: 300;
    color: #3e5a73;
    margin-bottom: 20px;
    border-left: 4px solid #0057b3;
    padding-left: 20px;
}

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

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

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5c6f87;
    font-size: 0.9rem;
}

.meta-item i {
    font-style: normal;
    font-weight: 500;
}

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

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

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

.article-body h2,
.article-body h3 {
    margin: 2rem 0 1rem;
}

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

.article-tag {
    background: #eef3f8;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #1e3e5c;
    text-decoration: none;
}

.article-tag:hover {
    background: #d4e0ec;
}

.author-bio-card {
    display: flex;
    gap: 24px;
    background: #f8fbfe;
    border-radius: 24px;
    padding: 24px;
    margin: 40px 0 30px;
    border: 1px solid #e8ecf5;
}

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

.bio-content h3 {
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.bio-content p {
    color: #2d4259;
}

.share-bar-large {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 30px 0 20px;
    padding: 16px 0;
    border-bottom: 1px solid #edf2f7;
}

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

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

.comment-section {
    margin-top: 50px;
}

.comment-section h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.comment-list {
    margin-bottom: 40px;
}

.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

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

.comment-content {
    background: #f5f9ff;
    padding: 16px 20px;
    border-radius: 20px;
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-date {
    font-size: 0.8rem;
    color: #6b7f92;
    margin-left: 12px;
}

.comment-text {
    color: #1e2e41;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dae2ec;
    border-radius: 40px;
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 0.95rem;
}

.comment-form textarea {
    border-radius: 24px;
    min-height: 120px;
}

.comment-form button {
    background: #0057b3;
    color: white;
    border: none;
    padding: 12px 36px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
}

.comment-form button:hover {
    background: #003f82;
}

.related-posts {
    padding-top: 40px;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

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

.related-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f4fa;
    transition: 0.2s;
}

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

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

.related-card h4 {
    font-size: 1rem;
    padding: 12px 12px 0;
    margin-bottom: 6px;
}

.related-card .card-meta {
    padding: 0 12px 12px;
    border: none;
}

.author-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

.author-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 48px;
    background: #f8fbfe;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid #e8ecf5;
}

.author-header img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 15px 30px -10px rgba(0, 87, 179, 0.15);
}

.author-header-text {
    flex: 1;
}

.author-header-text h1 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #0f1a2c;
    line-height: 1.2;
}

.author-header-text .author-title {
    font-size: 1.3rem;
    color: #0057b3;
    margin-bottom: 16px;
    font-weight: 400;
}

.author-bio-full {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d4259;
    margin-bottom: 20px;
}

.author-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.author-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3e5a73;
    background: #eef3f8;
    padding: 6px 18px;
    border-radius: 60px;
    font-size: 0.9rem;
}

.author-meta-item a {
    color: #0057b3;
    text-decoration: none;
}

.author-meta-item a:hover {
    text-decoration: underline;
}

.author-details {
    margin: 48px 0 32px;
}

.author-title {
    font-size: 1.8rem;
    font-weight: 400;
    border-left: 6px solid #0057b3;
    padding-left: 20px;
    margin: 40px 0 24px;
}


.author-details h2 {
    font-size: 1.8rem;
    font-weight: 400;
    border-left: 6px solid #0057b3;
    padding-left: 20px;
    margin-bottom: 24px;
}

.author-details p {
    font-size: 1rem;
    line-height: 1.7;
    color: #1e2e41;
    margin-bottom: 1.2rem;
}

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

.article-grid .card {
    height: 100%;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0057b3;
    color: white;
    border: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 87, 179, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 99;
}

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

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

.site-footer {
    background-color: #142433;
    color: #cbd5e1;
}

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

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

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

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

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

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

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

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

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

.footer-bottom {
    border-top: 1px solid #2b3e53;
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #8fa3bb;
}

@media (max-width: 900px) {

    .card-grid,
    .special-grid,
    .cat-row,
    .footer-grid,
    .list-layout,
    .related-grid,
    .article-grid {
        grid-template-columns: 100%;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid #eef3f8;
    }

    .nav-list.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .special-grid {
        gap: 20px;
    }

    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
}

@media (max-width: 760px) {
    .card-grid-compact {
        grid-template-columns: 100%;
    }

    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

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

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

    .card-horizontal {
        display: block;
    }

    .article-title {
        font-size: 1.8rem;
        margin-top: 0;
    }

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

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

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

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
}