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

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

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

ul,
ol {
    list-style: none;
}

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

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

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

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eaeef2;
    padding-bottom: 0.5rem;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
}

.btn-primary {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.25s 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 25px -12px rgba(0, 0, 0, 0.1);
}

.card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
    flex: 0 0 30%;
}

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

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

.card-content {
    padding: 1.2rem;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

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

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

.card-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 0.75rem;
}

.grid-2cols,
.grid-3cols {
    display: grid;
    gap: 2rem;
}

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

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

.two-col-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2.5rem;
    margin: 2rem 0 3rem;
}


.breadcrumbs {
    background: #f9fafb;
    padding: 0.8rem ;
    margin-top: 1rem;
    border-radius: 60px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #9ca3af;
}

.breadcrumbs a {
    color: #1e3a8a;
    transition: color 0.2s;
}

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

.sidebar-widget {
    background: #f9fafb;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid #2563eb;
    padding-left: 0.75rem;
}

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

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
}

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

.author-bio {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

.sidebar-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.sidebar-list a {
    font-weight: 500;
    display: block;
}

.sidebar-list .post-date {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cat-list li a {
    display: inline-block;
    background: #eef2ff;
    padding: 0.25rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 2.5rem 0 1rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.pagination a:hover,
.pagination .active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.pagination .disabled {
    color: #cbd5e1;
    pointer-events: none;
}

.top-bar {
    background: #f0f4f9;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breaking-badge {
    background: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.7rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.96);
    padding: 1rem 0;
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.2s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #1f2937;
    transition: 0.2s;
}


.footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

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

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-col a {
    color: #4b5563;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #1e3a8a;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
}


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

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

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

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}


.post-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1rem;
    font-weight: 400;
}

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

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

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

.meta-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.post-featured-img {
    margin-bottom: 2rem;
    border-radius: 24px;
    overflow: hidden;
}

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

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

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

.post-content p {
    margin-bottom: 1.4rem;
}

.post-content h3 {
    margin: 1.6rem 0 0.8rem;
    font-size: 1.4rem;
}

.post-tags {
    margin: 2rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #eef2ff;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e3a8a;
}

.author-bio-section {
    background: #f9fafb;
    border-radius: 24px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.author-bio-section .author-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

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

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

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

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

.comment-section {
    margin: 2rem 0 1rem;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    padding-top: 1.5rem;
}

.comment-list {
    margin-bottom: 2rem;
}

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

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

.comment-body p {
    font-size: 0.9rem;
    color: #2c3e4e;
}

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

.comment-form button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
}

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

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

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

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

.author-profile {
    background: #f9fafb;
    border-radius: 32px;
    padding: 2rem;
    margin: 2rem 0 3rem;
    text-align: center;
}

.author-avatar-lg {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

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

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

.author-bio-long {
    max-width: 700px;
    margin: 1rem auto 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.author-detailed-bio {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    line-height: 1.7;
}

.author-detailed-bio p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #2c3e4e;
}

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

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

.social-icon:hover {
    background: #d9e2f5;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

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

    .author-small,
    .meta-stats {
        font-size: 0.75rem;
    }

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

    .grid-2cols,
    .grid-3cols,
    .two-col-layout {
        grid-template-columns: 100%;
    }

    .container {
        padding: 0 20px;
    }

    .navbar {
        position: relative;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0 0.5rem;
    }

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

    .hamburger {
        display: flex;
    }

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

    .post-title {
        font-size: 1.4rem;
    }

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

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