body {
    background-color: aliceblue !important;
}

.tracking-wider {
    letter-spacing: 1px;
}

.extra-small {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.fw-600 {
    font-weight: 600;
}

/* View Toggle Styling */
.view-mode-toggle {
    border: 1px solid #e2e8f0;
}

.view-mode-toggle .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 13px;
    transition: all 0.2s;
}

.view-mode-toggle .btn-icon.active {
    background: #ffffff;
    color: #3182ce;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Visual Divider */
.control-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 5px;
}

/* Select Styling */
.select-wrapper .form-select {
    padding-right: 30px;
    cursor: pointer;
    color: #2d3748;
}

.select-wrapper .form-select:hover {
    background-color: #edf2f7;
}

.rounded-lg {
    border-radius: 12px !important;
}

.border-light {
    border: 1px solid #f1f5f9;
}

.view-switch .btn.active {
    background: #3182ce;
    color: #fff;
}

/* =====================
                                                                               GRID VIEW (DEFAULT)
                                                                            ===================== */
.expert-results.grid-view .expert-col {
    display: block;
}

/* =====================
                                                                               LIST VIEW
                                                                            ===================== */
.expert-results.list-view .expert-col {
    flex: 0 0 100%;
    max-width: 100%;
}

.expert-results.list-view .expert-compact-card {
    flex-direction: row;
    align-items: stretch;
}

.expert-results.list-view .card-body-wrapper {
    flex: 1;
    align-items: center;
}

.expert-results.list-view .side-profile {
    min-width: 110px;
}

.expert-results.list-view .card-action-bar {
    border-top: none;
    border-left: 1px solid #edf2f7;
    min-width: 160px;
}

/* Smooth UX */
.expert-results,
.expert-compact-card {
    transition: all 0.25s ease;
}

.expert-compact-card {
    background: #ffffff;
    border: 1px solid #d5e6ff91;
    border-radius: 12px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 4px 6px 14px rgba(49, 130, 206, 0.08);
}

.expert-compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 10px 22px rgba(49, 130, 206, 0.14);
    border-color: #3182ce;
}

.card-body-wrapper {
    display: flex;
    padding: 16px;
    gap: 16px;
}

/* Profile */
.side-profile {
    text-align: center;
}

.avatar-frame {
    width: 75px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    background: #f7fafc;
    margin-left: 14%;
}

.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-id-pill {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.filter-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 0 5px 5px 0;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.filter-tag:hover {
    background: #e2e8f0;
    color: #ef4444;
}

.extra-small {
    font-size: 10px;
}

.side-info {
    flex-grow: 1;
    min-width: 0;
}

.expert-name-link a {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
}

.expert-name-link a:hover {
    color: #3182ce;
}

.expert-role {
    font-size: 13px;
    font-weight: 600;
    color: #3182ce;
    margin-bottom: 8px;
}

.meta-row {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}

/* Footer */
.card-action-bar {
    border-top: 1px solid #f1f5f9;
    background: #fbfcfd;
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    /* horizontal center */
    align-items: center;
}


.action-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #718096;
    display: flex;
    gap: 6px;
}

.expert-compact-card:hover .action-link {
    color: #3182ce;
}

/* =========================
                                                                                                                                                               FILTER SIDEBAR (NEW)
                                                                                                                                                            ========================= */

.filter-widget {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e5efff;
    box-shadow: 4px 6px 14px rgba(49, 130, 206, 0.08);
}

.filter-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #1e293b;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 8px;
}

/* Accordion */
.filter-accordion .accordion-item {
    border: none;
    margin-bottom: 10px;
}

.filter-accordion .accordion-button {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    background: none;
    box-shadow: none;
}

.filter-accordion .accordion-button:not(.collapsed) {
    color: #3182ce;
}

.filter-accordion .accordion-body {
    padding: 6px 0;
}

/* Filter List */
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}

.filter-item:hover {
    background: #f1f5ff;
}

.filter-item input {
    margin-right: 6px;
}

.filter-count {
    color: #64748b;
    font-size: 12px;
}

/* ELEGANT CARD BASE */
.exp-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.05);
    border-color: #3182ce;
}

.exp-card-body {
    display: flex;
    padding: 20px;
    gap: 15px;
}

/* Photo Squircle */
.exp-avatar-wrapper {
    width: 85px;
    text-align: center;
    flex-shrink: 0;
}

.exp-squircle {
    width: 85px;
    height: 85px;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.exp-squircle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status Pill */
.exp-status-pill {
    background: #e6fffa;
    color: #2c7a7b;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Typography */
.exp-title a {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
}

.exp-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #3182ce;
    text-transform: uppercase;
    margin: 4px 0 12px 0;
}

.exp-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 4px;
}

.exp-meta-item i {
    color: #cbd5e0;
    width: 14px;
}

/* ==========================================
   LIST VIEW UPGRADE (THE ELEGANT SWITCH)
   ========================================== */
@media (min-width: 992px) {
    .exp-view-wrapper.list-view .exp-col {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .exp-view-wrapper.list-view .exp-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-right: 20px;
    }

    .exp-view-wrapper.list-view .exp-card-body {
        flex: 1;
        align-items: center;
        gap: 30px;
    }

    .exp-view-wrapper.list-view .exp-card-footer {
        border-top: none;
        background: transparent;
        padding: 0;
    }

    .exp-view-wrapper.list-view .exp-action-link {
        background: #f7fafc;
        padding: 10px 20px;
        border-radius: 12px;
        border: 1px solid #edf2f7;
    }
}

/* ==========================================
   ELEGANT PAGINATION CSS
   ========================================== */
.exp-pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    justify-content: center;
}

.exp-page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.exp-active .exp-page-link {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.exp-page-link:hover:not(.exp-active .exp-page-link) {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

/* ELEGANT GRID WORKAROUND */

.exp-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(49, 130, 206, 0.1);
    border-color: #3182ce;
}

.exp-card-header {
    display: flex;
    padding: 24px 20px 15px 20px;
    gap: 15px;
    align-items: center;
}

/* Avatar Styling */
.exp-avatar-wrapper {
    width: 75px;
    flex-shrink: 0;
}

.exp-squircle {
    width: 75px;
    height: 75px;
    border-radius: 22px;
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.exp-squircle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-id-badge {
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Header Text */
.exp-header-text {
    min-width: 0;
}

.exp-status-pill {
    background: #f0fff4;
    color: #2f855a;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}

.exp-title {
    margin-top: 6px;
    margin-bottom: 2px;
}

.exp-title a {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exp-subtitle {
    font-size: 12px;
    color: #3182ce;
    font-weight: 600;
    margin: 0;
}

/* Meta Grid */
.exp-meta-grid {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 12px;
}

.exp-meta-item {
    position: relative;
    padding-left: 28px;
}

.exp-meta-item i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #cbd5e1;
    font-size: 16px;
}

.exp-meta-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    /* text-transform: uppercase; */
}

.exp-meta-value {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.exp-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
}

.exp-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-experience {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.exp-action-btn {
    font-size: 11px;
    font-weight: 800;
    color: #3182ce;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.exp-action-btn:hover {
    color: #2b6cb0;
    gap: 8px;
}

/* RE-ENABLE LIST VIEW OVERRIDE */
@media (min-width: 992px) {
    .exp-view-wrapper.list-view .exp-col {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .exp-view-wrapper.list-view .exp-card {
        flex-direction: row;
        padding: 15px;
    }

    .exp-view-wrapper.list-view .exp-card-header {
        padding: 0;
        border: none;
    }

    .exp-view-wrapper.list-view .exp-card-body {
        padding: 0 !important;
        flex-grow: 1;
        margin: 0 30px;
    }

    .exp-view-wrapper.list-view .exp-meta-grid {
        background: transparent;
        padding: 0;
        grid-template-columns: 1fr 1fr;
    }

    .exp-view-wrapper.list-view .exp-card-footer {
        border: none;
        padding: 0;
    }
}

/* ALIGNMENT-OPTIMIZED DIRECTORY CSS */

.exp-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.exp-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #3182ce;
}

/* Internal Layout: Side-by-Side */
.exp-card-body-main {
    display: flex;
    padding: 20px;
    gap: 18px;
    align-items: flex-start;
    /* Aligns photo and name to the top line */
}

/* Photo Side */
.exp-avatar-side {
    width: 80px;
    flex-shrink: 0;
}

.exp-squircle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.exp-squircle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-id-box {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    margin-top: 10px;
    text-align: center;
}

/* Info Side */
.exp-info-side {
    flex: 1;
    min-width: 0;
    /* Prevents overflow */
}

.exp-title {
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.exp-title a {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exp-role-text {
    font-size: 13px;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 12px;
}

.exp-meta-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exp-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.exp-meta-row i {
    color: #cbd5e0;
    width: 14px;
    text-align: center;
}

.exp-meta-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action Footer */
.exp-card-action-footer {
    margin-top: auto;
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fbfcfd;
    border-radius: 0 0 16px 16px;
}

.exp-year-text {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.exp-link {
    font-size: 11px;
    font-weight: 800;
    color: #718096;
    text-decoration: none;
    text-transform: uppercase;
}

.exp-card:hover .exp-link {
    color: #3182ce;
}

/* --- GLOBAL REFINEMENT --- */
body {
    background-color: #f0f7ff !important;
    font-family: 'Inter', sans-serif;
}

.fw-black {
    font-weight: 900;
}

/* Pagination */
.sticky-pagination-container {
    position: relative;
    width: 100%;
    /* Ensure there's a little space at the very bottom */
    padding-bottom: 10px;
}

.sticky-pagination-bar {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Optional: Glassmorphism effect or solid white */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    border-top: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.sticky-pagination-bar.shadow-lg {
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05) !important;
}

.gamified-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.gamified-pagination li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4a5568;
    background: #f7fafc;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

/* --- GAMIFIED SEARCH BAR --- */
.gamified-search-bar {
    background: #fff;
    border-radius: 50px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(49, 130, 206, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.gamified-search-bar:focus-within {
    border-color: #3182ce;
    transform: scale(1.02);
}

.pulse-btn {
    border-radius: 50px !important;
    background: linear-gradient(135deg, #1a4354, #2c6e84) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.85rem;
    padding: 12px 45px !important;
    box-shadow: 0 4px 15px rgba(26, 67, 84, 0.2), 0 0 10px rgba(76, 171, 184, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative;
    overflow: hidden;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.pulse-btn:hover::after {
    left: 100%;
}

/* --- GAMIFIED SIDEBAR --- */
.filter-widget {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.filter-title {
    font-size: 11px;
    font-weight: 900;
    color: #3182ce;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.filter-item-gamified {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}

.filter-item-gamified:hover {
    background: #f0f7ff;
    color: #3182ce;
}

.filter-item-gamified .count {
    background: #edf2f7;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* --- THE CARD: PERFECT ALIGNMENT --- */
.gamified-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #edf2f7 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.gamified-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
    border-color: #3182ce !important;
}

.exp-card-body-main {
    display: flex;
    padding: 24px;
    gap: 20px;
    align-items: flex-start;
}

.exp-avatar-side {
    width: 85px;
    flex-shrink: 0;
    text-align: center;
}

.exp-squircle {
    width: 85px;
    height: 85px;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    transition: 0.5s;
}

.gamified-card:hover .exp-squircle {
    border-radius: 50%;
    transform: rotate(-10deg);
}

.exp-squircle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-info-side {
    flex: 1;
    min-width: 0;
}

.exp-title a {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
}

.exp-role-text {
    font-size: 14px;
    font-weight: 700;
    color: #3182ce;
    /* text-transform: uppercase; */
    margin-bottom: 12px;
}

.exp-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.exp-meta-row i {
    width: 16px;
    color: #cbd5e0;
}

.exp-card-action-footer {
    padding: 15px 24px;
    background: #fbfcfd;
    border-top: 1px solid #f1f5f9;
    border-radius: 0 0 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-link-gamified {
    font-size: 11px;
    font-weight: 900;
    color: #64748b;
    text-decoration: none;
    transition: 0.3s;
}

.exp-card:hover .exp-link-gamified {
    color: #3182ce;
    letter-spacing: 1px;
}

/* --- GAMIFIED PAGINATION --- */
/* Hover effect for non-active items */
.gamified-pagination li:not(.active):not(.disabled) a:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
    border-color: #cbd5e0;
}

/* HIGH-INTENSITY ACTIVE STATE */
.gamified-pagination li.active a {
    background: #3182ce;
    color: white;
}

.gamified-pagination li.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.sticky-pagination-footer {
    position: sticky;
    bottom: 20px;
    /* Floating slightly above the bottom */
    z-index: 1050;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 100%;
}

.sticky-bar-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    /* Rounded pill look */
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .sticky-pagination-footer {
        position: relative;
        bottom: 0;
    }
}

@keyframes activePulse {
    0% {
        box-shadow: 0 10px 20px rgba(49, 130, 206, 0.4);
    }

    50% {
        box-shadow: 0 10px 25px rgba(49, 130, 206, 0.7);
    }

    100% {
        box-shadow: 0 10px 20px rgba(49, 130, 206, 0.4);
    }
}

.record-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
}

.record-counter span {
    color: #2d3748;
    /* Darker color for the numbers */
}

.record-counter {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
}

/* Make the specific numbers pop with a highlight background */
.record-counter strong {
    background: #ebf8ff;
    /* Light blue tint */
    color: #2b6cb0;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 2px;
    font-weight: 800;
}

.sticky-pagination-bar {
    border-top: 2px solid #3182ce !important;
    /* Top accent line */
    backdrop-filter: blur(10px);
    /* Modern frosted glass look */
    background: rgba(255, 255, 255, 0.9) !important;
}

/* --- ADVANCED PILL STACK --- */
.advanced-pill-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.adv-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(241, 245, 249, 0.5);
    /* Semi-transparent base */
    padding: 4px 12px 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
    overflow: hidden;
}

/* The "Accent" indicator */
.adv-pill-accent {
    width: 4px;
    height: 12px;
    background: #3182ce;
    border-radius: 10px;
    margin-right: 8px;
    transition: all 0.4s ease;
}

.adv-pill-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* --- INTERACTIVE STATE --- */
.gamified-card:hover .adv-pill {
    background: #ffffff;
    border-color: #3182ce;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.1);
    transform: translateX(3px);
}

.gamified-card:hover .adv-pill-accent {
    height: 100%;
    position: absolute;
    left: 0;
    width: 3px;
    margin-right: 0;
    border-radius: 0;
}

.gamified-card:hover .adv-pill-text {
    padding-left: 6px;
    /* Shift text to make room for absolute accent */
    color: #1e293b;
}

/* --- LOCATION REFINEMENT --- */
.loc-icon-bg {
    width: 22px;
    height: 22px;
    background: #f0f7ff;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

.loc-icon-bg i {
    font-size: 0.7rem;
    color: #3182ce;
}

.loc-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0px;
}

.adv-pill-more {
    font-size: 0.7rem;
    font-weight: 800;
    color: #cbd5e1;
    background: #f8fafc;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* ==========================================================================
   INTERNAL STYLES CONSOLIDATED FROM profile_list.blade.php
   ========================================================================== */

/* --- Base Font Standard --- */
body, .filter-panel, .sidebar-area, .results-header-wrapper,
.filter-item-label, .filter-count-pill, .accordion-button,
.filter-title-text, .active-filter-tag, input, button {
    font-family: 'Roboto', sans-serif !important;
}

/* --- Sidebar Card Wrapper --- */
.filter-panel {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8f4f6;
    box-shadow: 0 4px 20px rgba(26, 67, 84, 0.06);
    overflow: hidden;
}

/* --- Filter Header Bar --- */
.filter-panel-header {
    background: linear-gradient(135deg, #1a4354, #2c6e84);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-panel-header .filter-title-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}
.filter-panel-header .filter-reset-link {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.filter-panel-header .filter-reset-link:hover {
    color: #ff6b6b;
}

/* --- Active Filter Tags --- */
.active-filter-bar {
    padding: 12px 16px;
    background: #f8fdfe;
    border-bottom: 1px solid #e8f4f6;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e6f6f8;
    color: #1a4354;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #c5e8ec;
    transition: all 0.2s;
}
.active-filter-tag:hover {
    background: #ffeaea;
    color: #c0392b;
    border-color: #f5c6c6;
}

/* --- Remove Bootstrap accordion defaults --- */
.filter-accordion .accordion-item {
    border: none !important;
    border-bottom: 1px solid #f0f7f9 !important;
    background: transparent !important;
}
.filter-accordion .accordion-item:last-child {
    border-bottom: none !important;
}
.filter-accordion .accordion-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 13px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #1a4354 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.2s !important;
}
.filter-accordion .accordion-button:hover {
    background: #f4fbfc !important;
}
.filter-accordion .accordion-button:not(.collapsed) {
    color: #1a4354  !important;
    background: #f0fafc !important;
}
.filter-accordion .accordion-button::after {
    display: none !important;
}

/* --- Section Icon --- */
.flt-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #e8f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #1a4354 ;
    transition: all 0.2s;
}
.filter-accordion .accordion-button:not(.collapsed) .flt-icon {
    background: #1a4354 ;
    color: #ffffff;
}

/* --- Label grows to fill space --- */
.flt-label { flex: 1; }

/* --- Animated Chevron --- */
.flt-chevron {
    font-size: 0.75rem;
    color: #aac8d0;
    transition: transform 0.3s ease, color 0.2s;
    flex-shrink: 0;
}
.filter-accordion .accordion-button:not(.collapsed) .flt-chevron {
    transform: rotate(180deg);
    color: #1a4354 ;
}

/* --- Accordion Body --- */
.filter-accordion .accordion-body {
    padding: 6px 16px 14px 16px !important;
}

/* --- Filter List Scrollbar --- */
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1a4354  #f0f7f9;
}
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-track { background: #f0f7f9; }
.filter-list::-webkit-scrollbar-thumb { background: #1a4354 ; border-radius: 10px; }

.filter-list li { margin-bottom: 2px; }

/* --- Custom Checkbox Row --- */
.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
    gap: 8px;
}
.filter-item:hover { background: #f4fbfc; }
.filter-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #1a4354 ;
    flex-shrink: 0;
    cursor: pointer;
}
.filter-item-label {
    font-size: 0.8rem;
    color: #3a5a68;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-count-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6a9caa;
    background: #eef7f9;
    border-radius: 20px;
    padding: 1px 7px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
.filter-item input:checked ~ .filter-item-label {
    color: #1a4354;
    font-weight: 700;
}

/* --- Discover Button & Pulsing Effects --- */
.pulse-btn:hover {
    background: linear-gradient(135deg, #2c6e84, #3a8da8) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(26, 67, 84, 0.35);
    color: #ffffff !important;
}

.pulse-btn:active {
    transform: translateY(0) scale(0.98);
}

/* --- Gamified Pagination --- */
.gamified-pagination {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.gamified-pagination li a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e8f4f6;
    border-radius: 10px;
    color: #1a4354;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.gamified-pagination li.active a {
    background: #1a4354 !important;
    color: #ffffff !important;
    border-color: #1a4354 !important;
    box-shadow: 0 4px 12px rgba(26, 67, 84, 0.2) !important;
}
.gamified-pagination li:not(.active):not(.disabled) a:hover {
    background: #f0fafc;
    border-color: #1a4354;
    color: #1a4354;
    transform: translateY(-2px);
}
.gamified-pagination li.disabled a {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Search Bar Focus Overrides --- */
.gamified-search-bar .form-control,
.gamified-search-bar .form-control:focus,
.gamified-search-bar .form-control:active {
    outline: 0 !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-box-shadow: none !important;
}
.gamified-search-bar.input-group:focus-within,
.gamified-search-bar:focus-within {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
}
.gamified-search-bar .input-group-text {
    border: none !important;
    outline: none !important;
}
.gamified-search-bar .btn:focus,
.gamified-search-bar .btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   SEMANTIC CLASSES FOR INLINE STYLES
   ========================================================================== */

.search-hero-section {
    background: linear-gradient(135deg, #1a4354 0%, #2c6e84 100%);
    padding: 28px 0 22px;
    position: relative;
    overflow: hidden;
}

.search-hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(76,171,184,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.search-hero-container-inner {
    position: relative;
    z-index: 1;
}

.hero-subtitle-text {
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 4px;
}

.hero-main-title-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.hero-title-accent-teal {
    color: #4cabb8;
}

.search-input-icon-wrapper {
    color: #4cabb8;
    background-color: transparent !important;
    border: none !important;
    padding-left: 25px !important;
}

.search-input-icon-size {
    font-size: 1.1rem;
}

.search-input-field-custom {
    font-size: 0.95rem;
    color: #1a4354;
}

.directory-main-bg-section {
    background-color: aliceblue !important;
}

.sidebar-sticky-offset-top {
    top: 20px;
    z-index: 100;
}

.active-filter-tag-search-icon {
    font-size: 0.6rem;
}

.active-filter-tag-close-icon {
    font-size: 0.55rem;
    opacity: 0.6;
}

.results-matched-total-suffix {
    font-size: 0.85rem;
}

.exp-meta-row-university {
    font-size: 14px;
}

.exp-meta-row-location {
    font-size: 13px;
    opacity: 0.8;
}
