/* =========================================================
   GENERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: #17221c;
    background: #f7faf8;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}
/* =========================================================
   NAVIGATION BAR
========================================================= */

.site-header {
    width: 100%;
    height: 80px;
    background: #ffffff;

    display: flex;
    align-items: center;

    position: relative;
    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;

    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 135px;
    height: auto;
    display: block;
}


/* Navigation */

.site-nav {
    display: flex;
    align-items: center;

    gap: 32px;
    margin-left: 38px;
}

.site-nav a {
    color: #222;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #16834a;
}


/* Navigation buttons */

.nav-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 12px;
}

.nav-btn {
    padding: 9px 22px;

    border: 1.5px solid #16834a;
    border-radius: 30px;

    color: #16834a;
    background: transparent;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #16834a;
    color: #ffffff;
}


/* Mobile menu */

.menu-toggle {
    display: none;

    margin-left: auto;

    background: none;
    border: none;

    cursor: pointer;

    padding: 8px;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    background: #222;

    margin: 5px 0;

    transition: 0.3s;
}
/* =========================================================
   SMALL HERO / SEARCH AREA
========================================================= */

.jobs-hero {
    min-height: 330px;
    position: relative;

    background-image:
        url("images/jobs-bg.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.jobs-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 38, 25, 0.82),
            rgba(17, 66, 42, 0.66),
            rgba(10, 38, 25, 0.52)
        );
}

.jobs-hero-content {
    width: min(1050px, 90%);
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-small-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);

    padding: 7px 14px;
    border-radius: 30px;

    margin-bottom: 12px;
}

.jobs-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    margin-bottom: 8px;
    font-weight: 750;
}

.jobs-hero p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 25px;
}


/* =========================================================
   SEARCH BOX
========================================================= */

.job-search-box {
    width: 100%;

    display: grid;
    grid-template-columns: 1.5fr 0.8fr auto;
    gap: 10px;

    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);

    padding: 10px;
    border-radius: 16px;

    backdrop-filter: blur(10px);
}

.search-field {
    height: 52px;

    background: #ffffff;
    border-radius: 10px;

    display: flex;
    align-items: center;

    padding: 0 16px;

    color: #718078;
}

.search-field i {
    margin-right: 10px;
    color: #16834b;
}

.search-field input,
.search-field select {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;

    color: #26342c;
    font-size: 14px;
}

.search-field select {
    cursor: pointer;
}

.search-button {
    height: 52px;

    border: none;
    border-radius: 10px;

    padding: 0 24px;

    background: #16834b;
    color: #ffffff;

    font-weight: 650;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    transition: 0.3s ease;
}

.search-button:hover {
    background: #0e6c3c;
    transform: translateY(-2px);
}


/* =========================================================
   FEATURED JOBS SECTION
========================================================= */

.featured-jobs-section {
    width: min(1200px, 92%);
    margin: auto;

    padding: 70px 0 90px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #16834b;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.5px;

    margin-bottom: 7px;
}

.section-heading h2 {
    font-size: 34px;
    color: #17221c;
    line-height: 1.2;
}

.section-heading p {
    color: #68756d;
    font-size: 15px;
    margin-top: 7px;
}

.job-count {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 16px;

    background: #eaf6ef;
    border-radius: 30px;

    color: #47705a;
    font-size: 13px;
}

.job-count strong {
    color: #16834b;
    font-size: 20px;
}


/* =========================================================
   SEARCH RESULT MESSAGE
========================================================= */

.search-result-message {
    min-height: 24px;
    color: #68756d;
    font-size: 14px;
    margin-bottom: 18px;
}


/* =========================================================
   JOB GRID
========================================================= */

.job-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   JOB CARD
========================================================= */

.job-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #e5ebe7;
    border-radius: 18px;

    padding: 24px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(23, 60, 39, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.job-card::before {
    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    right: -35px;
    top: -35px;

    background: #e8f6ee;

    border-radius: 50%;

    transition: 0.3s ease;
}

.job-card:hover {
    transform: translateY(-7px);

    border-color: #b8ddc6;

    box-shadow:
        0 18px 40px rgba(23, 60, 39, 0.12);
}

.job-card:hover::before {
    transform: scale(1.6);
}


/* Card Top */

.job-card-top {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 18px;
}

.company-icon {
    width: 50px;
    height: 50px;

    border-radius: 13px;

    background: #eaf6ef;
    color: #16834b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.job-type-badge {
    font-size: 10px;
    font-weight: 700;

    color: #16834b;
    background: #edf8f1;

    padding: 6px 10px;
    border-radius: 20px;

    text-transform: uppercase;
}


/* Card Content */

.job-card h3 {
    font-size: 19px;
    color: #18251e;

    margin-bottom: 4px;

    line-height: 1.3;
}

.company-name {
    color: #16834b;
    font-size: 14px;
    font-weight: 600;

    margin-bottom: 18px;
}


/* Details */

.job-details {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-bottom: 18px;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #68756d;
    font-size: 12px;
}

.job-detail i {
    color: #16834b;
    width: 14px;
}


/* Skill */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 21px;
}

.skill-tag {
    font-size: 11px;
    color: #42604d;

    background: #f0f6f2;

    padding: 5px 9px;
    border-radius: 6px;
}


/* Footer */

.job-card-footer {
    border-top: 1px solid #edf0ee;

    padding-top: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.posted-time {
    font-size: 11px;
    color: #8a968f;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #16834b;

    font-size: 13px;
    font-weight: 700;

    transition: 0.3s ease;
}

.apply-btn i {
    transition: transform 0.3s ease;
}

.apply-btn:hover {
    color: #0e6c3c;
}

.apply-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   NO JOBS
========================================================= */

.no-jobs {
    display: none;

    text-align: center;

    padding: 60px 20px;
}

.no-jobs.show {
    display: block;
}

.no-jobs-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #eaf6ef;
    color: #16834b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
}

.no-jobs h3 {
    font-size: 21px;
    margin-bottom: 5px;
}

.no-jobs p {
    color: #758078;
    font-size: 14px;
    margin-bottom: 18px;
}

.clear-search-btn {
    border: 1px solid #16834b;
    color: #16834b;

    background: white;

    padding: 9px 18px;

    border-radius: 25px;

    cursor: pointer;

    transition: 0.3s ease;
}

.clear-search-btn:hover {
    background: #16834b;
    color: white;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #14231a;
    color: #ffffff;

    padding-top: 55px;
}

.footer-container {
    width: min(1200px, 92%);
    margin: auto;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 45px;
}

.footer-brand img {
    width: 140px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aebbb3;
    max-width: 330px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-size: 15px;
    margin-bottom: 7px;
}

.footer-links a {
    color: #aebbb3;
    font-size: 13px;

    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    text-align: center;

    padding: 18px;

    color: #87958c;

    font-size: 12px;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: #16834b;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: 0.3s ease;

    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0e6c3c;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .site-nav {
        gap: 18px;
    }

    .job-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .job-search-box {
        grid-template-columns: 1fr 1fr;
    }

    .search-button {
        grid-column: 1 / -1;
    }
}


@media (max-width: 760px) {

    .site-header {
        height: 75px;
    }

    .logo {
        width: 125px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;

        top: 75px;
        left: 0;
        right: 0;

        background: white;

        padding: 20px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav > a {
        padding: 8px 0;
    }

    .site-nav > a.active::after {
        display: none;
    }

    .nav-actions {
        margin: 5px 0 0;
        flex-direction: column;
    }

    .nav-outline-btn {
        text-align: center;
    }


    .jobs-hero {
        min-height: 420px;
    }

    .jobs-hero-content {
        width: 88%;
    }

    .jobs-hero h1 {
        font-size: 31px;
    }

    .job-search-box {
        grid-template-columns: 1fr;
    }

    .search-button {
        grid-column: auto;
    }


    .featured-jobs-section {
        padding: 50px 0 65px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }


    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}


@media (max-width: 450px) {

    .job-details {
        grid-template-columns: 1fr;
    }

    .jobs-hero h1 {
        font-size: 27px;
    }

    .jobs-hero p {
        font-size: 13px;
    }

    .job-card {
        padding: 20px;
    }
}
/* =========================================================
   FLOATING CONTACT BUTTONS
========================================================= */

.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 85px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    z-index: 9999;
}

.floating-contact a {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: #238c62;

    border: 1.5px solid #238c62;

    text-decoration: none;

    font-size: 18px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);

    transition: all 0.3s ease;
}

.floating-contact a:hover {
    background: #238c62;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}


/* PHONE */
.floating-phone:hover {
    background: #238c62;
}


/* WHATSAPP */
.floating-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}


/* LINKEDIN */
.floating-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
}


/* MOBILE */
@media (max-width: 600px) {

    .floating-contact {
        right: 15px;
        bottom: 75px;
        gap: 8px;
    }

    .floating-contact a {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}