body {

    &.dashboard {

        #app {
            overflow-x: unset !important; 
        }
    }
}

.text-xs {
    font-size:0.875rem;
}
.text-sm {
    font-size:1rem;
}
.truncate-bio {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

/*
.truncate-bio:hover {
    display: block;
}
*/

.comment-wrapper P {
    margin-bottom: 1rem;
}

.breadcrumb-container {
    display: none !important;
}

.avatar-wrapper {
    align-items: center;
    display: flex;
}

.photo-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
    margin-right: 1rem; 
}

.mentor-card {
    transition: all 1s;
}

.mentor-card--enter {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
}

.mentor-card--enter.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mentor-card--enter,
    .mentor-card--enter.is-visible {
        transition: none;
        transform: none;
    }
}

.card-img-rounded {
    border-radius: 100% !important;
}

/* Search filters */ 
[aria-expanded="false"] .closed {
  display: none;
}

[aria-expanded="true"] .open {
  display: none;
}

.search-item .card-title {
    font-size: 1.5rem;
}

.search-item .card-body:hover .card-header {
    /*
    display: block !important;
    transition: all .5s ease-out;
    opacity: 0.95 !important;
    height: 100%;
    */
}

#btns-select-values .btn-outline-primary:hover,
#btns-select-interests .btn-outline-primary:hover {
    background-color: var(--bs-grey-light);
    color: var(--bs-primary);
}

/* SUBNAV */
.mentor-subnav {
    margin-bottom: 2rem;
}

@media (min-width: 1200px){
    .mentor-subnav .wp-block-button,
    .mentor-subnav .wp-block-button a {
        width: 100%;
    }
}

/* DRAWER STYLES */
.mentor-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mentor-drawer--open {
    visibility: visible;
    opacity: 1;
}

.mentor-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.mentor-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mentor-drawer--open .mentor-drawer__panel {
    transform: translateX(0);
}

.mentor-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.mentor-drawer__back {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    visibility: hidden;
}

.mentor-drawer__back.is-visible {
    visibility: visible;
}

.mentor-drawer__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.mentor-drawer__close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.mentor-drawer__close:hover {
    color: #000;
}

.mentor-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.mentor-drawer__profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mentor-drawer__image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Sticky mentor search form */
@media (min-width: 1340px) {
    #mentor_search_form {
        position: sticky;
        top: calc(var(--wp-admin--admin-bar--height, 0px));
        z-index: 20;
    }
}
.mentor-drawer__image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #b8d432;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.mentor-drawer__name {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.mentor-drawer__section {
    margin-bottom: 2rem;
}

.mentor-drawer__section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.mentor-drawer__bio {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.mentor-drawer__location {
    margin: 0;
    color: #555;
}

.mentor-drawer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mentor-drawer__tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: #b8d432;
    color: #000;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.mentor-drawer__tag--secondary {
    background-color: #6c757d;
    color: #FFF;

}

.mentor-drawer__actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.mentor-drawer__actions .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .mentor-drawer__panel {
        max-width: 100%;
    }
    
    .mentor-drawer__profile-header {
        flex-direction: column;
        text-align: center;
    }
}
