/*
Theme Name: washingtonpost
Theme URI: https://example.com/modern-broadsheet
Author: Rex
Author URI: https://example.com
Description: A premium newspaper theme with a dark mode, strong branding, and a column-based layout inspired by classic broadsheets.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: washingtonpost
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset and Base Refinements */
body {
    background-color: #121212;
    color: #fff;
    font-family: 'Public Sans', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .masthead-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 700;
    color: #ffffff;
}

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

a:hover {
    text-decoration: underline;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-subscribe {
    background: #0056b3;
    color: #fff;
    padding: 0 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 32px;
}

.btn-signin {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 32px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.container {
    max-width: 1280px; /* Standard Washington Post content width */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-branding {
    margin-bottom: 30px;
}

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #333;
    text-align: center;
}

.masthead-title {
    font-family: "Bokor", system-ui;
    font-size: 120px;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 5px;
    text-transform: none;
    font-weight: 400;
}

.site-tagline {
    font-style: italic;
    color: #b0b0b0; /* Increased contrast from #888 */
    font-size: 14px;
    margin-bottom: 20px;
}

.main-navigation {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 14px 0 12px; /* Top 14px, Bottom 12px to compensate for visual weight */
    margin-top: 20px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #eee;
}

/* Exact Hero Layout: 3 Columns with specific widths */
.broadsheet-grid {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 30px;
    align-items: start;
    margin-top: 40px;
    border-bottom: none; /* Removed double line */
    padding-bottom: 20px;
}

.main-content-column {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-top-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

/* Header Top Fixed Styling */
.header-top-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #121212;
    z-index: 2000; /* High enough to be on top, but lower than any modals if any */
    border-bottom: 1px solid #222;
}

.header-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 45px;
    width: 100%;
    line-height: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: start;
    height: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
    height: 100%;
}

.header-search {
    display: inline-flex;
    align-items: center;
    height: 32px;
    border: 1px solid #333;
    border-radius: 20px;
    overflow: hidden;
    background: #222;
}

.header-search-field {
    height: 32px;
    width: 220px;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    padding: 0 12px;
    font-size: 13px;
}

.header-search-field::placeholder {
    color: #b0b0b0;
}

.header-search-submit {
    height: 32px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .header-search-field {
        width: 110px;
    }

    /* When mobile users scroll down, hide and disable the header search */
    .header-search.search-hidden {
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        height: 0;
        overflow: hidden;
    }

    .header-search.search-hidden .header-search-field {
        pointer-events: none;
        user-select: none;
    }

    .header-search.search-hidden .header-search-submit {
        pointer-events: none;
    }
}

.header-center-sticky {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    min-width: 300px; /* Ensure space for the logo */
    height: 100%;
}

@media (max-width: 768px) {
    .header-top {
        /* make 3 columns on mobile: menu / center / search */
        grid-template-columns: 44px 1fr auto;
        align-items: center;
    }

    .header-center-sticky {
        display: none;
    }

    .header-right {
        grid-column: auto;
        gap: 10px;
        justify-self: end;
        align-items: center;
    }

    .header-search {
        margin-left: auto; /* push the search to the far right */
    }

    .sticky-branding .masthead-title {
        font-size: 16px !important;
    }
    .sticky-branding .site-tagline {
        display: none;
    }
    .sticky-logo {
        font-size: 14px;
    }
    .sticky-tagline {
        display: none;
    }
    .btn-subscribe-small, .btn-signin-small {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .site-branding {
        padding: 22px 0 12px;
        margin-bottom: 18px;
    }

    .masthead-title {
        font-size: 56px;
        line-height: 1;
    }

    .site-tagline {
        margin-bottom: 12px;
    }

    .main-navigation {
        padding: 10px 0 8px;
        margin-top: 12px;
    }

    .main-navigation ul {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 18px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .broadsheet-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 24px;
    }

    .main-content-column {
        grid-column: auto;
        gap: 28px;
    }

    .hero-top-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .left-column {
        border-right: 0;
        padding-right: 0;
    }

    .center-column {
        padding: 0;
    }

    .right-column {
        display: block;
        border-left: 0;
        padding-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .header-search-field {
        width: 92px;
        padding: 0 10px;
        font-size: 12px;
    }

    .header-search-submit {
        padding: 0 10px;
    }

    .masthead-title {
        font-size: 48px;
    }
}

.sticky-branding {
    margin: 0 !important;
    padding: 0 !important;
}

.sticky-branding .masthead-title {
    font-family: 'Bokor', system-ui;
    font-size: 22px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.sticky-branding .masthead-title a {
    color: #fff;
    text-decoration: none;
}

.sticky-branding .site-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 10px !important;
    font-style: italic;
    color: #aaa;
    margin: 2px 0 0 0 !important;
    line-height: 1 !important;
}

.header-top-wrapper.is-scrolled .header-center-sticky {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Adjust Site Header to prevent content jump and overlap */
.site-header {
    padding-top: 45px; /* Exactly matches header-top-wrapper height */
}

.site-branding {
    position: relative;
    padding: 40px 0 20px; /* Give it space so it's not hidden behind fixed top */
    z-index: 10;
}

/* Update Sticky Header to sit below header-top */
.sticky-header {
    position: fixed;
    top: -60px; /* Hidden */
    left: 0;
    width: 100%;
    height: 45px;
    background: #121212;
    border-bottom: 1px solid #333;
    z-index: 1000;
    transition: top 0.3s ease;
    display: flex;
    align-items: center;
}

.sticky-header.is-sticky {
    top: 45px; /* Positioned right under the fixed header-top */
}

.sticky-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sticky-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-logo {
    font-family: 'Bokor', system-ui;
    font-size: 18px;
    color: #fff;
}

.sticky-tagline {
    font-size: 10px;
    font-style: italic;
    color: #888;
    margin-top: 3px;
}

.btn-subscribe-small {
    background: #0056b3;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.btn-signin-small {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 15px;
}

/* Updated Hero Article Typography for "Exact Match" */
.hero-text-only h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px; /* Adjusted to match reference */
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero-text-only h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero-text-only p {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #aaa;
    margin-bottom: 20px;
}

.hero-text-only .byline {
    font-size: 11px;
    color: #888;
}

/* Hero Image Column */
.center-column .hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.left-column {
    border-right: 1px solid #333;
    padding-right: 30px;
    overflow: hidden;
}

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

.center-column {
    padding: 0 10px;
}

.right-column {
    border-left: 1px solid #333;
    padding-left: 30px;
}

@media (max-width: 1200px) {
    .broadsheet-grid {
        grid-template-columns: 1fr 300px;
    }
    .left-column {
        display: none;
    }
}

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

    /* On mobile/tablet, show hero text again (override the 1200px hide rule) */
    .left-column {
        display: block;
        border-right: 0;
        padding-right: 0;
    }

    .hero-top-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .center-column {
        padding: 0;
    }

    .right-column {
        display: none;
    }
}

/* Opinion Sidebar */
.right-column .column-title {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 900;
    color: #fff;
    border-bottom: 3px solid #fff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Articles */
.article-lead {
    margin-bottom: 40px;
}

.article-lead h2 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 15px;
}

.article-lead p {
    color: #bbb;
    font-size: 16px;
    margin-bottom: 15px;
}

.byline {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.entry-summary p {
    font-size: 15px;
    line-height: 1.5;
    color: #ccc;
}

.main-story .entry-title {
    font-size: 54px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.main-story .entry-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #eee;
}

.main-story img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.post-thumbnail {
    position: relative;
    margin-bottom: 25px;
}

.thumbnail-caption {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    text-transform: uppercase;
}
/* Secondary Stack - THE KEY CHANGE FOR "SAMA PERSIS" */
.secondary-stack {
    margin-top: 30px;
}

.stacked-article {
    display: grid;
    grid-template-columns: 300px 1fr; /* Text on left, Image on right - matching reference */
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
    align-items: start;
}

.stacked-article .content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 12px;
}

.stacked-article .image img {
    width: 100%;
    height: auto;
    display: block;
}

/* More Top Stories - 1-2-1 Grid */
.more-top-stories {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 25px;
    margin: 0 0 40px;
    border-top: none; /* Removed redundant top border */
    padding-top: 0;
}

/* Section Headers */
.section-header-wp {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 12px 0;
    margin: 40px 0 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-header-wp h2 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    line-height: 1;
    font-weight: 900;
}

/* More Top Stories & Most Read Redesign */
.top-stories-most-read-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin: 40px 0;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.more-top-stories-section {
    display: flex;
    flex-direction: column;
}

.section-header-wp-left {
    margin-bottom: 20px;
}

.section-header-wp-left .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 900;
    color: #fff;
    border-bottom: 3px solid #fff;
    display: inline-block;
    padding-bottom: 5px;
    margin: 0;
}

.top-stories-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.top-story-large .mts-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.mts-caption {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mts-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
}

.top-stories-stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mts-stacked-item {
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.mts-stacked-item:last-of-type {
    border-bottom: none;
}

.mts-stacked-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.mts-analysis-item {
    background: rgba(26, 26, 26, 0.9);
    padding: 20px;
    border-top: 3px solid #fff;
}

.analysis-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

.analysis-tag .author-name {
    color: #888;
    margin-left: 5px;
    text-transform: none;
    font-weight: 400;
}

.mts-analysis-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.most-read-section {
    border-left: 1px solid #333;
    padding-left: 30px;
}

.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.most-read-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    /* Make More Top Stories + Most Read readable on mobile */
    .top-stories-most-read-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .top-stories-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .most-read-section {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #222;
        padding-top: 18px;
    }

    .mts-title {
        font-size: 22px;
    }

    .mts-stacked-title {
        font-size: 16px;
    }

    .mts-analysis-item {
        padding: 16px;
    }

    /* Secondary stack should be 1-column on mobile */
    .stacked-article {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stacked-article .image {
        grid-row: 1;
    }

    .stacked-article .content {
        grid-row: 2;
    }
}

.most-read-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: #444;
    line-height: 0.8;
}

.most-read-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

/* Category Grid Refinement */
.category-block {
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-bottom: 40px;
}

.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-block-header h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video/Multimedia Block */
.multimedia-block {
    background: rgba(26, 26, 26, 0.9);
    padding: 40px 0;
    margin: 60px 0;
}

.multimedia-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

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

/* Sidebar Menu Styling */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px; /* Hidden by default */
    width: 320px;
    height: 100%;
    background: #121212;
    z-index: 4000;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid #222;
}

.side-menu.active {
    left: 0;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu-content {
    padding: 20px;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-subscribe-sidebar {
    background: #0056b3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
}

.menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-search {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 5px 15px;
}

.search-input-wrapper input {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 0;
    width: 100%;
    font-size: 14px;
    outline: none;
}

.search-submit {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
}

.side-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-nav li {
    border-bottom: 1px solid #222;
}

.side-menu-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.side-menu-nav li a:hover {
    color: #0056b3;
}

.side-menu-nav .chevron {
    color: #444;
    font-size: 20px;
}

.menu-item-home a {
    font-weight: 800;
}

/* Prevent body scroll when menu is active */
body.side-menu-active {
    overflow: hidden;
}

/* Single Post Styling */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-article {
    padding-top: 40px;
}

.post-header-centered {
    margin-bottom: 30px;
}

.post-header-centered .entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.post-header-centered .entry-excerpt {
    font-family: 'Public Sans', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

.post-header-centered .entry-meta-top {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: #b0b0b0; /* Increased contrast from #888 */
    margin-bottom: 25px;
}

.entry-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

.actions-left {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #aaa;
    font-size: 14px;
    font-family: 'Public Sans', sans-serif;
}

.action-item {
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-item:hover {
    color: #fff;
}

.actions-right .google-news-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 26, 26, 0.9);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #333;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    font-family: 'Public Sans', sans-serif;
}

.post-featured-image-full {
    margin: 40px auto;
}

.featured-image-wrapper {
    width: 100%;
    max-height: 500px; /* Prevent extremely tall images */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-featured-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fit if max-height is reached */
    display: block;
}

.thumbnail-caption-container {
    padding: 10px 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    color: #b0b0b0; /* Increased contrast from #888 */
    border-bottom: 1px solid #222;
}

/* Global Image Reset */
img {
    max-width: 100%;
    height: auto;
}

article img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

.entry-content {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.6;
    color: #eee;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

.entry-content * {
    box-sizing: border-box;
}

.entry-content img,
.entry-content figure,
.entry-content video,
.entry-content iframe,
.entry-content .wp-block-image,
.entry-content .wp-block-embed,
.entry-content [class*="wp-image-"],
.entry-content [class*="size-"] {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 25px auto;
    width: auto !important;
}

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-embed {
    width: auto !important;
    max-width: 100% !important;
    clear: both;
}

.entry-content img {
    height: auto !important;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: #ccc;
    border: 1px solid #333; /* Outer border */
}

.entry-content th,
.entry-content td {
    padding: 15px;
    text-align: left;
    border: 1px solid #333; /* Vertical and horizontal borders */
}

.entry-content th {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #444;
}

.entry-content tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .post-header-centered .entry-title {
        font-size: 32px;
    }
    .post-header-centered .entry-excerpt {
        font-size: 18px;
    }
    .entry-actions-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .actions-right {
        width: 100%;
    }
    .actions-right .google-news-badge {
        justify-content: center;
    }
}

/* Related Stories at Bottom of Single */
.related-stories-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.related-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.related-story-item {
    display: flex;
    flex-direction: column;
}

.related-story-thumbnail {
    margin-bottom: 12px;
}

.related-story-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.related-story-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 8px;
}

.related-story-meta {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    color: #888;
}

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

/* More From Category Section */
.more-from-category-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #222;
}

.more-from-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.more-from-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.more-from-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.more-from-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 10px;
}

.more-from-excerpt {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #aaa;
}

@media (max-width: 768px) {
    .more-from-grid {
        grid-template-columns: 1fr;
    }
    .more-from-item:nth-last-child(2) {
        border-bottom: 1px solid #222;
    }
}

/* Floating Side Controls */
.floating-side-controls {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px; /* Wider than container-narrow to sit on sides */
    pointer-events: none;
    z-index: 1500;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.floating-left, .floating-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-side-controls.is-visible .floating-left,
.floating-side-controls.is-visible .floating-right {
    opacity: 1;
    visibility: visible;
}

.floating-side-controls.hide-for-footer .floating-left,
.floating-side-controls.hide-for-footer .floating-right {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.float-btn .label {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.floating-left .float-btn .label {
    left: calc(100% + 10px);
}

.floating-right .float-btn .label {
    right: calc(100% + 10px);
}

.float-btn:hover .label {
    opacity: 1;
    visibility: visible;
}

.floating-left .float-btn:hover .label {
    left: calc(100% + 15px);
}

.floating-right .float-btn:hover .label {
    right: calc(100% + 15px);
}

.float-btn:hover {
    background: #222;
    border-color: #555;
    transform: translateY(-2px);
}

.float-btn .icon {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 1300px) {
    .floating-side-controls {
        max-width: 100%;
        top: auto;
        bottom: 30px;
        transform: none;
        left: 0;
        padding: 0 20px;
    }
    
    .floating-left {
        display: none; /* Hide left controls on smaller screens to save space */
    }
}

/* No Results Styling */
.no-results-content {
    padding: 40px 0;
    font-family: 'Public Sans', sans-serif;
    color: #aaa;
}

.video-card-content {
    padding: 15px;
}

.video-card-content h3 {
    font-size: 14px;
    line-height: 1.4;
}

/* Tightening Typography */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

.entry-title a:hover {
    color: #0056b3;
    text-decoration: none;
}

.section-header {
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: capitalize;
    color: #fff;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: ' >';
    font-size: 12px;
    margin-left: 5px;
    color: #888;
}

/* Most Read */
.most-read-list {
    list-style: none;
}

.most-read-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.most-read-number {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    color: #888;
    line-height: 1;
}

.most-read-content h3 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #eee;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.category-block {
    border-top: 1px solid #fff;
    padding-top: 10px;
}

.category-block-header {
    margin-bottom: 20px;
}

.category-block-header h2 {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
}

.category-block-header h2 .chevron {
    font-size: 10px;
    margin-left: 5px;
    color: #888;
}

.category-block-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.category-main-story {
    display: flex;
    flex-direction: column;
}

.category-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.category-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
}

.category-secondary-stories {
    display: flex;
    flex-direction: column;
}

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

.category-list-item {
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.category-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.category-list-item h4 {
    font-family: 'Public Sans', sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 400;
    color: #eee;
}

.category-list-item h4 a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin: 28px 0;
    }

    .category-block-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-post-thumbnail img {
        margin-bottom: 10px;
    }

    .category-main-title {
        font-size: 20px;
    }

    .category-list-item {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .category-list-item h4 {
        font-size: 14px;
    }
}

/* Archive Page Styles */
.archive-container {
    margin-top: 40px;
    padding-bottom: 60px;
}

.archive-header {
    margin-bottom: 40px;
}

/* Breadcrumbs */
.entry-breadcrumbs,
.archive-breadcrumbs {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: #b0b0b0;
}

.entry-breadcrumbs a,
.archive-breadcrumbs a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-breadcrumbs a:hover,
.archive-breadcrumbs a:hover {
    color: #fff;
}

.entry-breadcrumbs span[itemprop="name"],
.archive-breadcrumbs span[itemprop="name"] {
    color: inherit;
}

.archive-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.archive-content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    margin-top: 40px;
}

.archive-item {
    display: grid;
    grid-template-columns: 140px 1fr 240px;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #222;
    align-items: start;
}

.archive-item:first-child {
    padding-top: 0;
}

.archive-item-date {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.archive-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}

.archive-item-excerpt {
    font-family: 'Public Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #aaa;
}

.archive-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar for Archive */
.archive-sidebar {
    display: flex;
    flex-direction: column;
}

.btn-subscribe-large {
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    display: inline-block;
    transition: background 0.2s ease;
}

.btn-subscribe-large:hover {
    background: #eee;
    text-decoration: none;
}

/* Pagination Styles */
.archive-pagination {
    margin-top: 60px;
    text-align: center;
}

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.pagination-arrow {
    font-size: 28px;
    line-height: 1;
    color: #b0b0b0; /* Increased contrast from #888 */
    text-decoration: none;
    transition: color 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-arrow:hover:not(.disabled) {
    color: #fff;
    text-decoration: none;
}

.pagination-arrow.disabled {
    color: #333;
    cursor: default;
}

.page-indicator {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* Mobile Responsive for Archive */
@media (max-width: 1024px) {
    .archive-content-layout {
        grid-template-columns: 1fr;
    }
    .archive-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .archive-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .archive-item-date {
        margin-top: 0;
    }
    .archive-item-image {
        order: -1;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    .diversions-list {
        gap: 15px;
    }
    .trending-topics-list li {
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .site-footer .masthead-title {
        font-size: 32px !important;
    }
}

.diversions-section {
    border-top: 1px solid #333;
    padding: 20px 0;
    margin-top: 60px;
}

.diversions-list {
    display: flex;
    gap: 30px;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    flex-wrap: wrap;
}

.diversions-list li {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.diversions-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.diversions-list li:hover {
    color: #fff;
}

.trending-topics-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trending-topics-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.trending-icon {
    color: #e50914; /* Using a red accent for trending */
    font-weight: 900;
}

/* Footer Multi-column */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    padding: 40px 0;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 30px;
    }
}

.footer-column h3 {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
}

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

.footer-column ul li {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.footer-column ul li a:hover {
    color: #fff;
}


/* WP Exclusive Tag */
.exclusive-tag {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.exclusive-tag span {
    border: 1px solid #000;
    padding: 0 2px;
    margin-right: 4px;
}

.opinion-item {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.opinion-item .author {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

/* Opinions Sidebar refined */
.opinion-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 5px;
}

.opinion-item .author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.opinion-author-name {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    color: #b0b0b0; /* Increased contrast from #888 */
    text-transform: none;
}

.opinion-content {
    flex: 1;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
