/*
Theme Name: FastJob Theme
Theme URI: https://fastjob.co
Description: Modern, High-Density Indian Job Portal Theme (FastJob.co style) with Increased Subnav-to-Content Spacing Gap, Dynamic Title Border Line, Single Clean Card Layout for Category Pages, Uniform Blue Category Headers, Dynamic Join Alert Options, Post Ending Categories & Tags, Universal Spacing Gaps, Compact Mobile Sizing, Dropdown Hamburger Menu, Single Post Header Banner, CTA Buttons, Smart Subnav Tabs, Customizer-Editable Sidebar Manager, and Homepage Category Grid.
Version: 6.7.0
Author: FastJob Team
Text Domain: fastjob-theme
*/

/* CSS Reset & Variables */
:root {
    --fj-primary: #2563eb;
    --fj-primary-hover: #1d4ed8;
    --fj-dark: #0f172a;
    --fj-light-bg: #f8fafc;
    --fj-card-border: #e2e8f0;
    --fj-text-main: #1e293b;
    --fj-text-muted: #64748b;
    --fj-purple-banner: #3b0764;
    --fj-green-cta: #00b843;
    --fj-item-gap: 1.15rem; /* Universal Section & Spacing Gap */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f1f5f9;
    color: var(--fj-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Site Layout Container */
.fj-site-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Header Navbar */
.fj-navbar,
.fj-header {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 999;
}

.fj-nav-wrapper,
.fj-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 1.5rem;
}

/* Logo & Homepage H1 Wrapper */
h1.fj-brand-logo-h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
}

.fj-brand-logo {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.fj-brand-logo span {
    color: #38bdf8 !important;
}

.fj-site-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Desktop Horizontal Header Navigation Menu (Right-Aligned) */
.fj-desktop-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end !important;
    margin-right: 0.5rem;
}

.fj-desktop-nav ul,
.fj-desktop-menu-list {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: static !important;
}

.fj-desktop-nav ul li,
.fj-desktop-menu-list li {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    list-style: none !important;
    border: none !important;
}

.fj-desktop-nav ul li a,
.fj-desktop-menu-list li a {
    display: inline-block !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.45rem 0.65rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    background: transparent !important;
}

.fj-desktop-nav ul li a:hover,
.fj-desktop-menu-list li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.fj-desktop-nav ul li.current-menu-item > a,
.fj-desktop-nav ul li.active > a,
.fj-desktop-menu-list li a.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    font-weight: 700 !important;
}

/* Sub-menus inside Desktop Nav (Dropdown on Hover if any) */
.fj-desktop-nav ul li ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    min-width: 180px !important;
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0.4rem 0 !important;
    z-index: 1000 !important;
}

.fj-desktop-nav ul li:hover > ul.sub-menu {
    display: flex !important;
}

.fj-desktop-nav ul li ul.sub-menu li a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    color: #cbd5e1 !important;
}

/* Header Controls Right */
.fj-header-actions,
.fj-header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex-shrink: 0;
}

.fj-icon-btn,
.fj-header-icon-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fj-icon-btn:hover,
.fj-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.fj-dropdown-menu-wrapper {
    position: relative;
}

/* Mobile Dropdown Menu Panel */
.fj-dropdown-panel,
.fj-dropdown-menu-panel {
    position: absolute;
    top: 48px;
    right: 0;
    background: #1e293b !important;
    border: 1px solid #334155;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    width: 250px;
    display: none;
    overflow: hidden;
    z-index: 9999 !important;
}

.fj-dropdown-panel.show,
.fj-dropdown-menu-panel.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: fjDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fjDropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fj-dropdown-panel .fj-dropdown-menu-list,
.fj-dropdown-panel ul,
.fj-dropdown-menu-list {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0.4rem 0 !important;
    background: #1e293b !important;
    width: 100% !important;
}

.fj-dropdown-panel .fj-dropdown-menu-list li,
.fj-dropdown-panel ul li,
.fj-dropdown-menu-list li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #283548 !important;
}

.fj-dropdown-panel .fj-dropdown-menu-list li:last-child,
.fj-dropdown-panel ul li:last-child,
.fj-dropdown-menu-list li:last-child {
    border-bottom: none !important;
}

.fj-dropdown-panel .fj-dropdown-menu-list li a,
.fj-dropdown-panel ul li a,
.fj-dropdown-menu-list li a {
    display: block !important;
    padding: 0.7rem 1.15rem !important;
    color: #f1f5f9 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.fj-dropdown-panel .fj-dropdown-menu-list li a:hover,
.fj-dropdown-panel ul li a:hover,
.fj-dropdown-menu-list li a:hover {
    background: #334155 !important;
    color: #38bdf8 !important;
}

.fj-dropdown-panel .fj-dropdown-menu-list li a.active,
.fj-dropdown-panel ul li a.active,
.fj-dropdown-menu-list li a.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    font-weight: 700 !important;
}

/* Expandable Search Panel */
.fj-search-panel {
    background: #1e293b !important;
    border-top: 1px solid #334155;
    padding: 0.75rem 0;
    display: none;
}

.fj-search-panel.show {
    display: block !important;
    animation: fjDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fj-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.fj-search-input {
    flex: 1;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.92rem;
}

.fj-search-input:focus {
    outline: none;
    border-color: #38bdf8;
}

.fj-search-submit {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.fj-search-submit:hover {
    background: #1d4ed8;
}

/* RESPONSIVE DISPLAY RULES FOR DESKTOP VS MOBILE NAV */
@media (min-width: 992px) {
    .fj-desktop-nav {
        display: flex !important;
    }
    .fj-hamburger-toggle {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .fj-desktop-nav {
        display: none !important;
    }
    .fj-hamburger-toggle {
        display: inline-flex !important;
    }
}

/* 2-COLUMN LAYOUT STRUCTURE (MAIN CONTENT + SIDEBAR) WITH UNIFORM TOP GAP */
.fj-layout-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    max-width: 100%;
}

.fj-layout-wrapper.fj-sidebar-left {
    flex-direction: row-reverse;
}

.fj-main-content {
    flex: 1 1 0;
    min-width: 0; /* Essential for flexbox content wrapping */
    max-width: 100%;
}

.fj-sidebar-column {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
}

/* HOMEPAGE CATEGORY GRID CONTAINER & CARDS */
.fj-homepage-grid-container {
    display: grid;
    gap: 1.25rem;
    width: 100%;
}

.fj-grid-cols-1 { grid-template-columns: 1fr; }
.fj-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fj-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fj-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.fj-category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fj-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

/* Center-Aligned Category Card Headers Across All Categories */
.fj-card-header,
.fj-category-card .fj-card-header {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center !important;
    text-align: center !important;
    position: relative;
}

.fj-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center !important;
    width: 100%;
}

.fj-card-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center !important;
}

.fj-cat-icon {
    font-size: 1.15rem;
}

.fj-header-arrow-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    right: 0.85rem;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.fj-header-arrow-link:hover {
    opacity: 1;
}

.fj-card-body {
    padding: 0.65rem 0.5rem;
    flex: 1;
}

.fj-card-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fj-card-post-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #f1f5f9;
}

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

.fj-card-post-list li a {
    color: #1e293b;
    text-decoration: none;
    font-size: 0.80rem !important;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.3 !important;
    transition: color 0.15s ease;
}

.fj-card-post-list li a:hover {
    color: #2563eb;
}

.fj-list-bullet {
    color: #2563eb;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    margin-right: 0.2rem;
}

.fj-empty-card-msg {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    margin: 0;
}

.fj-card-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 0.6rem 1rem;
    text-align: center;
}

.fj-view-all-link {
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.fj-view-all-link:hover {
    text-decoration: underline;
}

/* SIDEBAR WIDGET CARDS STYLING */
.fj-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    max-width: 100%;
    overflow-x: hidden;
}

.fj-sidebar-widget-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.6rem;
    margin-bottom: 0.85rem;
}

.fj-widget-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.fj-widget-social-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fj-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.fj-social-btn:hover {
    transform: translateY(-1px);
}

.fj-wa-btn {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.fj-wa-btn:hover {
    background: #20bd5a;
}

.fj-tg-btn {
    background: #0088cc;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.25);
}

.fj-tg-btn:hover {
    background: #0077b3;
}

.fj-custom-social-btn {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #1e293b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.fj-custom-social-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

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

.fj-widget-list li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

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

.fj-widget-list li a {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s ease;
    word-break: break-word;
}

.fj-widget-list li a:hover {
    color: #2563eb;
}

.fj-widget-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fj-tag-pill {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.fj-tag-pill:hover {
    background: #3b0764;
    color: #ffffff;
}

/* Single Post Page Header Banner with Universal Equal Spacing System */
.fj-post-header-banner {
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important; /* Prominent 1.5rem (24px) gap to next content card */
    padding: 1.25rem 1.25rem 0 1.25rem;
    max-width: 100%;
    position: relative;
    overflow: visible !important;
}

/* Header banner when Subnav is Visible (Has Subnav Bar) */
.fj-post-header-banner:not(.fj-has-no-subnav) {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 1.5rem !important; /* Increased clean 1.5rem gap to content section below */
}

/* Header banner fallback when subnav & buttons are hidden */
.fj-post-header-banner.fj-has-no-subnav {
    padding: 1.15rem 1.25rem 1.15rem 1.25rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
}

/* 1. Breadcrumb Universal Gap */
.fj-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0;
    margin-bottom: var(--fj-item-gap);
    flex-wrap: wrap;
}

.fj-breadcrumbs a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
}

.fj-breadcrumbs a:hover {
    color: #2563eb;
}

.fj-breadcrumb-separator {
    color: #cbd5e1;
}

.fj-breadcrumb-current {
    color: #1e293b;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* 2. Single Post Title (Conditional Underline Line) */
.fj-single-title {
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    font-weight: 800;
    color: #2d0a4e;
    line-height: 1.35;
    margin-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fj-single-title.fj-has-border-line {
    margin-bottom: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fj-single-title.fj-no-border-line {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* 3. CTA Buttons Group Universal Gap */
.fj-post-cta-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0;
    margin-bottom: var(--fj-item-gap);
}

.fj-btn {
    flex: 1 1 0;
    width: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 42px;
    white-space: nowrap;
    box-sizing: border-box;
}

.fj-btn-outline {
    border: 1.5px solid #4c1d95;
    color: #4c1d95;
    background: #ffffff;
}

.fj-btn-outline:hover {
    background: #f3e8ff;
    color: #3b0764;
}

.fj-btn-green {
    background: #00b843;
    color: #ffffff;
    border: 1.5px solid #00b843;
    box-shadow: 0 2px 6px rgba(0, 184, 67, 0.25);
}

.fj-btn-green:hover {
    background: #009637;
    border-color: #009637;
}

/* 4. Horizontal Subnav Tabs Bar (White Background) & Full-Height Toggle Button */
.fj-post-subnav-bar-wrapper {
    position: relative;
    border-top: 1px solid #e2e8f0;
    border-bottom: none;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-top: 0;
    margin-bottom: 0;
    background: #ffffff !important;
    overflow: visible !important;
    z-index: 100;
    border-radius: 0 0 12px 12px;
}

.fj-post-subnav-bar {
    padding: 0 3.25rem 0 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #ffffff !important;
    border-radius: 0 0 12px 12px;
}

.fj-post-subnav-bar::-webkit-scrollbar {
    display: none;
}

.fj-subnav-tabs {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
}

.fj-subnav-tabs li {
    padding: 0.75rem 0;
    position: relative;
    flex-shrink: 0;
}

.fj-subnav-tabs a {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fj-subnav-tabs a:hover {
    color: #3b0764;
}

.fj-subnav-tabs li.active a {
    color: #2d0a4e;
    font-weight: 800;
}

.fj-subnav-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #7c3aed;
    border-radius: 3px 3px 0 0;
}

/* Full-Height White Toggle Arrow Button with Left Border Line */
.fj-subnav-toggle-btn {
    position: absolute;
    right: 0;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 38px !important;
    background: #ffffff !important;
    color: #2d0a4e !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-radius: 0 0 12px 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -6px 0 12px rgba(255, 255, 255, 0.95);
    z-index: 101;
    transition: background 0.15s ease;
}

.fj-subnav-toggle-btn:hover {
    background: #f8fafc !important;
}

/* Prominent 24px Toggle Arrow SVG Icon */
.fj-subnav-arrow-icon {
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.25s ease;
    pointer-events: none !important;
}

.fj-subnav-toggle-btn.open .fj-subnav-arrow-icon {
    transform: rotate(180deg);
}

/* Expandable Multi-Row Grid Drawer Panel (White Background) */
.fj-subnav-drawer-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-top: 1px solid #cbd5e1;
    border-radius: 0 0 8px 8px;
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1000 !important;
}

.fj-subnav-drawer-panel.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: fjSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fjSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.fj-drawer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem 1.25rem;
    background: #ffffff !important;
}

.fj-drawer-item {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fj-drawer-item:hover {
    background: #f1f5f9;
    color: #2d0a4e;
}

.fj-drawer-item.active {
    color: #2d0a4e;
    font-weight: 800;
    background: #f3e8ff;
}

/* 5. Author Byline Card Universal Gap inside Content Box */
.fj-author-byline-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0;
    padding-bottom: 0.85rem;
    margin-top: 0;
    margin-bottom: var(--fj-item-gap);
    border-bottom: 1px solid #f1f5f9;
}

.fj-author-avatar-col {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0;
}

.fj-author-avatar-img,
.fj-author-avatar-col img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.fj-author-info-col {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.fj-author-updated-line {
    font-size: 0.78rem !important;
    font-weight: 700;
    color: #334155;
    line-height: 1.25;
}

.fj-author-name-line {
    font-size: 0.78rem !important;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    line-height: 1.25;
}

.fj-author-name-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

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

.fj-verified-tick-svg {
    width: 14px !important;
    height: 14px !important;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    flex-shrink: 0;
}

/* Single Post & Page Content Card Box (Strict Overflow Containment) */
.fj-single-post {
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.25rem 1.75rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fj-single-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Homepage About Section (fastjob-about-section) Styled in Website Native Colors */
.fastjob-about-section,
.fj-homepage-editable-content {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    padding: 1.5rem;
    margin-top: 1.5rem !important;
}

.fastjob-about-section h2,
.fj-homepage-editable-content h2 {
    background: #0f172a;
    color: #ffffff !important;
    padding: 0.75rem 1.15rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 1.25rem 0 !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #2563eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.fastjob-about-section h3,
.fj-homepage-editable-content h3 {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 1.25rem 0 0.65rem 0 !important;
    border-left: 4px solid #2563eb;
    padding-left: 0.75rem;
}

.fj-single-content h2, 
.fj-single-content h3 {
    color: #0f172a;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 700;
}

.fj-single-content p {
    margin-bottom: 1rem;
}

.fj-single-content ul, 
.fj-single-content ol {
    margin-bottom: 1rem;
    padding-left: 0.85rem !important;
    margin-left: 0 !important;
}

.fj-single-content li {
    margin-bottom: 0.35rem;
}

.fj-single-content img,
.fj-single-content figure,
.fj-single-content iframe,
.fj-single-content embed,
.fj-single-content video {
    max-width: 100% !important;
    height: auto !important;
}

/* Post Ending Metadata (Categories & Tags Footer Card) */
.fj-post-meta-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fj-post-meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.fj-meta-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
}

.fj-meta-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fj-meta-pill {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.fj-cat-pill {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.fj-cat-pill:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.fj-tag-pill {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.fj-tag-pill:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Responsive Table Wrapper for Single Post Content */
.fj-single-content table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

/* Pre & Code blocks */
.fj-single-content pre,
.fj-single-content code {
    max-width: 100% !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-x: auto;
}

/* Category & Tag Landing Page Listing (Optimized Tight H2 Placeholder Gap) */
.fj-single-content > .fj-category-page-listing {
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
}

.fj-single-content > .fj-category-page-listing > .fj-archive-title {
    display: flex !important;
}

.fj-category-page-listing {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 0.5rem 1rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    max-width: 100%;
    overflow-x: hidden;
}

.fj-archive-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
}

.fj-archive-list {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.fj-archive-item {
    padding: 0.45rem 0 !important;
    border-bottom: 1px dashed #e2e8f0;
}

.fj-archive-item:last-child {
    border-bottom: none;
}

.fj-archive-item a {
    font-size: 0.82rem !important;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3 !important;
    transition: color 0.15s ease;
    word-break: break-word;
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.fj-archive-item a:hover {
    color: #2563eb;
}

/* Custom Footer Styling (Matching Fast Job Theme Native Slate & Blue Color Palette) */
.fj-custom-footer {
    background-color: #0f172a;
    color: #ffffff;
    padding: 3.5rem 0 2.5rem 0;
    margin-top: 3rem;
    font-family: inherit;
    border-top: 4px solid #2563eb;
}

.fj-footer-top-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.fj-footer-col-brand {
    padding-right: 1rem;
}

.fj-footer-brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.fj-footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.fj-footer-logo-img {
    max-height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 0.85rem;
}

.fj-footer-brand-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
    max-width: 300px;
}

.fj-footer-col-heading {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 1.15rem 0;
}

.fj-footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fj-footer-nav-list li a {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fj-footer-nav-list li a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.fj-footer-social-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.fj-footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.fj-footer-social-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.fj-footer-divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2.75rem 0 1.75rem 0;
}

.fj-footer-bottom {
    text-align: center;
}

.fj-footer-copyright {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.45rem;
}

.fj-footer-disclaimer {
    font-size: 0.78rem;
    color: #94a3b8;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .fj-footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .fj-custom-footer {
        padding: 2.5rem 0 2rem 0;
        margin-top: 2rem;
    }

    .fj-footer-top-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.75rem 1rem !important;
    }

    .fj-footer-col-brand {
        grid-column: 1 / -1 !important;
        padding-right: 0 !important;
    }

    .fj-footer-col-nav {
        grid-column: 1 !important;
    }

    .fj-footer-col-policies {
        grid-column: 2 !important;
    }

    .fj-footer-col-social {
        grid-column: 1 / -1 !important;
    }

    .fj-footer-brand-desc {
        max-width: 100%;
    }

    .fj-footer-divider {
        margin: 2rem 0 1.25rem 0;
    }

    .fj-footer-copyright {
        font-size: 0.82rem;
    }

    .fj-footer-disclaimer {
        font-size: 0.74rem;
    }
}

/* Mobile & Tablet Responsive Styling (Optimized Compact Mobile Scale) */
@media (max-width: 991px) {
    .fj-layout-wrapper {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 0.85rem !important;
    }

    .fj-sidebar-column {
        width: 100% !important;
        gap: 0.85rem !important;
    }
}

@media (max-width: 768px) {
    :root {
        --fj-item-gap: 0.75rem; /* Compact Universal Gap on Mobile */
    }

    .fj-site-container {
        padding: 0 0.5rem;
    }

    /* Compact Mobile Homepage Category Grid */
    .fj-homepage-grid-container {
        gap: 0.75rem !important;
    }

    .fj-homepage-grid-container.fj-grid-mob-cols-1 { grid-template-columns: 1fr !important; }
    .fj-homepage-grid-container.fj-grid-mob-cols-2 { grid-template-columns: repeat(2, 1fr) !important; gap: 0.65rem !important; }

    .fj-category-card {
        border-radius: 8px;
    }

    .fj-card-header {
        padding: 0.55rem 0.75rem;
    }

    .fj-card-title {
        font-size: 0.88rem;
    }

    .fj-cat-icon {
        font-size: 1rem;
    }

    .fj-header-arrow-link {
        font-size: 1.15rem;
    }

    .fj-card-body {
        padding: 0.45rem 0.35rem !important;
    }

    .fj-category-page-listing {
        padding: 0.65rem 0.45rem !important;
    }

    .fj-card-post-list li {
        padding: 0.35rem 0;
    }

    .fj-card-post-list li a {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
    }

    .fj-list-bullet {
        font-size: 0.82rem;
    }

    .fj-card-footer {
        padding: 0.45rem 0.75rem;
    }

    .fj-view-all-link {
        font-size: 0.78rem;
    }

    /* Compact Mobile Single Post Header Banner */
    .fj-post-header-banner {
        padding: 0.85rem 0.85rem 0 0.85rem;
        border-radius: 8px 8px 0 0;
        margin-bottom: 1rem !important;
    }

    .fj-post-header-banner:not(.fj-has-no-subnav) {
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
    }

    .fj-post-header-banner.fj-has-no-subnav {
        padding: 0.75rem 0.85rem 0.75rem 0.85rem !important;
        border-radius: 8px !important;
        margin-bottom: 0.85rem !important;
    }

    .fj-breadcrumbs {
        font-size: 0.78rem;
    }

    .fj-single-title {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .fj-single-title.fj-has-border-line {
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.45rem !important;
    }

    .fj-single-title.fj-no-border-line {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .fj-post-cta-group {
        gap: 0.4rem;
    }

    .fj-btn {
        font-size: 0.78rem;
        padding: 0.45rem 0.5rem;
        min-height: 36px;
    }

    .fj-post-subnav-bar-wrapper {
        margin-left: -0.85rem;
        margin-right: -0.85rem;
    }

    .fj-post-subnav-bar {
        padding: 0 2.25rem 0 0.85rem;
    }

    .fj-subnav-tabs {
        gap: 0.85rem;
    }

    .fj-subnav-tabs li {
        padding: 0.55rem 0;
    }

    .fj-subnav-tabs a {
        font-size: 0.78rem;
    }

    .fj-subnav-toggle-btn {
        width: 32px !important;
    }

    .fj-subnav-arrow-icon {
        width: 20px !important;
        height: 20px !important;
    }

    /* Compact Mobile Single Post Content Area */
    .fj-single-post {
        padding: 0.85rem 0.85rem 1.25rem 0.85rem;
        border-radius: 8px;
    }

    .fj-category-page-listing {
        padding: 0.75rem 0.85rem;
        border-radius: 8px;
    }

    .fj-archive-title {
        font-size: 1.05rem;
        margin-bottom: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    .fj-archive-item {
        padding: 0.35rem 0 !important;
    }

    .fj-archive-item a {
        font-size: 0.76rem !important;
        line-height: 1.25 !important;
    }

    .fj-author-byline-card {
        padding-bottom: 0.6rem;
    }

    .fj-author-avatar-col,
    .fj-author-avatar-img,
    .fj-author-avatar-col img {
        width: 30px !important;
        height: 30px !important;
    }

    .fj-author-updated-line,
    .fj-author-name-line {
        font-size: 0.72rem !important;
    }

    .fj-single-content {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .fj-single-content h2,
    .fj-single-content h3 {
        font-size: 1.05rem;
        margin: 1.15rem 0 0.5rem 0;
    }

    .fj-drawer-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.4rem 0.65rem;
    }

    .fj-drawer-item {
        font-size: 0.78rem;
        padding: 0.3rem 0.45rem;
    }

    .fj-post-meta-footer {
        margin-top: 1.15rem;
        padding-top: 1rem;
        gap: 0.6rem;
    }

    .fj-meta-label {
        font-size: 0.78rem;
    }

    .fj-meta-pill {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Compact Mobile Sidebar Cards */
    .fj-sidebar-widget {
        padding: 0.85rem;
        border-radius: 8px;
    }

    .fj-sidebar-widget-title {
        font-size: 0.95rem;
        padding-bottom: 0.45rem;
        margin-bottom: 0.65rem;
    }

    .fj-widget-desc {
        font-size: 0.8rem;
        margin-bottom: 0.65rem;
    }

    .fj-social-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .fj-widget-list li a {
        font-size: 0.82rem;
    }
}

/* Universal Mobile & Desktop Responsiveness Safeguards */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
}

.fj-single-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.fj-single-content table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.fj-single-content pre,
.fj-single-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Extra Small Phone Display Optimizations (< 480px) */
@media (max-width: 480px) {
    .fj-site-container {
        padding: 0 0.4rem !important;
    }

    .fj-brand-logo {
        font-size: 1.15rem !important;
    }

    .fj-site-logo-img {
        max-height: 34px !important;
    }

    .fj-card-header {
        padding: 0.5rem 0.6rem !important;
    }

    .fj-card-title {
        font-size: 0.84rem !important;
    }

    .fj-card-post-list li a {
        font-size: 0.74rem !important;
        line-height: 1.25 !important;
    }

    .fj-single-post {
        padding: 0.75rem 0.75rem 1rem 0.75rem !important;
    }

    .fj-single-title {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
    }
}
