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

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

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

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

ul,
ol {
    list-style: none;
}

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

/* ---------- Utility ---------- */
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Header & Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    padding: 16px 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0a2b3e;
}

.logo span {
    color: #e85d04;
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: #2c3e44;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e85d04;
    border-bottom-color: #e85d04;
}

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

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

/* ---------- Top Announcement ---------- */
.top-announcement {
    margin: 32px 0 24px;
}

.announcement-card {
    background: #f4f2ed;
    border-left: 4px solid #e85d04;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-flash {
    background: #e85d04;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
}

.announce-text {
    font-weight: 500;
    color: #2d3e40;
}

.announce-link {
    font-weight: 600;
    color: #e85d04;
    margin-left: 4px;
}

/* ---------- Section Common ---------- */
.section {
    margin: 64px 0;
}

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

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

.header-line {
    height: 3px;
    width: 60px;
    background: #e85d04;
    border-radius: 2px;
}

/* ---------- Homepage Categories Grid ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

.category-block {
    background: #fefcf8;
    border-radius: 24px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e2dc;
    padding-bottom: 12px;
}

.category-title h3 {
    font-size: 1.5rem;
}

.category-articles {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Card Variants */
.card-item {
    display: flex;
    gap: 16px;
    transition: transform 0.2s;

}

.news-card a {
    display: flex;
    gap: 16px;
    transition: transform 0.2s;
}

.news-card:hover a {
    transform: translateY(-3px);
}

.card-img {
    flex: 0 0 110px;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.card-content {
    flex: 1;
}

.card-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag {
    background: #eaece5;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2f5e6b;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-excerpt {
    font-size: 0.85rem;
    color: #4a5562;
}

.card-variant-2 a {
    flex-direction: row-reverse;
}

.card-variant-2 .card-img {
    flex: 0 0 90px;
}

.tech-layout .card-variant-3 a {
    flex-direction: column;
}

.tech-layout .card-variant-3 .card-img {
    flex: auto;
    margin-bottom: 12px;
    width: 100%;
}

.card-variant-4 a {
    background: #f0f3f5;
    padding: 16px;
    border-radius: 20px;
}

.health-list {
    gap: 20px;
}

.card-variant-5 a {
    display: flex;
    gap: 14px;
    align-items: center;
}

.card-variant-5 .card-img {
    flex: 0 0 80px;
}

/* Special Report */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: #f8f6f2;
    border-radius: 32px;
    overflow: hidden;
}

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

.feature-content {
    padding: 24px;
}

.feature-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #e85d04;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
}

.feature-content h3 {
    font-size: 1.6rem;
    margin: 12px 0;
}

.feature-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-story {
    border-left: 3px solid #e85d04;
    padding-left: 20px;
}

.side-story h4 a:hover {
    color: #e85d04;
}

/* Hot Topics */
.hot-topics {
    background: #f9f9f7;
    padding: 48px 0;
    border-radius: 48px;
}

.topics-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex: 2;
}

.topic-item {
    background: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 500;
    border: 1px solid #e2e2dc;
    transition: all 0.2s;
}

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

.hot-card {
    flex: 1;
    background: #2c3e44;
    border-radius: 28px;
    padding: 24px;
    color: white;
}

.hot-badge {
    background: #e85d04;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
}

.hot-card h3 a {
    color: white;
    font-size: 1.4rem;
    margin: 12px 0;
    display: block;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav {
    margin-bottom: 32px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f0;
}

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

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child):after {
    content: "›";
    margin-left: 8px;
    color: #9aa9b1;
    font-weight: 500;
}

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

.breadcrumb-list a:hover {
    color: #e85d04;
}

.breadcrumb-list .current {
    color: #e85d04;
    font-weight: 600;
}

/* ---------- Category Page (Two Column) ---------- */
.category-two-col {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 48px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.main-content-area {
    flex: 2.2;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 260px;
}

.category-heading {
    margin-bottom: 32px;
}

.category-heading h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.category-desc {
    color: #5b6e7c;
    font-size: 1rem;
    border-left: 3px solid #e85d04;
    padding-left: 16px;
}

/* Cards list (horizontal) */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.horizontal-card {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 20px;
    transition: all 0.25s ease;
    padding: 4px;
}

.horizontal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.card-img-left {
    flex: 0 0 180px;
    aspect-ratio: 4/3;
    border-radius: 18px;
    overflow: hidden;
}

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

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

.card-details {
    flex: 1;
}

.tag-cat {
    background: #eaece5;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2f5e6b;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.card-title a {
    text-decoration: none;
    color: #1a2c38;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #e85d04;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #4a5562;
    margin-bottom: 12px;
}

.author-date {
    font-size: 0.75rem;
    color: #8896a3;
    display: flex;
    gap: 12px;
}

/* Sidebar blocks */
.sidebar-block {
    background: #fefcf8;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 36px;
    transition: box-shadow 0.2s;
}

.sidebar-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eae3d4;
    display: inline-block;
}

.author-avatar {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e85d04;
}

.author-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-bio {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #4f5d68;
    margin-bottom: 12px;
}

.author-social a {
    font-size: 0.8rem;
    margin-right: 12px;
    color: #e85d04;
}

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

.sidebar-list li {
    margin-bottom: 16px;
    border-bottom: 1px solid #edebe6;
    padding-bottom: 12px;
}

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

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    color: #2c3e44;
}

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

.post-title {
    flex: 1;
    font-size: 0.9rem;
}

.post-date {
    font-size: 0.7rem;
    color: #8f9eab;
    margin-left: 12px;
}

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

.category-cloud a {
    background: #f0f2ef;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.category-cloud a:hover {
    background: #e85d04;
    color: white;
}

/* Pagination */
.pagination-static {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 48px 0;
}

.page-item {
    padding: 8px 14px;
    border-radius: 40px;
    background: #f1f3f5;
    transition: all 0.2s;
}

.page-item.active,
.page-item:hover {
    background: #e85d04;
    color: white;
}

/* ---------- Detail Page ---------- */
.article-detail-wrapper {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 48px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.main-article-area {
    flex: 2.2;
    min-width: 0;
}

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

.article-header-detail h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 16px 0 12px;
    letter-spacing: -0.01em;
}

.subhead {
    font-size: 1.2rem;
    color: #4a6272;
    margin-bottom: 20px;
    font-weight: 400;
    border-left: 3px solid #e85d04;
    padding-left: 20px;
}

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

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

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

.stats {
    display: flex;
    gap: 16px;
    color: #6c7a89;
    font-size: 0.85rem;
}

.featured-img-article {
    margin: 24px 0 32px;
    border-radius: 28px;
    overflow: hidden;
}

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

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

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

.article-body-text h2 {
    font-size: 1.6rem;
    margin: 1.8em 0 0.8em;
    font-weight: 700;
}

.article-body-text h3 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.6em;
}

.article-body-text blockquote {
    margin: 1.8em 0;
    padding: 1em 1.5em;
    background: #f8f6f2;
    border-left: 4px solid #e85d04;
    font-style: italic;
    color: #2c3e44;
}

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

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

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

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

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

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

.share-btn-custom:hover {
    background: #e85d04;
    color: white;
}

.comments-area {
    margin: 48px 0 32px;
    border-top: 1px solid #edebe6;
    padding-top: 32px;
}

.comment-item {
    background: #faf9f7;
    padding: 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.comment-form-static input,
.comment-form-static textarea {
    width: 100%;
    padding: 12px 16px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: inherit;
}

.btn-submit {
    background: #e85d04;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
}

.related-cards {
    margin: 40px 0 20px;
}

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

.related-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0ede8;
}

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

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

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

.related-card h4 {
    font-size: 1rem;
    margin: 8px 0;
    line-height: 1.4;
}

.related-card p {
    font-size: 0.8rem;
    color: #5b6e7c;
}

/* ---------- Author Page ---------- */
.author-profile {
    max-width: 880px;
    margin: 40px auto 60px;
    background: #fff;
}

.author-header {
    text-align: center;
    margin-bottom: 48px;
}

.author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e85d04;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.author-header h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.author-title {
    font-size: 1.1rem;
    color: #e85d04;
    font-weight: 600;
    margin-bottom: 16px;
}

.author-bio-short {
    font-size: 1rem;
    color: #4a6272;
    max-width: 700px;
    margin: 0 auto 20px;
}

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

.author-social-links a {
    background: #f0f2ef;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.author-social-links a:hover {
    background: #e85d04;
    color: white;
}

.author-bio-detailed {
    background: #fefcf8;
    border-radius: 28px;
    padding: 32px 40px;
    margin: 40px 0;
    line-height: 1.7;
    font-size: 1rem;
    color: #2c3e44;
}

.author-bio-detailed p {
    margin-bottom: 1.2em;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 32px 0;
    flex-wrap: wrap;
    border-top: 1px solid #ede8e0;
    border-bottom: 1px solid #ede8e0;
    padding: 24px 0;
}

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

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

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

.latest-articles {
    margin-top: 56px;
}

.latest-articles h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    border-left: 4px solid #e85d04;
    padding-left: 20px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.article-card-author {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0ede8;
}

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

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

.article-card-author .card-content {
    padding: 20px;
}

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

.article-card-author h3 {
    font-size: 1.1rem;
    margin: 8px 0;
    line-height: 1.4;
}

.article-card-author p {
    font-size: 0.85rem;
    color: #5b6e7c;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f2027;
    color: #ddd;
    padding: 56px 0 32px;
    margin-top: 48px;
}

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

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

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

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

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

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e85d04;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .category-two-col,
    .article-detail-wrapper {
        flex-direction: column;
        grid-template-columns: 100%;
    }

    .main-content-area,
    .main-article-area,
    .sidebar {
        width: 100%;
    }

    .horizontal-card {
        flex-direction: column;
        gap: 16px;
    }

    .card-img-left {
        flex: auto;
        width: 100%;
    }

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

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

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

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

    .card-img {
        flex: auto;
    }

    .site-header {
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        background: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
        padding: 32px;
        border-radius: 28px;
        z-index: 999;
    }

    .main-nav.active {
        left: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 24px;
    }

    .hamburger {
        display: flex;
    }

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

    .list-img {
        flex-basis: auto;
        width: 100%;
    }

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

    .subhead {
        font-size: 1rem;
    }

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

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

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

    .author-bio-detailed {
        padding: 24px;
    }

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

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