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

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

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

ul,
ol {
    list-style: none;
}

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

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

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

.section {
    margin: 56px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    border-left: 4px solid #0077cc;
    padding-left: 16px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 650;
}

.site-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    border-bottom: 1px solid #eef2f5;
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
}

.logo  {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e2a3a, #2c3e50);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    font-weight: 500;
}

.nav-menu a {
    transition: color 0.2s;
    font-size: 1rem;
    color: #2c3e4e;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0077cc;
}

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

.breaking-bar {
    background: #fef7e0;
    border-bottom: 1px solid #ffe7b0;
    padding: 12px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.breaking-label {
    background: #e03a3a;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.footer {
    background: #f8fafc;
    border-top: 1px solid #e4e9f0;
    margin-top: 64px;
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #1e2a3a;
}

.footer-col p,
.footer-col ul {
    color: #4a5b6e;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

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

.footer-col a:hover {
    color: #0077cc;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #6c7a8a;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e2a3a;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.card-standard {
    background: #ffffff;
    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);
    border: 1px solid #f0f2f5;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.card-content {
    padding: 20px;
    flex: 1;
}

.card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #0077cc;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6c7e97;
    border-top: 1px solid #eff3f6;
    padding-top: 12px;
    margin-top: auto;
}

.card-horizontal {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    transition: all 0.2s;
}

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

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

.featured-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    transition: all 0.25s;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 36px -16px rgba(0, 0, 0, 0.12);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

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

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

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

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tag {
    background: #f1f5f9;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #1f2a3e;
}

.tag:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.list-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 40px;
    margin: 48px 0;
}

.breadcrumb-wrapper {
    margin-top: 32px;
    background: #f9fbfd;
    padding: 12px 20px;
    border-radius: 60px;
    display: inline-block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
    font-size: 0.85rem;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: "→";
    color: #9aaebf;
}

.breadcrumb a {
    color: #0077cc;
    font-weight: 500;
}

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

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

.page-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 40px;
    transition: 0.2s;
    font-weight: 500;
}

.page-item.active {
    background: #1e2a3a;
    color: white;
    border-color: #1e2a3a;
}

.page-item:hover:not(.active) {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.sidebar-card {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #edf2f7;
    padding: 24px;
    margin-bottom: 32px;
    transition: box-shadow 0.2s;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid #0077cc;
    padding-left: 14px;
}

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

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid #eef2ff;
}

.author-sidebar-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.author-bio {
    font-size: 0.85rem;
    color: #4b5e77;
    margin-top: 12px;
}

.related-list,
.recent-list {
    list-style: none;
}

.related-item,
.recent-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
}

.related-img {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.related-title {
    font-weight: 600;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.related-meta {
    font-size: 0.7rem;
    color: #6f8faa;
}

.recent-item {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #f0f4fa;
    padding-bottom: 12px;
}

.recent-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.recent-date {
    font-size: 0.7rem;
    color: #7d8ea3;
}

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

.cat-list li {
    margin-bottom: 12px;
    font-weight: 500;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #eef2f8;
}

.cat-count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
}

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

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #3a4a5c;
    margin-bottom: 24px;
    font-weight: 450;
    line-height: 1.4;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef2f5;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5a6e8a;
}

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

.author-name-link {
    font-weight: 600;
    color: #1e2a3a;
}

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

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

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

.article-body h2 {
    font-size: 1.5rem;
    margin: 1.8rem 0 1rem;
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

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

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

.share-btn {
    background: #f0f4f9;
    padding: 8px 20px;
    border-radius: 40px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.share-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.author-bio-section {
    background: #f9fbfe;
    border-radius: 28px;
    padding: 28px;
    display: flex;
    gap: 24px;
    margin: 32px 0;
    align-items: center;
}

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

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

.author-bio-text p {
    font-size: 0.9rem;
    color: #4a5b6e;
}

.comment-section {
    margin: 48px 0;
    border-top: 1px solid #eef2f5;
    padding-top: 32px;
}

.comment-form textarea,
.comment-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-submit {
    background: #1e2a3a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
}

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

.author-profile-container {
    max-width: 1000px;
    margin: 48px auto;
    background: #ffffff;
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f2f5;
}

.author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eef2ff;
    margin-bottom: 24px;
}

.author-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.author-title {
    font-size: 1rem;
    color: #0077cc;
    font-weight: 500;
    margin-bottom: 16px;
}

.author-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 28px;
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e2a3a;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c7e97;
}

.author-bio-short {
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 1rem;
    color: #3a4a5c;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    background: #f1f5f9;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.social-icon:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.author-detailed-bio {
    margin: 48px 0;
    padding-top: 32px;
    border-top: 1px solid #eef2f5;
}

.author-detailed-bio h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.author-detailed-bio p {
    margin-bottom: 1.2rem;
    font-size: 0.985rem;
    line-height: 1.7;
    color: #171717;
    letter-spacing: 0.2px;
}

.articles-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eef2f5;
}

.articles-section h2 {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

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

.btn-read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0077cc;
}

@media (max-width: 1000px) {
    .list-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {

    .grid-3cols,
    .grid-categories,
    .grid-2cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .author-profile-container {
        padding: 28px;
        margin: 32px 20px;
    }
}

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

    .meta-item {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .cards-grid {
        grid-template-columns: 100%;
    }

    .list-layout {
        margin: 30px 0;
        grid-template-columns: 100%;
    }

    .site-header {
        position: relative;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 20px 0;
        gap: 18px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .container {
        padding: 0 20px;
    }

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

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

    .author-stats {
        gap: 20px;
    }

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .author-profile-container {
        padding: 20px;
        margin: 32px 0;
    }

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

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

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