/* ================================================
   KIMA Team Section - Split View Immersive
   ================================================ */

/* === SECTION CONTAINER === */
.kima-team-section-split {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Section Header */
.kima-team-section-split .sec-heading {
    margin-bottom: 60px;
}

/* === SPLIT VIEW CONTAINER === */
.team-split-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    min-height: 800px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(10, 25, 41, 0.38);
}

/* === LEFT SIDEBAR === */
.team-sidebar {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-right: 1px solid rgba(108, 115, 125, 0.12);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 20px;
    max-height: 90vh;
}

/* Custom Scrollbar */
.team-sidebar::-webkit-scrollbar {
    width: 6px;
}

.team-sidebar::-webkit-scrollbar-track {
    background: rgba(108, 115, 125, 0.05);
    border-radius: 10px;
}

.team-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 117, 255, 0.3);
    border-radius: 10px;
}

.team-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 117, 255, 0.5);
}

/* === SEARCH BOX === */
.team-search {
    position: relative;
    margin-bottom: 30px;
}

.team-search-input {
    width: 100%;
    padding: 14px 45px 14px 18px;
    border: 1px solid rgba(108, 115, 125, 0.2);
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #0a1929;
    background: #ffffff;
    transition: all 0.3s ease;
}

.team-search-input:focus {
    outline: none;
    border-color: #0075ff;
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.1);
}

.team-search-input::placeholder {
    color: #6c757d;
}

.team-search i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

/* === TEAM LIST GROUPS === */
.team-list-group {
    margin-bottom: 32px;
}

.team-group-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

/* Partners icon color */
.team-list-group:first-of-type .group-icon i {
    color: #D4A574;
}

/* Experts icon color */
.team-list-group:nth-of-type(2) .group-icon i {
    color: #0075ff;
}

/* Team icon color */
.team-list-group:nth-of-type(3) .group-icon i {
    color: #6c757d;
}

/* === TEAM LIST ITEMS === */
.team-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.team-list-item:hover {
    background: rgba(0, 117, 255, 0.06);
}

.team-list-item.active {
    background: linear-gradient(135deg, #0075ff 0%, #599eff 100%);
    box-shadow: 0 4px 12px rgba(0, 117, 255, 0.25);
}

/* Avatar */
.list-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.team-list-item.active .list-item-avatar {
    border-color: #ffffff;
}

.list-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.list-item-info {
    flex: 1;
    min-width: 0;
}

.list-item-name {
    display: block;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0a1929;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.team-list-item.active .list-item-name {
    color: #ffffff;
}

.list-item-title {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.team-list-item.active .list-item-title {
    color: rgba(255, 255, 255, 0.9);
}

/* Indicator */
.list-item-indicator {
    flex-shrink: 0;
    color: #6c757d;
    transition: all 0.3s ease;
    opacity: 0;
}

.team-list-item:hover .list-item-indicator {
    opacity: 0.5;
}

.team-list-item.active .list-item-indicator {
    opacity: 1;
    color: #ffffff;
    transform: translateX(4px);
}

/* === RIGHT DETAIL PANEL === */
.team-detail-panel {
    background: #ffffff;
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

/* Custom Scrollbar */
.team-detail-panel::-webkit-scrollbar {
    width: 8px;
}

.team-detail-panel::-webkit-scrollbar-track {
    background: rgba(108, 115, 125, 0.05);
}

.team-detail-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 117, 255, 0.3);
    border-radius: 10px;
}

.team-detail-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 117, 255, 0.5);
}

/* === DETAIL CONTENT === */
.team-detail-content {
    display: none;
    opacity: 0;
    animation: fadeInDetail 0.5s ease forwards;
}

.team-detail-content.active {
    display: block;
}

@keyframes fadeInDetail {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === PHOTO SECTION === */
.detail-photo-section {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.detail-photo-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, #edf3fb 64%, #d7e2f3 100%);
}

/* Background Image - Blurred */
.detail-photo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(10px);
    transform: scale(1.1);
    z-index: 0;
}

.detail-photo-brand-bg {
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 12px 30px rgba(0, 56, 168, 0.26));
    transform: scale(0.9);
    opacity: 0.45;
    padding: 28px;
}

/* Circular Profile Image - Centered */
.detail-photo-circle {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 30px rgba(10, 25, 41, 0.4);
    z-index: 2;
}

/* Photo Overlay Gradient */
.detail-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 25, 41, 0.08) 0%,
        rgba(10, 25, 41, 0.16) 70%,
        rgba(10, 25, 41, 0.24) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* === ROLE BADGE === */
.detail-role-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Partner Badge */
.detail-role-badge.partner-badge {
    background: rgba(212, 165, 116, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Expert Badge */
.detail-role-badge.expert-badge {
    background: rgba(0, 117, 255, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Member Badge */
.detail-role-badge.member-badge {
    background: rgba(108, 115, 125, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === INFO SECTION === */
.detail-info-section {
    padding: 40px 50px 60px;
}

/* Header */
.detail-header {
    margin-bottom: 30px;
}

.detail-name {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #0a1929;
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-title {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #6c757d;
    margin: 0;
}

/* Biography */
.detail-bio {
    margin-bottom: 36px;
}

.detail-bio p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #5b667a;
    margin-bottom: 16px;
}

.detail-bio p:last-child {
    margin-bottom: 0;
}

/* === EXPERTISE SECTION === */
.detail-expertise {
    margin-bottom: 36px;
}

.expertise-heading {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 16px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expertise-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 117, 255, 0.08);
    color: #0075ff;
    border: 1px solid rgba(0, 117, 255, 0.2);
    border-radius: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: rgba(0, 117, 255, 0.15);
    border-color: rgba(0, 117, 255, 0.4);
    transform: translateY(-2px);
}

/* === CONTACT BUTTONS === */
.detail-contact {
    display: flex;
    gap: 12px;
}

.detail-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid;
}

.detail-contact-btn i {
    font-size: 16px;
}

/* Email Button */
.detail-contact-btn.email-btn {
    background: linear-gradient(135deg, #0075ff 0%, #599eff 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 117, 255, 0.25);
}

.detail-contact-btn.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 117, 255, 0.35);
}

/* LinkedIn Button */
.detail-contact-btn.linkedin-btn {
    background: #ffffff;
    color: #0075ff;
    border-color: rgba(0, 117, 255, 0.3);
}

.detail-contact-btn.linkedin-btn:hover {
    background: rgba(0, 117, 255, 0.08);
    border-color: #0075ff;
    transform: translateY(-2px);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1199px) {
    .team-split-container {
        grid-template-columns: 320px 1fr;
    }

    .detail-info-section {
        padding: 32px 40px 50px;
    }

    .detail-name {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .team-split-container {
        grid-template-columns: 280px 1fr;
    }

    .detail-photo-section {
        height: 380px;
    }

    .detail-info-section {
        padding: 28px 32px 40px;
    }

    .detail-name {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .kima-team-section-split {
        padding: 60px 0;
    }

    .team-split-container {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .team-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(108, 115, 125, 0.12);
        max-height: 400px;
        padding: 20px 15px;
    }

    .team-detail-panel {
        max-height: none;
    }

    .detail-photo-section {
        height: 320px;
    }

    .detail-info-section {
        padding: 24px 20px 32px;
    }

    .detail-name {
        font-size: 24px;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-bio p {
        font-size: 15px;
    }

    .detail-contact {
        flex-direction: column;
    }

    .detail-contact-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .team-search-input {
        font-size: 13px;
        padding: 12px 40px 12px 16px;
    }

    .list-item-avatar {
        width: 42px;
        height: 42px;
    }

    .list-item-name {
        font-size: 14px;
    }

    .list-item-title {
        font-size: 12px;
    }

    .detail-photo-section {
        height: 280px;
    }

    .detail-name {
        font-size: 22px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .team-detail-content,
    .team-list-item,
    .expertise-tag,
    .detail-contact-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================
   KIMA Team Section - LinkedIn Carousel Variant
   ===================================================== */
.kima-team-linkedin {
    background:
        radial-gradient(circle at 8% 5%, rgba(0, 117, 255, 0.09) 0%, rgba(0, 117, 255, 0) 38%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.kima-team-linkedin .container-fluid {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.kima-team-linkedin .sec-heading {
    margin-bottom: 48px;
}

.kima-team-linkedin .legacy-team-split {
    display: none !important;
}

.kima-linkedin-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.kima-linkedin-carousel-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 8px 6px 22px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.kima-linkedin-carousel-track::-webkit-scrollbar {
    height: 8px;
}

.kima-linkedin-carousel-track::-webkit-scrollbar-track {
    background: rgba(10, 25, 41, 0.08);
    border-radius: 999px;
}

.kima-linkedin-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0, 117, 255, 0.45);
    border-radius: 999px;
}

.kima-linkedin-card {
    flex: 0 0 clamp(260px, 26vw, 320px);
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(7, 42, 89, 0.12);
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(12, 38, 76, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kima-linkedin-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(7, 42, 89, 0.2);
}

.linkedin-card-cover {
    height: 92px;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.4) 0 24%, transparent 25%),
        linear-gradient(125deg, #a7b7cb 0%, #b9c4d6 48%, #9caec6 100%);
}

.linkedin-card-body {
    position: relative;
    padding: 56px 20px 20px;
    min-height: 248px;
    display: flex;
    flex-direction: column;
}

.linkedin-avatar {
    position: absolute;
    top: -44px;
    left: 20px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 24px rgba(15, 42, 84, 0.2);
    background: #dce7f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linkedin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linkedin-avatar.no-photo {
    background: linear-gradient(135deg, #4a83cf 0%, #2e5fa5 100%);
    color: #ffffff;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.linkedin-profile-link {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0a66c2;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.linkedin-profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(10, 102, 194, 0.35);
    color: #ffffff;
}

.linkedin-card-name {
    margin: 0 40px 6px 0;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 28px;
    line-height: 1.18;
    color: #0a1929;
}

.linkedin-card-title {
    margin: 0 0 4px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #2f4155;
}

.linkedin-card-location {
    margin: 0 0 16px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #5f7083;
}

.linkedin-card-company {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
}

.linkedin-company-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.linkedin-card-company span {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1b2f46;
}

.kima-linkedin-nav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0, 117, 255, 0.25);
    background: #ffffff;
    color: #0a1929;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 117, 255, 0.18);
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.kima-linkedin-nav:hover {
    background: #0075ff;
    color: #ffffff;
    border-color: #0075ff;
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .kima-linkedin-card {
        flex-basis: 292px;
    }

    .linkedin-card-name {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .kima-linkedin-carousel-wrap {
        gap: 0;
    }

    .kima-linkedin-nav {
        display: none;
    }

    .kima-linkedin-carousel-track {
        gap: 16px;
        padding: 8px 2px 18px;
    }

    .kima-linkedin-card {
        flex: 0 0 calc(100% - 18px);
    }

    .linkedin-card-name {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kima-linkedin-card,
    .linkedin-profile-link,
    .kima-linkedin-nav {
        transition: none !important;
    }
}
