/**
 * TalentDove Jobs Plugin CSS
 * Dark hero, inline search, sidebar filters, horizontal job cards.
 */

/* ── Inline Search Bar ── */
.td-search-bar-wrap {
    background: transparent;
}
.td-search-bar {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.td-search-field {
    flex: 1;
    position: relative;
}
.td-search-field .form-input {
    border: none;
    border-right: 1px solid #E9E9E9;
    border-radius: 0;
    height: 52px;
    padding: 0 16px;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    background: #fff;
    color: #333;
}
.td-search-field .form-input:focus {
    box-shadow: none;
}
.td-search-field:last-of-type .form-input {
    border-right: none;
}
.td-search-submit {
    background: #2F80ED;
    color: #fff;
    border: none;
    padding: 0 24px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.td-search-submit:hover {
    background: #1a6dd4;
}

/* Job type tags below search */
.td-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.td-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #585978;
    background: #fff;
    border: 1px solid #E9E9E9;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.td-type-tag:hover,
.td-type-tag.active {
    border-color: var(--tag-color, #2F80ED);
    color: var(--tag-color, #2F80ED);
    background: #fff;
}
.td-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Trending keywords */
.td-trending-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}
.td-trending-label {
    color: #888;
    font-weight: 500;
    margin-right: 4px;
}
.td-trending-label i {
    margin-right: 4px;
}
.td-trending-kw {
    color: #2F80ED;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 14px;
    background: #f0f4ff;
    transition: background 0.2s;
}
.td-trending-kw:hover {
    background: #dde8fc;
    color: #1a6dd4;
}

/* ── Sidebar ── */
.td-jobs-sidebar {
    position: sticky;
    top: 90px;
}
.td-sidebar-widget {
    margin-bottom: 28px;
}
.td-sidebar-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}
.td-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.td-sidebar-list li {
    margin-bottom: 2px;
}
.td-sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-radius: 6px;
    color: #585978;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s;
}
.td-sidebar-list a:hover,
.td-sidebar-list a.active {
    background: #f0f4ff;
    color: #2F80ED;
}
.td-sidebar-count {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}
.td-sidebar-more {
    color: #2F80ED !important;
    font-weight: 500;
    font-size: 0.82rem !important;
}

/* ── Sort Bar ── */
.td-sort-bar {
    background: #f8f9fb;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.td-jobs-count {
    font-size: 0.9rem;
    color: #585978;
}
.td-jobs-count strong {
    color: #222;
}
.td-sort-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #555;
    background: #fff;
    cursor: pointer;
}
.td-btn-reset-small {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    font-size: 0.9rem;
}
.td-btn-reset-small:hover {
    background: #2F80ED;
    color: #fff;
    border-color: #2F80ED;
}

/* ── Spinner ── */
.td-jobs-spinner .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

/* ── Job Card (horizontal) ── */
.td-jcard {
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.td-jcard:hover {
    box-shadow: 0 8px 24px rgba(47, 128, 237, 0.12);
    transform: translateY(-2px);
}
.td-jcard-featured {
    border-left: 4px solid #2F80ED;
}

/* Card header: logo + title */
.td-jcard-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.td-jcard-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}
.td-jcard-logo-ph {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2F80ED;
    flex-shrink: 0;
}
.td-jcard-title-wrap {
    min-width: 0;
}
.td-jcard-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}
.td-jcard-title a {
    color: #222;
    text-decoration: none;
}
.td-jcard-title a:hover {
    color: #2F80ED;
}
.td-jcard-company {
    font-size: 0.82rem;
    color: #888;
}

/* Card meta: salary + location */
.td-jcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #585978;
}
.td-jcard-salary {
    color: #2F80ED;
    font-weight: 600;
}
.td-jcard-salary i,
.td-jcard-location i {
    margin-right: 4px;
    font-size: 0.85rem;
}

/* Card actions: apply + badge + save */
.td-jcard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    margin-top: auto;
}
.td-jcard-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.td-btn-apply {
    display: inline-block;
    padding: 5px 16px;
    background: #2F80ED;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.td-btn-apply:hover {
    background: #1a6dd4;
    color: #fff;
}
.td-badge-type {
    display: inline-block;
    padding: 4px 10px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-transform: uppercase;
}
.td-btn-save {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #E9E9E9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.td-btn-save:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Card tags footer */
.td-jcard-tags {
    font-size: 0.78rem;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}
.td-tags-label {
    font-weight: 500;
    margin-right: 4px;
    color: #777;
}

/* ── Pagination ── */
.td-jobs-pagination {
    margin-top: 30px;
    text-align: center;
}
.td-jobs-pagination .page-numbers {
    margin: 0;
    padding: 0;
}
.td-jobs-page {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #E9E9E9;
    border-radius: 6px;
    color: #585978;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    cursor: pointer;
}
.td-jobs-page:hover,
.td-jobs-page.current {
    background: #2F80ED;
    color: #fff;
    border-color: #2F80ED;
}
.td-page-ellipsis {
    padding: 6px 8px;
    color: #999;
}

/* ── Single Job Detail Page ── */

/* Content card */
.td-job-content-card {
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    padding: 35px 40px;
}
.td-job-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #E9E9E9;
}
.td-job-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.td-job-heading {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.td-job-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #2F80ED;
    margin-top: 10px;
    border-radius: 2px;
}
.td-job-content {
    line-height: 1.85;
    color: #585978;
    font-size: 0.95rem;
}
.td-job-content h2,
.td-job-content h3,
.td-job-content h4,
.td-job-content h5 {
    font-family: 'Fira Sans', sans-serif;
    color: #222;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}
.td-job-content ul,
.td-job-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}
.td-job-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.td-job-content p {
    margin-bottom: 14px;
}
.td-job-content a {
    color: #2F80ED;
}
.td-job-content a:hover {
    color: #1a6dd4;
}

/* Share row */
.td-job-share {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid #E9E9E9;
    margin-top: 10px;
}
.td-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.td-share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E9E9E9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #585978;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.td-share-icon:hover {
    background: #2F80ED;
    color: #fff;
    border-color: #2F80ED;
}

/* Tags row */
.td-job-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0 0;
    border-top: 1px solid #E9E9E9;
    font-size: 0.85rem;
}
.td-job-tags-row i {
    color: #2F80ED;
}
.td-job-tags-row .td-tags-label {
    color: #222;
    font-weight: 600;
}
.td-skill-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4ff;
    color: #2F80ED;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s;
}
.td-skill-tag:hover {
    background: #dde8fc;
}

/* ── Job Overview Sidebar Card ── */
.td-job-overview-card {
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.td-overview-header {
    background: #2F80ED;
    padding: 18px 24px;
}
.td-overview-header h5 {
    margin: 0;
    color: #fff;
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}
.td-overview-body {
    padding: 28px 24px;
}

/* Company section */
.td-overview-company {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.td-overview-logo {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
}
.td-overview-logo-ph {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 10px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #2F80ED;
}
.td-overview-company-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px;
}
.td-overview-source {
    color: #999;
    font-size: 0.8rem;
}

/* Badge wrap */
.td-overview-badge-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Overview meta list */
.td-overview-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.td-overview-meta li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.875rem;
    color: #585978;
}
.td-overview-meta li:last-child {
    border-bottom: none;
}
.td-overview-meta li i {
    color: #e74c3c;
    margin-top: 3px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.td-overview-meta li strong {
    display: block;
    color: #222;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.82rem;
}
.td-overview-meta li span {
    display: block;
    color: #585978;
    font-size: 0.85rem;
}

/* Apply Now button */
.td-btn-apply-now {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #e74c3c;
    color: #fff;
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    text-transform: uppercase;
}
.td-btn-apply-now:hover {
    background: #c0392b;
    color: #fff;
}

/* ── Related Jobs ── */
.td-related-jobs {
    background: #f8f9fb;
    padding-top: 60px;
}
.td-related-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.td-related-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2F80ED;
    margin-top: 10px;
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Source label */
.td-job-source {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #f0f4ff;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #585978;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .td-jobs-sidebar-col {
        margin-bottom: 30px;
    }
    .td-jobs-sidebar {
        position: static;
    }
    .td-search-bar {
        flex-direction: column;
    }
    .td-search-field .form-input {
        border-right: none;
        border-bottom: 1px solid #E9E9E9;
    }
    .td-search-submit {
        padding: 14px;
    }
}
@media (max-width: 767px) {
    .td-jcard-header {
        flex-direction: column;
    }
    .td-jcard-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .td-sort-bar .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    .td-job-content-card {
        padding: 20px;
    }
    .td-job-share {
        flex-wrap: wrap;
        gap: 10px;
    }
    .td-job-tags-row {
        gap: 6px;
    }
}
