/* =========================================================
   NaukariNotice UI Polish v3.0
   Add this file AFTER style.css and vacancy-builder.css
   ========================================================= */

/* ---------- Global Typography ---------- */
body {
    font-size: 14px;
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.01em;
}

h1 {
    font-size: 30px;
    font-weight: 700;
}

h2 {
    font-size: 24px;
    font-weight: 700;
}

h3 {
    font-size: 20px;
    font-weight: 700;
}

h4 {
    font-size: 18px;
    font-weight: 700;
}

/* ---------- Main Job Title ---------- */
.job-title,
.job-page-title,
.job-details-title {
    font-size: 21px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    padding: 11px 14px !important;
}

/*
   Fallback for the current job-details title that still uses inline styles.
   This targets the first maroon title panel inside the main job card.
*/
.col-lg-8 > div[style*="border:2px solid #f2a100"] > div:first-child {
    font-size: 21px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    padding: 11px 14px !important;
}

/* ---------- Job Details Section Headings ---------- */
.job-section-title {
    margin-top: 18px !important;
    padding: 7px 10px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.job-section-body {
    padding: 13px 15px !important;
}

.job-section-body ul,
.job-section-body ol {
    line-height: 1.65 !important;
    font-size: 14px !important;
}

.job-section-body li {
    margin-bottom: 2px;
}

/* ---------- Generic Section Titles ---------- */
.section-title {
    margin-bottom: 24px !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.form-section-title,
.admin-box-title {
    padding: 9px 14px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

/* ---------- Homepage and Listing Box Titles ---------- */
.home-box-title,
.box-title,
.card-title,
.latest-box-title {
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.card-header,
.list-group-item {
    line-height: 1.45;
}

/* ---------- Links in Homepage Boxes ---------- */
.box-link {
    display: inline-block;
    margin: 0 !important;
    padding: 1px 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
}

/* Reduce spacing where links are inside lists */
.home-boxes ul,
.job-box ul,
.result-box ul,
.admit-box ul,
.syllabus-box ul,
.latest-jobs-box ul {
    margin-bottom: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.home-boxes li,
.job-box li,
.result-box li,
.admit-box li,
.syllabus-box li,
.latest-jobs-box li,
.card-body li {
    margin-bottom: 5px !important;
    line-height: 1.35 !important;
}

/* Fallback for inline-styled list items on listing pages */
li[style*="margin-bottom:16px"] {
    margin-bottom: 9px !important;
    line-height: 1.4 !important;
}

/* ---------- Important Links Table ---------- */
.important-links-table td {
    padding: 6px 9px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.important-links-table .link-label {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.important-links-table .btn {
    margin: 1px 2px !important;
    padding: 4px 9px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    border-radius: 4px !important;
}

/* ---------- Vacancy Tables ---------- */
.table {
    font-size: 13px;
}

.table th {
    padding: 7px 8px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.table td {
    padding: 7px 8px !important;
    line-height: 1.4 !important;
}

.vacancy-public-table th,
.vacancy-public-table td,
.vb-table th,
.vb-table td {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

/* ---------- Cards and Boxes ---------- */
.card-body {
    padding: 14px !important;
}

.job-card,
.top-card {
    border-radius: 10px !important;
}

.form-section-body {
    padding: 15px !important;
}

.form-section {
    margin-bottom: 17px !important;
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
}

.btn-sm {
    padding: 4px 9px !important;
    font-size: 12px !important;
}

/* ---------- Hero ---------- */
.hero {
    padding: 52px 0 !important;
}

.hero h1 {
    font-size: 34px !important;
    line-height: 1.25 !important;
}

.hero p {
    font-size: 15px !important;
    line-height: 1.55 !important;
}

/* ---------- Footer ---------- */
.footer {
    padding: 28px 32px !important;
    font-size: 13px;
}

/* ---------- Compact vertical spacing ---------- */
.section-space {
    padding: 45px 0 !important;
}

.job-section-body p:last-child,
.card-body p:last-child {
    margin-bottom: 0 !important;
}
/* =========================================================
   Job Details Heading Override
   ========================================================= */

/* Main job title */
.job-details-page .main-job-title,
.col-lg-8 > div[style*="border:2px solid #f2a100"] > div:first-child {
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
}

/* All maroon section headings inside job details */
.job-section-title {
    margin-top: 16px !important;
    padding: 7px 10px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

/* Inline headings created by sectionBox() */
div[style*="background:#a0003d"][style*="font-size:22px"] {
    padding: 7px 10px !important;
    margin-top: 16px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

/* Latest Jobs and Advertisement sidebar headings */
.col-lg-4 div[style*="background:#a0003d"][style*="font-size:22px"] {
    padding: 7px 10px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
}

/* Reduce spacing between latest-job links */
.col-lg-4 li[style*="margin-bottom:14px"] {
    margin-bottom: 7px !important;
    line-height: 1.35 !important;
}

.col-lg-4 li a {
    font-size: 14px !important;
}

/* =========================================================
   Premium Job Detail UI v4 — reusable for every job page
   Keeps all existing content / links / DB rendering intact.
   ========================================================= */

/* Page canvas */
.row.g-4:has(.job-breadcrumb) {
    --nn-red:#d71920;
    --nn-red-dark:#a90016;
    --nn-navy:#0b2d62;
    --nn-ink:#111827;
    --nn-muted:#64748b;
    --nn-border:#e3e8ef;
    --nn-soft:#f7f9fc;
    align-items:flex-start;
}

.row.g-4:has(.job-breadcrumb) > .col-lg-8 > div[style*="border:2px solid #f2a100"] {
    border:1px solid var(--nn-border) !important;
    border-radius:18px !important;
    background:#fff !important;
    box-shadow:0 14px 36px rgba(15,23,42,.08) !important;
    overflow:hidden !important;
}

/* Breadcrumb becomes a quiet premium trail */
.row.g-4:has(.job-breadcrumb) .job-breadcrumb {
    margin:0 !important;
    padding:12px 16px !important;
    border:0 !important;
    border-bottom:1px solid #edf1f5 !important;
    border-radius:0 !important;
    background:#fff !important;
    color:#64748b !important;
}

.row.g-4:has(.job-breadcrumb) .job-breadcrumb a,
.row.g-4:has(.job-breadcrumb) .job-breadcrumb-home-icon {
    color:var(--nn-red) !important;
}

/* Main title panel: premium hero instead of solid maroon strip */
.row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style*="background:#a0003d"] {
    position:relative;
    padding:30px 28px 28px !important;
    text-align:left !important;
    color:var(--nn-ink) !important;
    background:
        radial-gradient(circle at 92% 10%, rgba(215,25,32,.10), transparent 34%),
        linear-gradient(180deg,#fff 0%,#fff 65%,#fbfcfe 100%) !important;
    border-bottom:1px solid #edf1f5;
}

.row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style*="background:#a0003d"]::before {
    content:"LATEST JOB";
    display:inline-flex;
    align-items:center;
    margin-bottom:12px;
    padding:5px 10px;
    border-radius:999px;
    background:#fff0f1;
    color:var(--nn-red);
    border:1px solid #ffd7da;
    font-size:11px;
    line-height:1;
    font-weight:800;
    letter-spacing:.05em;
}

.row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style*="background:#a0003d"] > div:first-child {
    max-width:900px;
    font-size:clamp(25px,3vw,36px) !important;
    line-height:1.2 !important;
    color:var(--nn-ink) !important;
    font-weight:800 !important;
    letter-spacing:-.035em;
}

.row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style*="background:#a0003d"] > div:nth-child(2) {
    margin-top:10px !important;
    color:var(--nn-red-dark) !important;
    font-size:14px !important;
    font-weight:700 !important;
    letter-spacing:0 !important;
}

/* Main content breathing room */
.row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style="padding:20px;"] {
    padding:24px 26px 30px !important;
}

/* Post update turns into metadata pill */
.row.g-4:has(.job-breadcrumb) p[style*="font-weight:700"][style*="color:#a0003d"] {
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin:0 0 10px !important;
    padding:7px 10px;
    border:1px solid #e5eaf0;
    border-radius:9px;
    background:#f8fafc;
    color:#475569 !important;
    font-size:12px;
}

/* Share button: quiet secondary action */
.row.g-4:has(.job-breadcrumb) .job-share-row {
    margin:0 0 14px !important;
}

.row.g-4:has(.job-breadcrumb) .whatsapp-share-btn {
    border:1px solid #d8e5dc !important;
    background:#f2fbf5 !important;
    color:#12833b !important;
    box-shadow:none !important;
}

/* All content sections become white premium cards */
.row.g-4:has(.job-breadcrumb) .job-section-title {
    margin-top:18px !important;
    padding:12px 15px !important;
    border:1px solid var(--nn-border);
    border-bottom:0;
    border-radius:13px 13px 0 0;
    background:linear-gradient(180deg,#fff,#f8fafc) !important;
    color:var(--nn-ink) !important;
    text-align:left !important;
    font-size:15px !important;
    font-weight:800 !important;
    box-shadow:0 5px 18px rgba(15,23,42,.035);
}

.row.g-4:has(.job-breadcrumb) .job-section-title::before {
    content:"";
    display:inline-block;
    width:4px;
    height:16px;
    margin-right:9px;
    vertical-align:-2px;
    border-radius:4px;
    background:var(--nn-red);
}

.row.g-4:has(.job-breadcrumb) .job-section-body,
.row.g-4:has(.job-breadcrumb) .job-section-title + div[style*="border:2px solid #f2a100"] {
    padding:16px 17px !important;
    border:1px solid var(--nn-border) !important;
    border-top:0 !important;
    border-radius:0 0 13px 13px;
    background:#fff !important;
    box-shadow:0 8px 20px rgba(15,23,42,.045);
}

.row.g-4:has(.job-breadcrumb) .job-section-body ul,
.row.g-4:has(.job-breadcrumb) .job-section-body ol {
    margin-bottom:0 !important;
}

.row.g-4:has(.job-breadcrumb) .job-section-body li {
    padding:2px 0;
    color:#334155;
}

.row.g-4:has(.job-breadcrumb) .job-section-body strong {
    color:#111827;
}

/* Dates: neat two-column rows */
.row.g-4:has(.job-breadcrumb) .important-dates-table {
    overflow:hidden;
    border-radius:9px;
}

.row.g-4:has(.job-breadcrumb) .important-dates-table td {
    border-color:#e8edf3 !important;
    background:#fff !important;
}

.row.g-4:has(.job-breadcrumb) .important-date-label {
    color:#475569 !important;
    font-weight:600 !important;
}

.row.g-4:has(.job-breadcrumb) .last-date-highlight {
    border:0 !important;
    background:#fff0f1 !important;
    color:#c4101d !important;
    font-weight:800 !important;
}

/* Vacancy table: bank / govt portal style */
.row.g-4:has(.job-breadcrumb) .vacancy-table-wrap {
    border:1px solid #dce3ec;
    border-radius:12px !important;
    box-shadow:none !important;
}

.row.g-4:has(.job-breadcrumb) .vacancy-public-table th {
    background:linear-gradient(135deg,#0b2d62,#123f81) !important;
    color:#fff !important;
    border-color:#244d82 !important;
    font-size:12px !important;
}

.row.g-4:has(.job-breadcrumb) .vacancy-public-table td {
    border-color:#e4eaf1 !important;
    color:#283548;
}

.row.g-4:has(.job-breadcrumb) .vacancy-public-table tbody tr:nth-child(even) td {
    background:#f8fbff !important;
}

.row.g-4:has(.job-breadcrumb) .vacancy-public-table tbody tr:hover td {
    background:#eef5ff !important;
}

/* Important links become stronger CTAs */
.row.g-4:has(.job-breadcrumb) .important-links-table {
    border-collapse:separate;
    border-spacing:0 8px;
}

.row.g-4:has(.job-breadcrumb) .important-links-table td {
    border:0 !important;
    background:#f8fafc !important;
}

.row.g-4:has(.job-breadcrumb) .important-links-table tr td:first-child {
    border-radius:10px 0 0 10px;
}

.row.g-4:has(.job-breadcrumb) .important-links-table tr td:last-child {
    border-radius:0 10px 10px 0;
}

.row.g-4:has(.job-breadcrumb) .important-links-table .btn {
    min-height:38px !important;
    border-radius:9px !important;
    box-shadow:none !important;
    font-size:13px !important;
    padding:8px 12px !important;
}

.row.g-4:has(.job-breadcrumb) .important-links-table .btn-success {
    background:linear-gradient(135deg,#d71920,#b80e16) !important;
}

/* Sidebar: compact sticky navigation-like cards */
@media (min-width:992px) {
    .row.g-4:has(.job-breadcrumb) > .col-lg-4 {
        position:sticky;
        top:18px;
    }
}

.row.g-4:has(.job-breadcrumb) > .col-lg-4 > div,
.row.g-4:has(.job-breadcrumb) > .col-lg-4 > section {
    border:1px solid var(--nn-border) !important;
    border-radius:15px !important;
    background:#fff !important;
    box-shadow:0 10px 28px rgba(15,23,42,.06) !important;
    overflow:hidden;
}

.row.g-4:has(.job-breadcrumb) .sidebar-section-title,
.row.g-4:has(.job-breadcrumb) > .col-lg-4 div[style*="background:#a0003d"] {
    padding:12px 14px !important;
    background:#fff !important;
    color:var(--nn-ink) !important;
    text-align:left !important;
    border-bottom:1px solid #edf1f5;
    font-size:15px !important;
    font-weight:800 !important;
}

.row.g-4:has(.job-breadcrumb) > .col-lg-4 li {
    margin-bottom:8px !important;
}

.row.g-4:has(.job-breadcrumb) > .col-lg-4 li a {
    color:#234a83 !important;
    font-weight:600 !important;
    text-decoration:none !important;
}

.row.g-4:has(.job-breadcrumb) > .col-lg-4 li a:hover {
    color:var(--nn-red) !important;
}

/* FAQ & related jobs */
.row.g-4:has(.job-breadcrumb) .job-faq-item {
    border-color:#e4e9f0 !important;
    border-radius:11px !important;
}

.row.g-4:has(.job-breadcrumb) .job-faq-item summary {
    background:#f8fafc !important;
    color:#1f2937 !important;
}

.row.g-4:has(.job-breadcrumb) .related-job-list a {
    color:#1d4e89 !important;
    text-decoration:none !important;
}

/* Mobile: sample-like compact card hierarchy */
@media (max-width:767.98px) {
    section:has(.job-breadcrumb) {
        padding:12px 0 24px !important;
        background:#f4f7fb !important;
    }

    .row.g-4:has(.job-breadcrumb) {
        --bs-gutter-x:14px;
        --bs-gutter-y:14px;
    }

    .row.g-4:has(.job-breadcrumb) > .col-lg-8 > div[style*="border:2px solid #f2a100"] {
        border-radius:14px !important;
        box-shadow:0 8px 24px rgba(15,23,42,.07) !important;
    }

    .row.g-4:has(.job-breadcrumb) .job-breadcrumb {
        padding:9px 11px !important;
        font-size:10.5px !important;
    }

    .row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style*="background:#a0003d"] {
        padding:22px 17px 20px !important;
    }

    .row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style*="background:#a0003d"]::before {
        margin-bottom:9px;
        padding:4px 8px;
        font-size:9px;
    }

    .row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style*="background:#a0003d"] > div:first-child {
        font-size:23px !important;
        line-height:1.18 !important;
    }

    .row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style*="background:#a0003d"] > div:nth-child(2) {
        font-size:12px !important;
    }

    .row.g-4:has(.job-breadcrumb) .col-lg-8 > div[style*="border:2px solid #f2a100"] > div[style="padding:20px;"] {
        padding:14px !important;
    }

    .row.g-4:has(.job-breadcrumb) .job-section-title {
        margin-top:14px !important;
        padding:10px 12px !important;
        font-size:13px !important;
        border-radius:11px 11px 0 0;
    }

    .row.g-4:has(.job-breadcrumb) .job-section-body,
    .row.g-4:has(.job-breadcrumb) .job-section-title + div[style*="border:2px solid #f2a100"] {
        padding:12px !important;
        border-radius:0 0 11px 11px;
    }

    .row.g-4:has(.job-breadcrumb) .job-section-body ul,
    .row.g-4:has(.job-breadcrumb) .job-section-body ol {
        padding-left:20px !important;
        font-size:13px !important;
        line-height:1.62 !important;
    }

    .row.g-4:has(.job-breadcrumb) .important-dates-table tr {
        padding:8px 0;
        border-bottom:1px solid #edf1f5;
    }

    .row.g-4:has(.job-breadcrumb) .important-dates-table td {
        padding:3px 2px !important;
        font-size:12px !important;
    }

    .row.g-4:has(.job-breadcrumb) .mobile-sticky-actions {
        gap:7px !important;
        padding:8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
        border-top:1px solid #dce3eb !important;
        background:rgba(255,255,255,.96) !important;
        backdrop-filter:blur(12px);
        box-shadow:0 -8px 24px rgba(15,23,42,.10) !important;
    }

    .row.g-4:has(.job-breadcrumb) .mobile-sticky-actions a {
        min-height:42px;
        display:flex;
        align-items:center;
        justify-content:center;
        border-radius:10px !important;
        font-size:12px !important;
    }

    .row.g-4:has(.job-breadcrumb) > .col-lg-4 {
        margin-top:2px;
    }
}
