/* ==================================================
   ALOTE — JOBS PAGE
================================================== */


/* ==================================================
   CONTAINER
================================================== */

.jobs-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* ==================================================
   HERO
================================================== */

.jobs-hero {
    position: relative;
    overflow: hidden;

    padding: 100px 0 72px;

    background:
        radial-gradient(
            circle at 78% 12%,
            rgba(79, 70, 229, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(99, 102, 241, 0.05),
            transparent 30%
        ),
        #f8fafc;
}


.jobs-hero::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    top: -220px;

    border-radius: 50%;

    border: 1px solid rgba(79, 70, 229, 0.06);

    pointer-events: none;
}


.jobs-hero-content {
    position: relative;
    z-index: 1;

    max-width: 820px;
}


.section-label,
.results-label,
.filter-eyebrow,
.category-context-label,
.empty-label {
    display: inline-block;

    color: #4f46e5;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.11em;

    text-transform: uppercase;
}


.jobs-hero h1 {
    max-width: 820px;

    margin: 14px 0 18px;

    color: #0f172a;

    font-size: clamp(44px, 6vw, 70px);

    line-height: 1.03;

    letter-spacing: -0.05em;
}


.jobs-hero p {
    max-width: 670px;

    margin: 0;

    color: #64748b;

    font-size: 18px;

    line-height: 1.75;
}


/* ==================================================
   SEARCH
================================================== */

.jobs-search {
    position: relative;
    z-index: 2;

    display: flex;

    gap: 10px;

    max-width: 880px;

    margin-top: 40px;

    padding: 8px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #e2e8f0;

    border-radius: 17px;

    box-shadow:
        0 20px 55px rgba(15, 23, 42, 0.09);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.jobs-search:focus-within {
    border-color: #c7d2fe;

    box-shadow:
        0 22px 60px rgba(79, 70, 229, 0.12),
        0 0 0 4px rgba(79, 70, 229, 0.05);
}


.search-field {
    display: flex;

    align-items: center;

    flex: 1;

    min-width: 0;
}


.search-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;

    color: #94a3b8;

    font-size: 24px;
}


.search-field input {
    width: 100%;

    min-width: 0;

    padding: 17px 8px;

    border: none;

    outline: none;

    background: transparent;

    color: #0f172a;

    font-family: inherit;

    font-size: 14px;
}


.search-field input::placeholder {
    color: #94a3b8;
}


/* ==================================================
   SEARCH CLEAR
================================================== */

.search-clear {
    display: none;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: #f1f5f9;

    color: #64748b;

    font-size: 17px;

    cursor: pointer;
}


.search-clear:hover {
    background: #e2e8f0;
}


.search-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 27px;

    flex-shrink: 0;

    border: none;

    border-radius: 12px;

    background: #4f46e5;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.search-button:hover {
    background: #4338ca;

    transform: translateY(-1px);

    box-shadow:
        0 8px 22px rgba(79, 70, 229, 0.2);
}


.search-hint {
    margin-top: 12px;

    color: #94a3b8;

    font-size: 11px;
}


/* ==================================================
   JOBS SECTION
================================================== */

.jobs-section {
    padding: 72px 0 105px;

    background: #ffffff;
}


.jobs-layout {
    display: grid;

    grid-template-columns:
        250px minmax(0, 1fr);

    gap: 52px;

    align-items: start;
}


/* ==================================================
   FILTER PANEL
================================================== */

.filters-panel {
    position: sticky;

    top: 92px;

    align-self: start;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 17px;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.035);
}


.filters-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;

    padding-bottom: 20px;

    border-bottom: 1px solid #eef2f7;
}


.filter-eyebrow {
    margin-bottom: 5px;

    font-size: 9px;
}


.filters-header h2 {
    margin: 0;

    color: #0f172a;

    font-size: 20px;

    letter-spacing: -0.025em;
}


.clear-filters {
    padding: 5px 0;

    border: none;

    background: transparent;

    color: #4f46e5;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}


.clear-filters:hover {
    color: #3730a3;
}


/* ==================================================
   FILTER GROUP
================================================== */

.filter-group {
    padding: 23px 0;

    border-bottom: 1px solid #eef2f7;
}


.filter-group:last-child {
    padding-bottom: 2px;

    border-bottom: none;
}


.filter-group h3 {
    margin: 0 0 15px;

    color: #334155;

    font-size: 12px;

    font-weight: 750;
}


.filter-option {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 11px;

    color: #64748b;

    font-size: 12px;

    line-height: 1.5;

    cursor: pointer;

    transition: color 0.2s ease;
}


.filter-option:last-child {
    margin-bottom: 0;
}


.filter-option:hover {
    color: #334155;
}


.filter-option input {
    width: 15px;
    height: 15px;

    flex-shrink: 0;

    margin: 0;

    accent-color: #4f46e5;

    cursor: pointer;
}


/* ==================================================
   SELECT
================================================== */

#locationFilter,
.sort-select {
    width: 100%;

    min-height: 40px;

    box-sizing: border-box;

    padding: 0 12px;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    outline: none;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#locationFilter:focus,
.sort-select:focus {
    border-color: #818cf8;

    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.07);
}


/* ==================================================
   MOBILE FILTER BUTTON
================================================== */

.mobile-filter-button {
    display: none;

    align-items: center;

    justify-content: center;

    gap: 9px;

    width: 100%;

    min-height: 45px;

    margin-bottom: 20px;

    border: 1px solid #e2e8f0;

    border-radius: 11px;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}


.filter-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    border-radius: 999px;

    background: #eef2ff;

    color: #4f46e5;

    font-size: 10px;
}


/* ==================================================
   RESULTS
================================================== */

.jobs-results {
    min-width: 0;
}


.results-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.results-heading h2 {
    margin: 7px 0 0;

    color: #0f172a;

    font-size: 27px;

    line-height: 1.15;

    letter-spacing: -0.03em;
}


.results-actions {
    display: flex;

    align-items: center;

    gap: 9px;
}


.sort-label {
    color: #94a3b8;

    font-size: 11px;
}


.sort-select {
    width: 125px;
}


/* ==================================================
   ACTIVE FILTERS
================================================== */

.active-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 18px;
}


.active-filter {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    border: 1px solid #e0e7ff;

    border-radius: 999px;

    background: #f5f7ff;

    color: #4f46e5;

    font-size: 10px;

    font-weight: 650;
}


.active-filter button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 16px;
    height: 16px;

    padding: 0;

    border: none;

    background: transparent;

    color: inherit;

    cursor: pointer;
}


/* ==================================================
   JOB LIST
================================================== */

.jobs-list {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


/* ==================================================
   JOB CARD
================================================== */

.job-card {
    position: relative;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


.job-card:hover {
    transform: translateY(-3px);

    border-color: #c7d2fe;

    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.075);
}


.job-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.company-avatar {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #e0e7ff
        );

    color: #4f46e5;

    font-size: 12px;

    font-weight: 800;
}


.work-badge {
    padding: 7px 11px;

    border-radius: 999px;

    background: #f1f5f9;

    color: #475569;

    font-size: 10px;

    font-weight: 750;
}


.work-badge.wfh {
    background: #dcfce7;

    color: #15803d;
}


.work-badge.hybrid {
    background: #fef3c7;

    color: #b45309;
}


/* ==================================================
   JOB INFORMATION
================================================== */

.job-card h3 {
    margin: 20px 0 6px;

    color: #0f172a;

    font-size: 18px;

    line-height: 1.35;

    letter-spacing: -0.02em;
}


.job-company {
    margin: 0;

    color: #64748b;

    font-size: 12px;

    font-weight: 500;
}


.job-location {
    margin-top: 7px;

    color: #94a3b8;

    font-size: 11px;
}


/* ==================================================
   JOB META
================================================== */

.job-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 17px;
}


.job-meta span {
    padding: 6px 9px;

    border-radius: 7px;

    background: #f8fafc;

    color: #64748b;

    font-size: 10px;

    border: 1px solid #f1f5f9;
}


/* ==================================================
   JOB CARD BOTTOM
================================================== */

.job-card-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 21px;

    padding-top: 16px;

    border-top: 1px solid #eef2f7;
}


.posted-date {
    color: #94a3b8;

    font-size: 10px;
}


.view-job {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #4f46e5;

    font-size: 11px;

    font-weight: 750;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.view-job:hover {
    color: #3730a3;

    transform: translateX(2px);
}


/* ==================================================
   CATEGORY CONTEXT
================================================== */

.category-context {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 25px;

    padding: 22px 24px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #f8f9ff
        );

    border: 1px solid #e2e8f0;

    border-radius: 17px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.025);
}


.category-context.hidden {
    display: none !important;
}


.category-context-main {
    min-width: 0;
}


.category-context-label {
    margin-bottom: 6px;

    font-size: 9px;
}


.category-context h2 {
    margin: 0;

    color: #111827;

    font-size: 22px;

    line-height: 1.3;

    letter-spacing: -0.025em;
}


.category-context p {
    margin: 6px 0 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.6;
}


.category-context-clear {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 0 13px;

    flex-shrink: 0;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    background: #ffffff;

    color: #4f46e5;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.category-context-clear:hover {
    border-color: #c7d2fe;

    background: #eef2ff;

    transform: translateY(-1px);
}


/* ==================================================
   EMPTY STATE
================================================== */

.empty-state {
    padding: 75px 25px;

    text-align: center;

    border: 1px dashed #dbe2ea;

    border-radius: 17px;

    background: #fafbfc;
}


.empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    margin: 0 auto 17px;

    border-radius: 15px;

    background: #f1f5f9;

    color: #94a3b8;

    font-size: 25px;
}


.empty-label {
    font-size: 9px;
}


.empty-state h3 {
    margin: 8px 0 0;

    color: #0f172a;

    font-size: 21px;

    letter-spacing: -0.02em;
}


.empty-state p {
    max-width: 380px;

    margin: 8px auto 20px;

    color: #64748b;

    font-size: 12px;

    line-height: 1.7;
}


.empty-state button {
    padding: 10px 15px;

    border: 1px solid #e0e7ff;

    border-radius: 9px;

    background: #eef2ff;

    color: #4f46e5;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.empty-state button:hover {
    background: #e0e7ff;

    transform: translateY(-1px);
}


/* ==================================================
   HIDDEN
================================================== */

.hidden {
    display: none !important;
}


/* ==================================================
   BURMESE TYPOGRAPHY
================================================== */

html[lang="my"] .jobs-hero h1 {

    font-family:
        "Noto Sans Myanmar",
        "Myanmar Text",
        sans-serif;

    font-size: clamp(34px, 4vw, 48px);

    line-height: 1.45;

    letter-spacing: -0.025em;

    max-width: 780px;
}


html[lang="my"] .jobs-hero p {

    font-family:
        "Noto Sans Myanmar",
        "Myanmar Text",
        sans-serif;

    max-width: 720px;

    font-size: 16px;

    line-height: 1.95;
}


html[lang="my"] .filters-panel,
html[lang="my"] .jobs-search,
html[lang="my"] .job-card,
html[lang="my"] .category-context,
html[lang="my"] .empty-state,
html[lang="my"] .mobile-filter-button {

    font-family:
        "Noto Sans Myanmar",
        "Myanmar Text",
        sans-serif;
}


html[lang="my"] .filter-option,
html[lang="my"] .filter-group h3 {

    line-height: 1.8;
}


html[lang="my"] .job-card h3 {

    line-height: 1.65;

    letter-spacing: -0.015em;
}


html[lang="my"] .job-company,
html[lang="my"] .job-location,
html[lang="my"] .job-meta span,
html[lang="my"] .posted-date,
html[lang="my"] .view-job {

    line-height: 1.7;
}


html[lang="my"] .category-context h2 {

    line-height: 1.6;
}


html[lang="my"] .category-context p {

    line-height: 1.9;
}


html[lang="my"] .empty-state h3 {

    line-height: 1.6;
}


html[lang="my"] .empty-state p {

    line-height: 1.9;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1000px) {

    .jobs-layout {

        grid-template-columns:
            220px minmax(0, 1fr);

        gap: 32px;
    }


    .filters-panel {

        padding: 18px;
    }


    .job-card {

        padding: 22px;
    }

}


/* ==================================================
   MOBILE / FILTER DRAWER
================================================== */

@media (max-width: 760px) {

    .jobs-container {

        width:
            min(100% - 30px, 1180px);
    }


    .jobs-hero {

        padding: 70px 0 52px;
    }


    .jobs-hero h1 {

        font-size: 42px;
    }


    .jobs-hero p {

        font-size: 16px;
    }


    .jobs-search {

        flex-direction: column;

        gap: 6px;

        padding: 7px;

        border-radius: 14px;
    }


    .search-field input {

        padding:
            15px 7px;
    }


    .search-button {

        width: 100%;

        min-height: 48px;
    }


    .search-hint {

        line-height: 1.6;
    }


    .jobs-section {

        padding: 55px 0 75px;
    }


    .jobs-layout {

        display: block;
    }


    /* MOBILE FILTER BUTTON */

    .mobile-filter-button {

        display: flex;
    }


    /* FILTER PANEL */

    .filters-panel {

        display: none;

        position: fixed;

        z-index: 1000;

        left: 15px;
        right: 15px;

        top: 85px;

        max-height:
            calc(100vh - 105px);

        overflow-y: auto;

        padding: 22px;

        border-radius: 18px;

        box-shadow:
            0 25px 70px
            rgba(15, 23, 42, 0.20);
    }


    .filters-panel.mobile-open {

        display: block;
    }


    .filter-group {

        padding: 20px 0;
    }


    .results-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }


    .results-actions {

        width: 100%;

        justify-content: space-between;
    }


    .sort-select {

        width: 150px;
    }


    .category-context {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }


    .category-context-clear {

        width: 100%;
    }


    .job-card {

        padding: 20px;
    }


    .job-card h3 {

        font-size: 17px;
    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 500px) {

    .jobs-container {

        width:
            min(100% - 24px, 1180px);
    }


    .jobs-hero {

        padding: 58px 0 45px;
    }


    .jobs-hero h1 {

        font-size: 36px;

        line-height: 1.08;
    }


    html[lang="my"] .jobs-hero h1 {

        font-size: 31px;

        line-height: 1.5;
    }


    .jobs-hero p {

        font-size: 14px;

        line-height: 1.8;
    }


    html[lang="my"] .jobs-hero p {

        font-size: 14px;

        line-height: 1.95;
    }


    .search-icon {

        width: 43px;

        font-size: 21px;
    }


    .search-field input {

        font-size: 13px;
    }


    .search-button {

        font-size: 12px;
    }


    .results-heading h2 {

        font-size: 23px;
    }


    .results-actions {

        align-items: center;
    }


    .sort-label {

        font-size: 10px;
    }


    .sort-select {

        width: 135px;
    }


    .job-card-top {

        align-items: flex-start;
    }


    .work-badge {

        font-size: 9px;

        padding: 6px 9px;
    }


    .job-card h3 {

        margin-top: 17px;

        font-size: 16px;
    }


    .job-meta span {

        font-size: 9px;
    }


    .job-card-bottom {

        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .view-job {

        align-self: flex-end;
    }


    .category-context {

        padding: 19px;
    }


    .category-context h2 {

        font-size: 19px;
    }


    .category-context p {

        font-size: 11px;
    }


    .empty-state {

        padding:
            55px 18px;
    }

}


/* ==================================================
   VERY SMALL MOBILE
================================================== */

@media (max-width: 380px) {

    .jobs-hero h1 {

        font-size: 32px;
    }


    html[lang="my"] .jobs-hero h1 {

        font-size: 28px;
    }


    .jobs-search {

        margin-top: 30px;
    }


    .job-card {

        padding: 17px;
    }


    .company-avatar {

        width: 43px;
        height: 43px;
    }

}