:root {
    --primary-color: #7463f6;
    /* Example: A purple matching your navbar */
    --primary-color-light: #e6e3fd;
    --primary-color-dark: #5040a0;
    --secondary-color: #2575fc;
    /* Example: A blue for accents */
    --text-color-dark: #333;
    --text-color-light: #555;
    --border-color-soft: #e0e0e0;
    --border-color-medium: #cccccc;
    --background-color-light: #f9f9f9;
    --background-color-card: #ffffff;
    --shadow-soft: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding-top: 1rem;
    color: #333;
    padding: 1rem;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    /* Prevent page scrolling */
}

/* Set up fixed height layout */
.container {
    height: calc(100vh - 60px);
    /* Subtract navbar height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 1575px;
    width: calc(100% - 40px);
    /* Match navbar max-width */
    margin: 0 auto;
    /* Center the container */
    padding: 2rem 2rem 1rem;
    /* Match navbar padding */
    box-sizing: border-box;
}

.search-container {
    flex: 0 0 auto;
    /* Don't grow or shrink */
}

/*navbar*/
.navbar {
    background-color: #747bda;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin: auto;
}

/* .btn-apply styles centralized in styles.css */
/* Icon styles */
.navbar a i {
    font-size: 1.2rem;
}


/* Override global full-width search button from styles.css specifically for job feed */
.search-container .search-form .search-row > .search-button,
.search-container .search-form .search-button {
    width: auto !important;
    height: 56px; /* match input height inc. borders */
    padding: 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #55d943; /* slight softer green */
    border-radius: 22px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    position: relative;
    top: 4px; /* nudge to visually center vs. label baseline */
}

.search-container .search-form .search-row > .search-button:hover,
.search-container .search-form .search-button:focus {
    background: #42c830;
}

.search-container .search-form .search-row { align-items: flex-end; }

h1 {
    margin: 0;
    font-size: 28px;
}

.filters {
    background-color: white;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filters select,
.filters input {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filters button {
    padding: 8px 15px;
    background-color: #2ecc71;
    /* Changed to freelancer green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filters button:hover {
    background-color: #27ae60;
    /* Changed hover color */
}

/* Results count styling */
.results-count {
    background-color: #f0f3f8;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.1rem;
    color: #485785;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.results-count::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #747bda;
}

/* Clear filters link styling */
.clear-filters {
    display: inline-flex;
    align-items: center;
    background-color: #f8f0f0;
    color: #d05050;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.clear-filters:hover {
    background-color: #fde7e7;
    transform: translateY(-2px);
}

.clear-filters::before {
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

/* Filter form styling improvements */
.filter-form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filters select,
.filters input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #d9e1ee;
    font-size: 1rem;
    background-color: #f9fafc;
    transition: all 0.3s ease;
}

.filters select:focus,
.filters input[type="text"]:focus {
    outline: none;
    border-color: #747bda;
    box-shadow: 0 0 0 3px rgba(116, 123, 218, 0.2);
}

.filters button[type="submit"] {
    background-color: #747bda;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filters button[type="submit"]:hover {
    background-color: #5a62c5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(116, 123, 218, 0.3);
}

.search-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Auto-filter notice */
.auto-filter-notice {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.auto-filter-notice i {
    color: #4caf50;
    font-size: 1.2rem;
}

.auto-filter-notice span {
    flex: 1;
    color: #2e7d32;
    font-size: 0.95rem;
}

.auto-filter-notice strong {
    color: #1b5e20;
    font-weight: 600;
}

.view-all-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.search-form {
    width: 100%;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
    /* Align items at the bottom */
}

.search-field {
    position: relative;
}

.what-field {
    flex: 2;
    width: 60%;
    max-width: 60%;
}

.where-field {
    flex: 1;
    width: 30%;
    max-width: 30%;
}

/* Ensure proper spacing between fields */
@media (min-width: 768px) {
    .what-field {
        max-width: 60%;
    }

    .where-field {
        max-width: 30%;
    }
}

/* Fix width for smaller screens */
@media screen and (max-width: 767px) {
    .search-row {
        flex-direction: column;
        gap: 20px;
    }

    .what-field,
    .where-field {
        width: 100%;
        max-width: 100%;
    }

    .search-button {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Add this to your feed.css file */
.input-wrapper.select-wrapper select {
    /* Hide browser default dropdown arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Add space for custom arrow */
    padding-right: 30px;
}

/* Make sure the arrow is positioned correctly */
.input-wrapper.select-wrapper {
    position: relative;
}

.input-wrapper.select-wrapper:after {
    content: "▼";
    font-size: 12px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    /* Ensures clicks pass through to the select element */
}

/* Additional style to handle the Firefox specific styling */
.input-wrapper.select-wrapper select::-ms-expand {
    display: none;
    /* IE/Edge specific */
}

/* Ensure form elements have proper spacing */
.input-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #d9e1ee;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Make sure the FIND button doesn't push into fields */
.search-button {
    flex: 0 0 auto;
    min-width: 100px;
    margin-left: 5px;
}

.clear-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.select-wrapper:after {
    content: "▼";
    font-size: 12px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.search-button {
    min-width: 120px;
    background-color: #00e81f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    line-height: 50px;
    text-transform: uppercase;
    align-self: flex-end;
}

.search-button:hover {
    background-color: #0dc500;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.filter-option {
    position: relative;
}

.filter-option select {
    appearance: none;
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 35px 8px 12px;
    border-radius: 30px;
    /* More rounded like in the SEEK screenshot */
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option select:hover {
    border-color: #999;
}

.filter-option:after {
    content: "▼";
    font-size: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* Adjust clear filters button style */
.clear-all-filters {
    color: #0066cc;
    /* Blue like in SEEK */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
}

.clear-all-filters:before {
    content: "×";
    margin-right: 5px;
    font-size: 18px;
}

.clear-all-filters:hover {
    background-color: rgba(0, 102, 204, 0.1);
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-option {
        width: 100%;
    }

    .filter-option select {
        width: 100%;
    }

    .clear-all-filters {
        margin: 10px 0 0 0;
        justify-content: center;
    }

    .auto-filter-notice {
        flex-direction: column;
        text-align: center;
        padding: 10px 15px;
    }

    .auto-filter-notice span {
        font-size: 0.9rem;
    }

    .view-all-link {
        width: 100%;
        display: block;
        text-align: center;
    }
}

.results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-count {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

@media screen and (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .search-button {
        width: 100%;
    }
}

/* No jobs found message styling */
.no-jobs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: #f9fafc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #8590a6;
    font-size: 1.2rem;
    text-align: center;
    margin: 30px 0;
}

.no-jobs::before {
    content: "\f119";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 15px;
    color: #b4b9c6;
}

/* Renamed and modified job related classes to match freelancer style */
.job-card {
    background-color: white;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.job-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-title {
    color: #2ecc71;
    /* Changed to freelancer green */
    font-size: 20px;
    margin: 0;
}

.job-type {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Modified job types to match freelancer skills */
.job-type.developer {
    background-color: #e6f7ff;
    color: #0088cc;
}

.job-type.designer {
    background-color: #ffe6e6;
    color: #cc0066;
}

.job-type.writer {
    background-color: #e6ffe6;
    color: #00cc00;
}

.job-type.marketer {
    background-color: #f2e6ff;
    color: #8800cc;
}

/* Remove old job types */
.job-type.full-time,
.job-type.part-time,
.job-type.temporary,
.job-type.internship {
    display: none;
}

.job-content {
    padding: 15px;
}

.job-details {
    margin-bottom: 15px;
}

.job-details p {
    margin: 5px 0;
    display: flex;
}

.job-details strong {
    width: 120px;
    display: inline-block;
}

.job-description {
    line-height: 1.5;
    color: #555;
}

.job-footer {
    padding: 15px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Changed job-date to rating */
.job-date {
    color: #888;
    font-size: 14px;
}

/* Add this to your existing CSS file */

.apply-btn {
    padding: 8px 20px;
    background-color: #2ecc71;
    /* Freelancer green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
    text-decoration: none;
}

/* Add hover animation effect */
.apply-btn:hover {
    background-color: #27ae60;
    /* Darker green */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}

/* Add active state animation */
.apply-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.2);
}

/* Add ripple effect animation */
.apply-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: -1;
    transition: all 0.5s ease;
}

.apply-btn:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* Modified status badges to availability badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.status-approved {
    background-color: #e6ffe6;
    color: #00cc00;
}

.status-rejected {
    background-color: #ffe6e6;
    color: #cc0000;
}

.status-pending {
    background-color: #fff9e6;
    color: #cc9900;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2ecc71;
    /* Changed to freelancer green */
    text-decoration: none;
}

.pagination a.active {
    background-color: #2ecc71;
    /* Changed to freelancer green */
    color: white;
    border-color: #2ecc71;
    /* Changed to freelancer green */
}

.pagination a.disabled,
.pagination span.disabled {
    pointer-events: none;
    cursor: default;
    color: #95a5a6;
    background-color: #f4f6f7;
    border-color: #e0e0e0;
}

.pagination span.disabled,
.pagination span.ellipsis {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
}

.pagination span.ellipsis {
    color: #95a5a6;
    border: 1px solid transparent;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

/* Two-column job feed layout */
.job-feed-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex: 1;
    /* Fill remaining space */
    overflow: hidden;
    /* Don't scroll the container itself */
    height: calc(100vh - 180px);
    /* Subtract navbar + search area approx height */
}

.job-listings-column {
    flex: 0 0 40%;
    max-width: 40%;
    overflow-y: auto;
    background-color: var(--background-color-light);
    padding-bottom: 100px;
    /* Add padding at bottom */
    height: auto;
    /* Auto height */
    max-height: calc(100vh - 230px);
    /* Use max-height instead */

}

.job-details-column {
    flex: 0 0 60%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
    background: linear-gradient(to bottom, #fcfcff, #f8f9fa);
    border: 1px solid #eaecf0;
    max-width: 60%;
    background-color: var(--background-color-light);
    border-radius: 8px;
    position: sticky;
    top: 0;
    padding-bottom: 100px;
    /* Ensure space for the button */
    height: auto;
    /* Auto height */
    max-height: calc(100vh - 230px);
    /* Use max-height instead */
    overflow-y: auto;
}

/* Job cards in the listing */
.job-card {
    background-color: var(--background-color-card);
    border: 1px solid var(--border-color-soft);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.25s ease, border-left-color 0.25s ease, transform 0.2s ease;
    border-left: 3px solid transparent;
    /* For hover/selected state */
}

.job-card:hover {
    box-shadow: var(--shadow-medium);
    border-left-color: var(--secondary-color);
    /* Accent color on hover */
    transform: translateY(-2px);
    /* Slight lift on hover */
}

.job-card.selected {
    border-left-color: var(--primary-color);
    /* Prominent border for selected card */
    box-shadow: var(--shadow-medium);
    background-color: #fdfdff;
    /* Very slightly different background for selected */
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align items to the top */
}

.company-logo {
    border: 1px solid var(--border-color-soft);
    /* Subtle border for logos */
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.company-initial {
    width: 40px;
    height: 40px;
    background-color: #e9edf5;
    color: #4c6ef5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
}

.save-job-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
}

.job-title {
    font-size: 16px;
    margin: 0 0 4px;
    color: #333;
}

.employer-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px;
    color: #555;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #606c80;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.job-location i {
    color: #747bda;
}

.job-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.job-category {
    background-color: #f0f2f5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
}

.job-posted {
    font-size: 12px;
    color: #777;
    text-align: right;
}

/* Results header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color-soft);
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

#sort-jobs {
    border: none;
    background: none;
    font-weight: 500;
    color: #0066cc;
    cursor: pointer;
    padding-right: 15px;
    appearance: none;
    position: relative;
}

.sort-container:after {
    content: "▼";
    font-size: 8px;
    color: #0066cc;
    margin-left: -12px;
}

/* Job Details */
.job-details-container {
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.job-details-header {
    margin-bottom: 24px;
}

.back-to-jobs {
    background: none;
    border: none;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #747bda;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    cursor: pointer;
    padding: 0;
}

.back-to-jobs:hover {
    transform: translateX(-3px);
    color: #5a61c5;
}

.job-details-header h1 {
    color: #414b5a;
    font-weight: 600;
    border-bottom: 2px solid rgba(116, 123, 218, 0.1);
    padding-bottom: 12px;
}

/* Inline Map Styles */
#inline-map-container {
    animation: slideDown 0.3s ease-out;
    border: 1px solid #e9ecef;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 600px;
        transform: translateY(0);
    }
}

#inline-map {
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    #inline-map {
        height: 300px !important;
    }
}

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8f9fc;
    border-radius: 10px;
    padding: 15px;
    border-left: 3px solid #747bda;
}

.company-logo-lg {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #e6e6e6;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 5px;
    border-radius: 8px;
}

.company-info h2 {
    font-size: 18px;
    margin: 0 0 4px;
    color: #3c4858;
    font-weight: 600;
}

.job-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    background-color: white;
    padding: 16px;
    background: linear-gradient(to bottom right, #ffffff, #f9fafc);
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.highlight-item {
    flex: 1 0 45%;
    display: flex;
    flex-direction: column;
    padding: 8px;
    position: relative;
    border-radius: 8px;
    transition: transform 0.2s ease;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #f0f0f0;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}


.highlight-label {
    color: #747bda;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-value {
    font-size: 15px;
    color: #3c4858;
    font-weight: 600;
}

.job-full-description {
    margin: 24px 0;
}

/* Job description section */
.job-full-description h3 {
    color: #414b5a;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 10px;
    margin-top: 30px;
}

.job-full-description h3:before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: #747bda;
    margin-right: 10px;
    border-radius: 2px;
}

.description-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 24px;
    white-space: pre-line;
    background-color: #fafbfc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #eaecf0;
}

.job-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    justify-content: center; /* Center the Apply and Message buttons together */
    align-items: center;
    flex-wrap: wrap;
}

/* (btn-apply rules removed; centralized in styles.css) */

.btn-save {
    background-color: white;
    border: 2px solid #747bda;
    color: #747bda;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
}

.btn-save:hover {
    background-color: rgba(116, 123, 218, 0.05);
    box-shadow: 0 4px 8px rgba(116, 123, 218, 0.1);
    transform: translateY(-2px);
}

.btn-save i {
    transition: transform 0.3s ease;
}


/* Placeholder when no job is selected */
.job-details-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #f8f9fa, #f1f3f5);
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
    border: 1px dashed #d0d6e0;
    text-align: center;
    padding: 20px;
}

.placeholder-icon i {
    font-size: 4rem;
    color: rgba(116, 123, 218, 0.3);
    background: linear-gradient(to bottom right, #e9eaf5, #dfe1f7);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(116, 123, 218, 0.15);
}

.job-details-placeholder h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #747bda;
    font-weight: 600;
    margin-bottom: 10px;
}

.job-details-placeholder p {
    margin: 0;
    color: #8c93a6;
}

/* No jobs found state */
.no-jobs {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-jobs-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #ccc;
}

.no-jobs h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.no-jobs p {
    margin: 0 0 20px;
    color: #888;
}

.btn-reset-search {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 992px) {

    html,
    body {
        overflow: auto;
        /* Allow scrolling on mobile */
    }

    .container {
        height: auto;
        overflow: visible;
    }

    .job-feed-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .job-listings-column,
    .job-details-column {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
        max-height: 500px;
        /* Limit height on mobile */
        overflow-y: auto;
    }
}

/* Responsive navbar improvements */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.8rem 1rem;
        gap: 10px;
        align-items: center;
        border-radius: 0;
        /* Remove rounded corners on mobile */
        margin-bottom: 10px;
    }

    .navbar-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .navbar-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        /* Changed from flex-start to center */
        padding-bottom: 5px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    .navbar a {
        font-size: 0.9rem;
        padding: 8px 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Mobile responsive styles - add to the bottom of your feed.css file */
@media screen and (max-width: 992px) {

    /* Fix container for mobile */
    .container {
        padding: 1rem;
        overflow: visible;
        height: auto;
    }

    /* Allow body to scroll on mobile */
    html,
    body {
        overflow: auto;
    }

    /* Make the search form stack on mobile */
    .search-row {
        flex-direction: column;
        gap: 15px;
    }

    .search-field {
        width: 100%;
        max-width: 100%;
    }

    .search-button {
        width: 100%;
        margin-left: 0;
    }

    /* Make filter options wrap better on mobile */
    .filter-options {
        gap: 10px;
    }

    .filter-option {
        flex: 0 0 calc(50% - 5px);
        /* Two filters per row */
        max-width: calc(50% - 5px);
    }

    /* Convert two-column layout to stacked for mobile with slide animation */
    .job-feed-container {
        flex-direction: column;
        height: calc(100vh - 200px); /* Fixed height for slide animation */
        min-height: 500px;
        overflow: hidden; /* Hide overflow for slide effect */
        border: none;
        position: relative;
    }

    /* Make job listings take full width */
    .job-listings-column {
        flex: 0 0 100%;
        max-width: 100%;
        height: 100%; /* Fill container height */
        max-height: 100%;
        overflow-y: auto; /* Allow scrolling within */
        border-right: none;
        border-bottom: none;
        padding-bottom: 20px;
        margin-bottom: 0;
        width: 100%;
        position: absolute;
        z-index: 10;
        background: var(--background-color-light);
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    /* Make job details take full width with slide animation */
    .job-details-column {
        flex: 0 0 100%;
        max-width: 100%;
        height: 100%; /* Fill container height */
        max-height: 100%;
        overflow-y: auto; /* Allow scrolling within */
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: white;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    /* Slide animation when job is selected */
    body.has-job-selected .job-listings-column {
        transform: translateX(-100%);
    }

    body.has-job-selected .job-details-column {
        transform: translateX(0);
    }

    /* Hide job details completely when no job selected */
    body.no-job-selected .job-details-column {
        display: none;
    }

    body.has-job-selected .job-details-column {
        display: block;
    }

    #job-details {
        scroll-margin-top: 90px;
    }

    /* Adjust job card sizing */
    .job-card {
        margin-bottom: 12px;
    }

    /* Show back button on mobile */
    .back-to-jobs {
        display: flex !important;
        font-size: 16px;
        padding: 8px 0;
    }

    /* Make action buttons stack on very small screens */
    @media screen and (max-width: 480px) {
        .job-actions {
            flex-direction: column;
            gap: 10px;
        }

        /* buttons stack full width on very small screens */
        .job-actions form {
            flex: 1 1 100%;
        }

        .btn-save {
            width: 100%;
        }
    }
}

/* Fix for very small screens */
@media screen and (max-width: 480px) {
    .filter-option {
        flex: 0 0 100%;
        /* One filter per row on very small screens */
        max-width: 100%;
    }

    .navbar-links {
        gap: 10px;
    }

    .navbar-links a {
        font-size: 0.9rem;
        padding: 5px;
    }

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

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

    .navbar {
        padding: 0.6rem;
    }

    .navbar-logo {
        height: 30px;
    }

    .navbar a {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 4px;
    }

    .navbar a i {
        font-size: 0.9rem;
    }

    /* Enable horizontal scrolling for navbar links */
    .navbar-links {
        gap: 5px;
        justify-content: center;
        /* Changed from flex-start to center */
        padding-bottom: 5px;
    }
}

/* Android phones and similar (720px width) */
@media (max-width: 720px) {
    .container {
        width: calc(100% - 20px);
        padding: 1rem 0.8rem;
        height: calc(100vh - 80px);
    }
    
    .search-container {
        padding: 0.8rem;
    }
    
    .job-feed-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .job-listings-column {
        width: 100%;
        max-width: 100%;
    }
    
    .job-details-column {
        display: none; /* Hide on mobile, user taps card to see details */
    }
    
    .job-card {
        padding: 0.8rem;
    }
    
    .filter-options {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .search-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-field {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Welcome message styles */
.welcome-message {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Skill match highlight in job cards */
.skill-match-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}