/* ==========================================================================
   Sarkari Result & Bihar Job Portal - Premium Polish & Wow Design System
   With 100% Vector SVG Icons, High Density Links Table & FAQ Accordion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --brand-blue: #1e3a8a;
    --brand-accent: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-red: #dc2626;
    --brand-green: #16a34a;
    --brand-amber: #d97706;

    --yellow-highlight-bg: #fef08a;
    --yellow-highlight-border: #fde047;
    --yellow-highlight-text: #854d0e;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-card: #151d30;
    --bg-primary: #151d30;
    --bg-secondary: #1e293b;
    --border-color: #27354e;
    --border-hover: #3b4f73;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --brand-blue: #3b82f6;
    --brand-accent: #60a5fa;
    --brand-hover: #93c5fd;

    --yellow-highlight-bg: #422006;
    --yellow-highlight-border: #713f12;
    --yellow-highlight-text: #fef08a;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* --- Reset & Global Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

.svg-icon {
    vertical-align: middle;
    display: inline-block;
}

/* --- Top Reading Progress Bar --- */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #dc2626, #16a34a);
    width: 0%;
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* --- Top Utility Bar --- */
.top-utility-bar {
    background-color: var(--custom-topbar-bg, #0f172a);
    color: var(--custom-topbar-text, #ffffff);
    padding: 7px 0;
    font-size: 12.5px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-utility-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-clock-box {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--custom-topbar-text, #ffffff);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.topbar-right-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--custom-topbar-text, #ffffff);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.topbar-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.topbar-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: all 0.2s ease;
}

.social-icon-link:hover {
    transform: translateY(-2px);
}

.social-wa:hover { background: #25d366; color: #fff; }
.social-tg:hover { background: #0088cc; color: #fff; }
.social-fb:hover { background: #1877f2; color: #fff; }
.social-ig:hover { background: #e4405f; color: #fff; }
.social-yt:hover { background: #ff0000; color: #fff; }

/* --- Top Marquee Ticker --- */
.marquee-bar {
    background: #0f172a;
    color: #fff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marquee-badge {
    background: var(--brand-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(220,38,38,0.5);
}

.marquee-content {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-content span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    color: #e2e8f0;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* --- Upcoming Exams Live Ticker Container (Responsive Desktop & Unique Mobile Story Cards) --- */
/* --- Modern Exam Calendar & Live Countdown Tracker (Desktop & Mobile) --- */
.exam-tracker-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    padding: 14px 18px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.exam-tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.exam-tracker-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.exam-tracker-heading h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.exam-live-indicator {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2.5px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.exam-live-indicator .live-dot {
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #dc2626;
    animation: pulseDot 1.4s infinite;
}

.exam-tracker-viewall {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-accent, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.exam-tracker-viewall:hover {
    background: var(--brand-accent, #2563eb);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Exam Cards Smooth Auto-Slider Track with Pause on Hover */
.exam-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 6px 0 10px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
}

.exam-slider-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: examMarqueeSlide var(--exam-slide-speed, 40s) linear infinite;
    will-change: transform;
}

/* Instant pause when user hovers anywhere over the slider or on any card */
.exam-slider-viewport:hover .exam-slider-track,
.exam-slider-track:hover,
.exam-slider-track.is-paused {
    animation-play-state: paused !important;
}

@keyframes examMarqueeSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 7px));
    }
}

.exam-deck-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.22s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    cursor: pointer;
    box-sizing: border-box;
}

.exam-deck-card:hover {
    border-color: var(--brand-accent, #2563eb);
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
    z-index: 10;
}

.exam-deck-card.is-tagged {
    border-left: 3.5px solid #2563eb;
    background: linear-gradient(180deg, rgba(37,99,235,0.025) 0%, var(--bg-card, #ffffff) 100%);
}

.badge-article-tag {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.exam-deck-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.exam-deck-date-box {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Status Badges */
.badge-status-released {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.badge-status-today {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
    white-space: nowrap;
}

.badge-status-tomorrow {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.badge-status-upcoming {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.exam-deck-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exam-deck-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand-accent, #2563eb);
}

/* Mobile Touch-Slider for Exam Deck */
@media (max-width: 768px) {
    .exam-tracker-wrapper {
        padding: 12px;
        margin-bottom: 16px;
    }
    .exam-tracker-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
        gap: 8px;
        align-items: center;
    }
    .exam-tracker-heading {
        gap: 6px;
    }
    .exam-tracker-heading h2 {
        font-size: 13px;
        line-height: 1.25;
        font-weight: 800;
    }
    .exam-live-indicator {
        font-size: 9.5px;
        padding: 2px 6px;
    }
    .exam-live-indicator .live-dot {
        width: 5px;
        height: 5px;
    }
    .exam-tracker-viewall {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 16px;
    }
    .exam-slider-viewport {
        padding: 3px 0 6px 0;
        mask-image: linear-gradient(to right, transparent 0%, black 10px, black calc(100% - 10px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10px, black calc(100% - 10px), transparent 100%);
    }
    .exam-slider-track {
        gap: 10px;
        animation-duration: var(--exam-slide-speed-mobile, 30s);
    }
    .exam-deck-card {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
        padding: 10px 12px;
        gap: 8px;
        border-radius: 8px;
    }
    .exam-deck-card-title {
        font-size: 12.5px;
        min-height: 34px;
        line-height: 1.35;
    }
}

/* --- Quick Qualification & State Search Filters Bar --- */
.filter-pill-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.filter-pill-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
}
.filter-pill-btn.pill-highlight {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}
.filter-pill-btn.pill-highlight:hover {
    background: #d97706;
    color: #ffffff;
    border-color: #d97706;
}

@media (max-width: 768px) {
    .dates-fee-grid-box {
        grid-template-columns: 1fr !important;
    }
    .dates-fee-grid-box > div:first-child {
        border-right: none !important;
        border-bottom: 1px solid #580426 !important;
    }
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.brand-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.brand-logo h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.brand-logo h1 span {
    color: var(--brand-red);
    white-space: nowrap !important;
}

.bihar-tag {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Header Search Form */
.header-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px 6px 4px 18px;
    max-width: 480px;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-form:focus-within {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.header-search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    color: var(--text-primary);
    width: 100%;
    padding: 6px 0;
}

.header-search-form button {
    border: none;
    background: var(--brand-accent);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.header-search-form button:hover {
    background: var(--brand-hover);
    transform: scale(1.05);
}

/* --- Unified Site Main Search Pill Box (Search Page) --- */
.site-main-search-pill-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--brand-accent, #2563eb);
    border-radius: 40px;
    padding: 4px 6px 4px 18px;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    transition: all 0.2s ease;
}

.site-main-search-pill-box:focus-within {
    border-color: var(--brand-accent, #2563eb);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
    background: var(--bg-card);
}

.site-main-search-pill-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-primary);
    width: 100%;
    padding: 8px 6px;
}

.site-main-search-pill-box button {
    border: none;
    background: var(--brand-accent, #2563eb);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.site-main-search-pill-box button:hover {
    background: var(--brand-hover, #1d4ed8);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .site-main-search-pill-box {
        padding: 3px 4px 3px 14px;
        border-radius: 30px;
    }
    .site-main-search-pill-box input {
        font-size: 13.5px;
        padding: 6px 4px;
    }
    .site-main-search-pill-box button {
        padding: 8px 12px;
        font-size: 12.5px;
        border-radius: 24px;
    }
}

/* Mobile Hamburger Button */
.mobile-hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

/* --- Navigation Bar & Dropdown Submenu Mechanics --- */
.nav-bar {
    background-color: var(--custom-nav-bg, #1e3a8a);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 9999;
    overflow: visible !important;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible !important;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    overflow: visible !important;
}

.nav-menu li {
    position: relative;
    flex-shrink: 0;
}

.nav-menu a {
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu li.open > a {
    color: #ffffff;
    background-color: var(--custom-nav-accent, #2563eb);
    border-bottom-color: #ffffff;
}

/* Floating Submenu Dropdown Card */
.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu li.has-dropdown.open > .nav-dropdown-menu,
.nav-menu li.has-dropdown:hover > .nav-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #0f172a !important;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #334155;
    padding: 6px 0;
    list-style: none;
    z-index: 9999999 !important;
    white-space: normal;
    margin: 0;
}

.nav-dropdown-menu li {
    width: 100%;
    margin: 0;
    display: block;
}

.nav-dropdown-menu a {
    padding: 10px 16px !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    text-decoration: none !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.nav-dropdown-menu a:hover {
    background: #1e293b !important;
    color: #60a5fa !important;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.nav-menu li.has-dropdown:hover .dropdown-arrow,
.nav-menu li.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* --- Mobile Navigation Slide-Out Drawer --- */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    background: var(--bg-card);
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 16px 20px;
    background: var(--custom-nav-bg, #1e3a8a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-drawer-title {
    font-size: 15px;
    font-weight: 700;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.mobile-drawer-search {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-search form {
    display: flex;
    gap: 8px;
}

.mobile-drawer-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: var(--bg-main);
    color: var(--text-primary);
}

.mobile-drawer-search button {
    background: var(--brand-accent);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mobile-drawer-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.mobile-drawer-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    border-left: 4px solid transparent;
}

.mobile-drawer-menu a:hover, .mobile-drawer-menu a.active {
    background: var(--bg-secondary);
    border-left-color: var(--brand-accent);
    color: var(--brand-accent);
    text-decoration: none;
}

.mobile-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-drawer-footer p {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mobile-social-btns {
    display: flex;
    gap: 10px;
}

.mobile-social-btns a {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-wa { background: #25d366; }
.btn-tg { background: #0088cc; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-bar { display: none; }
    .header-search-form { display: none; }
    .mobile-hamburger-btn { display: block; }
}

/* --- Container & Single Post Layout --- */
.container, .main-wrapper {
    max-width: 1240px;
    margin: 28px auto;
    padding: 0 20px;
    position: relative;
}

.post-layout-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 28px;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .post-layout-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.post-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 600px) {
    .post-detail-card {
        padding: 14px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

.post-featured-banner {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.post-title-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.post-title-header h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meta-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
}

.badge-bihar {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Callout Boxes */
.callout-box {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.callout-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.callout-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #873800;
}

.callout-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #135200;
}

[data-theme="dark"] .callout-info { background: #1e293b; border-color: #3b82f6; color: #93c5fd; }
[data-theme="dark"] .callout-warning { background: #2d1e0f; border-color: #d97706; color: #fde68a; }
[data-theme="dark"] .callout-success { background: #062e1a; border-color: #16a34a; color: #86efac; }

/* Table of Contents (TOC) Box */
.toc-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
}

.toc-h3 {
    padding-left: 20px;
    font-size: 13px !important;
}

.toc-list a {
    color: var(--brand-accent);
    text-decoration: none;
}

.toc-list a:hover {
    text-decoration: underline;
}

/* Post Tables (Structured Recruitment Tables) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 24px;
}

.post-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.post-table th {
    background: var(--brand-blue);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
}

.post-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13.5px;
    color: var(--text-primary);
}

.post-table tr:last-child td {
    border-bottom: none;
}

.post-table tr:nth-child(even) td {
    background: var(--bg-secondary);
}

/* Quick Action Sidebar Box */
.sticky-sidebar-box {
    position: sticky;
    top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
}

.btn-apply { background: #2563eb; }
.btn-apply:hover { background: #1d4ed8; }

.btn-pdf { background: #dc2626; }
.btn-pdf:hover { background: #b91c1c; }

.btn-telegram { background: #0088cc; }
.btn-telegram:hover { background: #006699; }

.btn-whatsapp { background: #25d366; }
.btn-whatsapp:hover { background: #1da851; }

/* Article Body Content */
.post-body-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 28px 0;
}

.post-body-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 16px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-accent);
}

.post-body-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.post-body-content p {
    margin-bottom: 18px;
}

.post-body-content ul, .post-body-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.post-body-content li {
    margin-bottom: 8px;
}

.portal-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.custom-dyn-portal-grid-1 {
    grid-template-columns: 1fr;
}

.custom-dyn-portal-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.custom-dyn-portal-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .portal-grid-3col,
    .custom-dyn-portal-grid-1,
    .custom-dyn-portal-grid-2,
    .custom-dyn-portal-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .portal-grid-3col > .portal-col-box {
        order: var(--mob-order, 1);
    }
    .portal-col-box.mob-order-1 { order: 1 !important; }
    .portal-col-box.mob-order-2 { order: 2 !important; }
    .portal-col-box.mob-order-3 { order: 3 !important; }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-on-desktop {
        display: none !important;
    }
}

.portal-col-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-col-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portal-col-footer {
    background: var(--bg-secondary);
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.portal-col-footer a {
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.portal-col-footer a:hover {
    color: var(--brand-red);
    gap: 8px;
}

.portal-col-header {
    background: var(--brand-blue);
    color: #fff;
    padding: 12px 16px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-col-header.admit-header { background: #d97706; }
.portal-col-header.result-header { background: #16a34a; }

.portal-list {
    list-style: none;
}

.portal-list li {
    border-bottom: 1px solid var(--border-color);
}

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

.portal-list a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 16px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
}

.portal-list a:hover {
    background: var(--bg-secondary);
    color: var(--brand-accent);
    text-decoration: none;
}

.portal-post-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13.5px;
    line-height: 1.4;
    display: block;
}

.portal-list a:hover .portal-post-title {
    color: var(--brand-accent);
}

.portal-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.state-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
}

.state-pill.pill-bihar {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.state-pill.pill-india {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.new-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- High Density Links Table (Sarkari Result Standard Yellow Highlight) --- */
.important-links-highlight-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--yellow-highlight-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--yellow-highlight-bg);
}

.important-links-highlight-table th {
    background: #eab308;
    color: #000;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    padding: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--yellow-highlight-border);
}

.important-links-highlight-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--yellow-highlight-text);
}

.important-links-highlight-table tr:last-child td {
    border-bottom: none;
}

.btn-link-action {
    background: var(--brand-accent);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-link-action:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

/* --- FAQ Section Accordion --- */
.faq-section {
    margin: 32px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.faq-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    background: var(--bg-secondary);
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-question:hover {
    color: var(--brand-accent);
}

.faq-answer {
    padding: 16px 18px;
    display: none;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
    display: block;
}

/* --- 4-Column Modern Responsive Footer --- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 0 24px;
    margin-top: 60px;
    font-size: 13.5px;
    border-top: 3px solid var(--brand-accent);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid-4col {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 32px;
    margin-bottom: 36px;
}

@media (max-width: 992px) {
    .footer-grid-4col {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .footer-grid-4col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--brand-accent);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #94a3b8;
}

/* --- Mobile Specific Top Utility Bar, Header & Mobile Quick Tools --- */
.topbar-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-quick-tools-bar {
    display: none;
}

@media (max-width: 992px) {
    .top-utility-bar {
        padding: 4px 0 !important;
    }
    .top-utility-container {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
        gap: 6px !important;
    }
    .topbar-clock-box {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .topbar-theme-toggle {
        padding: 3px 8px !important;
        font-size: 10.5px !important;
        flex-shrink: 0 !important;
    }
    .topbar-social-links {
        display: none !important; /* Social icons desktop only as requested */
    }
    .header-container {
        padding: 10px 14px !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    .brand-logo a h1 {
        font-size: 21px !important;
    }
    .bihar-tag {
        display: none !important;
    }
    .header-quick-tools {
        display: none !important; /* Hide inside main header box so it does not stretch screen */
    }
    .header-search-form {
        order: 3;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 2px;
    }
    .mobile-hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 2;
        margin-left: auto;
    }

    .mobile-quick-tools-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .mobile-quick-tools-bar::-webkit-scrollbar {
        display: none;
    }
    .mobile-tool-pill {
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 11.5px;
        font-weight: 700;
        color: #ffffff !important;
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
        box-shadow: var(--shadow-sm);
    }
    .tool-purple { background: #9333ea; }
    .tool-orange { background: #ea580c; }
    .tool-green { background: #16a34a; }
}

/* --- Header Positioning Modes (Sticky / Fixed / Static Controls) --- */
.header-main-sticky-wrapper.header-mode-sticky {
    position: sticky;
    top: 0;
    z-index: 9990;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header-main-sticky-wrapper.header-mode-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header-main-sticky-wrapper.header-mode-static {
    position: relative;
    top: auto;
    z-index: 10;
    box-shadow: none;
}

@media (max-width: 768px) {
    .header-main-sticky-wrapper.header-mobile-static {
        position: relative !important;
        top: auto !important;
    }
}

/* --- Portal Grid & Dynamic Page Typography --- */
.page-container {
    max-width: 1240px;
    margin: 24px auto;
    padding: 0 20px;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

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

.page-dynamic-content {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-primary);
}

.page-dynamic-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-blue);
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border-color);
}

.page-dynamic-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.page-dynamic-content p {
    margin-bottom: 16px;
}

.page-dynamic-content ul, .page-dynamic-content ol {
    margin: 12px 0 18px 24px;
}

.page-dynamic-content li {
    margin-bottom: 6px;
}

/* --- Footer Community CTA Buttons --- */
.btn-footer-community {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn-footer-wa {
    background: #25d366 !important;
    color: #ffffff !important;
    border: 1px solid #1eb956;
}

.btn-footer-wa:hover {
    background: #20ba5a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(37, 211, 102, 0.4);
}

.btn-footer-tg {
    background: #0088cc !important;
    color: #ffffff !important;
    border: 1px solid #0077b5;
}

.btn-footer-tg:hover {
    background: #0077b5 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 136, 204, 0.4);
}

/* --- Compact Job Filter Bar & Mobile Bottom Drawer Responsiveness --- */
.compact-filter-trigger-wrapper {
    position: relative;
    margin-bottom: 20px;
    z-index: 100;
}

.compact-filter-trigger-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.filter-select-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-select-box {
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    flex: 1;
    min-width: 140px;
}

.btn-all-filters-trigger {
    background: var(--brand-red);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.job-filter-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 2px solid var(--brand-red);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 1000;
}

.job-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 768px) {
    .compact-filter-trigger-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    .filter-select-container {
        flex-direction: column;
        width: 100%;
    }
    .filter-select-box {
        width: 100%;
    }
    .btn-all-filters-trigger {
        width: 100%;
        padding: 10px;
    }
    .job-filter-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 0;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        padding: 16px;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
    }
    .job-filter-grid {
        grid-template-columns: 1fr;
        max-height: 60vh;
    }
}

/* --- Mobile Device Single Post Horizontal Scroll Containment Fix --- */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 991px) {
    .header-quick-tools {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container, 
    .main-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    .post-layout-grid,
    .site-main-container,
    .single-post-wrapper,
    .single-post-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .post-detail-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px 12px !important;
        box-sizing: border-box !important;
        border-radius: var(--radius-md, 12px) !important;
    }

    .single-post-content,
    .post-body,
    .post-title-header,
    .sarkari-table-card,
    .dates-fee-grid-box,
    .short-summary-box,
    .toc-box,
    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .dates-fee-grid-box {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    .dates-fee-grid-box > div {
        border-right: none !important;
        border-bottom: 1px solid #580426 !important;
    }
    .dates-fee-grid-box > div:last-child {
        border-bottom: none !important;
    }
    .form-grid-2col {
        grid-template-columns: 1fr !important;
    }
    .nested-replies-list {
        margin-left: 12px !important;
    }
    .exam-alert-form {
        flex-direction: column !important;
        max-width: 100% !important;
    }
    .exam-alert-form input,
    .exam-alert-form button {
        width: 100% !important;
    }
}

.site-main-container,
.single-post-wrapper,
.single-post-container,
.single-post-content,
.post-entry-content,
.post-body,
.post-body-content,
.post-header-card,
.sarkari-table-card,
.dates-fee-grid-box,
.article-content {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Universal 100% Mobile-First Responsive Table Engine */
.table-responsive,
.wp-block-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
    border-radius: 8px !important;
}

/* Custom Scrollbar for Smooth Touch Dragging */
.table-responsive::-webkit-scrollbar {
    height: 5px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.single-post-content table,
.post-body table,
.post-body-content table,
.post-entry-content table,
.post-detail-card table,
table.post-table,
table.important-dates-table,
table.fee-table,
table.vacancy-table,
table.links-table,
table.important-links-highlight-table,
table {
    display: table !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    box-sizing: border-box !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Table Header & Cell Constraints */
.post-table th,
.important-links-highlight-table th,
.post-body-content table th,
.post-detail-card table th,
table th {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    color: #ffffff !important;
    padding: 11px 15px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    border-bottom: 2px solid #0f172a !important;
}

.post-table td,
.important-links-highlight-table td,
.post-body-content table td,
.post-detail-card table td,
table td {
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
}

.post-body-content table tr:nth-child(even) td,
.post-detail-card table tr:nth-child(even) td {
    background: var(--bg-secondary, #f8fafc);
}

/* Guarantee Column Widths so Text Never Squishes Vertically */
.post-table th:nth-child(1),
.post-table td:nth-child(1) {
    min-width: 130px !important;
    word-break: normal !important;
}

.post-table th:nth-child(2),
.post-table td:nth-child(2) {
    min-width: 90px !important;
    white-space: nowrap !important;
}

.post-table th:nth-child(3),
.post-table td:nth-child(3) {
    min-width: 220px !important;
}

/* Media Query: Guarantee Minimum Table Width on Mobile so Text Never Wraps Letter-by-Letter */
@media (max-width: 768px) {
    .table-responsive table,
    .wp-block-table table,
    .post-detail-card table,
    .post-body-content table {
        min-width: 520px !important;
    }

    .dates-fee-grid-box {
        grid-template-columns: 1fr !important;
    }
    .dates-fee-grid-box > div {
        border-right: none !important;
        border-bottom: 1px solid #580426 !important;
    }
    .dates-fee-grid-box > div:last-child {
        border-bottom: none !important;
    }
}

@media (max-width: 480px) {
    .table-responsive table,
    .wp-block-table table,
    .post-detail-card table,
    .post-body-content table {
        min-width: 460px !important;
    }

    .post-table th,
    .post-table td,
    table th,
    table td {
        padding: 8px 10px !important;
        font-size: 12.5px !important;
    }
}

/* Pre, Code, Img & Video Containment */
.single-post-content img,
.post-body img,
.post-body-content img,
.post-entry-content img,
img, iframe, video {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.single-post-content pre,
.post-body pre,
.post-body-content pre,
pre, code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

/* Hamburger Mobile Drawer Social Icons Visibility */
.mobile-nav-drawer {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.mobile-drawer-menu {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.mobile-drawer-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding: 14px 16px !important;
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
    z-index: 10 !important;
}

/* ==========================================================================
   Sarkari Interactive Tools - 100% Mobile Responsive Styles
   ========================================================================== */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 14px;
}

.tool-header-icon {
    background: var(--brand-red);
    color: #fff;
    padding: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.tool-header-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Grids */
.tool-grid-main-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
    width: 100%;
}

.tool-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.tool-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background: var(--bg-body, var(--bg-secondary));
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tool-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.tool-stat-box {
    background: #ffffff;
    padding: 14px 10px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    text-align: center;
}

.tool-stat-value {
    font-size: 28px;
    font-weight: 800;
    display: block;
    line-height: 1.1;
    margin-bottom: 4px;
}

.tool-stat-label {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

/* Responsive Table Scroll Wrapper */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
}

/* Dynamic Result Cards for Physical Calculator */
.exam-result-card {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-left: 5px solid #16a34a;
    border-radius: 8px;
    padding: 14px 16px;
}

.exam-result-card.not-eligible {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #dc2626;
}

.exam-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.exam-result-title {
    font-size: 15px;
    font-weight: 800;
    color: #166534;
    margin: 0;
    flex: 1 1 auto;
}

.exam-result-card.not-eligible .exam-result-title {
    color: #991b1b;
}

.exam-result-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    background: #dcfce7;
    color: #15803d;
    white-space: nowrap;
}

.exam-result-card.not-eligible .exam-result-badge {
    background: #fee2e2;
    color: #991b1b;
}

.exam-result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.exam-result-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.7);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Preset Buttons */
.tool-preset-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tool-preset-btn {
    flex: 1 1 auto;
    text-align: center;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tool-preset-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.tool-preset-btn.btn-sig {
    background: #16a34a;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 992px) {
    .tool-grid-main-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tool-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .tool-header-title {
        font-size: 18px;
    }

    .tool-grid-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-form-grid {
        padding: 14px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-preset-group {
        flex-direction: column;
    }

    .tool-preset-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tool-card {
        padding: 12px;
    }

    .tool-header {
        gap: 10px;
        padding-bottom: 10px;
    }

    .tool-header-icon {
        padding: 8px;
    }

    .tool-header-title {
        font-size: 16.5px;
    }

    .tool-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .tool-stat-box {
        padding: 10px 4px;
    }

    .tool-stat-value {
        font-size: 22px;
    }

    .tool-stat-label {
        font-size: 11px;
    }

    .exam-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .exam-result-badge {
        align-self: flex-start;
    }
}

/* --- Responsive Horizontal Scroll Table UX System --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
}

/* Base Post Table Styling */
.post-table,
.important-links-highlight-table,
.post-body table,
.entry-content table {
    width: 100%;
    min-width: 500px; /* Ensures text never squishes vertically on mobile */
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    background: var(--bg-card, #ffffff);
}

.post-table th,
.important-links-highlight-table th,
.post-body table th,
.entry-content table th {
    background: #580426;
    color: #ffffff;
    padding: 12px 14px;
    font-weight: 700;
    text-align: left;
    font-family: var(--font-heading);
    border: 1px solid #4a0320;
    font-size: 14px;
    white-space: nowrap;
}

.post-table td,
.important-links-highlight-table td,
.post-body table td,
.entry-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-primary, #0f172a);
    vertical-align: middle;
    font-size: 13.5px;
    line-height: 1.5;
}

.post-table tbody tr:nth-child(even),
.important-links-highlight-table tbody tr:nth-child(even),
.post-body table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even) {
    background-color: var(--bg-secondary, #f8fafc);
}

.post-table tbody tr:hover,
.important-links-highlight-table tbody tr:hover,
.post-body table tbody tr:hover,
.entry-content table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   DARK MODE ENHANCEMENTS: Sarkari Exam Calendar, Post Tables & Components
   ========================================================================== */

/* 1. Exam Calendar Tracker in Dark Mode */
[data-theme="dark"] .exam-tracker-wrapper {
    background: #151d30 !important;
    border-color: #27354e !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .exam-tracker-header {
    border-bottom-color: #27354e !important;
}

[data-theme="dark"] .exam-tracker-heading h2 {
    color: #f8fafc !important;
}

[data-theme="dark"] .exam-deck-card {
    background: #172033 !important;
    border-color: #27354e !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .exam-deck-card:hover {
    border-color: #3b82f6 !important;
    background: #1c273e !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .exam-deck-card.is-tagged {
    border-left-color: #3b82f6 !important;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, #172033 100%) !important;
}

[data-theme="dark"] .exam-deck-card-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .exam-deck-date-box {
    color: #94a3b8 !important;
}

[data-theme="dark"] .exam-deck-card-bottom {
    border-top: 1px dashed #27354e !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .exam-live-indicator {
    background: rgba(220, 38, 38, 0.18) !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
    color: #f87171 !important;
}

[data-theme="dark"] .exam-tracker-viewall {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .exam-tracker-viewall:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="dark"] .badge-status-upcoming {
    background: rgba(30, 64, 175, 0.3) !important;
    color: #93c5fd !important;
    border-color: rgba(147, 197, 253, 0.35) !important;
}

[data-theme="dark"] .badge-status-released {
    background: rgba(6, 95, 70, 0.3) !important;
    color: #6ee7b7 !important;
    border-color: rgba(110, 231, 183, 0.35) !important;
}

[data-theme="dark"] .badge-status-today {
    background: rgba(153, 27, 27, 0.35) !important;
    color: #fca5a5 !important;
    border-color: rgba(252, 165, 165, 0.45) !important;
}

[data-theme="dark"] .badge-status-tomorrow {
    background: rgba(154, 52, 18, 0.35) !important;
    color: #fdba74 !important;
    border-color: rgba(253, 186, 116, 0.4) !important;
}

[data-theme="dark"] .badge-article-tag {
    background: rgba(37, 99, 235, 0.22) !important;
    color: #93c5fd !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
}

/* 2. Single Post Tables & Content in Dark Mode */
[data-theme="dark"] .post-table,
[data-theme="dark"] .post-body table,
[data-theme="dark"] .post-body-content table,
[data-theme="dark"] .post-detail-card table,
[data-theme="dark"] table.post-table,
[data-theme="dark"] table {
    background-color: #151d30 !important;
    border-color: #27354e !important;
}

[data-theme="dark"] .post-table th,
[data-theme="dark"] .post-body table th,
[data-theme="dark"] .post-body-content table th,
[data-theme="dark"] .post-detail-card table th,
[data-theme="dark"] table th {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    border-bottom: 2px solid #475569 !important;
}

[data-theme="dark"] .post-table td,
[data-theme="dark"] .post-body table td,
[data-theme="dark"] .post-body-content table td,
[data-theme="dark"] .post-detail-card table td,
[data-theme="dark"] table td {
    background-color: #151d30 !important;
    color: #f1f5f9 !important;
    border: 1px solid #27354e !important;
}

[data-theme="dark"] .post-table tbody tr:nth-child(even) td,
[data-theme="dark"] .post-table tr:nth-child(even) td,
[data-theme="dark"] .post-body table tr:nth-child(even) td,
[data-theme="dark"] .post-body-content table tr:nth-child(even) td,
[data-theme="dark"] .post-detail-card table tr:nth-child(even) td,
[data-theme="dark"] table tbody tr:nth-child(even) td,
[data-theme="dark"] table tr:nth-child(even) td {
    background-color: #1c273e !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .post-table tbody tr:hover td,
[data-theme="dark"] .post-body table tbody tr:hover td,
[data-theme="dark"] .post-body-content table tbody tr:hover td,
[data-theme="dark"] .post-detail-card table tbody tr:hover td,
[data-theme="dark"] table tbody tr:hover td {
    background-color: #243352 !important;
}

/* Important Links Table in Dark Mode */
[data-theme="dark"] .important-links-highlight-table {
    background-color: #151d30 !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .important-links-highlight-table th {
    background: #92400e !important;
    color: #ffffff !important;
    border-bottom: 2px solid #b45309 !important;
}

[data-theme="dark"] .important-links-highlight-table td {
    background-color: #151d30 !important;
    color: #f8fafc !important;
    border: 1px solid #27354e !important;
}

[data-theme="dark"] .important-links-highlight-table tbody tr:nth-child(even) td,
[data-theme="dark"] .important-links-highlight-table tr:nth-child(even) td {
    background-color: #1c273e !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .important-links-highlight-table tbody tr:hover td {
    background-color: #243352 !important;
}

/* Top Dates & Fee Card in Dark Mode */
[data-theme="dark"] .sarkari-dates-fee-card {
    background: #151d30 !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .sarkari-dates-fee-header {
    background: #151d30 !important;
    border-bottom: 2px solid #27354e !important;
}

[data-theme="dark"] .sarkari-dates-fee-header h2 {
    color: #f87171 !important;
}

[data-theme="dark"] .sarkari-dates-fee-header h3 {
    color: #4ade80 !important;
}

[data-theme="dark"] .sarkari-dates-fee-header a {
    color: #60a5fa !important;
}

[data-theme="dark"] .sarkari-dates-fee-grid {
    border-top: 1px solid #27354e !important;
    background: #151d30 !important;
}

[data-theme="dark"] .sarkari-dates-col,
[data-theme="dark"] .sarkari-fee-col,
[data-theme="dark"] .sarkari-dates-fee-grid > div {
    background: #151d30 !important;
    border-right-color: #27354e !important;
}

[data-theme="dark"] .sarkari-dates-col-header,
[data-theme="dark"] .sarkari-fee-col-header {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-bottom: 1px solid #334155 !important;
}

[data-theme="dark"] .sarkari-dates-fee-grid ul {
    background: #151d30 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .sarkari-date-item,
[data-theme="dark"] .sarkari-fee-item,
[data-theme="dark"] .sarkari-dates-fee-grid li {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .sarkari-date-item strong,
[data-theme="dark"] .sarkari-fee-item strong {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .sarkari-date-item .date-val:not(.is-highlight-red),
[data-theme="dark"] .sarkari-fee-item .fee-val {
    color: #ffffff !important;
}

[data-theme="dark"] .sarkari-date-item .is-highlight-red {
    color: #f87171 !important;
    font-weight: 800 !important;
}

[data-theme="dark"] .date-bullet,
[data-theme="dark"] .fee-bullet {
    color: #60a5fa !important;
}

/* Quick Filter Card in Dark Mode */
[data-theme="dark"] .compact-filter-trigger-card {
    background: #151d30 !important;
    border-color: #27354e !important;
}

[data-theme="dark"] .filter-select-box {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* ==========================================================================
   FLOATING SCROLL TO TOP BUTTON (Smooth 1-Click Action)
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
}

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

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
}

.scroll-to-top-btn:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 900px) {
    .scroll-to-top-btn {
        bottom: 78px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ========================================================
   Direct Manual Banner Ads & Sponsor Placements
   ======================================================== */

/* Common Header & Badges */
.manual-ad-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1;
}

.manual-ad-badge-pill {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 10px;
}

.manual-ad-info-hint {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

/* 1. Modal Popup Ad */
.manual-ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.manual-ad-popup-overlay.is-active {
    opacity: 1;
}

.manual-ad-popup-box {
    position: relative;
    max-width: 580px;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    animation: manualAdPopZoom 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes manualAdPopZoom {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.manual-ad-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.manual-ad-popup-close:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.manual-ad-badge {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.manual-ad-popup-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.manual-ad-popup-link img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    transition: transform 0.25s ease;
}

.manual-ad-popup-link:hover img {
    transform: scale(1.01);
}

/* 2. Homepage Above Calendar Banner */
.home-above-calendar-ad {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 10px);
    padding: 10px 14px 12px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}

.home-above-calendar-ad .manual-banner-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.home-above-calendar-ad .manual-banner-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-above-calendar-ad .manual-banner-link:hover .manual-banner-img {
    opacity: 0.96;
    transform: scale(1.005);
}

/* Responsive HTML5 Picture Wrapper for Manual Ads */
.manual-ad-picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.manual-ad-picture img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .home-above-calendar-ad {
        padding: 8px 10px;
        margin-bottom: 16px;
    }
    .home-above-calendar-ad .manual-banner-img {
        max-height: none;
        object-fit: contain;
    }
    .manual-ad-popup-box {
        max-width: 92vw;
        padding: 10px;
    }
}

/* 3. Homepage Left & Right Skyscraper Gutter Ads (Zero impact on homepage width, strictly bounded to main content) */
.manual-gutter-ad {
    display: none; /* Hidden on screens below 1500px so homepage width is never squeezed */
}

@media (min-width: 1500px) {
    .manual-gutter-ad {
        display: block;
        position: absolute;
        top: 0;
        bottom: 40px;
        width: 120px;
        z-index: 99;
        pointer-events: none;
    }

    /* Position in the outer margin outside the original 1240px container */
    .manual-gutter-ad.gutter-left {
        right: 100%;
        left: auto;
        margin-right: 10px;
    }

    .manual-gutter-ad.gutter-right {
        left: 100%;
        right: auto;
        margin-left: 10px;
    }

    .manual-gutter-ad .gutter-ad-sticky-box {
        position: sticky;
        top: 115px;
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    }

    /* As soon as user scrolls near footer, smooth disappear */
    .manual-gutter-ad .gutter-ad-sticky-box.is-hidden-footer {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(24px) scale(0.95) !important;
        pointer-events: none !important;
    }
}

@media (min-width: 1600px) {
    .manual-gutter-ad {
        width: 145px;
    }

    .manual-gutter-ad.gutter-left {
        margin-right: 16px;
    }

    .manual-gutter-ad.gutter-right {
        margin-left: 16px;
    }
}

.gutter-ad-inner {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.gutter-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 10;
    transition: transform 0.15s, background 0.15s;
}

.gutter-ad-close:hover {
    transform: scale(1.15);
    background: #dc2626;
}

.gutter-ad-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.gutter-ad-inner a {
    display: block;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
}

.gutter-ad-inner img {
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* 4. Single Post Sidebar Widget Ad */
.manual-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 10px);
    padding: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}

.manual-sidebar-box {
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.manual-sidebar-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.manual-sidebar-box a:hover .manual-sidebar-img {
    opacity: 0.95;
    transform: scale(1.01);
}

/* Dark Mode Overrides */
[data-theme="dark"] .manual-ad-popup-box,
[data-theme="dark"] .home-above-calendar-ad,
[data-theme="dark"] .gutter-ad-inner,
[data-theme="dark"] .manual-sidebar-widget {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .manual-ad-badge-pill {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .manual-ad-badge,
[data-theme="dark"] .manual-ad-info-hint,
[data-theme="dark"] .gutter-ad-label {
    color: #94a3b8 !important;
}

/* --- Mobile Page Overflow & Isolated Table Horizontal Scrolling Fix --- */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.post-layout-grid, .post-detail-card {
    box-sizing: border-box !important;
}

.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    margin-bottom: 20px;
    border-radius: 8px;
}

.post-detail-card table, 
.post-table,
.rich-content table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.post-detail-card table th, 
.post-detail-card table td,
.post-table th,
.post-table td,
.rich-content table th,
.rich-content table td {
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .dates-fee-grid-box {
        grid-template-columns: 1fr !important;
    }
    .dates-fee-grid-box > div {
        border-right: none !important;
        border-bottom: 1px solid #580426 !important;
    }
    .dates-fee-grid-box > div:last-child {
        border-bottom: none !important;
    }
}





