/*
Theme Name: RSS Aggregator Lite
Theme URI: https://digital-kreationz.com/
Author: DKGFX
Author URI: https://digital-kreationz.com/
Description: Professional WordPress theme built for news aggregator and magazine sites. Features flexible content sections, specialized newspaper layouts, and optimized performance for RSS content display.
Version: 4.7.25
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rss-aggregator-lite
Tags: news, magazine, blog, responsive, three-columns, custom-menu, featured-images, footer-widgets, rss-aggregator, hero-layout, newspaper

Changelog:
v4.7.25 - FIXED footer navigation links to be white with stronger CSS selectors and !important
v4.7.24 - INCREASED logo size on tablet (40px→60px) and mobile (35px→45px) for better visibility
v4.7.23 - FIXED Hero Layout to hide sidebar on tablet/mobile (≤1024px)
v4.7.22 - FIXED Large Image List full-width moved to correct 992px tablet breakpoint (was in 480px mobile)
v4.7.21 - FIXED Large Image List on tablet to have full-width images (removed padding/margins)
v4.7.20 - FIXED small cards to KEEP images (only remove excerpt) + FIXED large card titles to be white with stronger selectors
v4.7.19 - PERFECTED styling to EXACTLY match Hero layout - hero cards 500px/36px title/hover scale, small cards NO thumbnails/18px title
v4.7.18 - FIXED Mixed Grid Double with proper container structure (like Hero layout) - separate containers for hero cards and small posts
v4.7.17 - REDESIGNED Mixed Grid Double to match Hero layout style (2 hero cards stacked + small posts right)
v4.7.16 - FIXED Mixed Grid Double to use explicit grid rows so medium cards match height of 2 large cards
v4.7.15 - FIXED Mixed Grid Double layout to fill gaps with grid-auto-flow dense
v4.7.14 - IMPROVED Mixed Grid Double to stack 2 large cards vertically (better for no-excerpt display)
v4.7.13 - REVERTED to v4.7.7 thumbnail styles + KEPT Mixed Grid Double layout + ADDED hide excerpts on large cards
v4.7.12 - FIXED base newspaper-thumbnail to have display:block and width:100% for aspect-ratio to work
v4.7.11 - FIXED large card thumbnail with dedicated newspaper-thumbnail-large class for better isolation
v4.7.10 - FIXED card-large thumbnail to fill container (added width: 100% to aspect-ratio)
v4.7.9 - IMPROVED card-large thumbnail to square (1:1 ratio) to fill vertical space better
v4.7.8 - ADDED new newspaper layout "Mixed Grid (Double)" with 2 large cards + multiple medium cards
v4.7.7 - IMPROVED logo sizing (desktop 50px, tablet 40px, mobile 35px) for better scaling
v4.7.6 - FIXED PHP syntax error in custom login (line 266)
v4.7.5 - FIXED custom login page logo display and centering (desktop + mobile)
v4.7.4 - ADDED custom branded login page (site logo desktop, site icon mobile)
v4.7.3 - FIXED newspaper card excerpt spacing; ADDED professional theme screenshot
v4.7.2 - FIXED Full Width section header sizing; ADDED global scroll-to-top button (appears after 300px scroll)
v4.7.1 - FIXED newspaper template meta box allowlist, section headers white text, mobile single post sidebars; ADDED mobile popular posts (6 posts); UPDATED compact list to horizontal 2-column grid
v4.7.0 - ADDED Newspaper Page Template with 8 specialized news layouts (hero, banner, mixed-grid, masonry, compact-list, etc.)
v4.6.2 - FIXED site icon hidden on landscape/desktop mode (only shows on mobile portrait)
v4.3.0 - REMOVED problematic "Hide Sidebar" feature, restored proper sidebar display
v4.1.0 - ADDED WP RSS Aggregator Display shortcode support to Pages with Content Sections template
v4.0.1 - FIXED: "Hero" category now hidden from post meta display everywhere
v4.0.0 - MAJOR: Added dedicated "Hero" category system - posts must be tagged with "Hero" to appear in hero section
v3.3.0 - PRODUCTION: Hero category filter fully working with category__in parameter, all debug removed
v3.2.9 - ADDED error_log debugging to track category selection and sanitization process
v3.2.8 - CRITICAL FIX: Changed from 'cat' to 'category__in' parameter to avoid plugin interference
v3.2.7 - ADDED debug showing actual posts returned by query with titles and categories
v3.2.6 - FIXED category sanitization to use integer 0 instead of string, removed empty() check that caused issues
v3.2.5 - FIXED category filter by using '0' for all categories instead of empty string, enhanced debug output
v3.2.4 - FIXED hero excerpt with multi-selector specificity, ADDED debug output for category filter
v3.2.3 - FIXED hero title link styles with triple-selector specificity, IMPROVED category sanitization with term_exists validation
v3.2.2 - FIXED hero featured text now properly white with !important, FIXED category filter to properly handle all/specific categories
v3.2.1 - IMPROVED hero featured post now has image as background with dark overlay and white text
v3.2.0 - ADDED dedicated hero section controls in Customizer (posts count, category, meta display), author box article count toggle
v3.1.0 - ADDED hero background filters (grayscale, blur), white/black overlay option, inline header layout
v3.0.0 - ADDED Hero Layout option with homepage hero section, 70/30 layout for archives/posts/pages, background image support
v2.8.0 - ADDED Large Image List layout (425x275px images for prominent visual presentation)
v2.7.0 - ADDED dedicated footer color controls (background, text, headings, links)
v2.6.1 - IMPROVED search box design (icon inside field for better navigation centering)
v2.6.0 - ADDED offset feature to skip posts in sections (prevent duplication across sections)
v2.5.4 - FIXED sidebar font size default value handling
v2.5.3 - ADDED sidebar font size controls (heading and text size)
v2.5.2 - FIXED font-family HTML entity encoding, FIXED admin bar color conflicts
v2.5.1 - FIXED typography system with higher priority and better CSS specificity
v2.5.0 - ADDED complete color palette system (8 customizable colors), FIXED typography system to actually apply fonts
v2.4.2 - ADDED meta info controls to homepage content sections (same as page sections)
v2.4.1 - ADDED meta info controls for page sections (show/hide category, source/author, date per section)
v2.4.0 - ADDED page content sections (custom page template + meta boxes for configuring sections per page)
v2.3.0 - ADDED date display (desktop left, mobile above logo), ADDED search box (desktop right, mobile in flyout)
v2.2.9 - FIXED mobile menu (flyout with overlay), VERIFIED page.php template working
v2.2.8 - FIXED double border (removed from grid layouts: posts-grid-two-col, posts-grid-three-col)
v2.2.7 - FIXED double border (removed :has selector, simpler approach)
v2.2.6 - FIXED double border on section headers, ADDED logo upload, ADDED site title font customization
v2.2.5 - FIXED pagination display (changed from list to inline, removed bullets)
v2.2.4 - FIXED single post footer padding, improved pagination visibility, ADDED per-user custom avatars
v2.2.3 - FIXED footer visibility issue (removed white background from site-container)
v2.2.2 - FIXED category/archive view, pagination, comments styling, footer (finally!), ADDED custom avatar upload, open in new tab option
v2.2.1 - FIXED footer visibility, ADDED font customization, ADDED author box
v2.2.0 - Fixed single post layout (3-column), added footer menu, customizable footer
v2.1.0 - Fixed WPRSS detection, added featured first post, WPRSS Display integration
v2.0.0 - Added Content Sections/Blocks system
v1.0.1 - Fixed wp-config optimization errors
v1.0.0 - Initial release with Miami Chronicle layout
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    /* Colors - Miami Chronicle Style */
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #0066cc;
    --text-color: #333333;
    --light-text: #666666;
    --lighter-text: #999999;
    --border-color: #dddddd;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    
    /* Typography */
    --font-primary: Georgia, "Times New Roman", Times, serif;
    --font-secondary: Arial, Helvetica, sans-serif;
    --font-heading: Georgia, "Times New Roman", Times, serif;
    
    /* Spacing */
    --container-width: 1200px;
    --sidebar-width: 200px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Transitions */
    --transition: all 0.2s ease;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   LAYOUT STRUCTURE - 3 COLUMNS
   ========================================================================== */
.site-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--bg-color);
    border-bottom: 3px solid var(--primary-color);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.site-branding {
    margin-bottom: var(--spacing-md);
}

.site-logo {
    display: inline-block;
    margin: 0 auto;
}

.site-logo img {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.site-logo a {
    display: block;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: bold;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.site-title a {
    color: var(--primary-color);
}

.site-title a:hover {
    text-decoration: none;
    color: var(--secondary-color);
}

.site-description {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   DATE & SEARCH BAR
   ========================================================================== */

/* Mobile Date - Above Logo (hidden on desktop) */
.header-date-mobile {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--text-color);
    text-align: center;
    padding: var(--spacing-xs) 0;
    display: none; /* Show on mobile only */
    border-bottom: 1px solid var(--border-color);
}

/* Desktop Date - Far Left (hidden on mobile) */
.header-date-desktop {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--text-color);
    white-space: nowrap;
    display: block; /* Show on desktop, hide on mobile */
}

/* Full Width Wrapper for Nav Bar */
.nav-bar-wrapper {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    /* No bottom border */
}

/* Inner container with max-width */
.nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
}

/* Centered Navigation Container */
.nav-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex: 1;
}

/* Remove any borders from navigation */
.main-navigation {
    /* No borders */
}

.header-search {
    display: flex;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-field {
    padding: 8px 40px 8px 12px; /* Extra padding on right for icon */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-secondary);
    width: 200px;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.search-submit svg {
    width: 16px;
    height: 16px;
}

.search-submit:hover {
    color: var(--accent-color);
}

.search-submit:hover svg {
    stroke: var(--accent-color);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.main-navigation {
    /* No borders or background - handled by nav-bar-wrapper */
    padding: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-weight: normal;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    margin: var(--spacing-sm) auto;
}

/* ==========================================================================
   INLINE HEADER LAYOUT
   ========================================================================== */

/* Inline Header: Logo and Menu on same line */
.header-layout-inline .header-inner {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.header-layout-inline .site-branding {
    margin-bottom: 0;
    text-align: left;
    flex-shrink: 0;
}

.header-layout-inline .header-navigation-inline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-layout-inline .header-navigation-inline .main-navigation {
    display: block;
}

.header-layout-inline .header-navigation-inline .menu-toggle {
    display: none;
}

/* Inline layout: Date and search bar stays on separate line */
.header-layout-inline .nav-bar-inline .nav-bar-inner {
    justify-content: space-between;
}

/* Remove center container in inline layout */
.header-layout-inline .nav-bar-container {
    display: none;
}

/* Desktop inline navigation styling */
@media (min-width: 769px) {
    .header-layout-inline .header-navigation-inline .main-navigation ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: var(--spacing-md);
    }
    
    .header-layout-inline .header-navigation-inline .main-navigation li {
        margin: 0;
    }
    
    .header-layout-inline .header-navigation-inline .main-navigation a {
        padding: var(--spacing-xs) var(--spacing-sm);
        display: block;
    }
}

/* Mobile: Inline layout reverts to stacked */
@media (max-width: 768px) {
    .header-layout-inline .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .header-layout-inline .site-branding {
        text-align: center;
    }
    
    .header-layout-inline .header-navigation-inline {
        width: 100%;
        justify-content: center;
    }
    
    .header-layout-inline .header-navigation-inline .menu-toggle {
        display: block;
        margin: var(--spacing-sm) auto;
    }
    
    .header-layout-inline .header-navigation-inline .main-navigation {
        display: none;
        width: 100%;
    }
    
    .header-layout-inline .header-navigation-inline .main-navigation.toggled {
        display: block;
    }
}

/* ==========================================================================
   MAIN CONTENT AREA - 3 COLUMN LAYOUT
   ========================================================================== */
.site-main {
    padding: 0;
}

.content-area {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    gap: 0;
    background: #fff;
}

.sidebar-left,
.sidebar-right {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-right: 1px solid var(--border-color);
}

.sidebar-right {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.primary-content {
    min-width: 0;
    padding: var(--spacing-lg) var(--spacing-md);
}

/* ==========================================================================
   CONTENT SECTIONS / BLOCKS SYSTEM
   ========================================================================== */
.content-section {
    margin: var(--spacing-xl) 0;
    padding: 0;
}

/* No border between sections - section headers provide visual separation */
.content-section + .content-section {
    margin-top: var(--spacing-xl);
    padding-top: 0;
}

/* Featured First Post in Sections */
.content-section .post-card.featured {
    flex-direction: column;
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
}

.content-section .post-card.featured .post-thumbnail {
    width: 100%;
    max-width: none;
    margin-bottom: var(--spacing-md);
}

.content-section .post-card.featured .post-thumbnail img {
    width: 100%;
    height: auto;
}

.content-section .post-card.featured .post-title {
    font-size: 1.5rem;
    line-height: 1.3;
}

.content-section .post-card.featured .post-excerpt {
    font-size: 1rem;
}

/* Two-Column with Featured First */
.posts-grid-two-col .post-card.featured {
    grid-column: 1 / -1; /* Span all columns */
}

/* Compact Layout for Sections */
.posts-list.compact .post-card {
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-md);
}

.posts-list.compact .post-thumbnail {
    width: 100px;
}

.posts-list.compact .post-title {
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
}

.posts-list.compact .post-excerpt {
    display: none;
}

.posts-list.compact .post-meta {
    font-size: 0.625rem;
}

/* Large Image Layout for Sections */
.posts-list.large-image .post-card {
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.posts-list.large-image .post-thumbnail {
    width: 425px;
    min-width: 425px;
}

.posts-list.large-image .post-thumbnail img {
    width: 425px;
    height: 275px;
    object-fit: cover;
}

.posts-list.large-image .post-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.posts-list.large-image .post-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.posts-list.large-image .post-meta {
    font-size: 0.75rem;
}

/* WP RSS Aggregator Display Integration */
.wprss-display-section .feed-item {
    display: flex;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.wprss-display-section.posts-grid-two-col .feed-item,
.wprss-display-section.posts-grid-three-col .feed-item {
    flex-direction: column;
}

/* ==========================================================================
   POST LAYOUT - HORIZONTAL WITH IMAGE LEFT, TEXT RIGHT
   ========================================================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.post-card {
    display: flex;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

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

/* Featured/Hero Post */
.post-card.featured {
    flex-direction: column;
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: var(--spacing-xl);
}

.post-card.featured .post-thumbnail {
    width: 100%;
    max-width: none;
    margin-bottom: var(--spacing-md);
}

.post-card.featured .post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-card.featured .post-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

/* Regular Posts */
.post-thumbnail {
    flex-shrink: 0;
    width: 180px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.post-thumbnail img:hover {
    opacity: 0.9;
}

.post-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-family: var(--font-secondary);
    font-size: 0.6875rem;
    color: var(--lighter-text);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category {
    color: var(--accent-color);
    font-weight: bold;
}

.post-source {
    color: var(--lighter-text);
}

.post-date {
    color: var(--lighter-text);
}

.post-meta .sep {
    margin: 0 5px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.post-title a {
    color: var(--primary-color);
}

.post-title a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.post-excerpt {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.post-byline {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: var(--lighter-text);
    font-style: italic;
}

/* ==========================================================================
   TWO-COLUMN POST LAYOUT (for some sections)
   ========================================================================== */
.posts-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    padding: 0;
}

.posts-grid-two-col .post-card {
    flex-direction: column;
    border-bottom: none;
    padding-bottom: 0;
}

.posts-grid-two-col .post-thumbnail {
    width: 100%;
    max-width: none;
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   THREE-COLUMN POST LAYOUT (for culture section)
   ========================================================================== */
.posts-grid-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    padding: 0;
}

.posts-grid-three-col .post-card {
    flex-direction: column;
    border-bottom: none;
    padding-bottom: 0;
}

.posts-grid-three-col .post-thumbnail {
    width: 100%;
    max-width: none;
    margin-bottom: var(--spacing-sm);
}

.posts-grid-three-col .post-title {
    font-size: 1rem;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--spacing-sm) 0;
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.widget {
    margin-bottom: var(--spacing-xl);
}

.widget-title {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.widget li {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    line-height: 1.4;
}

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

.widget a {
    color: var(--accent-color);
    font-size: 0.75rem;
}

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

/* Recent Posts Widget with Thumbnails */
.widget-recent-posts .post-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.widget-recent-posts .post-item:last-child {
    border-bottom: none;
}

.widget-recent-posts .post-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.widget-recent-posts .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-recent-posts .post-info {
    flex-grow: 1;
}

.widget-recent-posts .post-title {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 3px;
    font-weight: bold;
}

.widget-recent-posts .post-date {
    font-size: 0.625rem;
    color: var(--lighter-text);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

/* Hide any list styling if present */
.pagination ul,
.pagination ol {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
}

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

/* ==========================================================================
   SINGLE POST LAYOUT
   ========================================================================== */
.single-post-content {
    max-width: 100%;
}

.single-post {
    background: #fff;
    padding: var(--spacing-xl) 0 0 0;
}

.single-post .entry-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary-color);
}

.single-post .post-meta {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: var(--lighter-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.single-post .entry-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    color: var(--primary-color);
}

.single-post .featured-image {
    width: 100%;
    margin: var(--spacing-xl) 0;
}

.single-post .featured-image img {
    width: 100%;
    height: auto;
}

.single-post .image-caption {
    font-size: 0.8125rem;
    color: var(--light-text);
    font-style: italic;
    margin-top: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    border-left: 3px solid var(--border-color);
}

.single-post .entry-content {
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
}

.single-post .entry-content p {
    margin-bottom: var(--spacing-lg);
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    font-family: var(--font-heading);
    font-weight: bold;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.single-post .entry-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.single-post .entry-content h3 {
    font-size: 1.375rem;
}

.single-post .entry-content h4 {
    font-size: 1.125rem;
}

.single-post .entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.single-post .entry-content a:hover {
    color: var(--primary-color);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.single-post .entry-content li {
    margin-bottom: var(--spacing-sm);
}

.single-post .entry-content blockquote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    font-style: italic;
}

.single-post .post-actions {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.single-post .button.external-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.single-post .button.external-link:hover {
    background: var(--primary-color);
    text-decoration: none;
}

.single-post .entry-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.single-post .post-tags {
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
}

.single-post .post-tags a {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 5px 5px 0;
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.single-post .post-tags a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.single-post .post-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.single-post .post-navigation a {
    flex: 1;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.single-post .post-navigation a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.single-post .post-navigation .nav-previous {
    text-align: left;
}

.single-post .post-navigation .nav-next {
    text-align: right;
}

/* Comments Section */
.single-post .comments-area {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--primary-color);
}

/* ==========================================================================
   ARCHIVE / CATEGORY PAGES
   ========================================================================== */
.archive-content {
    max-width: 100%;
}

.archive-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--primary-color);
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--primary-color);
    text-transform: uppercase;
}

.archive-description {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--text-color);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.pagination .page-numbers:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    color: var(--text-color);
}

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

/* No Posts Message */
.no-posts {
    padding: var(--spacing-xl);
    text-align: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.no-posts h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--primary-color);
}

.no-posts p {
    font-size: 1rem;
    margin: 0;
    color: var(--light-text);
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */
.comments-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--primary-color);
    text-transform: uppercase;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-xl) 0;
}

.comment {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.comment-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-author .fn {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1rem;
    color: var(--primary-color);
    font-style: normal;
}

.comment-metadata {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-sm);
}

.comment-metadata a {
    color: var(--light-text);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--accent-color);
}

.comment-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.reply {
    text-align: right;
}

.reply a {
    font-family: var(--font-secondary);
    font-size: 0.8125rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
}

.reply a:hover {
    text-decoration: underline;
}

.children {
    list-style: none;
    margin-left: var(--spacing-xl);
    padding: 0;
}

.comment-respond {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-light);
    border: 3px solid var(--primary-color);
    border-radius: 0;
}

.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-reply-title small {
    font-size: 0.75rem;
    font-weight: normal;
}

.comment-reply-title small a {
    color: var(--accent-color);
    text-decoration: none;
}

.comment-form {
    margin: 0;
}

.comment-notes {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm);
    background: #fff;
    border-left: 3px solid var(--accent-color);
}

.required {
    color: var(--accent-color);
    font-weight: bold;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: var(--spacing-md);
}

.comment-form label {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color);
    background: #fff;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.logged-in-as {
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #fff;
    border-left: 4px solid var(--accent-color);
}

.logged-in-as a {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

.form-submit {
    margin: var(--spacing-md) 0 0 0;
}

.form-submit input[type="submit"] {
    padding: 14px 32px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: var(--accent-color);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit input[type="submit"]:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.comment-awaiting-moderation {
    display: block;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    font-size: 0.875rem;
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */
.author-box {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
}

.author-box-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: bold;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-box-content {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--primary-color);
}

.author-name a {
    color: var(--primary-color);
    text-decoration: none;
}

.author-name a:hover {
    color: var(--accent-color);
}

.author-bio {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-color);
}

.author-meta {
    font-size: 0.8125rem;
    margin: 0;
}

.author-posts-link {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

.author-posts-link:hover {
    text-decoration: underline;
}

/* Author Box Responsive */
@media (max-width: 600px) {
    .author-box-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-avatar {
        margin-bottom: var(--spacing-sm);
    }
}

/* ==========================================================================
   PAGE TEMPLATE STYLES
   ========================================================================== */
.page-content {
    background: #fff;
}

.page-content .entry-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--primary-color);
}

.page-content .entry-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-content .entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.page-content .entry-content h2 {
    font-size: 1.75rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-weight: bold;
    color: var(--primary-color);
}

.page-content .entry-content h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-weight: bold;
    color: var(--secondary-color);
}

.page-content .entry-content h4 {
    font-size: 1.25rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

.page-content .entry-content p {
    margin-bottom: var(--spacing-md);
}

.page-content .entry-content ul,
.page-content .entry-content ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.page-content .entry-content li {
    margin-bottom: var(--spacing-sm);
}

.page-content .entry-content strong {
    font-weight: bold;
    color: var(--primary-color);
}

.page-content .entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.page-content .entry-content a:hover {
    color: var(--primary-color);
}

.page-content .page-links {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.page-content .comments-area {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 3px solid var(--primary-color);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-widget {
    color: rgba(255,255,255,0.9);
}

.footer-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

/* Footer Navigation Menu */
.footer-navigation {
    margin-bottom: var(--spacing-md);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm) var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #fff !important;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

/* Additional selectors to ensure footer links are white */
.footer-navigation a,
.footer-navigation .menu a,
nav.footer-navigation a,
.site-footer nav a,
.site-footer .footer-menu a,
.site-footer .menu-item a {
    color: #fff !important;
}

.footer-navigation a:hover,
.footer-navigation .menu a:hover,
nav.footer-navigation a:hover,
.site-footer nav a:hover,
.site-footer .footer-menu a:hover,
.site-footer .menu-item a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

/* Copyright */
.copyright {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 0.8125rem;
    color: #fff;
    margin-top: var(--spacing-sm);
}

.copyright p {
    margin: 0;
    color: #fff !important;
}

.copyright a {
    color: #fff !important;
    text-decoration: underline;
}

.copyright a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large Tablet */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 180px;
    }
    
    .post-thumbnail {
        width: 150px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    .posts-grid-two-col {
        grid-template-columns: 1fr;
    }
    
    .posts-grid-three-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .site-logo img {
        max-height: 60px;
        max-width: 90%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-logo img {
        max-height: 45px;
        max-width: 85%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hide menu by default on mobile */
    .main-navigation ul {
        display: none;
    }
    
    /* Flyout Menu - When Toggled */
    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        padding: 0;
        overflow-y: auto;
        animation: slideIn 0.3s ease-out;
        gap: 0;
    }
    
    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    /* Menu overlay */
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        animation: fadeIn 0.3s ease-out;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* Mobile menu items */
    .main-navigation.toggled li {
        margin: 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .main-navigation.toggled li:first-child {
        margin-top: 60px; /* Centers menu vertically */
    }
    
    .main-navigation.toggled a {
        padding: 15px 25px;
        font-size: 1rem;
        color: #333;
        display: block;
        text-align: left;
    }
    
    .main-navigation.toggled a:hover {
        background: #f5f5f5;
        color: var(--primary-color);
    }
    
    .main-navigation.toggled .current-menu-item > a {
        background: #f0f8ff;
        color: var(--primary-color);
        font-weight: bold;
    }
    
    /* Close button in mobile menu */
    .main-navigation.toggled::after {
        content: '×';
        position: fixed;
        top: 10px;
        right: 290px;
        width: 40px;
        height: 40px;
        background: #000;
        color: #fff;
        font-size: 30px;
        line-height: 40px;
        text-align: center;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10000;
        pointer-events: none;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Date & Search - Mobile Specific */
    .header-date-mobile {
        display: block; /* Show mobile date above logo */
    }
    
    .header-date-desktop {
        display: none; /* Hide desktop date in nav bar */
    }
    
    /* Hide search from nav wrapper on mobile, show in flyout */
    .nav-bar-inner .header-search {
        display: none;
    }
    
    /* Center the nav container on mobile */
    .nav-bar-inner {
        justify-content: center;
    }
    
    /* Mobile menu site icon at top */
    .main-navigation.toggled .mobile-menu-icon {
        display: block !important;
        width: 100%;
        padding: 20px;
        border-bottom: 3px solid #333;
        background: #fff;
        text-align: center;
        list-style: none;
        margin: 0;
    }
    
    .main-navigation.toggled .mobile-menu-icon img {
        width: 64px;
        height: 64px;
        border-radius: 8px;
    }
    
    /* Search in mobile flyout menu */
    .main-navigation.toggled .header-search {
        display: block !important;
        width: 100%;
        padding: 15px 20px;
        border-bottom: 2px solid #eee;
        background: #f9f9f9;
        list-style: none;
        margin: 0;
    }
    
    .main-navigation.toggled .search-form {
        width: 100%;
        margin: 0;
    }
    
    .main-navigation.toggled .search-field {
        width: 100%;
        flex: 1;
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .main-navigation.toggled .search-submit {
        padding: 10px 20px;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        max-width: none;
        margin-bottom: var(--spacing-sm);
    }
    
    .posts-grid-three-col {
        grid-template-columns: 1fr;
    }
}

/* Hide mobile menu search and icon on desktop/landscape */
@media (min-width: 769px) {
    .main-navigation ul .header-search,
    .main-navigation ul .mobile-menu-icon {
        display: none !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-md: 10px;
        --spacing-lg: 15px;
        --spacing-xl: 20px;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .post-card.featured .post-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   V3.0 - HERO LAYOUT SYSTEM
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-color: var(--background-color);
    margin-bottom: 40px;
    overflow: hidden;
}

/* Hero background with filters (applied to pseudo-element to not affect content) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 2%;
    align-items: start;
}

/* Hero Featured Post (Left) - Image Background with Overlay */
.hero-featured {
    position: relative;
    background: var(--content-bg-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.hero-featured-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay on featured image for text readability */
.hero-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-featured-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
    color: #fff !important;
}

.hero-featured .post-meta {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-featured .post-meta .post-category,
.hero-featured .post-meta .post-source,
.hero-featured .post-meta .post-date {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-featured .post-meta .sep {
    color: rgba(255, 255, 255, 0.6) !important;
}

.hero-featured-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 12px 0 16px;
    font-weight: bold;
    color: #fff !important;
}

.hero-featured-title a,
.hero-featured .hero-featured-title a,
.hero-featured-post .hero-featured-title a {
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-featured-title a:hover,
.hero-featured .hero-featured-title a:hover,
.hero-featured-post .hero-featured-title a:hover {
    color: #fff !important;
    opacity: 0.9;
    text-decoration: none !important;
}

.hero-featured-excerpt,
.hero-featured .hero-featured-excerpt,
.hero-featured-post .hero-featured-excerpt,
.hero-featured-excerpt p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-top: 12px;
}

/* Hero List (Right) */
.hero-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-list-item {
    background: var(--content-bg-color);
    padding: 16px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero-list-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 8px 0 0;
    font-weight: 600;
    color: var(--heading-color);
}

.hero-list-title a {
    color: inherit;
    text-decoration: none;
}

.hero-list-title a:hover {
    color: var(--accent-color);
}

/* 70/30 Layout for Hero Mode */
.layout-70-30 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.layout-70-30 .content-wrapper {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
    align-items: start;
}

.primary-content-wide {
    width: 100%;
}

.sidebar-primary {
    width: 100%;
}

.sidebar-primary .widget {
    background: var(--content-bg-color);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.sidebar-primary .widget-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--heading-color);
}

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

.sidebar-primary .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-primary .widget ul li:last-child {
    border-bottom: none;
}

.sidebar-primary .widget ul li a {
    color: var(--body-text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.sidebar-primary .widget ul li a:hover {
    color: var(--accent-color);
}

/* Centered Page Headers for Hero Layout */
.page-header.centered,
.entry-header.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 40px 20px 20px;
}

.page-header.centered .page-title,
.entry-header.centered .entry-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--heading-color);
}

.page-header.centered .archive-description {
    font-size: 16px;
    color: var(--meta-text-color);
}

/* Hero Layout Post Meta */
.hero-featured .post-meta,
.hero-list-item .post-meta {
    font-size: 13px;
    color: var(--meta-text-color);
    margin-bottom: 8px;
}

.hero-featured .post-meta .sep,
.hero-list-item .post-meta .sep {
    margin: 0 6px;
    opacity: 0.5;
}

.hero-featured .post-meta .post-category,
.hero-list-item .post-meta .post-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

/* Responsive Hero Layout */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .layout-70-30 .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Hide sidebar on tablet and mobile for hero layout */
    .layout-70-30 .sidebar-primary,
    body.site-layout-hero .sidebar-primary,
    body.site-layout-hero .sidebar-right,
    body.site-layout-hero aside[class*="sidebar"] {
        display: none !important;
    }
    
    .page-header.centered .page-title,
    .entry-header.centered .entry-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-container {
        padding: 40px 16px;
    }
    
    .hero-featured {
        min-height: 400px;
    }
    
    .hero-featured-title {
        font-size: 24px;
    }
    
    .hero-list-title {
        font-size: 16px;
    }
    
    .page-header.centered .page-title,
    .entry-header.centered .entry-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .site-header,
    .main-navigation,
    .sidebar-left,
    .sidebar-right,
    .site-footer {
        display: none;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
}


/* Full Width Page Template */
.page-template-template-full-width .content-wrapper-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-template-template-full-width .primary-content-full {
    max-width: 100%;
}

/* Page title styling */
.page-template-template-full-width .entry-header {
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-template-template-full-width .entry-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #333;
}

/* Page intro content (main page content before sections) */
.page-template-template-full-width .page-intro-content {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-template-template-full-width .page-intro-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: #333;
}

.page-template-template-full-width .page-intro-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #333;
}

.page-template-template-full-width .page-intro-content p {
    margin-bottom: 20px;
}

/* Content sections in full width template */
.page-template-template-full-width .section-header {
    font-weight: 700;
    text-transform: uppercase;
    margin: 40px 0 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #333;
}

.page-template-template-full-width .content-section {
    margin-bottom: 50px;
}

@media screen and (max-width: 768px) {
    .page-template-template-full-width .content-wrapper-full {
        padding: 20px 15px;
    }
    
    .page-template-template-full-width .entry-title {
        font-size: 32px;
    }
    
    .page-template-template-full-width .page-intro-content {
        font-size: 15px;
    }
}

/* ==========================================================================
   FULL WIDTH LAYOUT
   ========================================================================== */

/* Full Width Layout - Homepage and Search */
.layout-full-width .content-wrapper {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.layout-full-width .primary-content-full {
    max-width: 100%;
    width: 100%;
}

/* Full Width Page Template - Better Styling */
.page-template-template-full-width .content-wrapper-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-template-template-full-width .primary-content-full {
    max-width: 100%;
}

/* Full Width - Page Title */
.page-template-template-full-width .entry-header.centered,
.layout-full-width .page-header.centered {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

/* Full Width - Content Sections */
.page-template-template-full-width .content-section,
.layout-full-width .content-section {
    margin-bottom: 40px;
}

.page-template-template-full-width .section-header,
.layout-full-width .section-header {
    margin-bottom: 30px;
}

/* Page intro content */
.page-intro-content {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
}

@media screen and (max-width: 768px) {
    .layout-full-width .content-wrapper,
    .page-template-template-full-width .content-wrapper-full {
        padding: 20px 15px;
    }
    
    .page-intro-content {
        font-size: 16px;
    }
}

/* Force hide sidebar in full-width layout - ONLY on homepage and search */
body.site-layout-full-width.home .sidebar-right,
body.site-layout-full-width.home .sidebar-primary,
body.site-layout-full-width.home .sidebar-left,
body.site-layout-full-width.home aside[class*="sidebar"],
body.site-layout-full-width.search .sidebar-right,
body.site-layout-full-width.search .sidebar-primary,
body.site-layout-full-width.search .sidebar-left,
body.site-layout-full-width.search aside[class*="sidebar"] {
    display: none !important;
}

.layout-full-width .sidebar-right,
.layout-full-width .sidebar-primary,
.layout-full-width aside[class*="sidebar"] {
    display: none !important;
}

.layout-full-width .content-wrapper {
    grid-template-columns: 1fr !important;
}

/* Mobile - Force hide all sidebars in full-width layout ONLY on homepage and search */
@media screen and (max-width: 900px) {
    body.site-layout-full-width.home .sidebar-right,
    body.site-layout-full-width.home .sidebar-primary,
    body.site-layout-full-width.home .sidebar-left,
    body.site-layout-full-width.home aside,
    body.site-layout-full-width.search .sidebar-right,
    body.site-layout-full-width.search .sidebar-primary,
    body.site-layout-full-width.search .sidebar-left,
    body.site-layout-full-width.search aside {
        display: none !important;
    }
    
    /* Homepage and search use .layout-full-width container */
    .layout-full-width .sidebar-right,
    .layout-full-width .sidebar-primary,
    .layout-full-width aside {
        display: none !important;
    }
    
    .layout-full-width .content-wrapper {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 768px) {
    /* Hide sidebars ONLY on homepage and search */
    body.site-layout-full-width.home .sidebar-right,
    body.site-layout-full-width.home .sidebar-primary,
    body.site-layout-full-width.home .sidebar-left,
    body.site-layout-full-width.home aside,
    body.site-layout-full-width.search .sidebar-right,
    body.site-layout-full-width.search .sidebar-primary,
    body.site-layout-full-width.search .sidebar-left,
    body.site-layout-full-width.search aside {
        display: none !important;
    }
    
    /* Homepage and search use .layout-full-width container */
    .layout-full-width .sidebar-right,
    .layout-full-width .sidebar-primary,
    .layout-full-width aside {
        display: none !important;
    }
    
    .layout-full-width .content-wrapper {
        display: block !important;
    }
    
    .layout-full-width .primary-content-full {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Hide ALL sidebars on mobile when using full-width layout */
    body.site-layout-full-width .sidebar-right,
    body.site-layout-full-width .sidebar-primary,
    body.site-layout-full-width .sidebar-left,
    body.site-layout-full-width aside[class*="sidebar"] {
        display: none !important;
    }
    
    body.site-layout-full-width .layout-70-30 .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */

.error-404-page {
    background: #f5f5f5;
    padding: 60px 0;
}

.error-404-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 404 Header */
.error-404-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #333;
}

.error-404-title {
    font-size: 120px;
    font-weight: 900;
    margin: 0;
    color: #333;
    line-height: 1;
    font-family: var(--heading-font);
}

.error-404-subtitle {
    font-size: 32px;
    font-weight: 700;
    margin: 15px 0 0;
    color: #666;
    font-family: var(--heading-font);
}

/* Error Content */
.error-404-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.error-404-lead {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333;
}

.error-404-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.error-404-reasons {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.error-404-reasons li {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.error-404-reasons li:last-child {
    border-bottom: none;
}

/* Search Section */
.error-404-search {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: center;
}

.search-heading {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #333;
    font-family: var(--heading-font);
}

.search-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.error-404-search .search-form {
    max-width: 500px;
    margin: 0 auto;
}

.error-404-search .search-field {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.error-404-search .search-submit {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

/* Helpful Links */
.error-404-links {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.links-heading {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px;
    color: #333;
    text-align: center;
    font-family: var(--heading-font);
}

.error-links-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.error-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.error-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-icon {
    font-size: 32px;
    margin-right: 15px;
}

.link-text {
    font-size: 18px;
    font-weight: 600;
}

/* Recent Posts */
.error-404-recent {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recent-heading {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #333;
    text-align: center;
    font-family: var(--heading-font);
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.error-recent-post {
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-recent-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.recent-post-thumb {
    display: block;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.error-recent-post:hover .recent-post-thumb img {
    transform: scale(1.05);
}

.recent-post-content {
    padding: 20px;
}

.recent-post-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.recent-post-title a {
    color: #333;
    text-decoration: none;
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

.recent-post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.recent-post-meta .post-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .error-404-title {
        font-size: 80px;
    }
    
    .error-404-subtitle {
        font-size: 24px;
    }
    
    .error-404-content,
    .error-404-search,
    .error-404-links,
    .error-404-recent {
        padding: 25px;
    }
    
    .error-links-nav {
        grid-template-columns: 1fr;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .link-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .error-404-title {
        font-size: 60px;
    }
    
    .error-404-subtitle {
        font-size: 20px;
    }
}

/* ==========================================================================
   NEWSPAPER TEMPLATE STYLES
   ========================================================================== */

/* Newspaper Container - Full Width */
.newspaper-template {
    background: #ffffff;
}

.newspaper-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.newspaper-content {
    width: 100%;
    padding: 20px;
}

/* Page Header */
.newspaper-page-header {
    text-align: center;
    padding: 30px 0 20px;
    border-bottom: 3px solid #000;
    margin-bottom: 30px;
}

.newspaper-page-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: #000;
}

.newspaper-page-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #000;
    font-size: 16px;
    line-height: 1.7;
}

/* Section Header - Black Label Style */
.newspaper-section-header {
    margin: 30px 0 20px;
    padding: 0;
}

.newspaper-section-title {
    display: inline-block;
    background: #000 !important;
    color: #fff !important;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* Newspaper Section Base */
.newspaper-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.newspaper-section:last-child {
    border-bottom: none;
}

/* Newspaper Card Base Styles */
.newspaper-card {
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.newspaper-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #999;
}

.newspaper-thumbnail {
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.newspaper-thumbnail a {
    display: block;
    line-height: 0;
}

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

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

.newspaper-content-wrapper {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta Info */
.newspaper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.newspaper-category {
    color: #000;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 2px;
}

.newspaper-source,
.newspaper-author {
    color: #666;
}

.newspaper-date {
    color: #999;
}

.newspaper-sep {
    color: #ccc;
    margin: 0 2px;
}

/* Post Title */
.newspaper-post-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 10px 0;
    flex-grow: 0;
}

.newspaper-post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.newspaper-post-title a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Excerpt */
.newspaper-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-top: 0;
}

/* Card Size Variants */
.card-hero .newspaper-thumbnail {
    height: 500px;
}

.card-hero .newspaper-post-title {
    font-size: 36px;
    line-height: 1.2;
}

.card-hero .newspaper-content-wrapper {
    padding: 25px;
}

.card-banner .newspaper-thumbnail {
    height: 350px;
}

.card-banner .newspaper-post-title {
    font-size: 28px;
}


.card-large .newspaper-post-title {
    font-size: 24px;
}

.card-medium .newspaper-thumbnail {
    height: 200px;
}

.card-medium .newspaper-post-title {
    font-size: 18px;
}

.card-small .newspaper-thumbnail {
    height: 150px;
}

.card-small .newspaper-post-title {
    font-size: 16px;
}

.card-small .newspaper-content-wrapper {
    padding: 12px;
}

.card-compact {
    flex-direction: row;
    height: auto;
}

.card-compact .newspaper-thumbnail {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
}

.card-compact .newspaper-post-title {
    font-size: 14px;
    margin-bottom: 5px;
}

.card-compact .newspaper-content-wrapper {
    padding: 10px;
}

.card-compact .newspaper-meta {
    font-size: 10px;
}

.card-hidden {
    display: none;
}

/* ==========================================================================
   NEWSPAPER LAYOUT TYPES
   ========================================================================== */

/* Hero Feature Layout */
.newspaper-section-newspaper-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Banner Layout */
.newspaper-section-newspaper-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Mixed Grid Layout */
.newspaper-section-newspaper-mixed-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.newspaper-section-newspaper-mixed-grid .newspaper-card:first-child {
    grid-row: 1 / 3;
}

/* Mixed Grid Double Layout - 2 Hero Cards + Small Posts (Exact Hero Styling) */
.newspaper-section-newspaper-mixed-grid-double {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Left container: Hero cards */
.mixed-grid-double-hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right container: Small posts */
.mixed-grid-double-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero card styling - EXACT match to .hero-featured */
.newspaper-card-hero {
    position: relative;
    background: var(--content-bg-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.hero-card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

/* Hover scale effect on hero cards */
.newspaper-card-hero:hover .hero-card-thumbnail img {
    transform: scale(1.05);
}

/* Dark overlay for hero cards - EXACT match */
.newspaper-card-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-card-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
    color: #fff !important;
}

.hero-card-meta {
    font-size: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-card-meta .post-category,
.hero-card-meta .post-source,
.hero-card-meta .post-date,
.hero-card-meta .post-author {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-card-meta .sep {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 8px;
}

.hero-card-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 12px 0 16px;
    font-weight: bold;
    color: #fff !important;
}

.hero-card-title a,
.newspaper-card-hero .hero-card-title a,
h3.hero-card-title a {
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-card-title a:hover,
.newspaper-card-hero .hero-card-title a:hover,
h3.hero-card-title a:hover,
.hero-card-title a:visited,
.hero-card-title a:focus,
.hero-card-title a:active {
    color: #fff !important;
    opacity: 0.9;
    text-decoration: none !important;
}

.hero-card-excerpt,
.hero-card-excerpt p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-top: 12px;
}

/* Small card styling - EXACT match to .hero-list-item BUT WITH images */
.newspaper-card-small {
    background: var(--content-bg-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.newspaper-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* KEEP thumbnail - show images */
.small-card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.newspaper-card-small:hover .small-card-thumbnail img {
    transform: scale(1.05);
}

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

.small-card-meta {
    font-size: 11px;
    color: var(--light-text);
    margin-bottom: 8px;
}

.small-card-meta .sep {
    margin: 0 6px;
}

.small-card-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 8px 0 0;
    font-weight: 600;
    color: var(--heading-color);
}

.small-card-title a {
    color: inherit;
    text-decoration: none;
}

.small-card-title a:hover {
    color: var(--accent-color);
}

/* Hide excerpt on small cards */
.small-card-excerpt {
    display: none;
}

/* Two-Column Masonry */
.newspaper-section-newspaper-masonry-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
}

.newspaper-section-newspaper-masonry-two .card-large {
    grid-column: span 1;
    grid-row: span 2;
}

/* Three-Column Masonry */
.newspaper-section-newspaper-masonry-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    grid-auto-flow: dense;
}

.newspaper-section-newspaper-masonry-three .card-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Compact List */
.newspaper-section-newspaper-compact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Even Grid */
.newspaper-section-newspaper-grid-even {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Feature + Row Layout */
.newspaper-section-newspaper-feature-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
}

.newspaper-section-newspaper-feature-row .newspaper-card:first-child {
    grid-row: 1 / 3;
}

/* ==========================================================================
   NEWSPAPER RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1200px) {
    .newspaper-page-title {
        font-size: 36px;
    }
    
    .card-hero .newspaper-post-title {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    /* Mixed Grid becomes 2 columns */
    .newspaper-section-newspaper-mixed-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .newspaper-section-newspaper-mixed-grid .newspaper-card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    /* Mixed Grid Double - stack containers on tablet */
    .newspaper-section-newspaper-mixed-grid-double {
        grid-template-columns: 1fr;
    }
    
    /* Feature Row becomes 2 columns */
    .newspaper-section-newspaper-feature-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .newspaper-section-newspaper-feature-row .newspaper-card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    /* Even Grid becomes 2 columns */
    .newspaper-section-newspaper-grid-even {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Large Image Layout - Full width images on tablet */
    .posts-list.large-image .post-card {
        flex-direction: column;
        padding-bottom: 0;
        margin-bottom: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .posts-list.large-image .post-thumbnail {
        width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .posts-list.large-image .post-thumbnail img {
        width: 100%;
        height: auto;
        aspect-ratio: 425 / 275;
        display: block;
    }
}

@media (max-width: 768px) {
    .newspaper-content {
        padding: 15px;
    }
    
    .newspaper-page-title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .newspaper-section-title {
        font-size: 16px;
        padding: 6px 15px;
    }
    
    /* All multi-column grids become single column on mobile */
    .newspaper-section-newspaper-mixed-grid,
    .newspaper-section-newspaper-mixed-grid-double,
    .newspaper-section-newspaper-masonry-two,
    .newspaper-section-newspaper-masonry-three,
    .newspaper-section-newspaper-grid-even,
    .newspaper-section-newspaper-feature-row,
    .newspaper-section-newspaper-compact-list {
        grid-template-columns: 1fr;
    }
    
    .newspaper-section-newspaper-mixed-grid .newspaper-card:first-child,
    .newspaper-section-newspaper-mixed-grid-double .newspaper-card:nth-child(1),
    .newspaper-section-newspaper-mixed-grid-double .newspaper-card:nth-child(2),
    .newspaper-section-newspaper-feature-row .newspaper-card:first-child {
        grid-column: auto;
        grid-row: auto;
    }
    
    .newspaper-section-newspaper-masonry-two .card-large,
    .newspaper-section-newspaper-masonry-three .card-large {
        grid-column: auto;
        grid-row: auto;
    }
    
    /* Adjust card sizes on mobile */
    .card-hero .newspaper-thumbnail,
    .card-banner .newspaper-thumbnail {
        height: 250px;
    }
    
    .card-hero .newspaper-post-title {
        font-size: 24px;
    }
    
    .card-banner .newspaper-post-title,
    .card-large .newspaper-post-title {
        font-size: 20px;
    }
    
    .card-medium .newspaper-thumbnail,
    .card-small .newspaper-thumbnail {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .newspaper-page-header {
        padding: 20px 0 15px;
    }
    
    .newspaper-page-title {
        font-size: 24px;
    }
    
    .card-hero .newspaper-post-title {
        font-size: 20px;
    }
    
    .card-compact .newspaper-thumbnail {
        width: 100px;
        height: 75px;
    }
    
    .card-compact .newspaper-post-title {
        font-size: 13px;
    }
}

/* Print Styles for Newspaper Template */
@media print {
    .newspaper-section {
        page-break-inside: avoid;
    }
    
    .newspaper-card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .newspaper-thumbnail {
        display: none;
    }
    
    .newspaper-section-title {
        background: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ==========================================================================
   MOBILE POPULAR POSTS (Single Posts Only)
   ========================================================================== */

/* Hide on desktop */
.mobile-popular-posts {
    display: none;
}

/* Show on tablet and mobile only for single posts */
@media (max-width: 992px) {
    body.single .mobile-popular-posts {
        display: block;
        width: 100%;
        margin: 40px 0 0;
        padding: 20px;
        background: #f9f9f9;
        border-top: 3px solid #000;
    }
    
    .mobile-popular-posts-title {
        font-family: var(--font-heading);
        font-size: 24px;
        font-weight: bold;
        text-transform: uppercase;
        margin: 0 0 20px 0;
        padding-bottom: 10px;
        border-bottom: 2px solid #ddd;
    }
    
    .mobile-popular-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Hide regular sidebars on mobile for single posts */
    body.single .sidebar-left,
    body.single .sidebar-right,
    body.single .sidebar-primary {
        display: none;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 992px) {
    body.single .mobile-popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile popular post card */
.mobile-popular-card {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.mobile-popular-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #999;
}

.mobile-popular-thumbnail {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.mobile-popular-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-popular-content {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-popular-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 5px 0;
}

.mobile-popular-title a {
    color: #000;
    text-decoration: none;
}

.mobile-popular-title a:hover {
    color: var(--accent-color);
}

.mobile-popular-meta {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.mobile-popular-category {
    color: #000;
    font-weight: 600;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.scroll-to-top:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive positioning */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Hide excerpts on large cards to save space */
.card-large .newspaper-excerpt {
    display: none;
}
