﻿/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.6;
    padding-top: 70px;
    /* space for fixed header */
}

a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

a:hover {
    color: #b3002d;
    /* deep red accent */
}

ul {
    list-style: none;
}

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

/* ===== CONTAINER ===== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== FIXED HEADER (with scroll effect) ===== */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

.logo span {
    color: #b3002d;
}

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

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
}

.main-nav a.active,
.main-nav a:hover {
    color: #b3002d;
}

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

.section-title {
    margin: 30px 0;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-wrapper {
    background: #f8f8f8;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb li+li::before {
    content: "/";
    margin-right: 8px;
    color: #aaa;
}

.breadcrumb a {
    color: #b3002d;
}

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

.category-headline {
    font-size: 2rem;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-headline .badge {
    background: #b3002d;
    color: white;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
}

/* ===== CARDS (global) ===== */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

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

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

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

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

.category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b3002d;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.card-content {
    padding: 18px 16px 20px;
}

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

.excerpt {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.author {
    font-weight: 500;
    color: #1a1a1a;
}

/* card variations */
.card-large .card-content h3 {
    font-size: 1.4rem;
}

.card-alt {
    background: #fafafa;
}

.horizontal {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

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

.small-horizontal {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    border-radius: 0;
}

.small-horizontal:last-child {
    border-bottom: none;
}

.small-horizontal img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.small-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
}

.opinion-card {
    border: none;
    box-shadow: none;
    border-left: 3px solid #b3002d;
    padding-left: 16px;
    margin-bottom: 20px;
    background: transparent;
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.double-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ===== CATEGORIES GRID (popular topics) ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.cat-card {
    background: #f9f9f9;
    border-radius: 40px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.2s;
}

.cat-card:hover {
    background: #b3002d;
    color: white;
    border-color: #b3002d;
}

.cat-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.cat-count {
    font-size: 0.8rem;
    color: #888;
}

.cat-card:hover .cat-count {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== TWO-COLUMN LAYOUT (list & detail) ===== */
.two-col-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.content-primary {
    width: 100%;
}

.content-secondary {
    width: 100%;
}

/* list cards specific */
.list-card {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    border-radius: 0;
}

.list-card .card-img {
    flex: 0 0 200px;
}

/* ===== PAGINATION ===== */
.pagination-static {
    margin: 30px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-static .page {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
    transition: background 0.2s;
}

.pagination-static .page:hover {
    background: #f0f0f0;
}

.pagination-static .page.active {
    background: #b3002d;
    color: white;
    border-color: #b3002d;
}

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

/* ===== SIDEBAR CARDS ===== */
.sidebar-card {
    margin-bottom: 30px;
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
}

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

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

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
}

.author-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.author-title {
    color: #b3002d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 0.9rem;
    color: #555;
}

.related-list,
.latest-list,
.category-list-static {
    list-style: none;
}

.related-list li,
.latest-list li,
.category-list-static li {
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.related-list a,
.latest-list a,
.category-list-static a {
    display: flex;
    justify-content: space-between;
    color: #333;
}

.related-list a:hover,
.latest-list a:hover {
    color: #b3002d;
}

.latest-list .time {
    font-size: 0.8rem;
    color: #999;
    margin-right: 8px;
}

.category-list-static .count {
    color: #b3002d;
    font-size: 0.85rem;
}

/* ===== ARTICLE DETAIL PAGE ===== */
.full-article {
    max-width: 100%;
}

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

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 10px 0 10px;
    font-weight: 700;
}

.article-header .subhead {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 15px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

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

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

.views {
    margin-left: auto;
    color: #888;
}

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

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

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

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

.article-tags {
    margin: 30px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag-label {
    font-weight: 600;
    color: #444;
}

.tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #333;
    transition: background 0.2s;
}

.tag:hover {
    background: #b3002d;
    color: white;
}

.author-bio-card {
    display: flex;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 16px;
    margin: 30px 0;
}

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

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

.bio-text .author-title {
    color: #b3002d;
    margin-bottom: 10px;
}

.share-block {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-label {
    font-weight: 600;
    margin-right: 15px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

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

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

.comments-section {
    margin-top: 40px;
}

.comments-section h3 {
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-body strong {
    margin-right: 12px;
}

.comment-date {
    color: #888;
    font-size: 0.85rem;
}

.comment-form {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 16px;
    margin-top: 30px;
}

.static-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: inherit;
}

.static-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
}

.static-btn:hover {
    background: #b3002d;
}

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

.related-posts h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* ===== AUTHOR PAGE ===== */
.author-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.author-profile-large {
    text-align: center;
    margin-bottom: 3rem;
}

.author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.author-avatar-large:hover {
    transform: scale(1.02);
}

.author-profile-large h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 1.2rem;
    color: #b3002d;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.author-bio-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

.author-detail-section {
    text-align: left;
    margin-top: 2rem;
    border-top: 1px solid #eaeaea;
    padding-top: 2rem;
}

.author-detail-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-detail-section p {
    margin-bottom: 1.2rem;
    color: #444;
}

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

.author-social a {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: #f5f5f5;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

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

.latest-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #f8f8f8;
    border-top: 1px solid #eaeaea;
    padding: 48px 0 32px;
    margin-top: 40px;
}

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

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


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

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

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

.footer-col a {
    color: #4a4a4a;
}

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

.footer-col.brand p {
    margin-top: 12px;
    color: #666;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a1a;
    color: white;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 99;
}

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

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

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

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

    .two-col-layout {
        grid-template-columns: 100%;
    }

    .horizontal {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .list-card .card-img {
        width: 100%;
    }

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

@media (max-width: 600px) {
    body {
        padding-top: 0;
    }

    .site-header {
        position: relative;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .main-nav.active {
        display: block;
    }

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

    .hamburger {
        display: block;
    }

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

    .section-title .sub {
        display: block;
        margin-left: 0;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .article-header h1 {
        font-size: 1.5rem;
        /* 24px */
    }

    .author-profile-large h1 {
        font-size: 2rem;
    }

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

    .author-social {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .meta-line {
        gap: 10px;
        font-size: 0.8rem;
    }

    .views {
        margin-left: 0;
    }
}