/*
 Theme Name:   Foxiz Child - The Update Desk
 Theme URI:    https://theupdatedesk.com
 Description:  Custom styling for The Update Desk
 Author:       The Update Desk
 Author URI:   https://theupdatedesk.com
 Template:     foxiz
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  foxiz-child
*/

/* ==========================================================================
   Custom Typography
   ========================================================================== */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

/* Base typography */
:root {
    /* Brand Colors */
    --td-primary: #1a365d;       /* Deep navy */
    --td-secondary: #c53030;     /* News red accent */
    --td-accent: #2b6cb0;        /* Link blue */
    --td-dark: #1a202c;          /* Near black */
    --td-gray: #4a5568;          /* Body text */
    --td-light-gray: #e2e8f0;    /* Borders */
    --td-bg: #f7fafc;            /* Light background */
    --td-white: #ffffff;

    /* Typography */
    --td-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --td-font-serif: 'Merriweather', Georgia, serif;
}

/* Global typography overrides */
body {
    font-family: var(--td-font-sans);
    color: var(--td-gray);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.post-title,
.is-title {
    font-family: var(--td-font-sans);
    font-weight: 700;
    color: var(--td-dark);
    line-height: 1.3;
}

/* Article body text - use serif for readability */
.entry-content p,
.single-post .entry-content,
.rb-content p {
    font-family: var(--td-font-serif);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--td-gray);
}

/* ==========================================================================
   Header Improvements
   ========================================================================== */

/* Clean header */
.header-wrap,
.is-header,
.site-header {
    background: var(--td-white);
    border-bottom: 1px solid var(--td-light-gray);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Logo area */
.the-logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-menu > li > a,
.menu-item > a {
    font-family: var(--td-font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--td-dark);
    transition: color 0.2s ease;
}

.main-menu > li > a:hover,
.menu-item > a:hover {
    color: var(--td-secondary);
}

/* ==========================================================================
   Post Cards & Grids
   ========================================================================== */

/* Card styling */
.p-wrap,
.post-card,
.rb-post {
    background: var(--td-white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p-wrap:hover,
.post-card:hover,
.rb-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Featured image */
.p-featured,
.featured-image,
.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.p-featured img,
.featured-image img {
    transition: transform 0.3s ease;
}

.p-wrap:hover .p-featured img,
.post-card:hover .featured-image img {
    transform: scale(1.03);
}

/* Category labels */
.p-category a,
.post-category a,
.cat-label {
    font-family: var(--td-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--td-secondary);
    color: var(--td-white);
    padding: 4px 10px;
    border-radius: 3px;
}

/* Post titles in cards */
.entry-title a,
.post-title a,
.p-url {
    color: var(--td-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover,
.post-title a:hover,
.p-url:hover {
    color: var(--td-accent);
}

/* Meta info */
.meta-el,
.post-meta,
.entry-meta {
    font-family: var(--td-font-sans);
    font-size: 0.8125rem;
    color: var(--td-gray);
}

/* ==========================================================================
   Single Article Page
   ========================================================================== */

/* Article header */
.single-post .entry-header,
.single-header {
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Article content */
.single-post .entry-content {
    max-width: 720px;
    margin: 0 auto;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--td-light-gray);
}

.single-post .entry-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

/* Blockquotes */
.single-post blockquote,
.entry-content blockquote {
    font-family: var(--td-font-serif);
    font-style: italic;
    font-size: 1.25rem;
    border-left: 4px solid var(--td-secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--td-dark);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.button,
.btn,
.wp-block-button__link,
input[type="submit"] {
    font-family: var(--td-font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 6px;
    background: var(--td-primary);
    color: var(--td-white);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover,
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
    background: var(--td-secondary);
    transform: translateY(-1px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-wrap,
.site-footer,
.is-footer {
    background: var(--td-dark);
    color: var(--td-light-gray);
}

.footer-wrap a,
.site-footer a {
    color: var(--td-white);
    transition: color 0.2s ease;
}

.footer-wrap a:hover,
.site-footer a:hover {
    color: var(--td-secondary);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .single-post .entry-content p {
        font-size: 1rem;
    }

    .single-post .entry-title {
        font-size: 1.5rem;
    }

    h1, .h1 {
        font-size: 1.75rem;
    }

    h2, .h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.td-accent-color {
    color: var(--td-secondary);
}

.td-bg-primary {
    background: var(--td-primary);
}

.td-bg-accent {
    background: var(--td-secondary);
}

/* Breaking news banner (if used) */
.breaking-news-wrap,
.is-breaking {
    background: var(--td-secondary);
    color: var(--td-white);
    font-weight: 600;
}

/* ==========================================================================
   Dark Mode Support (if theme has it)
   ========================================================================== */

.dark-mode,
[data-theme="dark"] {
    --td-dark: #f7fafc;
    --td-gray: #e2e8f0;
    --td-light-gray: #2d3748;
    --td-bg: #1a202c;
    --td-white: #2d3748;
}

/* ==========================================================================
   Additional Fixes - January 2026
   ========================================================================== */

/* Hide Plays section */
.elementor-element:has(.is-title:contains("Plays")),
section:has([class*="plays"]),
.plays-section,
[class*="games-widget"] {
    display: none !important;
}

/* Force all category labels to brand red */
.p-category a,
.post-category a,
.cat-label,
.p-categories a,
.meta-cat a,
.is-meta .meta-category a,
span.cat-label,
.category-label,
.entry-category a {
    background: var(--td-secondary, #c53030) !important;
    color: var(--td-white, #ffffff) !important;
}

/* Remove individual category colors that override */
.p-category a[class*="category-"],
.cat-label[class*="category-"] {
    background: var(--td-secondary, #c53030) !important;
}

/* Fix category tag overflow - limit visible tags */
.p-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 60px;
    overflow: hidden;
}

.p-categories a:nth-child(n+4) {
    display: none;
}

/* Hide Plays/Games section completely */
.elementor-widget-container:has(h2:contains("Plays")),
.elementor-section:has(.is-play),
.plays-wrap,
.is-plays,
section.plays,
[data-widget_type*="play"],
.elementor-element [class*="plays"],
.elementor-row:has(.plays-item) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Override ALL category colors with inline style priority */
.p-category a[style],
.cat-label[style],
span.cat-label[style],
a.cat-label[style] {
    background-color: #c53030 !important;
    background: #c53030 !important;
}

/* Target specific Foxiz category classes */
.category-world,
.category-technology,
.category-opinion,
.category-economy,
.category-environment,
.category-society,
.category-lifestyle,
.category-uk-politics,
[class*="category-"] .cat-label,
.is-meta .p-category a {
    background: #c53030 !important;
    background-color: #c53030 !important;
    color: #ffffff !important;
}

/* =====================================================
   ENHANCED 404 PAGE STYLES
   ===================================================== */

.page404-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page404-inner {
    text-align: center;
    margin-bottom: 50px;
}

.page404-featured {
    margin-bottom: 30px;
}

.page404-featured img {
    max-width: 250px;
    height: auto;
}

.page404-wrap .page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color, #1a1a1a);
}

.page404-description {
    font-size: 18px;
    color: var(--body-fcolor, #555);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.page404-search-wrap {
    max-width: 500px;
    margin: 0 auto 25px;
}

.page404-search-wrap .search-form {
    display: flex;
    gap: 10px;
}

.page404-search-wrap .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.page404-search-wrap .search-field:focus {
    border-color: var(--accent-color, #1e40af);
    outline: none;
}

.page404-btn-wrap {
    margin-top: 20px;
}

.page404-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color, #1e40af);
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.page404-btn:hover {
    background: var(--accent-hover, #1e3a8a);
    transform: translateY(-2px);
}

/* Section Title */
.td-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--heading-color, #1a1a1a);
    text-align: center;
}

/* Category Grid */
.td-404-categories {
    margin-bottom: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.td-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.td-category-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--box-bg, #f8f9fa);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.td-category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.td-cat-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color, #1a1a1a);
    margin-bottom: 5px;
}

.td-cat-count {
    font-size: 13px;
    color: var(--meta-fcolor, #888);
}

/* Recent Posts Grid */
.td-404-recent-posts {
    padding-top: 40px;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.td-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.td-post-card {
    display: flex;
    gap: 15px;
    background: var(--box-bg, #fff);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.td-post-card:hover {
    transform: translateY(-2px);
}

.td-post-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
}

.td-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 0;
}

.td-post-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color, #1e40af);
    text-decoration: none;
    margin-bottom: 5px;
}

.td-post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.td-post-title a {
    color: var(--heading-color, #1a1a1a);
    text-decoration: none;
}

.td-post-title a:hover {
    color: var(--accent-color, #1e40af);
}

.td-post-date {
    font-size: 12px;
    color: var(--meta-fcolor, #888);
}

/* =====================================================
   NO RESULTS SEARCH PAGE STYLES
   ===================================================== */

.td-no-results-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    text-align: center;
}

.td-no-results-icon {
    margin-bottom: 25px;
}

.td-no-results-icon svg {
    color: var(--meta-fcolor, #888);
}

.td-no-results-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color, #1a1a1a);
}

.td-no-results-desc {
    font-size: 17px;
    color: var(--body-fcolor, #555);
    max-width: 550px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.td-no-results-search {
    max-width: 500px;
    margin: 0 auto 35px;
}

.td-no-results-search .search-form {
    display: flex;
    gap: 10px;
}

.td-no-results-search .search-field {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    font-size: 16px;
}

.td-search-suggestions {
    background: var(--box-bg, #f8f9fa);
    padding: 25px 30px;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto 40px;
    text-align: left;
}

.td-search-suggestions h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading-color, #1a1a1a);
}

.td-search-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.td-search-suggestions li {
    font-size: 14px;
    color: var(--body-fcolor, #555);
    margin-bottom: 6px;
    line-height: 1.5;
}

.td-no-results-wrap .td-404-categories,
.td-no-results-wrap .td-404-recent-posts {
    text-align: left;
}

/* Dark Mode Support */
[data-mode="dark"] .td-category-item,
.dark-mode .td-category-item {
    background: var(--dark-box-bg, #2a2a2a);
}

[data-mode="dark"] .td-search-suggestions,
.dark-mode .td-search-suggestions {
    background: var(--dark-box-bg, #2a2a2a);
}

/* Responsive */
@media (max-width: 768px) {
    .page404-wrap .page-title {
        font-size: 32px;
    }
    
    .page404-description {
        font-size: 16px;
    }
    
    .td-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .td-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .td-post-card {
        padding: 15px;
        background: var(--box-bg, #f8f9fa);
    }
    
    .td-no-results-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .td-category-grid {
        grid-template-columns: 1fr;
    }
    
    .page404-search-wrap .search-form,
    .td-no-results-search .search-form {
        flex-direction: column;
    }
}

/* Search No Result - Theme Override */
.search-no-result {
    padding: 40px 20px;
    text-align: center;
    font-size: 16px;
    color: var(--body-fcolor, #555);
}

/* =====================================================
   SEARCH RESULTS & PAGINATION IMPROVEMENTS
   ===================================================== */

/* Search Results Info Bar */
.td-search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 24px;
    background: var(--absolute-light, #f8f9fa);
    border-radius: 8px;
    font-size: 14px;
    color: var(--meta-fcolor, #6b7280);
}

[data-theme="dark"] .td-search-results-info {
    background: var(--box-dark-bg, #1f2937);
}

.td-results-showing {
    font-weight: 500;
}

.td-results-page {
    background: var(--g-color, #1e40af);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Pagination Info After Posts */
.td-pagination-info {
    text-align: center;
    padding: 16px;
    margin-top: 24px;
    border-top: 1px solid var(--solid-border-fcolor, #e5e7eb);
}

[data-theme="dark"] .td-pagination-info {
    border-top-color: var(--dark-border-color, #374151);
}

.td-pagination-summary {
    font-size: 13px;
    color: var(--meta-fcolor, #6b7280);
}

/* Enhanced Archive Title for Search */
.archive-header .page-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.is-search .archive-header .page-title {
    color: var(--heading-color);
}

/* Search form on results page */
.archive-header .search-form {
    max-width: 500px;
    margin: 16px auto 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .td-search-results-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .archive-header .page-title {
        font-size: 22px;
    }
}

/* =====================================================
   RESULTS PER PAGE CONTROL
   ===================================================== */

.td-per-page-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 15px;
    padding: 10px 0;
}

.td-per-page-control label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--absolute-dark, #333);
}

.td-per-page-label {
    font-weight: 500;
}

.td-per-page-select {
    padding: 6px 30px 6px 12px;
    font-size: 14px;
    border: 1px solid var(--solid-light, #ddd);
    border-radius: 4px;
    background: var(--solid-white, #fff);
    color: var(--absolute-dark, #333);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.td-per-page-select:hover {
    border-color: var(--g-color, #0066cc);
}

.td-per-page-select:focus {
    outline: none;
    border-color: var(--g-color, #0066cc);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Dark mode */
[data-theme="dark"] .td-per-page-select {
    background-color: var(--dark-accent, #1a1a2e);
    border-color: var(--dark-border, #333);
    color: var(--dark-text, #e0e0e0);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Mobile responsive */
@media (max-width: 767px) {
    .td-per-page-control {
        justify-content: center;
    }
}

/* =====================================================
   404 ERROR REPORTING LINK
   ===================================================== */

.td-404-report {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-accent, #f8f9fa);
    border-radius: 8px;
    border-left: 4px solid var(--g-color, #0066cc);
    text-align: left;
}

.td-report-text {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: var(--absolute-dark, #333);
}

.td-report-link {
    color: var(--g-color, #0066cc);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.td-report-link:hover {
    color: var(--g-color-hover, #0052a3);
    text-decoration: none;
}

.td-report-url {
    margin: 0;
}

.td-report-url code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    padding: 2px 6px;
    background: var(--solid-white, #fff);
    border: 1px solid var(--solid-light, #ddd);
    border-radius: 3px;
    word-break: break-all;
}

/* Dark mode */
[data-theme="dark"] .td-404-report {
    background: var(--dark-accent, #1a1a2e);
    border-left-color: var(--g-color, #0066cc);
}

[data-theme="dark"] .td-report-url code {
    background: var(--dark-bg, #0f0f1a);
    border-color: var(--dark-border, #333);
    color: var(--dark-text, #e0e0e0);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .td-404-report {
        padding: 15px;
        margin-top: 20px;
    }
    
    .td-report-text {
        font-size: 14px;
    }
    
    .td-report-url code {
        font-size: 11px;
    }
}

/* Report Broken Link Button - 404 Page */
.td-report-error-btn {
    background: transparent !important;
    border: 2px solid var(--accent-color, #1e40af);
    color: var(--accent-color, #1e40af) !important;
    margin-left: 15px;
}

.td-report-error-btn:hover {
    background: var(--accent-color, #1e40af) !important;
    color: #fff !important;
}

[data-theme="dark"] .td-report-error-btn {
    border-color: var(--dark-accent, #60a5fa);
    color: var(--dark-accent, #60a5fa) !important;
}

[data-theme="dark"] .td-report-error-btn:hover {
    background: var(--dark-accent, #60a5fa) !important;
    color: #0f0f1a !important;
}

@media (max-width: 767px) {
    .page404-btn-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .td-report-error-btn {
        margin-left: 0;
    }
}

/* =====================================================
   RESULTS PER PAGE WRAP CONTROL
   ===================================================== */

.td-per-page-wrap { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    margin-bottom: 15px; 
}

.td-per-page-wrap a { 
    padding: 4px 12px; 
    background: #f1f5f9; 
    border-radius: 4px; 
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.td-per-page-wrap a:hover {
    background: #e2e8f0;
}

.td-per-page-wrap a.active { 
    background: #1a365d; 
    color: #fff; 
}

/* Dark mode */
[data-theme="dark"] .td-per-page-wrap a {
    background: var(--dark-accent, #1a1a2e);
    color: var(--dark-text, #e0e0e0);
}

[data-theme="dark"] .td-per-page-wrap a:hover {
    background: var(--dark-border, #333);
}

[data-theme="dark"] .td-per-page-wrap a.active {
    background: var(--g-color, #0066cc);
    color: #fff;
}

/* =====================================================
   SEARCH AUTOCOMPLETE STYLES
   ===================================================== */

.td-autocomplete-wrap {
    position: relative;
    width: 100%;
}

.td-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
    display: none;
}

/* Dark mode support */
[data-theme="dark"] .td-autocomplete-dropdown,
.dark-mode .td-autocomplete-dropdown {
    background: var(--dark-bg, #1a1a1a);
    border-color: var(--dark-border, #333);
}

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

.td-autocomplete-item {
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

.td-autocomplete-item:last-child {
    border-bottom: none;
}

.td-autocomplete-item a {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.td-autocomplete-item a:hover,
.td-autocomplete-item.active a {
    background: var(--hover-bg, #f5f5f5);
}

[data-theme="dark"] .td-autocomplete-item a:hover,
[data-theme="dark"] .td-autocomplete-item.active a,
.dark-mode .td-autocomplete-item a:hover,
.dark-mode .td-autocomplete-item.active a {
    background: var(--dark-hover, #252525);
}

.td-ac-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-color, #1a1a1a);
    margin-bottom: 4px;
}

[data-theme="dark"] .td-ac-title,
.dark-mode .td-ac-title {
    color: var(--dark-text, #e0e0e0);
}

.td-ac-date {
    font-size: 12px;
    color: var(--meta-color, #666);
}

[data-theme="dark"] .td-ac-date,
.dark-mode .td-ac-date {
    color: var(--dark-meta, #999);
}

.td-autocomplete-loading,
.td-autocomplete-no-results,
.td-autocomplete-error {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--meta-color, #666);
}

.td-autocomplete-error {
    color: #d32f2f;
}

.td-autocomplete-view-all {
    padding: 12px 16px;
    text-align: center;
    background: var(--alt-bg, #f8f8f8);
    border-top: 1px solid var(--border-color, #e8e8e8);
    border-radius: 0 0 8px 8px;
}

[data-theme="dark"] .td-autocomplete-view-all,
.dark-mode .td-autocomplete-view-all {
    background: var(--dark-alt-bg, #222);
    border-color: var(--dark-border, #333);
}

.td-autocomplete-view-all a {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color, #2d5be3);
    text-decoration: none;
}

.td-autocomplete-view-all a:hover {
    text-decoration: underline;
}

/* Ensure search inputs have proper styling when wrapped */
.td-autocomplete-wrap input[type="search"],
.td-autocomplete-wrap input[name="s"] {
    width: 100%;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .td-autocomplete-dropdown {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        max-height: 60vh;
    }
    
    .td-autocomplete-item a {
        padding: 14px 12px;
    }
    
    .td-ac-title {
        font-size: 15px;
    }
}

/* =====================================================
   HERO HEADLINE VISIBILITY FIX - January 2026
   ===================================================== */

/* Fix hero headline visibility with text shadow */
.featured-post .p-title,
.p-overlay .p-title,
.block-overlay .p-title,
[class*='p-overlay-'] .p-title,
.overlay-wrap .p-title {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    color: #fff !important;
}

/* Add gradient overlay to hero images for better text contrast */
.featured-post .p-wrap::before,
.p-overlay .p-wrap::before,
.block-overlay .p-wrap::before,
[class*='p-overlay-'] .p-wrap::before,
[class*='p-overlay-'] .p-featured::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Ensure content sits above gradient overlay */
.featured-post .p-content,
.p-overlay .p-content,
.block-overlay .p-content,
[class*='p-overlay-'] .overlay-wrap,
[class*='p-overlay-'] .overlay-inner {
    position: relative;
    z-index: 2;
}

/* Also apply text shadow to any subtitle/excerpt in hero */
.featured-post .entry-summary,
.p-overlay .entry-summary,
.block-overlay .entry-summary,
[class*='p-overlay-'] .entry-summary {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    color: rgba(255,255,255,0.95) !important;
}

/* Fix ghost/double text effect - ensure single clean render */
.featured-post .p-title a,
.p-overlay .p-title a,
.block-overlay .p-title a,
[class*='p-overlay-'] .p-title a {
    color: #fff !important;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Remove any pseudo-element text shadows that may cause double effect */
.featured-post .p-title::before,
.featured-post .p-title::after,
.p-overlay .p-title::before,
.p-overlay .p-title::after,
[class*='p-overlay-'] .p-title::before,
[class*='p-overlay-'] .p-title::after {
    display: none !important;
    content: none !important;
}

/* Ensure category labels in hero are also visible */
.featured-post .p-category,
.p-overlay .p-category,
[class*='p-overlay-'] .p-category {
    position: relative;
    z-index: 2;
}

/* Meta info visibility in hero */
.featured-post .meta-el,
.p-overlay .meta-el,
[class*='p-overlay-'] .meta-el {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.9) !important;
}

.featured-post .meta-el a,
.p-overlay .meta-el a,
[class*='p-overlay-'] .meta-el a {
    color: rgba(255,255,255,0.9) !important;
}

/* =====================================================
   FOOTER MENU FIX - January 2026
   ===================================================== */

/* Fix footer sidebar menu links - make them visible on light background */
.is-footer .sidebar-menu a,
.site-footer .sidebar-menu a,
.footer-wrap .sidebar-menu a,
.elementor-widget-foxiz-sidebar-menu .sidebar-menu a {
    color: var(--td-dark, #1a202c) !important;
}

/* Light theme footer - dark text on light columns */
.is-footer .sidebar-menu.is-vertical li a span,
.footer-wrap .sidebar-menu li a,
.is-footer .elementor-widget-foxiz-sidebar-menu a {
    color: #333 !important;
    transition: color 0.2s ease;
}

.is-footer .sidebar-menu a:hover,
.footer-wrap .sidebar-menu a:hover {
    color: var(--td-secondary, #c53030) !important;
}

/* Ensure footer column headings are visible */
.is-footer .foxiz-heading .is-title,
.is-footer h4.is-title {
    color: #777 !important;
}

/* Dark mode footer - light text */
[data-theme=dark] .is-footer .sidebar-menu a,
.dark-mode .is-footer .sidebar-menu a {
    color: #e0e0e0 !important;
}

[data-theme=dark] .is-footer .sidebar-menu a:hover,
.dark-mode .is-footer .sidebar-menu a:hover {
    color: var(--td-secondary, #c53030) !important;
}

/* =====================================================
   FIX HERO OVERLAY TEXT - REMOVE GHOST EFFECT
   ===================================================== */

/* Override light-scheme on overlay cards - force white text for readability */
.overlay-holder .overlay-inner.light-scheme,
.overlay-holder .overlay-inner.light-scheme .entry-title,
.overlay-holder .overlay-inner.light-scheme .entry-title a,
.overlay-holder .overlay-inner.light-scheme .entry-summary,
.overlay-holder .overlay-inner.light-scheme .p-meta,
.overlay-holder .overlay-inner.light-scheme .meta-el {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Add text shadow for better readability on hero */
.overlay-holder .overlay-inner .entry-title a {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important;
}

/* Ensure meta info is visible */
.overlay-holder .overlay-inner .p-meta,
.overlay-holder .overlay-inner .meta-el,
.overlay-holder .overlay-inner .meta-el a,
.overlay-holder .overlay-inner time {
    color: rgba(255,255,255,0.85) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Remove any extra pseudo-element effects that might cause ghosting */
.overlay-holder .entry-title::before,
.overlay-holder .entry-title::after,
.overlay-holder .entry-title a::before,
.overlay-holder .entry-title a::after {
    display: none !important;
    content: none !important;
}

/* Category label should stay red with white text */
.overlay-holder .p-category a {
    background: var(--td-secondary, #c53030) !important;
    color: #fff !important;
    text-shadow: none !important;
}

/* ==========================================================================
   Responsive Navigation Fix - Show Desktop Nav on Tablets - January 2026
   ========================================================================== */

/* On tablets (768px - 1024px), show desktop navigation instead of hamburger */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Show desktop header */
    .navbar-wrap,
    .header-template-inner {
        display: block !important;
    }
    
    /* Hide mobile header on tablets */
    .header-mobile {
        display: none !important;
    }
    
    /* Adjust navigation for tablet width */
    .main-menu > li > a {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* Only show hamburger on phones (below 768px) */
@media (max-width: 768px) {
    .header-mobile {
        display: flex !important;
    }
    
    .navbar-wrap,
    .header-template-inner {
        display: none !important;
    }
}

/* ==========================================================================
   Breaking News Ticker Improvements - January 2026
   ========================================================================== */

/* Pause ticker on hover */
.block-breaking-news:hover .swiper-wrapper {
    animation-play-state: paused !important;
}

.block-breaking-news .breaking-news-slider:hover .swiper-wrapper {
    transition-duration: 0s !important;
}

/* Show pause hint on hover */
.block-breaking-news::after {
    content: '⏸ Paused';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--tud-gray);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.block-breaking-news:hover::after {
    opacity: 0.7;
}

/* Smooth ticker background transition */
.block-breaking-news {
    background: linear-gradient(90deg, var(--tud-secondary) 0%, var(--tud-secondary) 140px, var(--tud-bg) 140px, var(--tud-bg) 100%) !important;
    position: relative;
}

/* Breaking news heading styling */
.breaking-news-heading {
    background: var(--tud-secondary) !important;
    color: #fff !important;
    font-weight: 700;
    padding: 8px 15px !important;
}

.breaking-news-heading i {
    color: #fff !important;
}

/* Ticker navigation arrows styling */
.breaking-news-prev,
.breaking-news-next {
    color: var(--tud-gray) !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.breaking-news-prev:hover,
.breaking-news-next:hover {
    opacity: 1;
}

/* ==========================================================================
   Article Card Hover States - January 2026
   ========================================================================== */

/* Card hover effect */
.p-wrap {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p-wrap:hover {
    transform: translateY(-2px);
}

/* Grid cards hover */
.p-grid:hover,
.p-list:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Image zoom on hover */
.p-featured img {
    transition: transform 0.4s ease;
}

.p-wrap:hover .p-featured img {
    transform: scale(1.03);
}

/* Title color change on hover */
.entry-title a {
    transition: color 0.2s ease;
}

.p-wrap:hover .entry-title a {
    color: var(--tud-secondary);
}

/* Category badge lift */
.p-category {
    transition: transform 0.2s ease, background 0.2s ease;
}

.p-wrap:hover .p-category {
    background: var(--tud-secondary) !important;
    color: #fff !important;
}

/* ==========================================================================
   Scroll-to-top Button Fix - January 2026
   ========================================================================== */

.back-top,
#back-to-top,
.scroll-top {
    background: var(--tud-primary) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-top:hover,
#back-to-top:hover,
.scroll-top:hover {
    background: var(--tud-secondary) !important;
}

/* ==========================================================================
   Navigation Current Page Indicator - January 2026
   ========================================================================== */

.main-menu > .current-menu-item > a,
.main-menu > .current-menu-parent > a,
.main-menu > .current-menu-ancestor > a {
    color: var(--tud-secondary) !important;
}

.main-menu > .current-menu-item > a::after,
.main-menu > .current-menu-parent > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--tud-secondary);
    border-radius: 2px;
}

/* ==========================================================================
   Section Heading View All Links - January 2026
   ========================================================================== */

.block-h-holder {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-title::after {
    content: 'View All →';
    font-size: 13px;
    font-weight: 400;
    color: var(--tud-accent);
    margin-left: auto;
    padding-left: 15px;
}

/* ==========================================================================
   Dark Mode Toggle Tooltip - January 2026
   ========================================================================== */

.dark-mode-toggle-wrap {
    position: relative;
}

.dark-mode-toggle-wrap::before {
    content: 'Toggle Dark Mode';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tud-dark);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.dark-mode-toggle-wrap:hover::before {
    opacity: 1;
}

/* ==========================================================================
   Accessibility Improvements - January 2026
   ========================================================================== */

/* Skip to content link (hidden until focused) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--tud-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Larger touch targets for social icons */
.header-social-list a,
.e-social-holder a,
.social-share a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.header-social-list a i,
.e-social-holder a i {
    font-size: 18px;
}

/* ==========================================================================
   Navigation Spacing Fix - January 2026
   ========================================================================== */

.main-menu > li {
    margin: 0 2px;
}

.main-menu > li > a {
    padding: 14px 12px;
}

/* ==========================================================================
   Category Badge Fixes - January 2026
   ========================================================================== */

/* Prevent tag overlap on images */
.p-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    max-width: calc(100% - 20px);
}

.p-category {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 10px;
}

/* Multiple categories - stack vertically */
.p-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ==========================================================================
   Article Card Consistency Fixes - January 2026
   ========================================================================== */

/* Consistent excerpt lengths with ellipsis */
.entry-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    max-height: 4.8em;
}

.p-list .entry-summary,
.p-grid-small .entry-summary {
    -webkit-line-clamp: 2;
    max-height: 3.2em;
}

/* Consistent bookmark icon placement */
.rb-bookmark,
.bookmark-trigger {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.p-meta .rb-bookmark {
    position: relative !important;
    top: auto;
    right: auto;
}

/* Consistent read time formatting */
.meta-read {
    font-size: 12px;
    color: var(--tud-gray);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-read i {
    font-size: 14px;
}

/* Consistent image aspect ratios */
.p-featured {
    position: relative;
    overflow: hidden;
}

.p-grid .p-featured {
    aspect-ratio: 16/10;
}

.p-list .p-featured {
    aspect-ratio: 4/3;
}

.p-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Typography Scale Refinements - January 2026
   ========================================================================== */

/* Smoother heading scale */
h1, .h1 { font-size: clamp(28px, 4vw, 42px); }
h2, .h2 { font-size: clamp(22px, 3vw, 32px); }
h3, .h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4, .h4 { font-size: clamp(16px, 2vw, 20px); }
h5, .h5 { font-size: clamp(14px, 1.5vw, 16px); }
h6, .h6 { font-size: clamp(12px, 1.2vw, 14px); }

/* Card title sizes */
.p-grid .entry-title { font-size: clamp(16px, 2vw, 20px); }
.p-list .entry-title { font-size: clamp(14px, 1.8vw, 18px); }
.p-overlay .entry-title { font-size: clamp(20px, 3vw, 32px); }

/* ==========================================================================
   Section Whitespace Reduction - January 2026
   ========================================================================== */

/* Reduce section spacing */
.elementor-section {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

.block-wrap {
    margin-bottom: 20px;
}

/* Tighter heading spacing */
.block-h-holder {
    margin-bottom: 15px;
}

/* ==========================================================================
   Blue Color Standardization - January 2026
   ========================================================================== */

/* Unified blue palette */
:root {
    --tud-blue-primary: #1a365d;
    --tud-blue-accent: #2b6cb0;
    --tud-blue-light: #4299e1;
}

a:not(.p-category) {
    color: var(--tud-blue-accent);
}

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

/* Button blues */
.is-btn,
.btn,
button:not(.dark-mode-toggle):not(.mobile-menu-trigger) {
    background: var(--tud-blue-primary);
}

.is-btn:hover,
.btn:hover {
    background: var(--tud-blue-accent);
}

/* ==========================================================================
   Section Heading Red Dot Clarification - January 2026
   ========================================================================== */

/* Style the red dot as a live indicator */
.block-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--tud-secondary);
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   Loading State Placeholders - January 2026
   ========================================================================== */

/* Skeleton loading for images */
.p-featured img[src*=data:image/svg] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Placeholder for broken images */
img:not([src]),
img[src=] {
    background: var(--tud-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

img:not([src])::before,
img[src=]::before {
    content: 'Image loading...';
    font-size: 12px;
    color: var(--tud-gray);
}

/* ==========================================================================
   Breaking News Styling - January 2026
   ========================================================================== */

/* Breaking news badge for important stories */
.p-wrap.sticky .entry-title::before,
.p-wrap[data-breaking="1"] .entry-title::before {
    content: 'BREAKING';
    display: inline-block;
    background: var(--tud-secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
    animation: pulse-breaking 1.5s ease-in-out infinite;
}

@keyframes pulse-breaking {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Style sticky posts as breaking news */
.p-wrap.sticky {
    border-left: 3px solid var(--tud-secondary);
    background: rgba(197, 48, 48, 0.03);
}

.p-wrap.sticky .entry-title a {
    font-weight: 700;
}

/* ==========================================================================
   Card Layout Standardization - January 2026
   ========================================================================== */

/* Ensure consistent grid card sizing */
.p-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.p-grid .p-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-grid .entry-summary {
    flex: 1;
}

.p-grid .p-meta {
    margin-top: auto;
    padding-top: 10px;
}

/* List cards consistent height */
.p-list {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.p-list .p-featured {
    flex-shrink: 0;
    width: 120px;
}

.p-list .p-content {
    flex: 1;
}

/* Small grid cards */
.p-grid-small {
    display: flex;
    gap: 10px;
}

.p-grid-small .p-featured {
    width: 80px;
    flex-shrink: 0;
}

/* ==========================================================================
   51. Author Profile Page Fixes
   ========================================================================== */

/* Fix massive journalist name - reduce from ~40px to ~28px */
.author-header .author-name,
.author-box .author-name,
.archive-header .archive-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
}

/* Author job title */
.author-header .author-job,
.author-box .author-job {
    font-size: 16px !important;
    color: #64748b !important;
}

/* Fix related journalists truncated names */
.related-authors .author-item .author-name,
.e-author-card .author-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Fix article count overlap */
.author-header .count-wrap,
.author-box .author-count {
    display: block !important;
    margin-bottom: 10px !important;
}

.author-header .author-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

/* Better author card spacing */
.e-author-card {
    padding: 15px !important;
}

.e-author-card .author-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
}

/* Improve author bio readability */
.author-header .author-bio,
.author-box .author-description {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    max-width: 600px !important;
}

/* ==========================================================================
   52. Homepage Duplicate Article Prevention
   ========================================================================== */

/* Visual indicator for testing - remove in production if needed */
/* Foxiz unique=global should handle this, but CSS can help with visibility */

/* ==========================================================================
   51b. Author Profile Page Fixes - CORRECT SELECTORS
   ========================================================================== */

/* Fix massive journalist name - reduce from 32px to 24px */
.author-header .bio-title,
h2.bio-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

/* Related journalists - show full names */
.related-item .h6,
.related-item .author-name,
.author-related .h6 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    max-width: 150px !important;
}

/* Articles count positioning */
.author-header .author-count,
.bio-info .count-number {
    font-size: 28px !important;
    display: block !important;
    line-height: 1 !important;
}

.author-header .count-text,
.bio-info .count-text {
    display: block !important;
    margin-top: 5px !important;
}

/* Better author bio width */
.author-header .bio-text {
    max-width: 550px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   53. Related Journalists Name Fix
   ========================================================================== */

/* Show full related journalist names */
.td-author-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    max-width: none !important;
}

.td-author-card {
    min-height: 70px !important;
}

.td-authors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 768px) {
    .td-authors-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   UX Fixes - January 2026
   ========================================================================== */

/* Fix sidebar word-breaking - prevent awkward breaks like 'be-ing', 'hand-ing' */
.sidebar .post-title,
.sidebar .is-title,
.widget .post-title,
.widget .is-title,
.sidebar-inner .post-title a,
.sidebar-inner .is-title a,
.rb-sidebar .post-title,
.rb-sidebar .is-title {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* Newsletter section - improve contrast */
.newsletter-box,
.newsletter-wrap,
.foxiz-newsletter-box,
.rb-newsletter {
    background: #1a365d !important; /* Dark navy background */
}

.newsletter-box h3,
.newsletter-box .newsletter-title,
.foxiz-newsletter-box h3,
.rb-newsletter .newsletter-title,
.newsletter-box .h3 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.newsletter-box p,
.newsletter-box .newsletter-description,
.foxiz-newsletter-box p,
.rb-newsletter p {
    color: #e2e8f0 !important;
}

.newsletter-box input[type="email"],
.foxiz-newsletter-box input[type="email"],
.rb-newsletter input[type="email"] {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #1a202c !important;
}

.newsletter-box input[type="email"]::placeholder {
    color: #718096 !important;
}

/* Fix 'Leave a Comment' heading - improve visibility */
.comment-respond h3,
.comment-respond .comment-reply-title,
.comments-title,
#reply-title,
.rb-comment-title {
    color: #1a202c !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

/* Fix 'Share This Article' heading */
.share-title,
.social-share-title,
.rb-share-title {
    color: #1a202c !important;
    font-weight: 600 !important;
}

/* Fix Sign In button styling */
.header-wrap .is-btn,
.header-wrap .login-btn,
.sign-in-btn,
.header-login {
    background: transparent !important;
    border: 2px solid var(--td-primary, #1a365d) !important;
    color: var(--td-primary, #1a365d) !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
}

.header-wrap .is-btn:hover,
.header-wrap .login-btn:hover,
.sign-in-btn:hover,
.header-login:hover {
    background: var(--td-primary, #1a365d) !important;
    color: #ffffff !important;
}

/* Sidebar widget headings - ensure readable */
.sidebar .widget-title,
.rb-sidebar .widget-title,
.sidebar-inner .widget-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Fix sidebar word-breaking - target actual classes */
.entry-title .p-url,
.p-wrap .entry-title,
.p-wrap .p-url,
.p-list .entry-title,
.p-list .p-url {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
}

/* Fix sidebar word-breaking - HIGHEST SPECIFICITY */
html body .p-wrap .entry-title .p-url,
html body .p-list .entry-title .p-url,
html body .rb-sidebar .entry-title .p-url,
html body a.p-url {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* Fix Share This Article and Leave a Comment headings - HIGH SPECIFICITY */
html body .e-shared-header,
html body .e-shared-sec .h4,
html body .share-title,
html body #reply-title,
html body .comment-reply-title,
html body .comment-respond h3,
html body .comments-title {
    color: #1a202c !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Fix Article count wrapping */
.a-card-count {
    white-space: nowrap !important;
}

/* ==========================================================================
   Sidebar Sizing Fixes - January 2026
   ========================================================================== */

/* Fix Opinion sidebar headline - way too large at 40px */
.rb-sidebar .block-list-small-2 .entry-title,
.rb-sidebar .block-list-small-2 h3.entry-title,
.sidebar .block-list-small-2 .entry-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
}

/* Fix all sidebar post titles - ensure reasonable size */
.rb-sidebar .entry-title,
.sidebar .entry-title,
.rb-sidebar h3.entry-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
}

/* Top Writers / Author Cards - make more compact */
.block-authors-1 .a-card {
    padding: 15px !important;
    margin-bottom: 10px !important;
}

.block-authors-1 .a-card-inner {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.block-authors-1 .a-card-feat {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
}

.block-authors-1 .a-card-feat img,
.block-authors-1 .a-card-feat .avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.block-authors-1 .a-card-content {
    flex: 1 !important;
}

.block-authors-1 .a-card-name .nice-name {
    font-size: 15px !important;
    line-height: 1.3 !important;
    display: block !important;
}

.block-authors-1 .a-card-count {
    font-size: 12px !important;
    color: #718096 !important;
}

.block-authors-1 .author-job {
    font-size: 12px !important;
    color: #718096 !important;
}

/* Hide empty description if too short */
.block-authors-1 .description-text {
    display: none !important;
}

/* Editor's Pick sidebar - reasonable headline size */
.rb-sidebar .p-grid .entry-title,
.rb-sidebar .p-wrap .entry-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Fix Opinion sidebar headline - ULTRA SPECIFIC for Elementor */
html body .sidebar-inner .elementor-widget-foxiz-list-small-2 .entry-title,
html body .sidebar-wrap .elementor-widget-foxiz-list-small-2 .entry-title,
html body .is-sidebar .elementor-widget-foxiz-list-small-2 .entry-title,
.elementor-widget-foxiz-list-small-2 .block-list-small-2 .entry-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

/* Also target by widget ID if needed */
.elementor-element-fee39a3 .entry-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
}
