/* wb-teams.css - Team listing styles */

/* ========== LAYOUT ========== */
.wb-teams-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .wb-teams-layout {
        grid-template-columns: 100%;
    }
}

/* ========== SIDEBAR ========== */
.wb-teams-sidebar {
    border-radius: 12px;
    background: #fff;
    padding: 20px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.wb-teams-sidebar h3 {
    margin: 0 0 15px;
    font-size: 18px;
}

.wb-teams-sidebar label {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.wb-team-filter {
    margin-top: 2px;
}

.wb-filter-search-box {
    width: 100%;
}

/* Close button inside header */
.wb-filter-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.wb-filter-back-btn:hover {
    color: #1a202c;
}

.wb-filter-back-btn i {
    font-size: 18px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .wb-filter-back-btn {
        display: inline-block;
    }

    .wb-teams-filter-panel .widget {
        background: #fafafa;
        padding: 10px 20px;
    }

    .wb-teams-filter-panel .wb-filter-by-header {
        margin-bottom: 0;
        padding-bottom: 0;
        border: none;
    }

    /* .wb-teams-filter-panel .wb-filter-by-header.active{
        margin-bottom: 20px;
        border-bottom: 1px solid var(--bb-content-border-color);
        padding-bottom: 15px;
    } */

    .wb-teams-filter-panel .wb-filter-accordion-item {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .wb-teams-filter-panel .wb-filter-accordion-item.active {
        opacity: 1;
        max-height: 100%;
        margin-top: 20px;
        border-top: 1px solid var(--bb-content-border-color);
        padding-top: 15px;
    }

    .wb-filter-by-header h3:after {
        content: '\eef9';
        font-family: bb-icons;
        font-style: normal;
        line-height: 1em;
        width: 1em;
        font-weight: 400;
    }

    .wb-filter-by-header.active h3:after {
        content: '\eed8';
    }

}

@media (min-width: 769px) {
    .wb-filter-back-btn {
        display: none;
    }
}


/* ========== GRID ========== */
.wb-teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


@media (max-width: 1024px) {
    .wb-teams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .wb-teams-layout {
        flex-wrap: wrap;
    }

    .wb-teams-layout .wb-teams-filter-panel {
        max-width: 100%;
        width: 100%;
    }

}

/* ========== TEAM CARD ========== */
.wb-new-team-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wb-new-team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* Left side - Photo */
.wb-team-left {
    flex-shrink: 0;
    flex-basis: 120px;
}

.wb-team-photo {
    width: 90px;
    height: 90px;
    border-radius: 100%;
    overflow: hidden;
    margin: auto;
}

.wb-team-photo .wb-team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right side - Content */
.wb-team-content {
    flex: 1;
}

.wb-team-position {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9aa3b2;
    margin-bottom: 6px;
}

.wb-team-title {
    margin-bottom: 5px;
}

.wb-team-subheading {
    display: flex;
    flex-wrap: wrap;
    /* gap: 8px; */
    /* margin-bottom: 10px; */
    justify-content: center;
    margin-bottom: -16px;
    top: -5px;
    position: relative;
    text-align: center;
}

.wb-team-cat-badge {
    font-size: 13px;
    color: var(--bb-label-text-color);
    background-color: var(--bb-label-background-color);
    border-radius: var(--bb-label-type-radius);
    font-weight: 500;
    display: inline-block;
    padding: 5px 15px;
    line-height: 1.3;
}

.wb-team-cat-desc {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    font-style: italic;
}

.wb-team-excerpt {
    font-size: 15px;
    line-height: 1.5;
}

.wb-team-read-more {
    margin-top: 20px;
    display: inline-block;
    padding: 0px;
    border-radius: 0px;
    border: none;
    background: none;
    color: var(--bb-primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none !important;
}

.wb-team-read-more:hover {
    background: none;
    color: var(--bb-primary-color);
}


/* ========== PAGINATION ========== */
.wb-pagination {
    margin-top: 30px;
    text-align: center;
}

.wb-pagination .wb-page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.wb-pagination .wb-current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ========== POPUP ========== */
.wb-team-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.wb-team-popup[aria-hidden="false"] {
    display: flex;
}


.wb-team-popup-inner {
    background: #fff;
    width: 700px;
    max-width: 100%;
    max-height: 90vh;
    padding: 40px 0;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(15, 23, 42, 0.35);
}

.wb-popup-content {
    width: 700px;
    max-width: 100%;
    max-height: 80vh;
    padding: 28px 26px;
    padding-top: 0px;
    border-radius: 14px;
    position: relative;
    overflow-y: auto;
}

.wb-popup-close {
    position: absolute;
    top: 5px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    background: #FFF !important;
    border: none;
    color: #666;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s ease;
    z-index: 1;
}

.wb-popup-close:hover {
    color: #000;
}

.wb-popup-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a202c;
}

.wb-popup-subheading {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.wb-popup-thumb {
    margin-bottom: 15px;
}

.wb-popup-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.wb-popup-position {
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.wb-popup-content-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.wb-popup-content-text p {
    margin-bottom: 15px;
}

/* ========== MOBILE FILTER BUTTON ========== */
.wb-mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .wb-mobile-filter-btn {
        display: block;
    }
}

/* ========== FILTER PANEL ========== */
.wb-teams-filter-panel {
    max-width: 260px;
    width: 100%;
}

.wb-teams-filter-panel .widget label {
    display: flex;
    margin: 0;
}


/* ========== PANEL HEADER ========== */
.wb-filter-panel-header {
    display: none;
    justify-content: flex-end;
    padding: 12px;
    background: #fff;
}


/* ========== FILTER SECTIONS ========== */
.wb-filter-section {
    padding: 15px;
}

.wb-filter-by-header {
    display: flex;
    justify-content: space-between;
    padding: 0;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bb-content-border-color);
    padding-bottom: 15px;
}

.wb-filter-by-header h3 {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wb-filter-checkbox-list {
    margin-top: 20px;
}

.wb-accordion-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin: 12px auto;
    padding: 10px 16px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all .35s ease;
}

/* ============= Modern Filter Checkbox UI (Pink Style) ============= */

/* Hide default checkbox */
.wb-filter-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Hover state */
.wb-filter-checkbox input[type="checkbox"]:hover {
    border-color: var(--bb-header-links-hover);
}

/* When checked - Pink background */
.wb-filter-checkbox input[type="checkbox"]:checked {
    background: var(--bb-header-links-hover);
    /* Pink */
    border-color: var(--bb-header-links-hover);
}

/* Tick mark */
.wb-filter-checkbox input[type="checkbox"]:checked::after {
    content: '\e876';
    font-family: bb-icons;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    position: absolute;
    top: 0;
    left: 0;
}

/* Text next to checkbox */
.wb-filter-checkbox span {
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
}

/* Checkbox container */
.wb-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}