/*
Theme Name: Maha Nokri
Theme URI: https://mahanokri.com
Author: Maha Nokri Team
Author URI: https://mahanokri.com
Description: A modern, fast, SEO-optimized job portal theme for Government & Private job listings. Features custom post types, taxonomies, JobPosting schema, and automation support.
Version: 1.1.0
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: maha-nokri
Tags: job-portal, government-jobs, custom-post-types, seo-optimized, mobile-first

Maha Nokri — महा नोकरी Job Portal Theme
*/

/* ═══════════════════════════════════════════ */
/* CSS CUSTOM PROPERTIES                       */
/* ═══════════════════════════════════════════ */
:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --accent: #f59e0b;
    --dark: #0f172a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --radius: 1rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* Custom logo sizing to prevent visual layout breaking */
.custom-logo-link img {
    max-height: 44px !important;
    width: auto !important;
    object-fit: contain;
    display: inline-block;
}

/* ═══════════════════════════════════════════ */
/* TICKER                                      */
/* ═══════════════════════════════════════════ */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-wrap { overflow: hidden; }
.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }

/* ═══════════════════════════════════════════ */
/* CARD EFFECTS                                */
/* ═══════════════════════════════════════════ */
.job-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); backface-visibility: hidden; transform: translateZ(0); -webkit-font-smoothing: subpixel-antialiased; }
.job-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15); }
.cat-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); backface-visibility: hidden; transform: translateZ(0); -webkit-font-smoothing: subpixel-antialiased; }
.cat-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(30, 64, 175, 0.18); }

/* Prevent social icon shaking */
footer a, header button, .btn-shimmer, .nav-link { 
    backface-visibility: hidden; 
    transform: translateZ(0); 
    -webkit-font-smoothing: subpixel-antialiased;
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════ */
/* SEARCH GLOW                                 */
/* ═══════════════════════════════════════════ */
.search-box:focus-within { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25); }

/* ═══════════════════════════════════════════ */
/* TOGGLE                                      */
/* ═══════════════════════════════════════════ */
.toggle-btn.active { background: var(--primary-800); color: #fff; border-color: var(--primary-800); }

/* ═══════════════════════════════════════════ */
/* BADGE PULSE                                 */
/* ═══════════════════════════════════════════ */
@keyframes pulse-badge { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.badge-new { animation: pulse-badge 2s ease-in-out infinite; }

/* ═══════════════════════════════════════════ */
/* SHIMMER CTA                                 */
/* ═══════════════════════════════════════════ */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.btn-shimmer {
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 40%, #60a5fa 50%, #3b82f6 60%, #1e40af 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    will-change: background-position;
    transform: translateZ(0);
}

/* ═══════════════════════════════════════════ */
/* UTILITY OVERRIDES FOR WP                    */
/* ═══════════════════════════════════════════ */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.sidebar-sticky { position: sticky; top: 5rem; }

/* WordPress alignment classes */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--slate-500); margin-top: 0.5rem; }

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════ */
/* PAGINATION                                  */
/* ═══════════════════════════════════════════ */

/* List wrapper reset */
ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
}
ul.page-numbers li { display: inline-flex; }

/* Base page number */
.page-numbers a.page-numbers,
.page-numbers span.page-numbers,
a.page-numbers,
span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid var(--slate-200);
    border-radius: 9999px; /* Pill-shaped / Circular */
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--slate-700);
    background: white;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}
.page-numbers a.page-numbers:hover:not(.current):not(.dots),
a.page-numbers:hover:not(.current):not(.dots) {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Active / current page */
.page-numbers span.page-numbers.current,
span.page-numbers.current {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800)) !important;
    border-color: var(--primary-600) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    pointer-events: none;
}

/* Prev / Next buttons */
.page-numbers a.page-numbers.prev,
.page-numbers a.page-numbers.next,
a.page-numbers.prev,
a.page-numbers.next {
    font-weight: 700;
    padding: 0 0.875rem;
    border-radius: 9999px;
    background: var(--slate-100);
    border-color: var(--slate-200);
}
.page-numbers a.page-numbers.prev:hover,
.page-numbers a.page-numbers.next:hover,
a.page-numbers.prev:hover,
a.page-numbers.next:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Dots / ellipsis */
.page-numbers span.page-numbers.dots,
span.page-numbers.dots {
    border: none !important;
    background: transparent !important;
    color: var(--slate-400) !important;
    cursor: default;
    min-width: 1.5rem;
    padding: 0;
    pointer-events: none;
    box-shadow: none !important;
}

/* ─── Dark mode overrides ─── */
.dark .page-numbers a.page-numbers,
.dark .page-numbers span.page-numbers,
.dark a.page-numbers,
.dark span.page-numbers {
    background: var(--slate-800);
    border-color: var(--slate-700);
    color: #e2e8f0;
}
.dark .page-numbers a.page-numbers:hover:not(.current):not(.dots),
.dark a.page-numbers:hover:not(.current):not(.dots) {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.dark .page-numbers span.page-numbers.current,
.dark span.page-numbers.current {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.dark .page-numbers a.page-numbers.prev,
.dark .page-numbers a.page-numbers.next,
.dark a.page-numbers.prev,
.dark a.page-numbers.next {
    background: var(--slate-700);
    border-color: var(--slate-600);
}
.dark .page-numbers a.page-numbers.prev:hover,
.dark .page-numbers a.page-numbers.next:hover,
.dark a.page-numbers.prev:hover,
.dark a.page-numbers.next:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}
.dark .page-numbers span.page-numbers.dots,
.dark span.page-numbers.dots {
    background: transparent !important;
    color: var(--slate-500) !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .page-numbers {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
        border-radius: 0.625rem;
    }
    .page-numbers.prev,
    .page-numbers.next {
        padding: 0 0.625rem;
    }
}

/* ═══════════════════════════════════════════ */
/* INLINE RELATED POSTS                        */
/* ═══════════════════════════════════════════ */
.maha-inline-related {
    margin: 2rem 0;
    clear: both;
}
.inline-related-wrapper {
    background: linear-gradient(135deg, var(--primary-50), #f0f4ff);
    border: 1.5px solid var(--primary-200);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    position: relative;
    overflow: hidden;
}
.inline-related-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), transparent);
    border-bottom-left-radius: 3rem;
}
.inline-related-heading {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--primary-800);
    margin: 0 0 0.75rem;
    letter-spacing: 0.01em;
}
.inline-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.inline-related-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.inline-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.12);
    border-color: var(--primary-300);
}
.inline-related-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--slate-100);
}
.inline-related-thumb img,
.inline-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.inline-related-card:hover .inline-related-thumb img {
    transform: scale(1.06);
}
.inline-related-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-50), var(--slate-100));
    color: var(--slate-400);
}
.inline-related-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-700);
    line-height: 1.4;
    padding: 0.625rem 0.75rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inline-related-card:hover .inline-related-title {
    color: var(--primary-700);
}

/* ─── Dark mode ─── */
.dark .inline-related-wrapper {
    background: linear-gradient(135deg, var(--slate-800), rgba(30, 64, 175, 0.08));
    border-color: var(--slate-700);
}
.dark .inline-related-wrapper::before {
    background: linear-gradient(135deg, rgba(59,130,246,0.06), transparent);
}
.dark .inline-related-heading {
    color: #93c5fd;
}
.dark .inline-related-card {
    background: var(--slate-800);
    border-color: var(--slate-700);
}
.dark .inline-related-card:hover {
    border-color: var(--primary-500);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}
.dark .inline-related-thumb {
    background: var(--slate-700);
}
.dark .inline-related-img-placeholder {
    background: linear-gradient(135deg, var(--slate-700), var(--slate-800));
    color: var(--slate-500);
}
.dark .inline-related-title {
    color: #cbd5e1;
}
.dark .inline-related-card:hover .inline-related-title {
    color: #93c5fd;
}

/* Mobile: stack cards */
@media (max-width: 480px) {
    .inline-related-grid {
        grid-template-columns: 1fr;
    }
    .inline-related-card {
        flex-direction: row;
    }
    .inline-related-thumb {
        width: 5rem;
        min-height: 4rem;
        aspect-ratio: auto;
        flex-shrink: 0;
    }
    .inline-related-title {
        padding: 0.5rem 0.625rem;
    }
}

/* Footer Social Icon Hover Background Variable */
.footer-social-btn:hover {
    background-color: var(--hover-bg) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ===== LOGO LEFT ALIGNMENT FIX ===== */
/* Force custom logo to left align on desktop and mobile */
.site-header .custom-logo-link,
header .custom-logo-link,
.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
}

/* Custom logo image size control */
.custom-logo-link img.custom-logo,
.custom-logo-link .custom-logo {
    height: 44px !important;
    width: auto !important;
    max-width: 180px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Mobile logo size */
@media (max-width: 640px) {
    .custom-logo-link img.custom-logo,
    .custom-logo-link .custom-logo {
        height: 36px !important;
        max-height: 36px !important;
        max-width: 140px !important;
    }
}

/* Header nav left alignment ensure */
header nav,
.site-header nav {
    display: flex;
    align-items: center;
}

/* ===== MOBILE LOGO LEFT ALIGNMENT ===== */
/* Override WordPress default centered logo on mobile */
@media (max-width: 1024px) {
    .logo-wrapper .custom-logo-link {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: auto !important;
    }
    
    /* Remove any centering from the header flex on mobile */
    header .flex.items-center.justify-between .logo-wrapper {
        justify-content: flex-start !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
}

/* Ensure custom logo link is never centered */
a.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   LOGO SIZE - LARGER
   ============================================ */
/* Desktop logo - bigger size */
.custom-logo-link img.custom-logo,
.custom-logo-link .custom-logo {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
}
/* Mobile logo - slightly smaller but still bigger than before */
@media (max-width: 640px) {
    .custom-logo-link img.custom-logo,
    .custom-logo-link .custom-logo {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 170px !important;
    }
}
/* Make header slightly taller to accommodate bigger logo */
header .h-16 {
    height: 5rem !important;
}

/* ============================================
   PREMIUM PAGINATION STYLE
   ============================================ */
.pagination,
.nav-links,
.page-numbers-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    padding: 24px 0 !important;
}

/* Each page number - pill style */
.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;

    /* Light mode */
    background: #ffffff !important;
    color: #374151 !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

/* Hover state */
.page-numbers:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.2) !important;
}

/* Active/Current page */
.page-numbers.current,
span.page-numbers {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 14px rgba(59,130,246,0.4) !important;
    transform: scale(1.05) !important;
    cursor: default !important;
}

/* Next/Prev arrow buttons */
.page-numbers.next,
.page-numbers.prev {
    background: #f8fafc !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
    font-size: 18px !important;
    padding: 0 16px !important;
}
.page-numbers.next:hover,
.page-numbers.prev:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}

/* Dots (ellipsis) */
.page-numbers.dots {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #6b7280 !important;
    cursor: default !important;
    letter-spacing: 2px !important;
}

/* Dark Mode pagination */
.dark .page-numbers {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}
.dark .page-numbers:hover {
    background: #1e3a5f !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.25) !important;
}
.dark .page-numbers.current,
.dark span.page-numbers {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35) !important;
}
.dark .page-numbers.next,
.dark .page-numbers.prev {
    background: #1e293b !important;
    color: #60a5fa !important;
    border-color: #1e3a5f !important;
}
.dark .page-numbers.next:hover,
.dark .page-numbers.prev:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}
.dark .page-numbers.dots {
    background: transparent !important;
    border-color: transparent !important;
    color: #475569 !important;
}

/* ============================================
   PREMIUM PAGINATION - .maha-pagination
   ============================================ */
.maha-pagination-wrap {
    width: 100%;
    padding: 20px 0 10px;
}

.maha-pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* All pagination links and spans */
.maha-pagination a.page-numbers,
.maha-pagination span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid #e2e8f0 !important;
    cursor: pointer !important;
    background: #ffffff !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04) !important;
    line-height: 1 !important;
}

/* Hover state - light mode */
.maha-pagination a.page-numbers:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(59,130,246,0.22) !important;
}

/* Current/Active page */
.maha-pagination span.page-numbers.current {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 16px rgba(59,130,246,0.4) !important;
    transform: scale(1.06) !important;
    cursor: default !important;
}

/* Prev / Next buttons */
.maha-pagination a.page-numbers.prev,
.maha-pagination a.page-numbers.next {
    padding: 0 18px !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1d4ed8 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}
.maha-pagination a.page-numbers.prev:hover,
.maha-pagination a.page-numbers.next:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 6px 16px rgba(29,78,216,0.35) !important;
}
.maha-pagination a.page-numbers.prev svg,
.maha-pagination a.page-numbers.next svg {
    flex-shrink: 0 !important;
}

/* Dots (ellipsis) */
.maha-pagination span.page-numbers.dots {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    cursor: default !important;
    letter-spacing: 3px !important;
    min-width: 28px !important;
    padding: 0 6px !important;
}

/* === DARK MODE === */
.dark .maha-pagination a.page-numbers,
.dark .maha-pagination span.page-numbers {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}
.dark .maha-pagination a.page-numbers:hover {
    background: #1e3a5f !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
    box-shadow: 0 6px 16px rgba(59,130,246,0.2) !important;
}
.dark .maha-pagination span.page-numbers.current {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3) !important;
}
.dark .maha-pagination a.page-numbers.prev,
.dark .maha-pagination a.page-numbers.next {
    background: #0f172a !important;
    border-color: #1e3a5f !important;
    color: #60a5fa !important;
}
.dark .maha-pagination a.page-numbers.prev:hover,
.dark .maha-pagination a.page-numbers.next:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}
.dark .maha-pagination span.page-numbers.dots {
    background: transparent !important;
    border-color: transparent !important;
    color: #475569 !important;
}

/* ═══════════════════════════════════════════ */
/* POST CONTENT / ENTRY-CONTENT STYLING       */
/* Premium, compact, dark+light mode           */
/* ═══════════════════════════════════════════ */

/* --- Base Typography --- */
.entry-content,
.prose {
    font-size: 0.938rem !important;
    line-height: 1.75 !important;
    color: #334155;
}
.dark .entry-content,
.dark .prose {
    color: #cbd5e1;
}

.entry-content p,
.prose p {
    margin-bottom: 1rem;
}

/* --- Headings --- */
.entry-content h2,
.prose h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1e293b;
    margin: 1.75rem 0 0.75rem 0;
    padding: 0.5rem 0 0.5rem 0.875rem;
    border-left: 4px solid #3b82f6;
    background: linear-gradient(90deg, rgba(59,130,246,0.08) 0%, transparent 60%);
    border-radius: 0 0.5rem 0.5rem 0;
    letter-spacing: -0.01em;
}
.dark .entry-content h2,
.dark .prose h2 {
    color: #e2e8f0;
    border-left-color: #60a5fa;
    background: linear-gradient(90deg, rgba(96,165,250,0.1) 0%, transparent 60%);
}

.entry-content h3,
.prose h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1e40af;
    margin: 1.5rem 0 0.5rem 0;
    padding: 0.375rem 0 0.375rem 0.75rem;
    border-left: 3px solid #60a5fa;
    letter-spacing: -0.005em;
}
.dark .entry-content h3,
.dark .prose h3 {
    color: #93c5fd;
    border-left-color: #3b82f6;
}

.entry-content h4,
.prose h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #334155;
    margin: 1.25rem 0 0.5rem 0;
}
.dark .entry-content h4,
.dark .prose h4 {
    color: #e2e8f0;
}

/* --- Premium Responsive Tables --- */
.entry-content table,
.prose table {
    width: 100%;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-spacing: 0;
    border-collapse: collapse;
}
.dark .entry-content table,
.dark .prose table {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.entry-content table thead tr,
.prose table thead tr,
.entry-content table tr:first-child,
.prose table tr:first-child {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0;
}
.dark .entry-content table thead tr,
.dark .prose table thead tr,
.dark .entry-content table tr:first-child,
.dark .prose table tr:first-child {
    background: #1e293b !important;
    border-bottom: 2px solid #334155;
}

.entry-content table thead th,
.prose table thead th,
.entry-content table tr:first-child th,
.prose table tr:first-child th,
.entry-content table tr:first-child td,
.prose table tr:first-child td {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem !important;
    color: #475569 !important;
    background: transparent !important;
    white-space: normal;
}
.dark .entry-content table thead th,
.dark .prose table thead th,
.dark .entry-content table tr:first-child th,
.dark .prose table tr:first-child th,
.dark .entry-content table tr:first-child td,
.dark .prose table tr:first-child td {
    color: #94a3b8 !important;
}

/* Force elements inside the header row to inherit color and have no margins */
.entry-content table thead th *,
.prose table thead th *,
.entry-content table tr:first-child th *,
.prose table tr:first-child th *,
.entry-content table tr:first-child td * {
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    background: transparent !important;
}

.entry-content table tbody tr,
.prose table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff !important;
}
.dark .entry-content table tbody tr,
.dark .prose table tbody tr {
    border-bottom: 1px solid #1e293b;
    background: #0f172a !important;
}
.entry-content table tbody tr:last-child,
.prose table tbody tr:last-child {
    border-bottom: none;
}

.entry-content table td,
.prose table td {
    padding: 1rem 1.25rem;
    color: #334155;
    vertical-align: middle;
    background: transparent !important;
    line-height: 1.5;
}
.dark .entry-content table td,
.dark .prose table td {
    color: #cbd5e1;
}

/* Bold text in data rows */
.entry-content table tbody tr td strong,
.prose table tbody tr td strong {
    color: #0f172a;
    font-weight: 600;
}
.dark .entry-content table tbody tr td strong,
.dark .prose table tbody tr td strong {
    color: #f8fafc;
}

/* --- Lists --- */
.entry-content ul,
.prose ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0;
}
.entry-content ul li,
.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.6;
}
.entry-content ul li::before,
.prose ul li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}
.dark .entry-content ul li::before,
.dark .prose ul li::before {
    background: #60a5fa;
}

.entry-content ol,
.prose ol {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
    counter-reset: item;
    list-style: none;
}
.entry-content ol li,
.prose ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.6;
    counter-increment: item;
}
.entry-content ol li::before,
.prose ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark .entry-content ol li::before,
.dark .prose ol li::before {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* --- Blockquotes --- */
.entry-content blockquote,
.prose blockquote {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(90deg, rgba(59,130,246,0.06) 0%, transparent 100%);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #475569;
    font-size: 0.875rem;
}
.dark .entry-content blockquote,
.dark .prose blockquote {
    border-left-color: #60a5fa;
    background: linear-gradient(90deg, rgba(96,165,250,0.08) 0%, transparent 100%);
    color: #94a3b8;
}

/* --- Links --- */
.entry-content a,
.prose a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #93c5fd;
    transition: all 0.2s ease;
}
.entry-content a:hover,
.prose a:hover {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
    border-bottom-style: solid;
}
.dark .entry-content a,
.dark .prose a {
    color: #60a5fa;
    border-bottom-color: #1e40af;
}
.dark .entry-content a:hover,
.dark .prose a:hover {
    color: #93c5fd;
    border-bottom-color: #3b82f6;
}

/* --- Images inside content --- */
.entry-content img,
.prose img {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
}
.dark .entry-content img,
.dark .prose img {
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- Strong/Bold text --- */
.entry-content strong,
.prose strong {
    color: #1e293b;
    font-weight: 700;
}
.dark .entry-content strong,
.dark .prose strong {
    color: #f1f5f9;
}

/* --- Horizontal rules --- */
.entry-content hr,
.prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 1.5rem 0;
}
.dark .entry-content hr,
.dark .prose hr {
    background: linear-gradient(90deg, transparent, #334155, transparent);
}

/* --- Code blocks --- */
.entry-content code,
.prose code {
    background: #f1f5f9;
    color: #be185d;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.dark .entry-content code,
.dark .prose code {
    background: #1e293b;
    color: #f472b6;
}

/* --- Responsive table wrapper --- */
.wp-block-table,
.entry-content .table-responsive,
.prose .table-responsive,
.entry-content > div:has(> table),
.prose > div:has(> table) {
    display: block;
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    margin: 1.25rem -6px !important;
}

/* --- Figure captions --- */
.entry-content figcaption,
.prose figcaption {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Mobile: tighter spacing and horizontal scroll settings */
@media (max-width: 640px) {
    .entry-content table th,
    .prose table th,
    .entry-content table td,
    .prose table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Make headers/first row more compact on mobile */
    .entry-content table tr:first-child th,
    .prose table tr:first-child th,
    .entry-content table tr:first-child td,
    .prose table tr:first-child td {
        font-size: 0.72rem !important;
        padding: 0.5rem 0.4rem !important;
    }

    .entry-content h2, .prose h2 { font-size: 1.1rem !important; }
    .entry-content h3, .prose h3 { font-size: 1rem !important; }
}

@media (max-width: 768px) {
    .entry-content table,
    .prose table {
        table-layout: auto !important;
        min-width: 500px;
        min-width: max-content !important;
    }
}
