/* ==========================================================================
   MODERN SEARCH PAGE & LIST CARD STYLES (TopCV Inspiration)
   ========================================================================== */

/* Hero Search Header */
.search-hero-modern {
    background: linear-gradient(135deg, #00b14f 0%, #009a44 100%);
    padding: 50px 0 60px;
    color: white;
    text-align: center;
}

.search-hero-modern h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.search-hero-modern h1 span {
    color: #ffeb3b;
    /* Highlighted yellow text like TopCV */
}

.search-hero-modern p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Search Bar Wrapper */
.search-bar-modern-wrapper {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #eef2f6;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-modern-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 12px;
}

.search-input-box,
.search-select-box {
    position: relative;
}

.search-input-box {
    flex: 2;
}

.search-select-box {
    flex: 1;
}

.search-input-box i,
.search-select-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 5;
    font-size: 15px;
}

.search-input-box input,
.search-select-box select {
    width: 100%;
    height: 52px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 15px 0 45px;
    font-size: 15px;
    color: #334155;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s;
    cursor: pointer;
}

.search-input-box input {
    cursor: text;
}

.search-input-box input:focus,
.search-select-box select:focus {
    border-color: #00b14f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 177, 79, 0.1);
}

.search-submit-btn {
    background: #00b14f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 35px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.search-submit-btn:hover {
    background: #009a44;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 177, 79, 0.3);
}

/* Page Layout */
.search-page-wrapper {
    background: #f4f7f6;
    padding: 30px 0 60px;
    min-height: 800px;
}

.search-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 30px;
}

/* Sidebar Filters */
.search-page-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-filter-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 120px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group-title i {
    color: #00b14f;
    width: 20px;
    text-align: center;
}

.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-options-list::-webkit-scrollbar {
    width: 4px;
}

.filter-options-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    transition: all 0.2s;
    user-select: none;
}

.filter-item:hover {
    color: #00b14f;
}

.filter-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00b14f;
    margin: 0;
}

/* Results Content */
.search-page-main {
    flex: 1;
}

.results-header-modern {
    margin-bottom: 20px;
}

.results-count-modern {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.results-count-modern span {
    color: #00b14f;
    font-weight: 800;
}

/* Job Card List Style - Enhanced */
.job-card-list {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border-left: 4px solid transparent;
    position: relative;
}

.job-card-list:hover {
    border-color: #84cc16;
    /* Lime border like TopCV profile */
    border-left-color: #00b14f;
    box-shadow: 0 10px 25px rgba(0, 177, 79, 0.08);
    transform: translateY(-3px);
    z-index: 5;
}

.job-list-logo {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.job-list-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.job-list-content {
    flex: 1;
    display: flex;
    gap: 20px;
}

.job-list-main {
    flex: 1;
    min-width: 0;
    /* Important for text truncation */
}

.job-list-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px;
}

.job-list-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.job-list-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-list-title a:hover {
    color: #00b14f;
    text-decoration: underline;
}

.job-list-salary {
    color: #00b14f;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}

.job-list-company {
    margin-bottom: 10px;
}

.job-list-company a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.job-list-company a:hover {
    color: #00b14f;
}

.job-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.list-tag {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
}

.list-tag i {
    color: #94a3b8;
    font-size: 12px;
}

.job-list-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    border-left: 1px solid #f1f5f9;
    min-width: 140px;
    margin-left: 20px;
}

.btn-list-apply {
    background: #00b14f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-list-apply:hover {
    background: #009a44;
    box-shadow: 0 4px 12px rgba(0, 177, 79, 0.2);
}

.btn-list-fav {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
}

.btn-list-fav:hover,
.btn-list-fav.active {
    background: #fff1f0;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Pagination Style Overrides */
.pagination-modern-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

#pagination.pagination {
    margin: 0;
    gap: 8px;
}

#pagination .page-item a {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b !important;
    font-weight: 700;
    background: #fff;
    transition: all 0.2s;
    padding: 0;
}

#pagination .page-item.active a {
    background: #00b14f !important;
    border-color: #00b14f !important;
    color: #fff !important;
}

#pagination .page-item:hover:not(.active) a {
    border-color: #00b14f !important;
    color: #00b14f !important;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .search-page-sidebar {
        display: none;
    }

    .search-page-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .search-modern-bar-inner {
        flex-direction: column;
    }

    .search-submit-btn {
        width: 100%;
        height: 50px;
    }

    .job-card-list {
        flex-direction: column;
        gap: 15px;
    }

    .job-list-logo {
        width: 64px;
        height: 64px;
    }

    .job-list-content {
        flex-direction: column;
        gap: 15px;
    }

    .job-list-actions {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding-left: 0;
        padding-top: 15px;
        margin-left: 0;
        flex-direction: row;
        width: 100%;
        min-width: auto;
    }
}