/* =================================================================== */
/* 1. ROOT VARIABLES & GLOBAL STYLES */
/* =================================================================== */
:root {
    --font-primary: 'Plus Jakarta Sans';
    --color-brand-red: #c0242d;
    --color-dark: #333333;
    --color-medium: #555555;
    --color-light: #a1a1a1;
    --color-border-card: #e0e0e0;
    --color-border-input: #cccccc;
    --bg-sidebar: #f5f5f5;
    --bg-page: #fdfdfd;
    --bg-toggle-active: #fdeeee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --color-apply-btn: #ff8c00;
    /* Orange color */
    --color-apply-btn-hover: #e67e00;
    --color-tag-time-bg: #e7f2ff;
    --color-tag-time-text: #3b82f6;
    --color-tag-priority-bg: #ff8b95;
    --color-tag-priority-text: #f43f5e;
    --color-icon: #9ca3af;
}


@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('./fonts/PlusJakartaSans-SemiBold.eot');
    src: url('./fonts/PlusJakartaSans-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('./fonts/PlusJakartaSans-SemiBold.woff2') format('woff2'),
        url('./fonts/PlusJakartaSans-SemiBold.woff') format('woff'),
        url('./fonts/PlusJakartaSans-SemiBold.ttf') format('truetype'),
        url('./fonts/PlusJakartaSans-SemiBold.svg#PlusJakartaSans-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('./fonts/PlusJakartaSans-Regular.eot');
    src: url('./fonts/PlusJakartaSans-Regular.eot?#iefix') format('embedded-opentype'),
        url('./fonts/PlusJakartaSans-Regular.woff2') format('woff2'),
        url('./fonts/PlusJakartaSans-Regular.woff') format('woff'),
        url('./fonts/PlusJakartaSans-Regular.ttf') format('truetype'),
        url('./fonts/PlusJakartaSans-Regular.svg#PlusJakartaSans-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('./fonts/PlusJakartaSans-Medium.eot');
    src: url('./fonts/PlusJakartaSans-Medium.eot?#iefix') format('embedded-opentype'),
        url('./fonts/PlusJakartaSans-Medium.woff2') format('woff2'),
        url('./fonts/PlusJakartaSans-Medium.woff') format('woff'),
        url('./fonts/PlusJakartaSans-Medium.ttf') format('truetype'),
        url('./fonts/PlusJakartaSans-Medium.svg#PlusJakartaSans-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('./fonts/PlusJakartaSans-Bold.eot');
    src: url('./fonts/PlusJakartaSans-Bold.eot?#iefix') format('embedded-opentype'),
        url('./fonts/PlusJakartaSans-Bold.woff2') format('woff2'),
        url('./fonts/PlusJakartaSans-Bold.woff') format('woff'),
        url('./fonts/PlusJakartaSans-Bold.ttf') format('truetype'),
        url('./fonts/PlusJakartaSans-Bold.svg#PlusJakartaSans-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans';
    transition: 0.5s background ease;
    background-color: var(--bg-page);
    color: var(--color-dark);
}

html {
    scroll-padding-top: 200px;
}

/* Body scrollbar */
::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background-color: #e7e1d1
}

::-webkit-scrollbar-thumb {
    background-color: #a00
}

::-webkit-scrollbar-thumb:hover {
    background-color: #fff
}

/* --- General Button Styles --- */
.btn {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

/* =================================================================== */
/* 2. HEADER & HERO SECTION */
/* =================================================================== */
.sticky-header {
    background-color: #fff;
    color: white;
    padding: 1rem 10%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
}

.sticky-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.sticky-login-btn {
    background-color: #D9232D;
    color: white;
    padding: 0.3rem 3rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.sticky-login-btn:hover {
    background-color: #a00;
    color: white;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 300px;
    /* You need to link your own 'backImage.jpg' */
    background-image: url('../img/backImage.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.hero-nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.hero-login-btn {
    background-color: #D9232D;
    color: white;
    padding: 0.3rem 3rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.hero-login-btn:hover {
    background-color: white;
    color: #a00;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
}

.hero-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    display: flex;
}

.hero-breadcrumb-item+.hero-breadcrumb-item::before {
    content: "/";
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.hero-breadcrumb-item a:hover {
    text-decoration: underline;
}

.hero-breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    border-bottom: 3px solid #D9232D;
    padding-bottom: 0.5rem;
    display: inline-block;
    letter-spacing: 1px;
}

.img-fluid {
    max-width: 85% !important;
}

/* =================================================================== */
/* 3. MAIN CONTENT (LISTINGS) */
/* =================================================================== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 5px 10% 5% 10%;
}

.listings-layout {
    display: flex;
    gap: 2rem;
}

.job-feed {
    flex: 0 0 68%;
    /* display: grid;
    grid-template-columns: 1fr;
    gap: 1rem; */
}

.sidebar {
    flex: 0 0 30%;
    background-color: var(--bg-sidebar);
    padding: 1.5rem;
    border-radius: 25px;
    height: fit-content;
}

.sidebar h4 {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-border-card);
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.sidebar li {
    font-weight: 400;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    padding-left: 1.7em;
    position: relative;
    line-height: 1.5;
    text-align: justify;
}

.sidebar li::before {
    /* Make sure you have Font Awesome 7 loaded for this icon */
    content: "\f0a4";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    color: var(--color-brand-red);
    font-size: 1em;
    position: absolute;
    left: 0;
    top: 0.1em;
}

/* --- Job Card --- */
.job-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: visible;
    margin-bottom: 1.5rem;
    /* Allows tooltip to show */
    /* display: flex;
    flex-direction: column; */
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.job-card-header {
    position: relative;
    height: 235px;
    padding: 15px 15px 0px 15px;
    border-radius: 20px;
}

.job-card-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 20px;
}

.job-card-body {
    padding: 20px 20px 0px 25px;
}

.job-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.3rem;
    font-size: 0.9rem;
    color: var(--color-light);
    margin-bottom: 1rem;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.metadata-item-1 {
    font-size: 1rem;
}

.metadata-item.end {
    margin-left: 25px;
}

.metadata-item i {
    font-size: 0.9rem;
}

.metadata-item-1.start {
    color: green;
}

.metadata-item.start i {
    color: green;
}

.metadata-item-1.end {
    color: var(--color-brand-red);
}

.metadata-item.end i {
    color: var(--color-brand-red);
}

.job-card-footer {
    padding: 0 20px 20px 20px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-apply {
    background-color: var(--color-apply-btn);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-apply:hover {
    background-color: var(--color-apply-btn-hover);
}

.btn-icon {
    background: none;
    border: 1px solid var(--color-tag-priority-bg);
    color: var(--color-tag-priority-bg);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: var(--bg-sidebar);
    color: var(--color-brand-red);
    border-color: var(--color-brand-red);
}

.btn-icon i {
    font-size: 1.2rem;
}

/* =================================================================== */
/* 4. MODAL (POP-UP) STYLES */
/* =================================================================== */
.modal-container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.modal-container.is-visible {
    display: flex;
}

.modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    z-index: 2001;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    /* Responsive width */
}

.modal-size-login {
    max-width: 450px;
    /* Specific width for login */
}

.modal-size-apply {
    max-width: 800px;
    /* Specific width for apply */
}

.modal-body {
    padding: 2.5rem;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    letter-spacing: 0.5px;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-form input[type="text"],
.modal-form input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-form input[readonly] {
    background-color: #eee;
    cursor: not-allowed;
}

.modal-form .name-group {
    display: flex;
    gap: 1rem;
}

.modal-form .name-group input {
    flex: 1;
}

#preferred-location-group {
    display: none;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
}

.modal-form .radio-group {
    display: flex;
    gap: 1.5rem;
}

.modal-form .radio-group label {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-form .radio-group input[type="radio"] {
    width: auto;
}

.modal-form .captcha-box {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-form .captcha-box span {
    font-size: 1.25rem;
    font-weight: 600;
    width: auto;
    /* Changed from 10% */
}

.modal-form .form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.modal-form .form-button {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    min-width: 10%;
    letter-spacing: 1px;
}

.modal-form .submit-btn {
    background-color: #D9232D;
    color: white;
    transition: background-color 0.2s ease;
}

.modal-form .submit-btn:hover {
    background-color: #b91c26;
}

.modal-form .back-btn {
    background-color: #eee;
    color: #333;
    transition: background-color 0.2s ease;
}

.modal-form .back-btn:hover {
    background-color: #ddd;
}

.modal-form .captcha-placeholder {
    background-color: #eee;
    color: #777;
    text-align: center;
    padding: 1.5rem;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 0.5em;
    text-decoration: line-through;
    margin-bottom: 1rem;
}

.modal-templates {
    display: none;
}


/* =================================================================== */
/* 5. TOOLTIP & FOOTER */
/* =================================================================== */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.7rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -80px;
    opacity: 0;
    transition: opacity 0.2s;
}

.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.coppy-sec {
    border-top: 1px solid #19181D33;
    padding: 20px 10px;
    margin-top: 25px;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
}

.main-container {
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
}

.align-self-center {
    align-self: center !important;
}

.social-icons ul {
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
}

.social-icons li {
    list-style: none;
    display: inline-block;
}

.social-icons a {
    color: #19181d;
    text-decoration: none;
    font-size: 14px;
}

.round-border {
    width: 40px;
    height: 40px;
    border: 1.5px solid #19181D33;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.social-icons a:hover .round-border {
    background: #a00;
    transition: .5s;
}

.social-icons a:hover i {
    color: #fff;
    transition: .5s;
}

.coppy-rghit p {
    font-size: 13px;
    color: #4b4953;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

.terms-tag p {
    font-size: 13px;
    color: #4b4953;
    font-weight: 400;
    margin: 0;
    text-align: right;
}

.terms-tag a {
    transition: .5s;
    text-decoration: none;
    color: #4b4953;
}

.terms-tag a:hover {
    color: #a00;
    transition: .5s;
}


/* =================================================================== */
/* 6. RESPONSIVE MEDIA QUERIES */
/* =================================================================== */

@media (max-width: 1290px) {
    .img-fluid {
        max-width: 85% !important;
    }

    .hero-section {
        height: 260px;
        padding: 1rem 5%;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-breadcrumb {
        font-size: 1.2rem;
    }

    .hero-login-btn,
    .sticky-login-btn {
        padding: 0.8rem 2rem;
        font-size: 1.3em;
    }

    .container {
        padding: 5px 5% 5% 5%;
    }

    .job-feed {
        flex: 0 0 70%;
        /* gap: 1rem; */
    }

    .job-card-header {
        height: 185px;
        padding: 15px 15px 0px 15px;
    }

    .job-card-body {
        padding: 20px 15px 0px 25px;
    }

    .job-card-image {
        object-fit: fill;
    }

    .sidebar {
        padding: 1rem;
    }

    .sidebar h4 {
        font-size: 1.2rem;
    }

    .sidebar li {
        font-size: 0.9rem;
    }

    .coppy-sec {
        margin-top: 25px;
    }

    .main-container {
        padding: 0;
    }

    .row {
        row-gap: 0.3rem;
    }

    .metadata-item.end {
        margin-left: 20px;
    }

    .modal-title {
        font-size: 1.3rem;
        padding-bottom: 0.5rem;
        margin: 0 0 1.2rem 0;
    }

    .modal-close-btn {
        top: 0.7rem;
        font-size: 1.8rem;
    }

    .modal-form label {
        font-size: 1rem;
    }

    .modal-form .form-group {
        margin-bottom: 0.8rem;
    }

    .modal-form input[type="text"],
    .modal-form input[type="email"] {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .modal-form .form-buttons {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Stack form grids */
    .modal-form .name-group {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-form .captcha-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* --- Medium Screens (Tablets) --- */
@media (max-width: 991px) {
    .col-md-6 {
        flex: 0 0 auto !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    .col-md-12 {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }


    .listings-layout {
        flex-direction: column;
        gap: 0;
    }

    .img-fluid {
        max-width: 85% !important;
    }

    .hero-section {
        height: 220px;
        padding: 1rem 10%;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-breadcrumb {
        font-size: 1rem;
    }

    .hero-login-btn,
    .sticky-login-btn {
        padding: 0.5rem 2rem;
        font-size: 1.1em;
    }

    .container {
        padding: 5px 10% 20% 10%;
    }

    .job-feed {
        flex: 0 0 65%;
        /* gap: 1rem; */
    }

    .job-card-header {
        height: 160px;
        padding: 10px 10px 0px 10px;
    }

    .job-card-body {
        padding: 15px 10px 0px 15px;
    }

    .job-card-image {
        object-fit: fill;
    }

    .sidebar {
        padding: 1rem;
    }

    .sidebar h4 {
        font-size: 1.1rem;
    }

    .sidebar li {
        font-size: 0.9rem;
    }

    .coppy-sec {
        margin-top: 15px;
    }

    .main-container {
        padding: 0;
    }

    .row {
        row-gap: 1rem;
    }

    .metadata-item.end {
        margin-left: 20px;
    }

    .modal-title {
        font-size: 1.3rem;
        padding-bottom: 0.5rem;
        margin: 0 0 1.2rem 0;
    }

    .modal-close-btn {
        top: 0.7rem;
        font-size: 1.8rem;
    }

    .modal-form label {
        font-size: 1rem;
    }

    .modal-form .form-group {
        margin-bottom: 0.8rem;
    }

    .modal-form input[type="text"],
    .modal-form input[type="email"] {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .modal-form .form-buttons {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Stack form grids */
    .modal-form .name-group {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-form .captcha-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* --- Small Screens (Mobiles) --- */
@media (max-width: 660px) {
    .col-12 {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .listings-layout {
        flex-direction: column;
        gap: 0;
    }

    .img-fluid {
        max-width: 65% !important;
    }

    .hero-section {
        height: 185px;
        padding: 1rem 3%;
        margin-bottom: 0.7rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-breadcrumb {
        font-size: 0.75rem;
    }

    .hero-login-btn,
    .sticky-login-btn {
        padding: 0.2rem 1.5rem;
        font-size: 0.8em;
    }

    .container {
        padding: 5px 3% 20% 3%;
    }

    .job-card-header {
        height: 120px;
        padding: 10px 10px 0px 10px;
    }

    .job-card-body {
        padding: 15px 10px 0px 15px;
    }

    .job-card-image {
        object-fit: fill;
    }

    .job-metadata {
        gap: 0.3rem 1.7rem;
    }

    .sidebar {
        padding: 1rem;
    }

    .sidebar h4 {
        font-size: 1.1rem;
    }

    .sidebar li {
        font-size: 0.9rem;
    }

    .social-icons ul {
        justify-content: center;
    }

    .coppy-sec {
        margin-top: 10px;
    }

    .terms-tag {
        display: flex;
        justify-content: center;
    }

    .job-card {
        margin-bottom: 1rem;
    }

    .main-container {
        padding: 0;
    }

    .row {
        gap: 0.7rem;
    }

    .metadata-item.end {
        margin-left: 0;
    }

    .modal-title {
        font-size: 1.1rem;
        padding-bottom: 0.5rem;
        margin: 0 0 1.2rem 0;
    }

    .modal-close-btn {
        top: 0.8rem;
        font-size: 1.6rem;
    }

    .modal-form label {
        font-size: 0.9rem;
    }

    .modal-form .form-group {
        margin-bottom: 0.5rem;
    }

    .modal-form input[type="text"],
    .modal-form input[type="email"] {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .modal-form .form-buttons {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Stack form grids */
    .modal-form .name-group {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-form .captcha-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* --- Extra-Small Screens (Small Mobiles) --- */
@media (max-width: 575px) {
    .listings-layout {
        flex-direction: column;
        gap: 0;
    }

    .img-fluid {
        max-width: 65% !important;
    }

    .hero-section {
        height: 185px;
        padding: 1rem 3%;
        margin-bottom: 0.7rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-breadcrumb {
        font-size: 0.75rem;
    }

    .hero-login-btn,
    .sticky-login-btn {
        padding: 0.2rem 1.5rem;
        font-size: 0.8em;
    }

    .container {
        padding: 5px 3% 45% 3%;
    }

    .job-card-header {
        height: 120px;
        padding: 10px 10px 0px 10px;
    }

    .job-card-body {
        padding: 15px 10px 0px 15px;
    }

    .job-card-image {
        object-fit: fill;
    }

    .job-metadata {
        gap: 0.3rem 1.7rem;
    }

    .sidebar {
        padding: 1rem;
    }

    .sidebar h4 {
        font-size: 1.1rem;
    }

    .sidebar li {
        font-size: 0.9rem;
    }

    .coppy-sec {
        margin-top: 10px;
    }

    .row {
        gap: 0.7rem;
    }

    .metadata-item.end {
        margin-left: 0;
    }

    .modal-title {
        font-size: 1.1rem;
        padding-bottom: 0.5rem;
        margin: 0 0 1.2rem 0;
    }

    .modal-close-btn {
        top: 0.8rem;
        font-size: 1.6rem;
    }

    .modal-form label {
        font-size: 0.9rem;
    }

    .modal-form .form-group {
        margin-bottom: 0.5rem;
    }

    .modal-form input[type="text"],
    .modal-form input[type="email"] {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .modal-form .form-buttons {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Stack form grids */
    .modal-form .name-group {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-form .captcha-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

}