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

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

ul,
li {
    list-style: none;
}

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

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

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

/* ============================================
   Header & Navigation (with scroll effect)
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eaeef2;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

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

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

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

.logo span {
    color: #3466aa;
    font-weight: 300;
}

.main-nav {
    flex: 1;
    margin-left: 2rem;
}

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

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

.nav-list a:hover,
.nav-list a.active {
    color: #c7452b;
    border-bottom: 2px solid #c7452b;
    padding-bottom: 4px;
}

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

.search-dropdown {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.search-dropdown-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    width: 240px;
    padding: 1rem;
    display: none;
}

.search-dropdown:hover .search-dropdown-menu {
    display: block;
}

.static-form {
    display: flex;
}

.static-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 24px 0 0 24px;
    outline: none;
}

.static-form button {
    background: #3466aa;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 24px 24px 0;
    cursor: default;
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid #ccc;
    font-size: 1.5rem;
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
}



/* ============================================
   Top Banner (promotion)
   ============================================ */
.top-banner {
    background: #f2f6fc;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dce5ed;
    font-size: 0.95rem;
}

.top-banner a {
    color: #c7452b;
    font-weight: 600;
    text-decoration: none;
}

/* ============================================
   Breadcrumb (common for all pages)
   ============================================ */
.breadcrumb-nav {
    margin: 1.5rem 0 0.5rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0.5rem 1.5rem;
    background: #f5f8fc;
    border-radius: 40px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin: 0 0.8rem;
    color: #8b9bb5;
    font-size: 1.2rem;
}

.breadcrumb-list a {
    text-decoration: none;
    color: #2b4b77;
    font-weight: 500;
}

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

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

/* ============================================
   Common Section Titles
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0;
    border-left: 6px solid #c7452b;
    padding-left: 1rem;
    color: #0b1a33;
}

/* ============================================
   Card Styles (rich & varied)
   ============================================ */
.card-horizontal {
    display: flex;
    gap: 1.5rem;
    background: #fafbfc;
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #eff3f8;
}

.card-horizontal:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 20, 40, 0.15);
}

.card-img {
    flex: 0 0 40%;
    overflow: hidden;
    border-radius: 16px;
}

.card-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: scale 0.4s;
}

.card-horizontal:hover img {
    scale: 1.05;
}

.card-content {
    flex: 1;
}

.tag {
    display: inline-block;
    background: #e0e9f5;
    color: #1e4770;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-deep {
    background: #392f2f;
    color: #f5e7d9;
}

.tag-tech {
    background: #293845;
    color: #bcd5e3;
}

.tag-business {
    background: #1c4e4e;
    color: #d2f0f0;
}

.tag-health {
    background: #871e1e;
    color: #fcd9d9;
}

.card-content h3,
.card-content h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content h3 a,
.card-content h2 a {
    text-decoration: none;
    color: inherit;
}

.card-content h3 a:hover,
.card-content h2 a:hover {
    color: #c7452b;
}

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

.meta {
    font-size: 0.85rem;
    color: #6f7d8e;
}

.card-vertical {
    background: white;
    border-radius: 28px;
    border: 1px solid #eef3f7;
    overflow: hidden;
    transition: all 0.2s;
    padding-bottom: 1.5rem;
}

.card-vertical .card-img {
    border-radius: 0;
    flex: auto;
}

.card-vertical .card-content {
    padding: 1.2rem 1.2rem 0.5rem;
}

.card-zoom:hover {
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.2);
}

.card-horizontal.compact {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 24px;
    padding: 1rem;
}

.card-horizontal.compact .card-img {
    flex: 0 0 auto;
    margin-bottom: 0.8rem;
}

.card-horizontal.compact .card-content h3 {
    font-size: 1.2rem;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.card-grid.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .card-grid.two-col {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Homepage specific modules
   ============================================ */
.hot-categories {
    background: #f9fbfe;
    border-radius: 48px 48px 0 0;
    padding: 3rem 0;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cat-item {
    background: white;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 500;
    color: #1e2b3a;
    text-decoration: none;
    border: 1px solid #dbe1e9;
    transition: all 0.2s;
    font-size: calc(1rem * var(--size, 1));
}

.cat-item:hover {
    background: #c7452b;
    color: white;
    border-color: #c7452b;
}

.filter-row {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.static-select {
    padding: 0.4rem 1rem;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 0.9rem;
}

.stacked-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   Two column layout (category & article)
   ============================================ */
.two-column-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2rem;
    margin: 2rem 0;
}

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

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    line-height: 1.2;
}

/* Sidebar widgets (shared) */
.sidebar .widget {
    background: #f6f9fd;
    border-radius: 32px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar .widget h3 {
    margin-bottom: 10px;
}

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

.widget-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #d9e2ec;
}

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

.widget-list a:hover {
    color: #c7452b;
}

.widget-list .meta {
    font-size: 0.8rem;
    color: #6b7b8f;
    margin-top: 0.2rem;
    display: block;
}

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

.cat-list li {
    margin-bottom: 0.8rem;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    background: #f0f4fa;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: #1f2a3f;
    text-decoration: none;
    transition: background 0.2s;
}

.cat-list a:hover {
    background: #e2e9f3;
}

.cat-list span {
    background: white;
    padding: 0.1rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Author card (used in sidebar) */
.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f6f9fd;
    border-radius: 28px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #4a5b6f;
    line-height: 1.4;
}

/* ============================================
   Article page specific
   ============================================ */
.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0.5rem 0 1rem;
    font-weight: 700;
    color: #0b1a33;
}

@media (max-width: 600px) {
    .article-header h1 {
        font-size: 1.4rem;
    }
}

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

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

.author-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.author-meta .name {
    font-weight: 600;
    color: #1d2b3b;
}

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

.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 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem;
    color: #0b1a33;
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f5f9ff;
    border-left: 5px solid #c7452b;
    font-style: italic;
    color: #2f4055;
    border-radius: 0 20px 20px 0;
}

.category-links {
    margin: 2rem 0 1.5rem;
}

.category-links a {
    background: #eef3f7;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1e3a5f;
    text-decoration: none;
    margin-right: 0.5rem;
}

.category-links a:hover {
    background: #c7452b;
    color: white;
}

.author-bio-card {
    display: flex;
    gap: 1.8rem;
    background: #f8fbfe;
    border-radius: 32px;
    padding: 2rem;
    margin: 2.5rem 0;
    align-items: center;
}

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

.author-bio-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.author-bio-card .bio {
    color: #3d5068;
    line-height: 1.5;
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
}

.share-btn {
    background: #eef3f7;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.share-btn:hover {
    background: #c7452b;
    color: white;
    border-color: #c7452b;
}

.comments-section {
    background: #ffffff;
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid #e7edf5;
    margin: 3rem 0;
}

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

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

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.comment-meta {
    font-size: 0.8rem;
    color: #72869c;
    margin-bottom: 0.8rem;
}

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

.comment-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.comment-form textarea {
    flex: 1;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid #ccdae9;
    resize: vertical;
    font-family: inherit;
}

.comment-form button {
    background: #0b1a33;
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: default;
}

/* Related articles grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.related-card {
    display: flex;
    gap: 1rem;
    background: #f9fcff;
    border-radius: 20px;
    padding: 1rem;
    transition: all 0.2s;
    border: 1px solid #ecf2f8;
    text-decoration: none;
    color: inherit;
}

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

.related-card img {
    width: 80px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.related-card h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* ============================================
   Author page specific
   ============================================ */
.author-full {
    margin: 2rem auto;
    padding: 0 1rem;
}

.author-full-card {
    background: #ffffff;
    border-radius: 48px;
    padding: 3rem;
    box-shadow: 0 20px 40px -15px rgba(0, 20, 40, 0.1);
    border: 1px solid #eef3f8;
}

@media (max-width: 600px) {
    .author-full-card {
        padding: 2rem 1.5rem;
        border-radius: 32px;
    }
}

.author-full-header {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e2eaf2;
    padding-bottom: 2rem;
}

.author-full-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.author-full-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: #0b1a33;
}

@media (max-width: 600px) {
    .author-full-header {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }

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

.author-full-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d3f53;
    margin-bottom: 2rem;
}

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

.author-full-details h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: #0b1a33;
}

.author-full-details h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

.author-full-details p {
    margin-bottom: 1.5rem;
}

.author-full-details blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f5f9ff;
    border-left: 5px solid #c7452b;
    font-style: italic;
    color: #2f4055;
    border-radius: 0 20px 20px 0;
}

.author-full-details ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.author-full-details li {
    margin-bottom: 0.5rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.author-social a {
    display: inline-block;
    background: #eef3f7;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.author-social a:hover {
    background: #c7452b;
    color: white;
    border-color: #c7452b;
}

.author-articles {
    margin: 4rem auto;
    padding: 0 1rem;
}

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

@media (max-width: 800px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ============================================
   Pagination (static)
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #dee7f0;
    border-radius: 30px;
    color: #2f3e57;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 2.5rem;
    text-align: center;
}

.pagination a:hover {
    background: #c7452b;
    color: white;
    border-color: #c7452b;
}

.pagination .current {
    background: #0b1a33;
    color: white;
    border-color: #0b1a33;
}

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

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #111a24;
    color: #ccd9e6;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 1rem;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

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

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

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

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
}

.footer-bottom {
    text-align: center;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0b1a33;
    color: white;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    z-index: 99;
}

.back-to-top.show {
    display: block;
}

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

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 900px) {

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

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

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

@media (max-width: 768px) {
    .author-bio-card h4 {
        text-align: center;
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        height: 54px;
    }

    .meta-bar {
        gap: 0.5rem;
    }

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

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

    .main-nav {
        margin-left: 0;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1.5rem;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    }

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

    .hamburger {
        display: block;
    }

    .header-actions .search-dropdown {
        display: none;
    }
}

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