/*
Theme Name: FootemAssist News
Theme URI: https://footemassist.com
Author: FootemAssist Team
Author URI: https://footemassist.com
Description: High-performance, modern football news and editorial magazine theme designed for FootemAssist. Built with native Polylang multilingual integration, Rank Math SEO compatibility, Core Web Vitals optimization, accessible responsive layouts, and customizable editorial blocks.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: footemassist-news
Tags: news, sports, blog, editorial, grid-layout, two-columns, custom-menu, featured-images, translation-ready, theme-options

-----------------------------------------------------------------------------------
TABLE OF CONTENTS:
1. CSS Variables & Design Tokens
2. Modern Reset & Base Typography
3. Layout & Container Grid
4. Header, Brand & Navigation
5. Polylang Language Switcher
6. Breaking News / Trending Ticker
7. Featured Hero Grid (Editorial Layout)
8. Latest News & Category Blocks
9. Article Cards & Thumbnail Ratios
10. Single Article Typography & Metadata
11. Author Box & Related Posts
12. Category, Tag, Author & Search Archives
13. Search Form & Modal
14. Sidebar & Widgets
15. Comments & Forms
16. Ad Slots (Top, Mid-Feed, In-Article, Sidebar, Footer)
17. Footer & Copyright Bar
18. Accessibility & Focus States
19. Responsive Breakpoints
-----------------------------------------------------------------------------------
*/

:root {
    /* Brand & Accent Colors - Pitch green theme */
    --color-primary: #047857;          /* Rich Football Green */
    --color-primary-dark: #065f46;     /* Dark Pitch Green */
    --color-primary-light: #10b981;    /* Bright Accent Green */
    --color-accent: #f59e0b;           /* Amber/Gold Accent for Breaking/Live */
    --color-danger: #ef4444;           /* Live/Breaking Red */

    /* Neutrals & Surfaces */
    --color-header-bg: #0b1320;        /* Deep Midnight Navy */
    --color-header-nav: #111c2e;       /* Navigation Bar Background */
    --color-header-text: #f8fafc;
    --color-header-muted: #94a3b8;
    
    --color-bg: #f8fafc;               /* Page background */
    --color-surface: #ffffff;          /* Card & container background */
    --color-surface-alt: #f1f5f9;      /* Subtle section background */
    --color-border: #e2e8f0;           /* Soft border */
    --color-border-dark: #cbd5e1;

    /* Typography Colors */
    --color-text-main: #0f172a;        /* Deep slate text */
    --color-text-secondary: #475569;   /* Readable secondary text */
    --color-text-muted: #64748b;       /* Metadata text */
    --color-text-light: #ffffff;

    /* Typography Families */
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Layout Constraints */
    --container-max: 1240px;
    --container-padding: 1.25rem;
    --transition: all 0.2s ease-in-out;
}

/* 2. Modern Reset & Base Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

/* 3. Layout & Container Grid */
.site-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.site-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .site-main-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

.site-content-area {
    min-width: 0;
}

/* 4. Header, Brand & Navigation - Fully Responsive Architecture */
.site-header {
    background-color: var(--color-header-bg);
    color: var(--color-header-text);
    position: relative;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

/* Header Topbar */
.header-topbar {
    background-color: #0b1120;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    padding: 0.45rem 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.topbar-date {
    color: var(--color-header-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.topbar-badge {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-primary-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Polylang Language Switcher in Topbar */
.polylang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.15rem 0.25rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.polylang-switcher ul.language-list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.polylang-switcher li.lang-item {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.polylang-switcher li.lang-item a {
    color: #94a3b8;
    padding: 0.25rem 0.55rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.polylang-switcher li.lang-item.current-lang a,
.polylang-switcher li.lang-item a:hover {
    color: #ffffff;
    background-color: var(--color-primary);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.4);
}

/* Main Branding & Header Content Row */
.header-main-branding {
    background-color: var(--color-header-bg);
}

.header-branding-row {
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 55px;
    width: auto;
    display: block;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title span.accent {
    color: var(--color-primary-light);
}

.site-description {
    font-size: 0.75rem;
    color: var(--color-header-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Trending Quicktags Area */
.header-trending-quicktags {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.header-trending-quicktags::-webkit-scrollbar {
    display: none;
}

.trending-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fbbf24; /* Warm football gold highlight */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.trending-title::before {
    content: "🔥";
    font-size: 0.85rem;
}

.trending-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.trending-pill:hover {
    color: #ffffff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* Responsive Banner Ad */
.header-banner-ad {
    display: none;
    max-width: 728px;
    min-height: 90px;
    flex-shrink: 1;
}

@media (min-width: 900px) {
    .header-banner-ad {
        display: block;
    }
}

/* Mobile & Tablet Specific Responsive Header Adjustments */
@media (max-width: 991px) {
    .header-branding-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 0.85rem 0;
    }

    .site-branding {
        justify-content: center;
        text-align: center;
    }

    .site-title {
        font-size: 1.75rem;
    }

    .header-trending-quicktags {
        justify-content: flex-start;
        padding: 0.45rem 0.75rem;
        width: 100%;
    }
}

@media (max-width: 599px) {
    .header-topbar {
        padding: 0.35rem 0;
    }

    .topbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .topbar-badge {
        display: none; /* Hide secondary desk badge on small phone screens to give full width to date & language pills */
    }

    .topbar-date {
        font-size: 0.6875rem;
    }

    .polylang-switcher li.lang-item a {
        padding: 0.2rem 0.45rem;
        font-size: 0.625rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-description {
        font-size: 0.6875rem;
    }

    .header-trending-quicktags {
        gap: 0.45rem;
        padding: 0.35rem 0.5rem;
    }

    .trending-pill {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Navigation Bar - Modern Sports Editorial Design */
.header-nav-wrap {
    background: linear-gradient(180deg, #161e2e 0%, #0f172a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--color-primary);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease-in-out;
}

.header-nav-wrap.is-sticky-header {
    position: sticky;
    top: 0;
}

.header-nav-wrap.is-static-header {
    position: relative;
    top: auto;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.primary-navigation {
    display: none;
    flex-grow: 1;
}

@media (min-width: 992px) {
    .primary-navigation {
        display: block;
    }

    .primary-menu {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 0.25rem;
    }

    .primary-menu > li {
        position: relative;
        list-style: none;
        margin: 0;
    }

    .primary-menu > li > a {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.95rem 1.15rem;
        font-size: 0.9375rem;
        font-weight: 700;
        color: #f1f5f9;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        position: relative;
        text-decoration: none;
        border-radius: 4px 4px 0 0;
        transition: color 0.18s ease, background-color 0.18s ease;
    }

    .primary-menu > li > a::after {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: transparent;
        transition: background-color 0.2s ease;
    }

    .primary-menu > li:hover > a,
    .primary-menu > li:focus-within > a {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.08);
    }

    .primary-menu > li:hover > a::after,
    .primary-menu > li.current-menu-item > a::after,
    .primary-menu > li.current_page_item > a::after,
    .primary-menu > li.current-menu-ancestor > a::after {
        background-color: #34d399; /* Bright pitch green accent */
    }

    .primary-menu > li.current-menu-item > a,
    .primary-menu > li.current_page_item > a,
    .primary-menu > li.current-menu-ancestor > a {
        color: #ffffff;
        background-color: rgba(16, 185, 129, 0.15);
    }

    .primary-menu .nav-caret {
        font-size: 0.75rem;
        transition: transform 0.2s ease;
        opacity: 0.8;
    }

    .primary-menu > li:hover .nav-caret {
        transform: translateY(2px);
        opacity: 1;
        color: var(--color-primary-light);
    }

    /* Elevated Dropdown Submenus */
    .primary-menu ul.sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #0f172a;
        min-width: 230px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
        border-radius: 0 0 8px 8px;
        border-top: 3px solid var(--color-primary);
        padding: 0.5rem 0;
        margin: 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
        z-index: 200;
    }

    .primary-menu li:hover > ul.sub-menu,
    .primary-menu li:focus-within > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
    }

    .primary-menu ul.sub-menu li {
        margin: 0;
        padding: 0;
    }

    .primary-menu ul.sub-menu li a {
        padding: 0.7rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #cbd5e1;
        font-size: 0.875rem;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: all 0.15s ease;
    }

    .primary-menu ul.sub-menu li:last-child a {
        border-bottom: none;
    }

    .primary-menu ul.sub-menu li a:hover,
    .primary-menu ul.sub-menu li a:focus {
        background-color: rgba(16, 185, 129, 0.12);
        color: #ffffff;
        padding-left: 1.45rem;
    }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 5. Polylang Language Switcher */
.polylang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.4rem;
}

.polylang-switcher ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.polylang-switcher li {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.polylang-switcher li a {
    color: #94a3b8;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.polylang-switcher li.current-lang a,
.polylang-switcher li a:hover {
    color: #ffffff;
    background-color: var(--color-primary);
}

/* Mobile Menu Toggle & Search Toggle */
.btn-header-action {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.btn-header-action:hover,
.btn-header-action:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: inline-flex;
}

/* Strictly hide mobile hamburger toggle & mobile drawer on desktop screens */
@media (min-width: 992px) {
    .mobile-menu-toggle,
    #mobile-menu-trigger,
    .btn-header-action.mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .mobile-nav-drawer,
    #mobile-nav-drawer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* 6. Breaking News / Trending Ticker */
.ticker-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.ticker-label {
    background-color: var(--color-danger);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.6875rem;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ticker-label::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.ticker-items {
    display: flex;
    gap: 1.5rem;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.ticker-items::-webkit-scrollbar {
    display: none;
}

.ticker-item a {
    color: var(--color-text-main);
    font-weight: 500;
}

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

/* 7. Featured Hero Grid (Editorial Layout) */
.featured-hero-section {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1.6fr 1fr;
    }
}

.hero-lead-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #0f172a;
    min-height: 380px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 480px) and (max-width: 767px) {
    .hero-sub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

.hero-lead-card:hover .hero-card-media img,
.hero-sub-card:hover .hero-card-media img {
    transform: scale(1.04);
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(5, 10, 20, 0.85) 85%, rgba(0, 0, 0, 0.95) 100%);
    pointer-events: none;
}

.hero-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    color: #ffffff;
}

.hero-sub-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #0f172a;
    min-height: 180px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-sub-card .hero-card-content {
    padding: 1rem;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.category-badge:hover {
    background-color: var(--color-primary-dark);
    color: #ffffff;
}

.hero-lead-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.hero-sub-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.post-meta-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* 8. Section Headers & Category Blocks */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.section-link:hover {
    text-decoration: underline;
}

/* 9. Article Cards & Thumbnail Ratios */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .posts-grid.two-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 840px) {
    .posts-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-border-dark);
}

.article-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #e2e8f0;
}

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

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

.article-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    color: var(--color-text-main);
}

.article-card-title a {
    color: inherit;
}

.article-card-title a:hover {
    color: var(--color-primary);
}

.article-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.85rem;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    margin-top: auto;
}

/* Horizontal / List Card Layout */
.article-list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.article-list-item .article-card-thumb {
    border-radius: var(--radius-sm);
    aspect-ratio: 4 / 3;
}

.article-list-item .article-card-title {
    font-size: 0.9375rem;
    margin-bottom: 0.3rem;
}

/* 10. Single Article Typography & Metadata */
.single-article-header {
    margin-bottom: 1.5rem;
}

.article-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.article-breadcrumbs a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.single-article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .single-article-title {
        font-size: 2.375rem;
    }
}

.single-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.meta-author img {
    border-radius: 50%;
}

.single-featured-media {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-surface);
}

.single-featured-media figcaption {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    padding: 0.5rem 0.75rem;
    background-color: var(--color-surface-alt);
    border-left: 3px solid var(--color-primary);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--color-text-main, #1e293b);
}

.article-content p {
    margin-bottom: 1.4rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.4rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: var(--color-surface-alt);
    border-left: 4px solid var(--color-primary);
    font-style: italic;
    color: var(--color-text-secondary);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.article-content th, 
.article-content td {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.article-content th {
    background-color: var(--color-surface-alt);
    font-weight: 700;
}

/* Post Tags */
.article-tags-wrap {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.article-tags-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.tag-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-alt);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.tag-pill:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* 11. Author Box & Related Posts */
.author-profile-box {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.author-avatar img {
    border-radius: 50%;
    border: 2px solid var(--color-border);
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.author-info h4 a {
    color: var(--color-text-main);
}

.author-info h4 a:hover {
    color: var(--color-primary);
}

.author-bio {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.author-links a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Post Navigation (Prev / Next) */
.post-navigation-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 600px) {
    .post-navigation-split {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-previous, .nav-next {
    display: flex;
    flex-direction: column;
}

.nav-direction-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.nav-post-title {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.35;
}

/* 12. Category, Tag, Author & Search Archives */
.archive-hero-header {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.archive-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.archive-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
}

.archive-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    max-width: 800px;
}

/* Pagination */
.pagination-wrap {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination-wrap .nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pagination-wrap a, 
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text-main);
}

.pagination-wrap span.current,
.pagination-wrap a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* 13. Search Form & Modal */
.site-search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-field-wrap {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.65rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.2);
}

.search-submit-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

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

/* Search Dropdown / Header Search Form */
.header-search-bar {
    display: none;
    background-color: var(--color-header-bg);
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-search-bar.is-active {
    display: block;
}

/* 14. Sidebar & Widgets */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-main);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

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

.widget ul li a {
    color: var(--color-text-main);
    font-weight: 500;
}

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

/* 15. Comments & Forms */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.comment-body {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.comment-author .fn {
    font-weight: 700;
    color: var(--color-text-main);
}

.comment-content {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.comment-respond {
    margin-top: 2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.comment-reply-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.comment-form input[type="submit"] {
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
    background-color: var(--color-primary-dark);
}

/* 16. Ad Slots - Optimized for High CTR & Zero CLS (Cumulative Layout Shift) */
.ad-slot-wrapper {
    margin: 1.75rem auto;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.ad-slot-wrapper:hover {
    background-color: #f1f5f9;
}

.ad-slot-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

/* Specific Slot Styling */
.ad-slot-wrapper.ad-in-content {
    margin: 2rem auto;
    padding: 1rem 0.5rem;
    max-width: 728px;
}

.ad-slot-wrapper.ad-sidebar-slot {
    margin: 0 0 1.75rem 0;
    width: 100%;
    min-height: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ad-slot-wrapper.ad-footer-banner {
    margin: 2rem auto 2.5rem;
    max-width: 970px;
}

.ad-slot-wrapper ins.adsbygoogle {
    display: block !important;
    margin: 0 auto !important;
}

@media (max-width: 767px) {
    .ad-slot-wrapper {
        margin: 1.25rem auto;
        padding: 0.5rem;
    }

    .ad-slot-wrapper.ad-sidebar-slot {
        min-height: auto;
    }
}

/* 17. Footer & Copyright Bar */
.site-footer {
    background-color: var(--color-header-bg);
    color: #94a3b8;
    margin-top: auto;
    border-top: 3px solid var(--color-primary);
}

.footer-widgets-area {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (min-width: 600px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-widgets-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }
}

.footer-widget .widget-title {
    color: #ffffff;
    border-color: var(--color-primary);
}

.footer-widget p,
.footer-widget ul li a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-widget ul li a:hover {
    color: #ffffff;
}

.footer-bottom-bar {
    padding: 1.25rem 0;
    font-size: 0.8125rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        text-align: left;
    }
}

.footer-links-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links-menu a {
    color: #94a3b8;
}

.footer-links-menu a:hover {
    color: #ffffff;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;
    background-color: var(--color-header-nav);
    color: #ffffff;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-drawer.is-open .mobile-nav-content {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.mobile-menu-list li a {
    display: block;
    padding: 0.75rem 0;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-list li a:hover {
    color: var(--color-primary-light);
}

/* 18. Accessibility & Focus States */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-primary);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #ffffff;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* -----------------------------------------------------------------------------
 * 19. Social Share Buttons (Posts) - Enhanced Editorial UI
 * -------------------------------------------------------------------------- */
.article-social-share {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.85rem !important;
    padding: 0.85rem 1.25rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin: 1.5rem 0 !important;
    box-sizing: border-box !important;
}

.article-social-share.share-location-top {
    margin-top: 1rem !important;
    margin-bottom: 1.75rem !important;
    border-left: 4px solid var(--color-primary, #10b981) !important;
}

.article-social-share.share-location-bottom {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-left: 4px solid var(--color-primary, #10b981) !important;
}

.article-social-share .share-header {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    color: #475569 !important;
    font-size: 0.8125rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-right: 0.25rem !important;
}

.article-social-share .share-icon-main {
    color: var(--color-primary, #10b981) !important;
}

.article-social-share .share-buttons-list {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.article-social-share .share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease !important;
}

.article-social-share .share-btn:hover {
    transform: translateY(-2px) !important;
    opacity: 0.94 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18) !important;
    color: #ffffff !important;
}

.article-social-share .share-btn:active {
    transform: translateY(0) !important;
}

/* Individual Platform Colors */
.article-social-share .share-whatsapp {
    background-color: #25D366 !important;
}

.article-social-share .share-x {
    background-color: #0f172a !important;
}

.article-social-share .share-facebook {
    background-color: #1877F2 !important;
}

.article-social-share .share-telegram {
    background-color: #229ED9 !important;
}

.article-social-share .share-copy-link {
    background-color: #475569 !important;
}

.article-social-share .share-copy-link:hover {
    background-color: #334155 !important;
}

.article-social-share .share-copy-link.copied {
    background-color: #10b981 !important;
}

@media (max-width: 600px) {
    .article-social-share {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.9rem !important;
        gap: 0.65rem !important;
    }

    .article-social-share .share-header {
        justify-content: flex-start !important;
    }

    .article-social-share .share-buttons-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .article-social-share .share-buttons-list .share-copy-link {
        grid-column: span 2 !important;
    }

    .article-social-share .share-btn {
        width: 100% !important;
        padding: 0.65rem !important;
    }
}


/* -----------------------------------------------------------------------------
 * 20. Advanced Editorial UI Features: Progress Bar, Scroll Top & Dark Mode
 * -------------------------------------------------------------------------- */
/* Article Reading Progress Indicator */
.reading-progress-bar {
    position: fixed;
    top: 52px; /* Sticks precisely beneath sticky nav */
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary, #047857), #34d399);
    z-index: 1000;
    transition: width 0.1s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Floating Scroll-To-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--color-primary, #047857);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--color-primary-light, #10b981);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Theme Mode Toggle Button */
.theme-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.theme-mode-toggle:hover {
    color: #fbbf24;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Dark Mode Comprehensive Editorial Overrides */
body.dark-mode {
    --color-bg: #090d16;
    --color-surface: #0f172a;
    --color-surface-alt: #162032;
    --color-border: #1e293b;
    --color-border-dark: #334155;
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    background-color: #090d16;
    color: #f1f5f9;
}

body.dark-mode .hero-card-media {
    background-color: #0b1120;
}

body.dark-mode .article-card,
body.dark-mode .author-profile-box,
body.dark-mode .widget,
body.dark-mode .comments-area,
body.dark-mode .ad-slot-wrapper {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

body.dark-mode .article-title a,
body.dark-mode .single-article-title,
body.dark-mode .section-title,
body.dark-mode .widget-title {
    color: #ffffff !important;
}

body.dark-mode .article-social-share {
    background: #111a2e !important;
    border-color: #1e293b !important;
}

body.dark-mode .ticker-bar {
    background-color: #0c1322;
    border-bottom-color: #1e293b;
}

body.dark-mode .ticker-item a {
    color: #cbd5e1;
}

body.dark-mode .tag-pill {
    background-color: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

body.dark-mode .tag-pill:hover {
    color: #ffffff;
    background-color: var(--color-primary);
}

/* Single Article Dark Mode Explicit Legibility Overrides */
body.dark-mode .single-article-entry,
body.dark-mode .article-content,
body.dark-mode .article-content p,
body.dark-mode .article-content span,
body.dark-mode .article-content div,
body.dark-mode .article-content li,
body.dark-mode .article-content strong,
body.dark-mode .article-content b,
body.dark-mode .page-content,
body.dark-mode .page-content p {
    color: #e2e8f0 !important; /* Crisp, high-contrast light slate text */
}

body.dark-mode .article-content h1,
body.dark-mode .article-content h2,
body.dark-mode .article-content h3,
body.dark-mode .article-content h4,
body.dark-mode .article-content h5,
body.dark-mode .article-content h6 {
    color: #ffffff !important;
}

body.dark-mode .article-content a {
    color: var(--color-primary-light, #34d399) !important;
}

body.dark-mode .article-content a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

body.dark-mode .article-content blockquote {
    background-color: #162032 !important;
    border-left-color: var(--color-primary, #10b981) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .article-content th,
body.dark-mode .article-content td {
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .article-content th {
    background-color: #1e293b !important;
}

body.dark-mode .single-featured-media figcaption {
    background-color: #162032 !important;
    color: #94a3b8 !important;
    border-left-color: var(--color-primary, #10b981) !important;
}

body.dark-mode .single-article-meta,
body.dark-mode .single-article-meta span,
body.dark-mode .single-article-meta time {
    color: #94a3b8 !important;
}

/* -----------------------------------------------------------------------------
 * 21. Breadcrumbs Styling (Rank Math & Semantic Theme Breadcrumbs)
 * -------------------------------------------------------------------------- */
.article-breadcrumbs,
.article-breadcrumbs-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-breadcrumbs .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.article-breadcrumbs .breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s ease;
}

.article-breadcrumbs .breadcrumb-link:hover {
    color: var(--color-primary, #047857);
    text-decoration: underline;
}

.article-breadcrumbs .breadcrumb-home-icon {
    color: var(--color-primary, #047857);
}

.article-breadcrumbs .breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.75rem;
    user-select: none;
}

.article-breadcrumbs .breadcrumb-current {
    color: #0f172a;
    font-weight: 600;
}

/* Rank Math Breadcrumb Plugin Class Overrides */
.rank-math-breadcrumb {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
}

.rank-math-breadcrumb a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.rank-math-breadcrumb a:hover {
    color: var(--color-primary, #047857) !important;
    text-decoration: underline !important;
}

.rank-math-breadcrumb .separator {
    color: #cbd5e1 !important;
    margin: 0 0.15rem !important;
}

.rank-math-breadcrumb .last {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Dark Mode Breadcrumbs */
body.dark-mode .article-breadcrumbs,
body.dark-mode .article-breadcrumbs-wrapper,
body.dark-mode .rank-math-breadcrumb {
    color: #94a3b8 !important;
}

body.dark-mode .article-breadcrumbs .breadcrumb-link,
body.dark-mode .rank-math-breadcrumb a {
    color: #94a3b8 !important;
}

body.dark-mode .article-breadcrumbs .breadcrumb-link:hover,
body.dark-mode .rank-math-breadcrumb a:hover {
    color: #ffffff !important;
}

body.dark-mode .article-breadcrumbs .breadcrumb-current,
body.dark-mode .rank-math-breadcrumb .last {
    color: #f1f5f9 !important;
}

body.dark-mode .article-breadcrumbs .breadcrumb-separator,
body.dark-mode .rank-math-breadcrumb .separator {
    color: #475569 !important;
}
