.navbar-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #ffffff;
    transition: box-shadow 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
}

/* Non-sticky — transparent top of page */
.navbar-area:not(.sticky) {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.96);
    top: 0;
}

/* Sticky — add depth */
.navbar-area.sticky {
    position: fixed;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Hidden — subnav takeover */
.navbar-area.navbar-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}


/* Offset hero so it starts below navbar */
.hero-section {
    margin-top: 0;
}

/* -----------------------------------------------------------------
   MEGA MENU DOTS BUTTON
----------------------------------------------------------------- */

#megaMenuBtn {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-radius: 4px;
}

#megaMenuBtn:hover {
    transform: scale(1.15) rotate(5deg);
    opacity: 0.8;
}

/* -----------------------------------------------------------------
   MEGA MENU CONTAINER
----------------------------------------------------------------- */

.mega-menu {
    position: fixed;
    top: 78px;
    right: 80px;
    width: 680px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.12);
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transform-origin: top right;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
    pointer-events: none;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* -----------------------------------------------------------------
   MEGA GRID
----------------------------------------------------------------- */

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* -----------------------------------------------------------------
   MEGA CARD
----------------------------------------------------------------- */

.mega-card {
    position: relative;
    min-height: 148px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.07);
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.mega-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
    text-decoration: none;
}

.mega-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #151515;
    margin-bottom: 6px;
}

.mega-card p {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.6);
    max-width: 240px;
    margin: 0;
}

.mega-card img {
    position: absolute;
    right: 14px;
    bottom: 10px;
    max-width: 100px;
    max-height: 76px;
    object-fit: contain;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.mega-card:hover img {
    transform: scale(1.06) translateY(-2px);
}

/* Arrow */
.card-arrow {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, color 0.22s ease;
}

.mega-card:hover .card-arrow {
    transform: translate(4px, -2px);
    color: #2855ff;
}

/* Blue card */
.blue-card {
    background: linear-gradient(135deg, #2855ff 0%, #1f3ed8 100%);
    border-color: transparent;
}

.blue-card h3,
.blue-card p           { color: #ffffff; }
.blue-card p           { color: rgba(255, 255, 255, 0.78); }
.blue-card .card-arrow { color: rgba(255, 255, 255, 0.45); }
.blue-card:hover .card-arrow { color: #ffffff; }

/* Dark card */
.dark-card {
    background: #151515;
    border-color: transparent;
}

.dark-card h3          { color: #ffffff; }
.dark-card p           { color: rgba(255, 255, 255, 0.65); }
.dark-card .card-arrow { color: rgba(255, 255, 255, 0.35); }
.dark-card:hover .card-arrow { color: #ffffff; }

/* -----------------------------------------------------------------
   MEGA BACKDROP
----------------------------------------------------------------- */

.mega-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.mega-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hide mega menu on mobile */
@media (max-width: 991px) {
    .mega-menu,
    .mega-backdrop { display: none !important; }
    #megaMenuBtn   { display: none !important; }
}

/* -----------------------------------------------------------------
   MOBILE FULL-SCREEN DRAWER
   Replaces Bootstrap's default collapse with a slide-in overlay.
----------------------------------------------------------------- */

@media (max-width: 991px) {

    .navbar-collapse.sub-menu-bar {
        /* Full-screen slide from right */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        z-index: 99998;

        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 32px 48px;
        overflow-y: auto;

        /* Hidden state */
        transform: translateX(105%);
        visibility: hidden;
        transition:
            transform 0.36s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0.36s;
    }

    .navbar-collapse.sub-menu-bar.drawer-open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Nav list inside drawer */
    .navbar-collapse.sub-menu-bar .ms-auto {
        width: 100%;
    }

    .navbar-collapse.sub-menu-bar #nav {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .navbar-collapse.sub-menu-bar #nav .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .navbar-collapse.sub-menu-bar #nav .nav-item a {
        font-size: 22px;
        font-weight: 600;
        padding: 16px 0;
        display: block;
        color: rgba(0, 0, 0, 0.85);
    }

    .navbar-collapse.sub-menu-bar #nav .nav-item a:hover,
    .navbar-collapse.sub-menu-bar #nav .nav-item a.active {
        color: #2855ff;
    }

    /* Close button */
    .drawer-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 26px;
        line-height: 44px;
        text-align: center;
        background: rgba(0, 0, 0, 0.06);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        color: rgba(0, 0, 0, 0.7);
        transition: background 0.2s ease, transform 0.2s ease;
        padding: 0;
    }

    .drawer-close:hover {
        background: rgba(0, 0, 0, 0.12);
        transform: rotate(90deg);
    }
}

/* -----------------------------------------------------------------
   LANDING PAGE — PRODUCT SHOWCASE SECTIONS
----------------------------------------------------------------- */

.product-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.product-section.about-section {
    padding-top: 100px;
}

.product-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #2855ff;
    margin-bottom: 14px;
}

.product-content h2 {
    margin-bottom: 18px;
}

.product-content p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 17px;
    margin-bottom: 28px;
}

.product-image img {
    max-width: 100%;
}

@media (max-width: 991px) {
    .product-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .product-image {
        margin-bottom: 30px;
    }
}

/* -----------------------------------------------------------------
   JOBWORK SUBNAV
   Hidden by default. Slides in from top when #jobwork is in view.
   jobwork.js manages .is-visible on inner pages.
   main.js manages .is-visible on the home page.
----------------------------------------------------------------- */

.jobwork-subnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;          /* one below main navbar (999) */
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);

    /* Hidden — translated off the top of the screen */
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Visible state */
.jobwork-subnav.is-visible {
    transform: translateY(0);
}

/* Static variant — inner pages, always visible */
.jobwork-subnav--static {
    position: sticky;
        /* sit directly below the fixed main navbar */
    transform: none !important;
    transition: none;
    z-index: 998;
}

/* Inner layout */
.jobwork-subnav-inner {
    display: flex;
    align-items: center;
    height: 52px;
}

/* Brand label */
.jobwork-subnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #151515;
    text-decoration: none;
    padding-right: 20px;
    margin-right: 4px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.jobwork-subnav-brand:hover {
    color: #2855ff;
    text-decoration: none;
}

.subnav-product-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2855ff;
    flex-shrink: 0;
}

/* Link list */
.jobwork-subnav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.jobwork-subnav-list::-webkit-scrollbar { display: none; }

.jobwork-subnav-list li { flex-shrink: 0; }

.jobwork-subnav-list a {
    display: inline-block;
    padding: 0 16px;
    height: 52px;
    line-height: 52px;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.jobwork-subnav-list a:hover { color: rgba(0, 0, 0, 0.9); }

.jobwork-subnav-list a.active {
    color: #2855ff;
    border-bottom-color: #2855ff;
    font-weight: 600;
}

/* Content offset for inner pages (sticky double-navbar) */
.jobwork-content-offset {
    padding-top: calc(var(--subnav-total-h, 122px) + 8px);
}

/* -----------------------------------------------------------------
   JOBWORK — OVERVIEW / SECTION TITLE
----------------------------------------------------------------- */

.jobwork-overview-section,
.jobwork-jobs-section,
.jobwork-reports-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-title {
    margin-bottom: 60px;
}

.section-title p {
    color: rgba(0, 0, 0, 0.6);
    margin-top: 12px;
}

/* -----------------------------------------------------------------
   JOBWORK — JOBS TABLE
----------------------------------------------------------------- */

.jobs-table-wrapper {
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table th {
    text-align: left;
    background: #f8f9fa;
    padding: 16px 20px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.jobs-table td {
    padding: 16px 20px;
    border-top: 1px solid #ececec;
    font-size: 15px;
}

.job-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.job-status.status-assigned    { background: #e7edff; color: #2855ff; }
.job-status.status-in-progress { background: #fff3cd; color: #946c00; }
.job-status.status-completed   { background: #d9f7e6; color: #18794e; }
.job-status.status-open        { background: #e6f7f0; color: #18794e; }

/* -----------------------------------------------------------------
   JOBWORK — REPORTS STATS
----------------------------------------------------------------- */

.jobwork-reports-section { background: #f8f9fa; }

.report-stat { text-align: center; margin-bottom: 30px; }

.report-stat h3 {
    font-size: 38px;
    font-weight: 700;
    color: #2855ff;
    margin-bottom: 6px;
}

.report-stat p { color: rgba(0, 0, 0, 0.6); margin: 0; }

/* -----------------------------------------------------------------
   JOBWORK — CATEGORIES SECTION
----------------------------------------------------------------- */

.jobwork-categories-section {
    padding-top: 100px;
    padding-bottom: 60px;
}

.category-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
    border-color: #d0d8ff;
    color: inherit;
    text-decoration: none;
}

.category-icon {
    width: 52px;
    height: 52px;
    background: #eef0ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.category-icon i { font-size: 22px; color: #2855ff; }

.category-body { flex: 1; }

.category-body h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #151515;
}

.category-body p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.6;
    margin: 0;
}

.category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.category-count { font-size: 13px; font-weight: 600; color: rgba(0, 0, 0, 0.45); }

.category-explore {
    font-size: 13px;
    font-weight: 700;
    color: #2855ff;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* -----------------------------------------------------------------
   CATEGORY PAGE — HEADER
----------------------------------------------------------------- */

.category-header-section {
    padding: 60px 0 50px;
    background: #f8f9fa;
    border-bottom: 1px solid #ececec;
}

.category-hero-content h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; }

.category-hero-content p {
    font-size: 17px;
    color: rgba(0, 0, 0, 0.6);
    max-width: 540px;
}

.category-job-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef0ff;
    color: #2855ff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 12px;
}

/* -----------------------------------------------------------------
   CATEGORY PAGE — JOBS GRID
----------------------------------------------------------------- */

.category-jobs-section { padding: 60px 0 100px; }

.job-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 26px;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    border-color: #d0d8ff;
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.job-card-title { font-size: 17px; font-weight: 700; margin: 0; color: #151515; line-height: 1.4; }

.job-card-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }

.job-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 500;
}

.job-card-meta i { font-size: 14px; color: #2855ff; }

.job-card-desc { font-size: 14px; color: rgba(0, 0, 0, 0.6); line-height: 1.6; margin-bottom: 14px; }

.job-card-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.skill-tag {
    display: inline-block;
    background: #f4f5ff;
    color: #2855ff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.skill-tag-lg { font-size: 14px; padding: 6px 16px; }

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.job-location {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-sm { padding: 8px 18px !important; font-size: 13px !important; }

/* -----------------------------------------------------------------
   JOB DETAIL PAGE
----------------------------------------------------------------- */

.job-detail-section { padding: 60px 0 100px; }

.job-detail-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 40px;
}

.job-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.job-detail-title { font-size: 28px; font-weight: 800; margin: 8px 0 0; color: #151515; }

.job-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.job-detail-meta-item { display: flex; align-items: center; gap: 10px; }
.job-detail-meta-item i { font-size: 22px; color: #2855ff; flex-shrink: 0; }

.job-detail-meta-item small {
    display: block;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.job-detail-meta-item strong { display: block; font-size: 15px; color: #151515; }

.job-detail-section-block { margin-bottom: 28px; }

.job-detail-section-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #151515; }

.job-detail-section-block p { font-size: 16px; color: rgba(0, 0, 0, 0.65); line-height: 1.75; }

.job-skills-list { display: flex; flex-wrap: wrap; gap: 10px; }

.job-apply-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 32px;
    position: sticky;
    top: 80px;
}

.job-apply-card h4   { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.job-apply-card > p  { font-size: 14px; color: rgba(0, 0, 0, 0.6); margin-bottom: 24px; }

.apply-summary { border: 1px solid #ececec; border-radius: 12px; overflow: hidden; }

.apply-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #ececec;
    font-size: 14px;
}

.apply-summary-item:last-child { border-bottom: none; }
.apply-summary-item span       { color: rgba(0, 0, 0, 0.55); }
.apply-summary-item strong     { font-weight: 600; color: #151515; }

.main-btn.w-100 { display: block; text-align: center; }

.btn-disabled { opacity: 0.5; cursor: not-allowed; }

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2855ff;
    text-decoration: none;
}

.back-link:hover { color: #1f3ed8; }

/* -----------------------------------------------------------------
   BREADCRUMBS
----------------------------------------------------------------- */

.jobwork-breadcrumb { margin-bottom: 20px; }
.jobwork-breadcrumb .breadcrumb { background: transparent; padding: 0; margin: 0; }

.jobwork-breadcrumb .breadcrumb-item a {
    color: #2855ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.jobwork-breadcrumb .breadcrumb-item.active { color: rgba(0, 0, 0, 0.55); font-size: 14px; }
.jobwork-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(0, 0, 0, 0.3); }

/* -----------------------------------------------------------------
   JOB VIEW LINK
----------------------------------------------------------------- */

.job-view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #2855ff;
    text-decoration: none;
    white-space: nowrap;
}

.job-view-link:hover { color: #1f3ed8; }

/* -----------------------------------------------------------------
   EMPTY STATE
----------------------------------------------------------------- */

.empty-state { padding: 60px 20px; }
.empty-state i { font-size: 48px; color: #d0d8ff; display: block; margin-bottom: 20px; }
.empty-state h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.empty-state p { color: rgba(0, 0, 0, 0.55); margin-bottom: 24px; }

/* -----------------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------------- */

@media (max-width: 991px) {
    /* Scoped to body:has(.navbar-area) (added) -- .navbar-area only exists
       on the default/legacy navbar's pages (templates/components/navbar.html,
       podtalk_navbar.html), which is fixed-position and needs this reserved
       space. custom.css loads globally on EVERY site regardless of layout
       (see templates/base.html), so the previous bare `body` selector added
       an unwanted 65px gap above the navbar on every self-contained layout
       too (Shopden, Arocya, etc. -- none of which use .navbar-area or need
       the offset), even though their own navbar isn't fixed/needs no
       reserved space. See main.css's matching .navbar-area scoping fix for
       the same class of bug on .navbar/.navbar-toggler/.navbar-collapse. */
    body:has(.navbar-area) { padding-top: 65px; }

    .jobwork-categories-section,
    .category-jobs-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .category-hero-content h1 { font-size: 28px; }

    .job-detail-card { padding: 24px; }

    .job-detail-meta-row { gap: 16px; }

    .job-apply-card {
        margin-top: 32px;
        position: static;
    }

    .job-detail-header { flex-direction: column; }

    .jobwork-subnav--static { top: 65px; }
}

@media (max-width: 575px) {
    .jobwork-subnav-brand { display: none; }
    .mega-menu            { display: none !important; }
}

/* ── Apply Now modal (job detail page) ─────────────────────── */

.apply-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, 0.55);
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}

.apply-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: applyModalIn 0.18s ease;
}

@keyframes applyModalIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.apply-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #ececec;
}

.apply-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #151515;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apply-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    padding: 0;
}
.apply-modal-close:hover { color: #151515; }

.apply-modal-body {
    padding: 24px;
    max-height: 78vh;
    overflow-y: auto;
}

.apply-modal-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7ff;
    color: #2855ff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.apply-readonly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 24px;
    padding: 18px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 14px;
}

.apply-readonly-item-full { grid-column: 1 / -1; }

.apply-readonly-item dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 4px;
}

.apply-readonly-item dd {
    font-size: 15px;
    font-weight: 700;
    color: #151515;
    margin: 0;
}

.apply-readonly-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apply-terms-block h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #151515;
}

.apply-terms-scroll {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px 18px;
    background: #fcfcfc;
    margin-bottom: 14px;
}

.apply-terms-scroll ol {
    margin: 0;
    padding-left: 18px;
}

.apply-terms-scroll li {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 8px;
}
.apply-terms-scroll li:last-child { margin-bottom: 0; }

.apply-terms-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #151515;
    cursor: pointer;
    margin-bottom: 20px;
}

.apply-terms-agree input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.apply-modal-feedback {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: none;
}
.apply-modal-feedback.is-error   { display: block; color: #dc2626; }
.apply-modal-feedback.is-success { display: block; color: #16a34a; }

#applySubmitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

body.apply-modal-open { overflow: hidden; }

@media (max-width: 575px) {
    .apply-readonly-grid { grid-template-columns: 1fr; }
    .apply-modal-body { padding: 18px; }
}

/* ==========================================================================
   Wider site containers.
   Bootstrap's default .container caps width per breakpoint (540 / 720 /
   960 / 1140 / 1320px), which made generated sites look boxed-in with
   large side margins. A full 100% (edge-to-edge) override was tried first
   but made text lines run too wide with no side padding, hurting
   readability. This settles on a wider fixed cap instead: 1600px on large
   screens, with the container's own left/right padding (--bs-gutter-x,
   inherited from Bootstrap's .container rule) still providing side
   breathing room. custom.css loads after bootstrap-*.min.css in
   templates/base.html, so this override reaches every existing
   class="container" site-wide (templates/components/* and every
   layouts/*/components/*) without touching 100+ template files.
   ========================================================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px !important;
    }
}