:root {
    --primary: #c32026;
    --primary-dark: #9e181d;
    --text-dark: #111111;
    --text-gray: #555555;
    --text-light: #888888;
    --bg-body: #f9f9f9;
    --bg-white: #ffffff;
    --border: #dddddd;
    --border-light: #eeeeee;
    
    --font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-ui);
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary);
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   TOP BAR
========================================= */
.top-bar {
    background: #f1f1f1;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-gray);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.top-bar-links {
    display: flex;
}

.top-bar-links a {
    padding: 0 1rem;
    border-right: 1px solid var(--border);
    line-height: 36px;
    font-weight: 600;
}

.top-bar-links a:first-child { padding-left: 0; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.top-bar-date { font-weight: 600; }

.search-icon {
    border-left: 1px solid var(--border);
    padding-left: 1rem;
    cursor: pointer;
}

/* =========================================
   HEADER
========================================= */
.site-header {
    background: var(--bg-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    color: var(--text-dark);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 0.2rem;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: var(--primary);
}

/* =========================================
   BANNER AREA
========================================= */
.banner-area {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9IiNlMGUwZTAiLz48L3N2Zz4=');
    background-color: #fafafa;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.banner-title .red {
    color: var(--primary);
}

.banner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.banner-logos span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* =========================================
   HEADER AD BAR
========================================= */
.header-ad-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
}
.header-ad-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ad-label-row {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

/* =========================================
   BREAKING NEWS TICKER
========================================= */
.breaking-bar {
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 0;
    overflow: hidden;
}
.breaking-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.breaking-label {
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: .1em;
    padding: 0.15rem 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking-text {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   HOME HERO
========================================= */
.home-hero {
    padding: 2rem 0 1rem;
    border-bottom: 3px solid var(--text-dark);
    margin-bottom: 1.5rem;
}
.home-hero h1 {
    font-size: 1.9rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}
.home-hero p {
    font-size: 1rem;
    color: var(--text-gray);
}

/* =========================================
   SECTION HEADERS
========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 0.5rem;
    margin: 2.5rem 0 1.25rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}

.section-title::before {
    content: '';
    display: block;
    width: 20px;
    height: 12px;
    background: var(--primary);
}

.section-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* Sub Nav Pills */
.sub-nav-pills {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
}

.pill.active {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* =========================================
   GRID LAYOUT: 3 COLUMNS
========================================= */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.col-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.col-mid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-right: 1px solid var(--border);
    padding-right: 2rem;
}

.col-side {
    position: sticky;
    top: 80px;
    align-self: start;
}

/* Common Post Meta */
.post-cat {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.post-date {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Featured Post (Main Col Top) */
.post-featured img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 1rem;
}

.post-featured h2 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0.5rem 0;
    letter-spacing: -0.5px;
}

.post-featured .excerpt {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* 2x2 grid under featured */
.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 0;
}

.post-small {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.post-small:nth-child(odd) {
    border-right: 1px solid var(--border-light);
}
.post-small:hover {
    background: #fafafa;
}

.post-small img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-small-body { flex: 1; min-width: 0; }

.post-small h3 {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.post-cat-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

/* Mid Column Posts */
.post-mid img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.post-mid h3 {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

/* Sidebar Featured List */
.popular-list {
    display: flex;
    flex-direction: column;
}

.popular-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}
.popular-item:first-child { padding-top: 0; }
.popular-item:last-child { border-bottom: none; }

.popular-num {
    font-size: 1.6rem;
    font-weight: 900;
    font-style: italic;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
}

.popular-item h3 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

/* =========================================
   IN-DEPTH (4 Cols)
========================================= */
.in-depth-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card h3 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    padding: 0 0.75rem;
}
.post-card .post-cat-row {
    padding: 0.75rem 0.75rem 0.5rem;
}

/* Mid-Page Ad Bar */
.mid-ad-bar {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================
   FOOTER
========================================= */
.site-footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--primary); }

.footer-tagline {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #333;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* =========================================
   SINGLE POST / PAGE STYLES
========================================= */
.layout-columns {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.main-column {
    flex: 1;
    min-width: 0;
}

.sidebar-column {
    width: 320px;
    flex-shrink: 0;
}

.post-single-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-single-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 1rem 0;
}

.post-single-excerpt {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.post-body {
    font-size: 1.15rem;
    line-height: 1.8;
}

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

.post-body h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.post-body blockquote {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 800;
    color: var(--primary);
    border-left: 4px solid var(--text-dark);
    padding-left: 2rem;
    margin: 3rem 0;
}

.post-body figure {
    margin: 2rem 0;
    width: 100%;
}

.post-body figure img {
    margin: 0;
    width: 100%;
}

.post-body figcaption {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

.illustration-credits {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.related-posts {
    margin-top: 4rem;
    border-top: 2px solid var(--text-dark);
    padding-top: 2rem;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

/* Ad Styles */
.ad-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
}

.ad-label {
    color: var(--text-light);
    font-size: .65rem;
    letter-spacing: .1em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.ad-container {
    text-align: center;
    margin: 0 auto;
}

.ad-banner {
    background: #e9e9e9;
    border: 1px dashed #ccc;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin: 0 auto;
}

.ad-728x90 {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-300x100 {
    width: 300px;
    height: 100px;
}

.ad-300x250 {
    width: 300px;
    height: 250px;
}

.ad-300x600 {
    width: 300px;
    height: 600px;
}

@media (max-width: 768px) {
    .ad-728x90 {
        max-width: 300px;
        height: 100px;
    }
    .ad-300x250, .ad-300x600 {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .5rem; font-size: .9rem; color: var(--text-dark); }
.form-control { width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 2px; font-family: var(--font-ui); font-size: 1rem; background: #fafafa; color: var(--text-dark); }
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 150px; }
.btn-submit { background: var(--primary); color: #fff; border: none; padding: 1rem 2rem; border-radius: 2px; font-size: 1rem; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: background 0.2s; font-family: var(--font-ui); }
.btn-submit:hover { background: var(--primary-dark); }
.cf-turnstile { margin-bottom: 1.5rem; }

/* Standard Post List (for Author/Tag pages) */
.post-list-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.post-list-item:last-child {
    border-bottom: none;
}

.post-list-thumb {
    width: 300px;
    flex-shrink: 0;
}

.post-list-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-list-title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.post-list-excerpt {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 2rem;
    background: var(--bg-white);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

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

.author-box h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.author-box p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Tag Header */
.tag-header {
    background: var(--bg-white);
    padding: 3rem;
    border-bottom: 4px solid var(--primary);
    margin-bottom: 3rem;
    text-align: center;
}

.tag-header h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr 1fr;
    }
    .col-mid {
        border-right: none;
        padding-right: 0;
    }
    .col-side {
        grid-column: 1 / -1;
    }
    .in-depth-grid {
        grid-template-columns: 1fr 1fr;
    }
    .layout-columns {
        flex-direction: column;
    }
    .sidebar-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav {
        display: none; /* In real CMS: toggle hamburger */
    }
    .home-grid {
        grid-template-columns: 1fr;
    }
    .sub-grid {
        grid-template-columns: 1fr;
    }
    .in-depth-grid {
        grid-template-columns: 1fr;
    }
    .banner-logos {
        gap: 1.5rem;
    }
    .post-list-item {
        flex-direction: column;
    }
    .post-list-thumb {
        width: 100%;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive Ad Banner Slots - 2 Separate Codes */
.ad-desktop { display: flex !important; }
.ad-mobile { display: none !important; }

@media (max-width: 768px) {
    .ad-desktop { display: none !important; }
    .ad-mobile { display: flex !important; width: 300px !important; height: 100px !important; align-items: center; justify-content: center; }
}

/* Link List Widget Styles */
.link-list-widget {
    margin-bottom: 2rem;
}
.link-list-widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.link-list-widget li {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2) !important;
    font-size: 0.95rem;
    line-height: 1.4;
}
.link-list-widget li:last-child {
    border-bottom: none !important;
}
.link-list-widget a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}
.link-list-widget a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
