/**
 * Cianjur Jobs — Fonts
 * Self-hosted Roboto font — consistent rendering across all devices.
 * Material Symbols loaded separately (self-hosted subset).
 * @package CianjurJobs
 */

/* ── Roboto 400 (Regular) ── */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-400.woff2') format('woff2'),
         url('../fonts/roboto-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Roboto 600 (Semi-Bold) ── */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-600.woff2') format('woff2'),
         url('../fonts/roboto-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ── Roboto 700 (Bold) ── */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-700.woff2') format('woff2'),
         url('../fonts/roboto-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Roboto 800 (Extra-Bold) ── */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-800.woff2') format('woff2'),
         url('../fonts/roboto-800.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ── Mobile Menu — Premium Slide-in ── */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex !important;
    visibility: hidden;
    box-shadow: none;
}

#mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

#menu-backdrop {
    display: none !important;
}

#menu-backdrop.open {
    display: block !important;
}

.cj-mob-backdrop {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

#menu-backdrop.open .cj-mob-backdrop {
    opacity: 1;
}

/* Nav link style */
.cj-mob-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    text-decoration: none;
}

.cj-mob-link:hover,
.cj-mob-link:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(2px);
}

.cj-mob-link-icon {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.cj-mob-link:hover .cj-mob-link-icon {
    color: rgba(255, 255, 255, 0.9);
}

/* Social icons */
.cj-mob-social {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
    text-decoration: none;
}

.cj-mob-social:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
}

/* Active link */
.cj-mob-active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

/* Submenu items */
.cj-mob-sub {
    font-size: 12.5px !important;
    padding-left: 42px !important;
    opacity: 0.85;
}

.cj-mob-sub .cj-mob-link-icon {
    font-size: 15px !important;
}

/* Bookmark wrap + badge */
.cj-mob-bookmark-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cj-mob-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

/* Container fade-in for smooth open + instant close (no text flicker) */
.cj-mob-nav {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

#mobile-menu.open .cj-mob-nav {
    opacity: 1;
    transform: translateY(0);
}

/* On close: no delay, instant hide */
#mobile-menu:not(.open) .cj-mob-nav {
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Custom scrollbar for mobile menu */
.cj-mob-scroll::-webkit-scrollbar {
    width: 3px;
}

.cj-mob-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cj-mob-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════
   Prose — Rich typography for the_content() output
   ══════════════════════════════════════════════════════════ */

/* Paragraphs */
.cj-prose {
    color: #475569;
}

.cj-prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

/* Headings inside content — with bottom divider */
.cj-prose h2,
.cj-prose h3 {
    font-weight: 800;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.3;
}

.cj-prose h4,
.cj-prose h5,
.cj-prose h6 {
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cj-prose h2 {
    font-size: 1.25rem;
}

.cj-prose h3 {
    font-size: 1.125rem;
}

.cj-prose h4 {
    font-size: 1rem;
}

.cj-prose>*:first-child {
    margin-top: 0;
}

/* Strong / Bold — clearly visible (also catches WP inline styles) */
.cj-prose strong,
.cj-prose b,
.cj-prose span[style*="bold"],
.cj-prose span[style*="700"],
.cj-prose span[style*="800"],
.cj-prose span[style*="900"] {
    font-weight: 700 !important;
    color: inherit;
}

/* Links */
.cj-prose a {
    color: #003380;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.cj-prose a:hover {
    color: #0056d2;
}

/* Unordered lists (bullet) */
.cj-prose ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.cj-prose ul>li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: inherit;
}

.cj-prose ul>li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #003380;
}

/* Ordered lists (numbered) — clean style */
.cj-prose ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
    counter-reset: cj-counter;
}

.cj-prose ol>li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: inherit;
    counter-increment: cj-counter;
}

.cj-prose ol>li::before {
    content: counter(cj-counter) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: #003380;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.7;
}

/* Nested lists */
.cj-prose ul ul,
.cj-prose ol ol,
.cj-prose ul ol,
.cj-prose ol ul {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

/* Blockquotes */
.cj-prose blockquote {
    border-left: 4px solid #003380;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 8px 8px 0;
    color: #334155;
    font-style: italic;
}

.cj-prose blockquote p {
    margin-bottom: 0;
}

/* Tables */
.cj-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.875rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.cj-prose th,
.cj-prose td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cj-prose th {
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
}

.cj-prose tr:last-child td {
    border-bottom: none;
}

/* Images inside content */
.cj-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Horizontal rule */
.cj-prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 2rem 0;
}

/* First heading in prose should have no top margin */
.cj-prose>h2:first-child,
.cj-prose>h3:first-child,
.cj-prose>h4:first-child {
    margin-top: 0;
    padding-top: 0;
}