@font-face {
    font-family: 'iranyekanweblight';
    src: url('/../static/font/iranyekanweblight.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
  

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'iranyekanweblight', Arial, sans-serif;
}


html {
    scroll-behavior: smooth;
}


body {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    background: #ffffff;
    color: #1d3366;
    min-height: 100vh;
}


/* =====================================================
   LINKS
===================================================== */

a {
    text-decoration: none;
    color: inherit;
}


/* =====================================================
   HEADER
===================================================== */

.main-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eef1f8;
}


.header-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =====================================================
   LOGO
===================================================== */

.logo-link {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}


.site-logo {
    display: block;

    width: 145px;
    height: 52px;

    object-fit: contain;
}


/* =====================================================
   NAVIGATION
===================================================== */

.header-navigation {
    display: flex;
    align-items: center;

    gap: 10px;
}


.nav-button {
    min-width: 100px;
    height: 44px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 12px;

    color: #1d3366;
    background: #ffffff;

    border: 1px solid #eef1f8;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}


.nav-button svg {
    width: 20px;
    height: 20px;

    object-fit: contain;
}


.nav-button:hover {
    background: #304fff;
    border-color: #304fff;
    color: #ffffff;

    transform: translateY(-2px);
}


/* =====================================================
   MAIN
===================================================== */

.page-container {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;

    padding: 45px 0 70px;
}


/* =====================================================
   SEARCH SECTION
===================================================== */

.search-section {
    width: 100%;

    margin-bottom: 55px;
}


.search-box {
    width: 100%;

    background: #eef1f8;

    border-radius: 24px;

    padding: 35px;
}


/* =====================================================
   SEARCH TITLE
===================================================== */

.search-title {
    margin-bottom: 25px;
}


.search-title h1 {
    color: #1d3366;

    font-size: 27px;
    font-weight: 800;

    margin-bottom: 8px;
}


.search-title p {
    color: #64708a;

    font-size: 14px;

    line-height: 1.8;
}


/* =====================================================
   SEARCH FORM
===================================================== */

.search-form {
    width: 100%;
}


.search-input-wrapper {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    background: #ffffff;

    padding: 7px;

    border-radius: 15px;

    border: 1px solid transparent;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}


.search-input-wrapper:focus-within {
    border-color: #304fff;

    box-shadow: 0 0 0 4px rgba(48, 79, 255, 0.08);
}


.search-input-wrapper input {
    flex: 1;

    width: 100%;
    height: 48px;

    border: none;
    outline: none;

    background: transparent;

    color: #1d3366;

    font-family: inherit;

    font-size: 14px;

    padding: 0 15px;
}


.search-input-wrapper input::placeholder {
    color: #9aa3b6;
}


/* =====================================================
   SEARCH BUTTON
===================================================== */

.search-button {
    height: 48px;

    min-width: 120px;

    border: none;
    outline: none;

    border-radius: 11px;

    background: #304fff;
    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.search-button svg {
    width: 19px;
    height: 19px;

    object-fit: contain;
}


.search-button:hover {
    background: #1d3366;

    transform: translateY(-1px);
}


.search-button:active {
    transform: translateY(0);
}


/* =====================================================
   SECTION HEADER
===================================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}


.section-header h2 {
    color: #1d3366;

    font-size: 22px;
    font-weight: 800;

    margin-bottom: 7px;
}


.section-header p {
    color: #7a8499;

    font-size: 13px;
}


/* =====================================================
   JOBS GRID
===================================================== */

.jobs-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =====================================================
   JOB CARD
===================================================== */

.job-card {
    overflow: hidden;

    display: block;

    background: #ffffff;

    border: 1px solid #eef1f8;

    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(29, 51, 102, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.job-card:hover {
    transform: translateY(-6px);

    border-color: rgba(48, 79, 255, 0.25);

    box-shadow:
        0 14px 35px rgba(29, 51, 102, 0.11);
}


/* =====================================================
   JOB IMAGE
===================================================== */

.job-image-wrapper {
    width: 100%;
    height: 190px;

    background: #eef1f8;

    overflow: hidden;
}


.job-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}


.job-card:hover .job-image {
    transform: scale(1.04);
}


/* =====================================================
   JOB CONTENT
===================================================== */

.job-content {
    padding: 20px;
}


.job-title {
    color: #1d3366;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.7;

    margin-bottom: 18px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =====================================================
   JOB INFO
===================================================== */

.job-info {
    display: flex;
    flex-direction: column;

    gap: 11px;
}


.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    min-height: 32px;
}


.info-label {
    color: #8a94a8;

    font-size: 12px;

    flex-shrink: 0;
}


.info-value {
    color: #1d3366;

    font-size: 13px;
    font-weight: 700;

    text-align: left;
}


.info-value.price {
    color: #304fff;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state {
    /* display: none; */

    width: 100%;

    text-align: center;

    padding: 70px 20px;

    border: 1px dashed #dbe1ed;

    border-radius: 20px;

    background: #fafbfe;
}


.empty-image-wrapper {
    width: 180px;
    height: 150px;

    margin: 0 auto 20px;
}


.empty-image {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.empty-state h3 {
    color: #1d3366;

    font-size: 19px;

    margin-bottom: 10px;
}


.empty-state p {
    color: #7d879b;

    font-size: 13px;

    line-height: 2;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .header-inner {
        min-height: 74px;
    }


    .page-container {
        padding-top: 35px;
    }


    .jobs-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }


    .job-image-wrapper {
        height: 180px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .header-inner {
        width: min(100% - 24px, 1200px);

        min-height: 70px;

        gap: 12px;
    }


    .site-logo {
        width: 105px;
        height: 43px;
    }


    .header-navigation {
        gap: 6px;
    }


    .nav-button {
        min-width: auto;

        width: 43px;
        height: 43px;

        padding: 0;

        border-radius: 11px;
    }


    .nav-button span {
        display: none;
    }


    .nav-button svg {
        width: 19px;
        height: 19px;
    }


    .page-container {
        width: calc(100% - 24px);

        padding-top: 25px;
        padding-bottom: 45px;
    }


    .search-section {
        margin-bottom: 38px;
    }


    .search-box {
        padding: 23px 17px;

        border-radius: 19px;
    }


    .search-title {
        margin-bottom: 18px;
    }


    .search-title h1 {
        font-size: 21px;
    }


    .search-title p {
        font-size: 12px;
    }


    .search-input-wrapper {
        padding: 5px;

        gap: 5px;
    }


    .search-input-wrapper input {
        height: 45px;

        font-size: 12px;

        padding: 0 9px;
    }


    .search-button {
        min-width: 48px;

        width: 48px;
        height: 45px;

        padding: 0;
    }


    .search-button span {
        display: none;
    }


    .search-button svg {
        width: 18px;
        height: 18px;
    }


    .section-header {
        margin-bottom: 18px;
    }


    .section-header h2 {
        font-size: 19px;
    }


    .section-header p {
        font-size: 11px;
    }


    .jobs-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .job-image-wrapper {
        height: 190px;
    }


    .job-content {
        padding: 17px;
    }


    .job-title {
        font-size: 16px;

        margin-bottom: 15px;
    }


    .info-label {
        font-size: 11px;
    }


    .info-value {
        font-size: 12px;
    }


    .empty-state {
        padding: 50px 15px;
    }


    .empty-image-wrapper {
        width: 150px;
        height: 125px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .header-inner {
        width: calc(100% - 18px);
    }


    .site-logo {
        width: 90px;
    }


    .nav-button {
        width: 39px;
        height: 39px;
    }


    .page-container {
        width: calc(100% - 18px);
    }


    .job-image-wrapper {
        height: 170px;
    }

}