/* =========================================================
 * DOI NGU - EXPERT PROFILE
 * Mobile: stacked cards; slider shortcode keeps swipe + dots.
 * Desktop: one expert per view with previous/next navigation.
 * ========================================================= */
.expert-team-wrapper {
    position: relative;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

.expert-team-container,
.expert-team-grid {
    width: 100%;
}

.expert-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    box-sizing: border-box;
}

.expert-team-wrapper.layout-slider .expert-team-container {
    overflow: hidden;
}

/* Card */
.expert-card {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--color-indigo);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(20, 31, 91, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(20, 31, 91, 0.22);
}

.expert-card-top {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 18px;
    box-sizing: border-box;
}

/* Image */
.expert-media {
    width: min(100%, 420px);
    margin: 0 auto;
}

.expert-avatar-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.expert-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    box-sizing: border-box;
    background: #eef1f5;
    border: 5px solid rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.expert-years-badge {
	display: none;
    position: absolute;
    left: 50%;
    bottom: -13px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 6px 16px;
    transform: translateX(-50%);
    background: var(--color-teal);
    color: var(--color-white);
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

/* Content */
.expert-content {
    width: 100%;
    min-width: 0;
    color: var(--color-white);
}

.expert-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.expert-title-line {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.expert-badge,
.expert-name {
    font-family: 'Inter 24';
}

.expert-badge {
    display: block;
    margin: 0 0 4px;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.expert-name {
    display: block;
    margin: 0;
    color: var(--color-white);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.16;
}

.expert-subtitles-list {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.expert-subtitle,
.expert-description {
    margin: 0;
}

.expert-description {
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 14.5px;
    line-height: 1.65;
}

.expert-description p {
    margin: 0 0 16px;
    color: inherit;
}

.expert-description p:last-child {
    margin-bottom: 0;
}

.expert-description strong,
.expert-description b,
.expert-description h1,
.expert-description h2,
.expert-description h3,
.expert-description h4,
.expert-description h5,
.expert-description h6 {
    color: var(--color-white);
    font-weight: 700;
}

.expert-description ul,
.expert-description ol {
    display: block;
    margin: 8px 0 18px !important;
    padding-left: 24px !important;
    color: inherit;
}

.expert-description ul,
.expert-description ul li {
    list-style: square !important;
}

.expert-description ol,
.expert-description ol li {
    list-style: decimal !important;
}

.expert-description li {
    margin: 5px 0 !important;
    padding: 0 !important;
    color: inherit;
    line-height: 1.6;
}

.expert-description a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Navigation */
.expert-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
	margin-right: 0;
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    transform: translateY(-50%);
    border: 1px solid rgba(61, 78, 216, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-indigo);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.expert-slider-btn:hover {
    background: var(--color-teal);
    color: var(--color-white);
}

.expert-slider-btn.prev-btn {
    left: 14px;
}

.expert-slider-btn.next-btn {
    right: 14px;
}

.expert-slider-btn svg {
    display: block;
    width: 23px;
    height: 23px;
}

.expert-slider-btn:disabled {
    opacity: 0.28 !important;
    cursor: default;
    pointer-events: none;
}

.expert-slider-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
}

.expert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(61, 78, 216, 0.25);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.expert-dot.active {
    width: 24px;
    border-radius: 999px;
    background: var(--color-indigo, #3D4ED8);
}

/* Mobile slider behavior only */
@media (max-width: 767px) {
    .expert-team-wrapper.layout-slider .expert-team-grid {
        display: flex;
        flex-wrap: nowrap;
    }

    .expert-team-wrapper.layout-slider .expert-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .expert-team-wrapper.layout-slider .expert-slider-dots {
        display: flex !important;
    }
}

/* Tablet + desktop: always one expert per view */
@media (min-width: 768px) {
    .expert-team-container {
        overflow: hidden;
    }

    .expert-team-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 28px;
        will-change: transform;
    }

    .expert-card {
        flex: 0 0 100%;
        min-width: 100%;
        border-radius: 18px;
    }

    .expert-card-top {
        display: grid;
        grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
        gap: 26px;
        align-items: start;
        padding: 24px;
    }

    .expert-media {
        width: 100%;
        max-width: 390px;
        margin: 0;
        align-self: start;
    }

    .expert-avatar-wrap {
        aspect-ratio: 3 / 4;
    }

    .expert-avatar {
        border-width: 7px;
    }

    .expert-content {
        padding: 4px 4px 4px 0;
    }

    .expert-meta {
        gap: 11px;
        margin-bottom: 22px;
    }

    .expert-title-line {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 10px;
        padding-bottom: 14px;
    }

    .expert-badge {
        display: inline;
        margin: 0;
        font-size: 22px;
    }

    .expert-name {
        display: inline;
        font-size: 26px;
    }

    .expert-description {
        font-size: 15px;
    }

    .expert-slider-btn {
        display: flex !important;
    }
}

/* Full desktop */
@media (min-width: 992px) {
    .expert-card-top {
        grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
        gap: 42px;
        padding: 30px;
    }

    .expert-badge {
        font-size: clamp(22px, 2.2vw, 34px);
    }

    .expert-name {
        font-size: clamp(26px, 2.6vw, 40px);
    }

    .expert-subtitles-list {
        font-size: 16px;
    }

    .expert-description {
        font-size: 16px;
        line-height: 1.72;
    }
}