/* ==============================
   Global
================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    color: var(--text-color);
    background: var(--body-background-color);
}

/* ==============================
   Top Bar
================================ */
.top-bar {
    background: var(--primary-color);
    padding: 12px 340px 12px 180px;
    color: #ffffff;

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

    position: relative;
    min-height: 72px;
}

/* ==============================
   Left Area
================================ */
.top-left {
    position: absolute;
    left: 15px;

    display: flex;
    align-items: center;
}

.top-left .date {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ==============================
   Logo
================================ */
.logo {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

/* ==============================
   Right Area
================================ */
.top-right {
    position: absolute;
    right: 15px;

    width: 450px;

    display: flex;
    align-items: center;
}

/* ==============================
   Search Form
================================ */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;
}

.search-form input {
    flex: 1;
    min-width: 0;

    height: 36px;

    border: none;
    border-radius: 6px;

    padding: 0 12px;

    outline: none;

    font-size: 14px;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.search-input {
    flex: 2;
    min-width: 0;
    width: 100%;
    height: 38px;
    border-radius: 6px;
    border: none;
    padding: 0 12px;
}

.search-select {
    flex: .3;
    width: 50px;
    height: 38px;
    border-radius: 6px;
    border: none;
    padding: 0 10px;
}

.search-btn {
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.search-btn:hover {
    background: #f1f1f1;
}

.search-form input::placeholder {
    color: #888;
}

.search-form button {
    height: 36px;

    padding: 0 16px;

    border: none;
    border-radius: 6px;

    white-space: nowrap;

    font-size: 14px;
    font-weight: 600;
}

/* ==============================
   Tablet
================================ */
@media (max-width: 992px) {
    .top-bar {
        padding: 12px 260px 12px 150px;
    }

    .top-right {
        width: 240px;
    }

    .logo {
        font-size: 24px;
    }
}

/* ==============================
   Mobile
================================ */
@media (max-width: 768px) {
    .top-bar {
        padding: 18px 15px;

        flex-direction: column;
        gap: 14px;

        min-height: auto;
    }

    .top-left,
    .top-right {
        position: static;

        width: 100%;

        justify-content: center;
    }

    .top-left {
        order: 2;
    }

    .logo {
        order: 1;
        font-size: 24px;
    }

    .top-right {
        order: 3;
    }

    .search-form {
        width: 100%;
    }

    .search-form input {
        width: 100%;
    }
}

/* Menu Cross Animation */
.menu-open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-open span:nth-child(2) {
    opacity: 0;
}

.menu-open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==============================
   Category Bar
================================ */
.category-bar {
    background: color-mix(in srgb, var(--primary-color) 10%, #ffffff);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow-x: auto;
}

.category-bar a {
    color: var(--text-color);
    padding: 12px 15px;
    display: inline-block;
    font-size: 17px;
    text-decoration: none;
}

.category-bar a:hover {
    color: var(--secondary-color);
}

/* ==============================
   Footer Links
================================ */
.footer-link {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ==============================
   Job Card
================================ */
.job-card {
    background: var(--job-card-bg-color);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--job-card-border-color);
    display: flex;
    gap: 15px;
    transition: all .2s ease;
}

.job-card:hover {
    box-shadow: 0 10px 25px var(--job-card-hover-color);
    transform: translateY(-2px);
}

/* ==============================
   Job Logo
================================ */
.search-job-logo {
    flex-shrink: 0;
}
.job-logo {
    flex-shrink: 0;
}

.search-job-logo img {
    width: 120px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--job-card-logo-img-color);
    padding: 5px;
}
.job-logo img {
    width: 140px;
    height: 110px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--job-card-logo-img-color);
    padding: 5px;
}

/* ==============================
   Job Content
================================ */
.job-body {
    flex: 1;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.job-title a {
    color: var(--job-title-color);
    text-decoration: none;
}

.job-title a:hover {
    color: var(--primary-color);
}

.company-name {
    font-size: 14px;
    color: var(--job-company-name-color);
    margin-bottom: 8px;
}

.job-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--job-meta-color);
}

.job-meta li {
    margin-bottom: 3px;
}

/* ==============================
   Job Footer
================================ */
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deadline {
    font-size: 12px;
    font-weight: 500;
    color: var(--job-deadline-color);
}

/* ==============================
   Responsive – Mobile
================================ */
@media (max-width: 576px) {

    /* .top-left,
    .top-right {
        position: static;
    }

    .top-bar {
        justify-content: space-between;
    } */

    .job-card {
        padding: 6px;
    }

    .search-job-logo img{
        width: 100%;
        height: auto;
        max-height: 170px;
    }
    .job-logo img {
        width: 100%;
        height: auto;
        max-height: 180px;
    }

    .job-title {
        font-size: 15px;
    }

    .company-name {
        font-size: 13px;
    }

    .job-meta {
        font-size: 12px;
    }

    .job-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .deadline {
        font-size: 11px;
        white-space: nowrap;
    }

    .category-bar a {
        font-size: 14px;
        padding: 10px;
    }
}

/* ==============================
   Responsive – Tablet
================================ */
@media (max-width: 991px) {

    .job-card {
        gap: 6px;
    }

    .search-job-logo img{
        width: 100px;
        height: 90px;
    }
    .job-logo img {
        width: 120px;
        height: 95px;
    }

    .job-title {
        font-size: 15px;
    }

    .job-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .deadline {
        font-size: 11px;
        white-space: nowrap;
    }
}

/* ==============================
   Responsive – Large Screens
================================ */
@media (min-width: 1200px) {

    .job-card {
        padding: 10px;
    }

    .job-logo img {
        width: 160px;
        height: 120px;
    }

    .job-title {
        font-size: 17px;
    }

    .job-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .deadline {
        font-size: 11px;
        white-space: nowrap;
    }
}