/* ==========================================================================
   EduBridge Redesign – Phase 1+2
   Educator Listing: 2-column card grid, sidebar reorder, styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Card Grid Layout
   -------------------------------------------------------------------------- */

.edubridge-candidate-grid .jobsearch-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

.edubridge-candidate-grid .jobsearch-row > li {
    width: 100%;
    padding: 0;
    float: none;
}

/* Override plugin's column widths for grid view */
.edubridge-candidate-grid .jobsearch-column-6 {
    width: 100%;
}

/* --------------------------------------------------------------------------
   2. Card Styling
   -------------------------------------------------------------------------- */

.edubridge-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .edubridge-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-color: rgba(58, 32, 97, 0.2);
    }
}

/* Featured card – amber accent */
.edubridge-featured-card {
    border-left: 3px solid var(--eb-accent, #f4a226);
}

.edubridge-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--eb-accent, #f4a226);
    border-radius: 8px 0 0 8px;
}

/* --------------------------------------------------------------------------
   3. Featured Badge
   -------------------------------------------------------------------------- */

.edubridge-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--eb-accent, #f4a226);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edubridge-featured-badge .fa-star {
    font-size: 9px;
}

/* --------------------------------------------------------------------------
   4. Card Figure (Photo)
   -------------------------------------------------------------------------- */

.edubridge-card-figure {
    text-align: center;
    margin-bottom: 16px;
}

.edubridge-card-figure a {
    display: inline-block;
}

.edubridge-card-figure img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8ecf1;
}

/* --------------------------------------------------------------------------
   5. Card Body
   -------------------------------------------------------------------------- */

.edubridge-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.edubridge-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--eb-heading, #0d1b2a);
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.35;
}

.edubridge-card-name a {
    color: var(--eb-heading, #0d1b2a);
    text-decoration: none;
}

.edubridge-card-name a:hover {
    color: var(--eb-primary, #3a2061);
}

.edubridge-verified-badge {
    color: var(--eb-success, #4ecb71) !important;
    font-size: 14px;
    margin-left: 4px;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   6. Card Meta (title, location)
   -------------------------------------------------------------------------- */

.edubridge-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    text-align: center;
}

.edubridge-card-jobtitle {
    font-size: 14px;
    color: var(--eb-body-muted, #6b7a99);
    margin-bottom: 3px;
}

.edubridge-card-location {
    font-size: 13px;
    color: var(--eb-body-muted, #6b7a99);
    text-align: center;
}

.edubridge-card-location i {
    font-size: 12px;
    margin-right: 3px;
}

/* --------------------------------------------------------------------------
   7. Sector Chips
   -------------------------------------------------------------------------- */

.edubridge-sector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.edubridge-sector-chips li {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    background: var(--eb-primary-light, rgba(58, 32, 97, 0.08));
    color: var(--eb-primary, #3a2061);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.5;
}

.edubridge-sector-chips i {
    display: none; /* hide icons in chips for cleaner look */
}

/* --------------------------------------------------------------------------
   8. Stats Row (experience, education)
   -------------------------------------------------------------------------- */

.edubridge-card-stats {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: var(--eb-body-muted, #6b7a99);
}

.edubridge-card-stats li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.edubridge-card-stats .fa {
    font-size: 13px;
    color: var(--eb-primary, #3a2061);
}

/* --------------------------------------------------------------------------
   9. Card Actions (Save button)
   -------------------------------------------------------------------------- */

.edubridge-card-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
    text-align: center;
}

.edubridge-card-actions a,
.edubridge-card-actions .jobsearch-candidate-default-wrap a {
    display: inline-block;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    border: 1px solid var(--eb-primary, #3a2061);
    color: var(--eb-primary, #3a2061);
    background: transparent;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.edubridge-card-actions a:hover,
.edubridge-card-actions .jobsearch-candidate-default-wrap a:hover {
    background: var(--eb-primary, #3a2061);
    color: #fff;
}

/* Keep plugin save-btn styled if they use different classes */
.edubridge-card-actions .jobsearch-candidate-save-btn,
.edubridge-card-actions .jobsearch-resume-add-list-btn {
    display: inline-block;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

/* --------------------------------------------------------------------------
   10. Sidebar – Filter Header, Search & Footer
   -------------------------------------------------------------------------- */

/* Filter header: "X Filters Active" + Clear All link */
.edubridge-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    margin-bottom: 14px;
    background: rgba(58, 32, 97, 0.06);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--eb-primary, #3a2061);
    border: 1px solid rgba(58, 32, 97, 0.1);
}

.edubridge-filters-header .edubridge-filters-count {
    color: var(--eb-primary, #3a2061);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edubridge-filters-header .edubridge-filters-count::before {
    content: '\f0b0';
    font-family: 'FontAwesome';
    font-size: 14px;
    opacity: 0.8;
}

.edubridge-filters-header .edubridge-filters-clear {
    color: var(--eb-accent, #f4a226);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.edubridge-filters-header .edubridge-filters-clear:hover {
    background: rgba(244, 162, 38, 0.1);
    color: var(--eb-accent-dark, #d4881a);
}

/* ── Keyword Search ─────────────────────────────────────────────────── */

.edubridge-search-section {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
}

.edubridge-search-section .edubridge-search-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--eb-heading, #0d1b2a);
    margin: 0 0 10px;
}

.edubridge-search-wrap {
    position: relative;
}

.edubridge-search-wrap .edubridge-search-input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: var(--eb-heading, #0d1b2a);
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.edubridge-search-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.edubridge-search-input:focus {
    border-color: var(--eb-primary, #3a2061);
    box-shadow: 0 0 0 3px rgba(58, 32, 97, 0.1);
    background: #fff;
}

.edubridge-search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    background: var(--eb-primary, #3a2061);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s ease;
}

.edubridge-search-btn:hover {
    background: var(--eb-primary-dark, #2e174f);
}

.edubridge-search-btn:focus-visible {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: 2px;
}

/* ── Clear All Filters Footer ────────────────────────────────────────── */

.edubridge-filters-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8ecf1;
    text-align: center;
}

.edubridge-filters-clear-bottom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--eb-accent, #f4a226);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--eb-accent, #f4a226);
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .edubridge-filters-clear-bottom:hover {
        background: var(--eb-accent, #f4a226);
        color: #fff;
        transform: translateY(-1px);
    }
}

.edubridge-filters-clear-bottom:focus-visible {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: 2px;
}

.edubridge-filters-clear-bottom .fa {
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   10b. Sidebar Filter Reordering (CSS safety net)
   -------------------------------------------------------------------------- */

.listin-filters-sidebar {
    display: flex;
    flex-direction: column;
}

/* Each filter section gets an order class. The plugin's *_srch_filtrs_sort
   option controls primary order; these are the safety net via CSS 'order'. */

.edubridge-filter-section {
    /* Default: no reorder. Add specific order rules below as needed. */
}

/* Example: If 'date_posted' appears at position 0, push it to last: */
/* .edubridge-filter-order-0 { order: 5; } */

/* --------------------------------------------------------------------------
   13. Filter Section – Premium Styling
   -------------------------------------------------------------------------- */

/* ── Collapsible Filter Headers ──────────────────────────────────────── */

.listin-filters-sidebar .jobsearch-search-filter-toggle .jobsearch-fltbox-title a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--eb-heading, #0d1b2a);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease;
    cursor: pointer;
}

.listin-filters-sidebar .jobsearch-search-filter-toggle .jobsearch-fltbox-title a:hover {
    background: rgba(58, 32, 97, 0.04);
}

/* Chevron indicator */
.listin-filters-sidebar .jobsearch-search-filter-toggle .jobsearch-fltbox-title a::after {
    content: '\f107';
    font-family: 'FontAwesome';
    font-size: 14px;
    transition: transform 0.25s ease;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Rotate chevron when collapsed */
.listin-filters-sidebar .jobsearch-search-filter-toggle.jobsearch-remove-padding .jobsearch-fltbox-title a::after {
    transform: rotate(-90deg);
}

/* ── Filter Content Animation ────────────────────────────────────────── */

.listin-filters-sidebar .jobsearch-checkbox-toggle {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
    max-height: 800px;  /* large enough for any filter list */
    opacity: 1;
    padding: 6px 14px 10px;
}

@media (prefers-reduced-motion: no-preference) {
    .listin-filters-sidebar .jobsearch-checkbox-toggle[style*="display: none"],
    .listin-filters-sidebar .jobsearch-checkbox-toggle[style*="display:none"] {
        /* When the plugin sets display:none via JS, we can't override with CSS
           alone. These styles apply when the collapse class is toggled. */
    }
}

/* Plugin sets display:none inline; we respect that for the collapsed state.
   The transition is still visible when sections open. */

/* ── Checkbox/Radio List Items ───────────────────────────────────────── */

.listin-filters-sidebar .jobsearch-checkbox {
    list-style: none;
    padding: 0;
    margin: 0;
}

.listin-filters-sidebar .jobsearch-checkbox li {
    padding: 7px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listin-filters-sidebar .jobsearch-checkbox li label {
    flex: 1;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    transition: color 0.15s ease;
    margin: 0;
    font-weight: 400;
}

.listin-filters-sidebar .jobsearch-checkbox li label:hover {
    color: var(--eb-primary, #3a2061);
}

/* Custom checkbox/radio span */
.listin-filters-sidebar .jobsearch-checkbox li label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
    position: relative;
}

/* Radio: circle */
.listin-filters-sidebar .jobsearch-checkbox li input[type="radio"] + label span {
    border-radius: 50%;
    width: 18px;
    height: 18px;
}

.listin-filters-sidebar .jobsearch-checkbox li input[type="radio"]:checked + label span {
    background: var(--eb-primary, #3a2061);
    border-color: var(--eb-primary, #3a2061);
    box-shadow: inset 0 0 0 3px #fff;
}

/* Checkbox: rounded square */
.listin-filters-sidebar .jobsearch-checkbox li input[type="checkbox"]:checked + label span {
    background: var(--eb-primary, #3a2061);
    border-color: var(--eb-primary, #3a2061);
}

.listin-filters-sidebar .jobsearch-checkbox li input[type="checkbox"]:checked + label span::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    font-size: 10px;
    color: #fff;
    position: absolute;
}

/* Hide the native input */
.listin-filters-sidebar .jobsearch-checkbox li input[type="radio"],
.listin-filters-sidebar .jobsearch-checkbox li input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ── Filter Count Badges ─────────────────────────────────────────────── */

.listin-filters-sidebar .filter-post-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--eb-body-muted, #6b7a99);
    min-width: 22px;
    text-align: right;
    flex-shrink: 0;
    padding: 2px 6px;
    background: rgba(107, 122, 153, 0.08);
    border-radius: 10px;
    line-height: 1.4;
}

/* ── Active Filter Option Highlight ───────────────────────────────────── */

.listin-filters-sidebar .jobsearch-checkbox li input:checked + label {
    color: var(--eb-primary, #3a2061);
    font-weight: 600;
}

.listin-filters-sidebar .jobsearch-checkbox li input:checked + label + .filter-post-count {
    color: var(--eb-primary, #3a2061);
    background: rgba(58, 32, 97, 0.1);
}

/* ── Filter Section Wrapper ──────────────────────────────────────────── */

.edubridge-filter-section .jobsearch-filter-responsive-wrap {
    margin-bottom: 4px;
}

.edubridge-filter-section .jobsearch-search-filter-wrap {
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.edubridge-filter-section .jobsearch-search-filter-wrap:hover {
    border-color: rgba(58, 32, 97, 0.08);
}

/* ── Location Select Dropdowns ───────────────────────────────────────── */

.listin-filters-sidebar .jobsearch-profile-select select,
.listin-filters-sidebar .selectize-control .selectize-input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    width: 100%;
    transition: border-color 0.2s ease;
    font-family: inherit;
    margin: 4px 0;
}

.listin-filters-sidebar .jobsearch-profile-select select:focus,
.listin-filters-sidebar .selectize-control .selectize-input.focus {
    border-color: var(--eb-primary, #3a2061);
    box-shadow: 0 0 0 3px rgba(58, 32, 97, 0.08);
}

/* ── Focus-Visible Outlines ──────────────────────────────────────────── */

.listin-filters-sidebar .jobsearch-fltbox-title a:focus-visible,
.listin-filters-sidebar .jobsearch-checkbox li label:focus-visible,
.edubridge-search-input:focus-visible {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   11. Sort Controls Area (already rendered by plugin)
   -------------------------------------------------------------------------- */

/* The plugin renders .sortfiltrs-contner with heading and sort dropdown.
   These styles align it with the card grid aesthetics. */

.sortfiltrs-contner {
    margin-bottom: 20px;
}

.sortfiltrs-contner .jobsearch-filterable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e8ecf1;
}

.sortfiltrs-contner .jobsearch-filterable h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--eb-heading, #0d1b2a);
    margin: 0;
}

.sortfiltrs-contner .jobsearch-sort-section {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sortfiltrs-contner .jobsearch-sort-section li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sortfiltrs-contner .jobsearch-filterable-select select,
.sortfiltrs-contner .selectize-control .selectize-input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    min-width: 160px;
}

/* --------------------------------------------------------------------------
   12. Empty State
   -------------------------------------------------------------------------- */

.edubridge-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
}

.edubridge-empty-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.edubridge-empty-state strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--eb-heading, #0d1b2a);
    margin-bottom: 8px;
}

.edubridge-empty-state span {
    display: block;
    font-size: 14px;
    color: var(--eb-body-muted, #6b7a99);
    margin-bottom: 20px;
}

.edubridge-empty-reset {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--eb-accent, #f4a226);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--eb-accent, #f4a226);
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.edubridge-empty-reset:hover {
    background: var(--eb-accent, #f4a226);
    color: #fff;
}

/* --------------------------------------------------------------------------
   14. Responsive: Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .edubridge-candidate-grid .jobsearch-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* --------------------------------------------------------------------------
   15. Responsive: Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .edubridge-candidate-grid .jobsearch-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .edubridge-card {
        padding: 20px;
    }

    .edubridge-card-name {
        font-size: 16px;
    }

    .sortfiltrs-contner .jobsearch-filterable {
        flex-direction: column;
        align-items: flex-start;
    }

    .sortfiltrs-contner .jobsearch-sort-section {
        flex-wrap: wrap;
        width: 100%;
    }

    .sortfiltrs-contner .jobsearch-sort-section li {
        flex: 1;
        min-width: 140px;
    }

    .sortfiltrs-contner .jobsearch-filterable-select select {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   16. RTL Support
   -------------------------------------------------------------------------- */

.rtl .edubridge-featured-card {
    border-left: none;
    border-right: 3px solid var(--eb-accent, #f4a226);
}

.rtl .edubridge-featured-card::before {
    left: auto;
    right: 0;
}

.rtl .edubridge-featured-badge {
    left: auto;
    right: 12px;
}

.rtl .listin-filters-sidebar .filter-post-count {
    text-align: left;
}

.rtl .listin-filters-sidebar .jobsearch-search-filter-toggle .jobsearch-fltbox-title a::after {
    float: left;
    margin-left: 0;
    margin-right: 8px;
}

/* RTL: search button position */
.rtl .edubridge-search-btn {
    right: auto;
    left: 4px;
}

.rtl .edubridge-search-input {
    padding: 0 12px 0 40px;
}

/* RTL: chevron in filter headers */
.rtl .listin-filters-sidebar .jobsearch-search-filter-toggle .jobsearch-fltbox-title a {
    flex-direction: row-reverse;
}

/* RTL: center alignment for stats/chips */
.rtl .edubridge-card-stats,
.rtl .edubridge-sector-chips,
.rtl .edubridge-card-meta {
    /* center alignment works for both directions;
       flex-direction stays row for these specific layouts */
}

/* RTL: filter footer */
.rtl .edubridge-filters-clear-bottom .fa {
    margin-left: 4px;
}

/* --------------------------------------------------------------------------
   17. Accessibility
   -------------------------------------------------------------------------- */

.edubridge-card:focus-within {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: 2px;
}

.edubridge-card a:focus-visible,
.edubridge-empty-reset:focus-visible,
.edubridge-card-actions a:focus-visible {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Reduced motion: disable hover lifts */
@media (prefers-reduced-motion: reduce) {
    .edubridge-card {
        transition: none;
    }

    .edubridge-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   18. Educator Profile – Cover Banner
   ========================================================================== */

.edubridge-profile-cover {
    position: relative;
    background: linear-gradient(135deg, #3a2061 0%, #2e174f 100%);
    background-size: cover;
    background-position: center;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 40px 0 24px;
    overflow: hidden;
}

.edubridge-profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.edubridge-profile-cover-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}

.edubridge-profile-photo {
    flex-shrink: 0;
}

.edubridge-profile-photo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.edubridge-profile-cover-text {
    color: #fff;
    padding-bottom: 6px;
}

.edubridge-profile-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.edubridge-profile-name .edubridge-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--eb-success, #4ecb71);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.edubridge-status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.edubridge-status--active {
    background: rgba(78, 203, 113, 0.2);
    color: #4ecb71;
}

.edubridge-status--passive {
    background: rgba(244, 162, 38, 0.2);
    color: #f4a226;
}

.edubridge-status--unavailable {
    background: rgba(107, 122, 153, 0.25);
    color: #b0b9cc;
}

.edubridge-profile-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 4px;
}

.edubridge-profile-location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 8px;
}

.edubridge-profile-location i {
    font-size: 13px;
    margin-right: 4px;
}

.edubridge-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.edubridge-profile-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   19. Educator Profile – Back Link & Nav
   -------------------------------------------------------------------------- */

.edubridge-profile-nav {
    background: #f8f9fb;
    border-bottom: 1px solid #e8ecf1;
    padding: 8px 0;
}

.edubridge-back-link {
    font-size: 14px;
    color: var(--eb-primary, #3a2061);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edubridge-back-link:hover {
    color: var(--eb-primary-dark, #2e174f);
}

.edubridge-back-link i {
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   20. Educator Profile – Layout
   -------------------------------------------------------------------------- */

.edubridge-profile-layout {
    margin-top: 24px;
}

/* --------------------------------------------------------------------------
   21. Educator Profile – Tab Navigation
   -------------------------------------------------------------------------- */

.edubridge-profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8ecf1;
    margin-bottom: 24px;
}

.edubridge-profile-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--eb-body-muted, #6b7a99);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    font-family: inherit;
}

.edubridge-profile-tab:hover {
    color: var(--eb-primary, #3a2061);
}

.edubridge-profile-tab.active {
    color: var(--eb-primary, #3a2061);
}

.edubridge-profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--eb-primary, #3a2061);
    border-radius: 1px;
}

.edubridge-profile-tab:focus-visible {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: -2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   22. Educator Profile – Tab Panels
   -------------------------------------------------------------------------- */

.edubridge-tab-panel {
    display: none;
}

.edubridge-tab-panel.active {
    display: block;
}

/* --------------------------------------------------------------------------
   23. Educator Profile – Right Sidebar
   -------------------------------------------------------------------------- */

.edubridge-profile-sidebar {
    /* sidebar column */
}

.edubridge-sidebar-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.edubridge-sidebar-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--eb-heading, #0d1b2a);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

/* Stats Grid (2×2) */
.edubridge-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.edubridge-stat-item {
    text-align: center;
    padding: 12px 8px;
    background: var(--eb-primary-light, rgba(58, 32, 97, 0.05));
    border-radius: 6px;
}

.edubridge-stat-item i {
    display: block;
    font-size: 18px;
    color: var(--eb-primary, #3a2061);
    margin-bottom: 4px;
}

.edubridge-stat-item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--eb-heading, #0d1b2a);
    line-height: 1.3;
}

.edubridge-stat-item span {
    font-size: 11px;
    color: var(--eb-body-muted, #6b7a99);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Action Buttons */
.edubridge-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edubridge-action-section {
    position: relative;
}

.edubridge-save-btn-wrap a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--eb-primary, #3a2061);
    color: var(--eb-primary, #3a2061);
    background: transparent;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.edubridge-save-btn-wrap a:hover {
    background: var(--eb-primary, #3a2061);
    color: #fff;
}

/* Make plugin CV/download buttons full-width & styled */
.edubridge-actions-card a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.edubridge-actions-card .jobsearch-cand-details-btns a,
.edubridge-actions-card a.jobsearch-candidate-save-btn,
.edubridge-actions-card a[class*="download"],
.edubridge-actions-card a[class*="cv"] {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 8px;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   24. Educator Profile – Gated Content Overlay
   -------------------------------------------------------------------------- */

.edubridge-gated-section {
    position: relative;
    min-height: 60px;
}

.edubridge-gated-section > *:not(.edubridge-gated-overlay) {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: 0.4;
}

.edubridge-gated-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    z-index: 5;
    padding: 16px;
    text-align: center;
}

.edubridge-gated-icon {
    font-size: 28px;
    margin-bottom: 6px;
    filter: grayscale(0.5);
    opacity: 0.7;
}

.edubridge-gated-overlay p {
    font-size: 14px;
    color: var(--eb-body-muted, #6b7a99);
    margin: 0 0 10px;
}

.edubridge-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    background: var(--eb-primary, #3a2061);
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.edubridge-btn:hover {
    background: var(--eb-primary-dark, #2e174f);
    color: #fff;
}

.edubridge-btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   25. Educator Profile – Contact Card
   -------------------------------------------------------------------------- */

.edubridge-contact-item {
    font-size: 14px;
    color: var(--eb-heading, #0d1b2a);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edubridge-contact-item i {
    color: var(--eb-primary, #3a2061);
    width: 16px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   26. Educator Profile – Social Links
   -------------------------------------------------------------------------- */

.edubridge-social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edubridge-social-links li {
    margin: 0;
    padding: 0;
}

.edubridge-social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--eb-primary-light, rgba(58, 32, 97, 0.08));
    color: var(--eb-primary, #3a2061);
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.edubridge-social-links li a:hover {
    background: var(--eb-primary, #3a2061);
    color: #fff;
}

/* --------------------------------------------------------------------------
   27. Educator Profile – Map Card
   -------------------------------------------------------------------------- */

.edubridge-map-card {
    padding: 0;
    overflow: hidden;
}

.edubridge-map-card > * {
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   28. Educator Profile – Hide Empty Overview
   -------------------------------------------------------------------------- */

/* Suppress the empty <ul> that renders when no meta data exists */
.jobsearch_candidate_info ul:empty {
    display: none;
}

/* Hide the "Educator Overview" heading if the following list is empty */
.jobsearch_candidate_info h2 + ul:empty {
    /* The h2 remains but is now harmless since list is gone */
}

/* --------------------------------------------------------------------------
   29. Educator Profile – Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .edubridge-profile-cover {
        min-height: 180px;
        padding: 30px 0 20px;
    }

    .edubridge-profile-photo img {
        width: 90px;
        height: 90px;
    }

    .edubridge-profile-name {
        font-size: 22px;
    }

    .edubridge-profile-title {
        font-size: 14px;
    }

    .edubridge-profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .edubridge-profile-tab {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .edubridge-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .edubridge-profile-cover-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .edubridge-profile-photo img {
        width: 80px;
        height: 80px;
    }

    .edubridge-profile-name {
        font-size: 20px;
        justify-content: center;
    }

    .edubridge-profile-cover {
        min-height: 160px;
        padding: 24px 0 20px;
    }

    .edubridge-profile-tags {
        justify-content: center;
    }

    .edubridge-profile-content,
    .edubridge-profile-sidebar {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .edubridge-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --------------------------------------------------------------------------
   30. Educator Profile – RTL Support
   -------------------------------------------------------------------------- */

.rtl .edubridge-profile-cover-inner {
    flex-direction: row-reverse;
}

.rtl .edubridge-back-link i {
    margin-right: 0;
    margin-left: 6px;
}

.rtl .edubridge-profile-tab.active::after {
    left: 0;
    right: 0;
}

.rtl .edubridge-profile-location i {
    margin-right: 0;
    margin-left: 4px;
}

.rtl .edubridge-contact-item i {
    margin-right: 0;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .rtl .edubridge-profile-cover-inner {
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   31. Educator Profile – Accessibility
   -------------------------------------------------------------------------- */

.edubridge-profile-tab:focus-visible {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: -2px;
}

.edubridge-gated-overlay .edubridge-btn:focus-visible {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: 2px;
}

/* ==========================================================================
   32. Institution Listing – Card Grid
   ========================================================================== */

.edubridge-employer-grid .jobsearch-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

.edubridge-employer-grid .jobsearch-row > li {
    width: 100%;
    padding: 0;
    float: none;
}

.edubridge-employer-grid .jobsearch-column-6 {
    width: 100%;
}

/* --------------------------------------------------------------------------
   33. Institution Card – Featured Override
   -------------------------------------------------------------------------- */

/* Featured institution card – amber top accent (overrides .edubridge-featured-card left border) */
.edubridge-employer-grid .edubridge-card.edubridge-featured-card {
    border-left: none;
    border-top: 3px solid var(--eb-accent, #f4a226);
}

.edubridge-employer-grid .edubridge-card.edubridge-featured-card::before {
    display: none;
}

/* --------------------------------------------------------------------------
   34. Open Positions Count
   -------------------------------------------------------------------------- */

.edubridge-job-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--eb-success, #4ecb71);
    margin-bottom: 12px;
    justify-content: center;
    width: 100%;
}

.edubridge-job-count .fa {
    font-size: 13px;
}

.edubridge-job-count .fa-briefcase {
    /* briefcase icon — already handled */
}

/* When no jobs, the line is simply not rendered (don't show "0 Open Positions") */

/* --------------------------------------------------------------------------
   35. Institution Card Actions (Follow + View Profile)
   -------------------------------------------------------------------------- */

.edubridge-employer-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}

.edubridge-employer-btn-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.edubridge-employer-btn-row a {
    flex: 1;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    line-height: 1.4;
    color: var(--eb-primary, #3a2061) !important;
}

/* Follow button — outline style */
.edubridge-employer-btn-row .jobsearch-employer-followin-btn,
.edubridge-employer-btn-row .employer-followin-btnaction,
.edubridge-employer-btn-row .employer-followed-already {
    border: 1px solid var(--eb-primary, #3a2061) !important;
    color: #fff !important;
    background: var(--eb-primary, #3a2061) !important;
}

.edubridge-employer-btn-row .jobsearch-employer-followin-btn:hover,
.edubridge-employer-btn-row .employer-followin-btnaction:hover {
    background: #fff !important;
    color: var(--eb-primary, #3a2061) !important;
}

.edubridge-employer-btn-row .employer-followed-already {
    background: var(--eb-primary-light, rgba(58, 32, 97, 0.08));
    border-color: transparent;
    color: var(--eb-primary, #3a2061);
}

/* View Profile button — primary solid */
.edubridge-view-profile-btn {
    background: var(--eb-primary, #3a2061);
    color: #fff !important;
    border: 1px solid var(--eb-primary, #3a2061);
}

.edubridge-view-profile-btn:hover {
    background: var(--eb-primary-dark, #2e174f);
    border-color: var(--eb-primary-dark, #2e174f);
    color: #fff !important;
}

/* Login redirect button */
.edubridge-employer-btn-row .jobsearch-open-signin-tab {
    border: 1px solid var(--eb-primary, #3a2061);
    color: var(--eb-primary, #3a2061);
    background: transparent;
}

.edubridge-employer-btn-row .jobsearch-open-signin-tab:hover {
    background: var(--eb-primary, #3a2061);
    color: #fff;
}

/* --------------------------------------------------------------------------
   36. Institution Filters – Search Input
   -------------------------------------------------------------------------- */

.edubridge-employer-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.edubridge-employer-search-input:focus {
    border-color: var(--eb-primary, #3a2061);
    box-shadow: 0 0 0 3px rgba(58, 32, 97, 0.1);
}

.edubridge-employer-search-input::placeholder {
    color: #9ca3af;
}

/* Search wrap — the container inside the filter toggle */
.edubridge-filter-section .jobsearch-search-filter-wrap-inner {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.edubridge-filter-section .jobsearch-search-filter-wrap-inner input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.edubridge-employer-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: var(--eb-primary, #3a2061);
    color: #fff;
    border: 1px solid var(--eb-primary, #3a2061);
    border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.edubridge-employer-search-btn:hover {
    background: var(--eb-primary-dark, #2e174f);
}

/* --------------------------------------------------------------------------
   37. Institution Filters – Footer Clear All
   -------------------------------------------------------------------------- */

.edubridge-filters-footer {
    text-align: center;
    padding: 10px 0 4px;
    border-top: 1px solid #e8ecf1;
    margin-top: 12px;
}

.edubridge-filters-footer .edubridge-filters-clear {
    color: var(--eb-accent, #f4a226);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.edubridge-filters-footer .edubridge-filters-clear:hover {
    color: var(--eb-accent-dark, #d4881a);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   38. Institution Listing – Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .edubridge-employer-grid .jobsearch-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .edubridge-employer-btn-row {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .edubridge-employer-grid .jobsearch-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .edubridge-employer-grid .edubridge-card {
        padding: 20px;
    }

    .edubridge-employer-grid .edubridge-card .edubridge-card-name {
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
   35. Institution Listing – RTL Support
   -------------------------------------------------------------------------- */

.rtl .edubridge-employer-grid .edubridge-card.edubridge-featured-card {
    border-top: 3px solid var(--eb-accent, #f4a226);
    /* Top border is direction-neutral */
}

.rtl .edubridge-employer-grid .edubridge-card .edubridge-card-location i {
    margin-right: 0;
    margin-left: 4px;
}

.rtl .edubridge-employer-search-input {
    border-radius: 0 6px 6px 0;
}

.rtl .edubridge-employer-search-btn {
    border-radius: 6px 0 0 6px;
    border-left: 1px solid var(--eb-primary, #3a2061);
    border-right: none;
}

/* --------------------------------------------------------------------------
   36. Institution Listing – Accessibility
   -------------------------------------------------------------------------- */

.edubridge-employer-grid .edubridge-card:focus-within {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: 2px;
}

.edubridge-employer-grid .edubridge-card a:focus-visible,
.edubridge-employer-search-input:focus-visible {
    outline: 2px solid var(--eb-primary, #3a2061);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .edubridge-employer-grid .edubridge-card {
        transition: none;
    }

    .edubridge-employer-grid .edubridge-card:hover {
        transform: none;
    }
}
