/* ==========================================================================
   MT Team - Styles
   ========================================================================== */

:root {
    --mt-team-primary: #2563eb;
    --mt-team-primary-hover: #1d4ed8;
    --mt-team-text: #1f2937;
    --mt-team-text-light: #6b7280;
    --mt-team-bg-light: #f9fafb;
    --mt-team-border: #e5e7eb;
    --mt-team-radius: 12px;
    --mt-team-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --mt-team-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --mt-team-transition: all 0.3s ease;
}

/* ==========================================================================
   Single Team Member
   ========================================================================== */

.mt-team-profile-card {
    background: #fff;
    border: 1px solid var(--mt-team-border);
    border-radius: var(--mt-team-radius);
    overflow: hidden;
    box-shadow: var(--mt-team-shadow);
    position: sticky;
    top: 50px;
}

.mt-team-photo {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.mt-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mt-team-profile-info {
    padding: 24px 24px 0;
    text-align: center;
}

.mt-team-name {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--mt-team-text);
    margin: 0 0 4px;
}

.mt-team-position {
    font-size: 15px;
    color: var(--mt-team-text-light);
    font-weight: 500;
    margin: 0 0 16px;
}

.mt-team-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.mt-team-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mt-team-bg-light);
    color: var(--mt-team-text-light);
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    transition: var(--mt-team-transition);
}

.mt-team-social a:hover {
    background: var(--mt-team-text);
    color: #fff;
}

.mt-team-contact-info {
    border-top: 1px solid var(--mt-team-border);
    padding: 16px 24px;
}

.mt-team-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.mt-team-contact-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mt-team-bg-light);
    color: var(--mt-team-text);
    border-radius: 8px;
    font-size: 13px;
}

.mt-team-contact-row a {
    color: var(--mt-team-text);
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
    transition: var(--mt-team-transition);
}

.mt-team-contact-row a:hover {
    color: var(--mt-team-text);
    text-decoration: underline;
}

.mt-team-categories {
    border-top: 1px solid var(--mt-team-border);
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mt-team-categories a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--mt-team-bg-light);
    color: var(--mt-team-text);
    font-size: 13px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--mt-team-transition);
}

.mt-team-categories a:hover {
    background: var(--mt-team-text);
    color: #fff;
}

/* Bio */
.mt-team-bio {
    padding-left: 16px;
}

.mt-team-bio h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--mt-team-text);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--mt-team-border);
}

.mt-team-bio-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--mt-team-text);
}

.mt-team-bio-content p {
    margin-bottom: 16px;
}

/* Quick Info (Responsibility / Experience) */
.mt-team-quick-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-left: 16px;
}

.mt-team-quick-item {
    flex: 1;
    min-width: 180px;
    background: var(--mt-team-bg-light);
    border: 1px solid var(--mt-team-border);
    border-radius: var(--mt-team-radius);
    padding: 18px 20px;
}

.mt-team-quick-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--mt-team-text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.mt-team-quick-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--mt-team-text);
}

/* Skills & Career Panels */
.mt-team-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
    padding-left: 16px;
}

.mt-team-panel {
    background: none;
    padding: 0;
}

.mt-team-panel-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--mt-team-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 24px;
}

/* Skills Progress Bars */
.mt-team-skill {
    margin-bottom: 22px;
}

.mt-team-skill:last-child {
    margin-bottom: 0;
}

.mt-team-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.mt-team-skill-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mt-team-text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mt-team-skill-pct {
    font-size: 14px;
    font-weight: 700;
    color: var(--mt-team-text-light);
}

.mt-team-skill-bar {
    width: 100%;
    height: 6px;
    background: #e2e2e2;
    border-radius: 3px;
    overflow: hidden;
}

.mt-team-skill-fill {
    height: 100%;
    background: #1f2937;
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Career Timeline */
.mt-team-career-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 24px;
}

.mt-team-career-list::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--mt-team-border);
}

.mt-team-career-item {
    position: relative;
    padding: 0 0 28px 0;
}

.mt-team-career-item:last-child {
    padding-bottom: 0;
}

.mt-team-career-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--mt-team-text);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--mt-team-border);
}

.mt-team-career-year {
    font-weight: 700;
    color: var(--mt-team-text);
    line-height: 1.4;
    margin-bottom: 4px;
}

.mt-team-career-desc {
    line-height: 1.7;
    color: var(--mt-team-text-light);
    margin: 0;
}
.mt-team-panel--skills {
    margin-bottom: 20px;
}
@media (max-width: 767px) {
    .mt-team-panels {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Team Archive / Taxonomy
   ========================================================================== */

.mt-team-archive .mt-archive-header {
    text-align: center;
    margin-bottom: 48px;
}

.mt-team-archive .mt-archive-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--mt-team-text);
    margin: 0 0 12px;
}

.mt-team-archive .mt-archive-description {
    font-size: 16px;
    color: var(--mt-team-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.mt-team-grid-item {
    margin-bottom: 30px;
}

.mt-team-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    height: 100%;
    position: relative;
}

.mt-team-card:hover .mt-team-card-photo img {
    transform: scale(1.03);
}

.mt-team-card-photo {
    width: 100%;
    height: 100%;
}

.mt-team-card-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.mt-team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--mt-team-transition);
}

.mt-team-no-photo {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6e0d8;
    color: #c4bdb4;
    font-size: 56px;
}

.mt-team-card-body {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 16px 20px;
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mt-team-card-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.3;
}

.mt-team-card-name a {
    color: var(--mt-team-text);
    text-decoration: none;
    transition: var(--mt-team-transition);
}

.mt-team-card-arrow {
    display: none;
}

.mt-team-card-position {
    font-size: 14px;
    color: var(--mt-team-text-light);
    font-weight: 400;
    margin: 0;
}

.mt-team-card-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.mt-team-card-body:hover {
    bottom: 12px;
    padding-bottom: 20px;
    overflow: visible;
}

.mt-team-card-body:hover .mt-team-card-social {
    max-height: 120px;
    opacity: 1;
    margin-top: 10px;
}

.mt-team-card-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    color: var(--mt-team-text-light);
    border-radius: 50%;
    font-size: 13px;
    text-decoration: none;
    transition: var(--mt-team-transition);
}

.mt-team-card-social a:hover {
    background: var(--mt-team-text);
    color: #fff;
}

/* Pagination */
.mt-team-archive .mt-cpt-pagination {
    margin-top: 20px;
    text-align: center;
}

.mt-team-archive .mt-cpt-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.mt-team-archive .mt-cpt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--mt-team-border);
    border-radius: 8px;
    color: var(--mt-team-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--mt-team-transition);
}

.mt-team-archive .mt-cpt-pagination .page-numbers:hover,
.mt-team-archive .mt-cpt-pagination .page-numbers.current {
    background: var(--mt-team-text);
    border-color: var(--mt-team-text);
    color: #fff;
}

.mt-team-archive .mt-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--mt-team-text-light);
    font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .mt-team-bio {
        padding-left: 0;
        margin-top: 30px;
    }

    .mt-team-profile-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .mt-team-name {
        font-size: 22px;
    }

    .mt-team-archive .mt-archive-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   Related Section
   ========================================================================== */

.mt-team-single .mt-related-section {
    background: var(--mt-team-bg-light);
    padding: 60px 0;
}

.mt-team-single .mt-related-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--mt-team-text);
    margin: 0 0 32px;
    text-align: center;
}

/* ==========================================================================
   Design V2 - Circle
   ========================================================================== */

.mt-team-design-v2 .mt-team-card {
    border-radius: 0;
    overflow: visible;
}

.mt-team-design-v2 .mt-team-card-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--mt-team-border);
}

.mt-team-design-v2 .mt-team-card-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.mt-team-design-v2 .mt-team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mt-team-design-v2 .mt-team-no-photo {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.mt-team-design-v2 .mt-team-card-body {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: static;
    padding: 18px 0 0;
    margin: 0;
    border-radius: 0;
    overflow: visible;
}

.mt-team-design-v2 .mt-team-card-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.mt-team-design-v2 .mt-team-card-name a {
    color: var(--mt-team-text);
}

.mt-team-design-v2 .mt-team-card-position {
    font-size: 15px;
    color: var(--mt-team-text-light);
}

.mt-team-design-v2 .mt-team-card-social {
    max-height: none;
    opacity: 1;
    margin-top: 12px;
    overflow: visible;
}

.mt-team-design-v2 .mt-team-card-body:hover {
    bottom: auto;
    padding-bottom: 0;
}

@media (max-width: 767px) {
    .mt-team-design-v2 .mt-team-card-photo {
        width: 140px;
        height: 140px;
    }
}

/* ==========================================================================
   Design V3 - Duotone
   ========================================================================== */

.mt-team-design-v3 .mt-team-card {
    border-radius: 20px;
}

.mt-team-design-v3 .mt-team-card-photo {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.mt-team-design-v3 .mt-team-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(190, 160, 140, 0.15) 100%
    );
    pointer-events: none;
    transition: var(--mt-team-transition);
}

.mt-team-design-v3 .mt-team-card-photo img {
    filter: sepia(0.25) saturate(0.85);
    transition: var(--mt-team-transition);
}

.mt-team-design-v3 .mt-team-card:hover .mt-team-card-photo::after {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%
    );
}

.mt-team-design-v3 .mt-team-card:hover .mt-team-card-photo img {
    filter: sepia(0) saturate(1);
}

.mt-team-design-v3 .mt-team-card-body {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 18px 20px;
    margin: 0;
    text-align: left;
    overflow: visible;
}

.mt-team-design-v3 .mt-team-card-body:hover {
    bottom: 14px;
    padding-bottom: 18px;
}

.mt-team-design-v3 .mt-team-card-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    margin: 0 0 2px;
}

.mt-team-design-v3 .mt-team-card-name a:first-child {
    color: #fff;
}

.mt-team-design-v3 .mt-team-card-name a:first-child:hover {
    color: rgba(255, 255, 255, 0.8);
}

.mt-team-design-v3 .mt-team-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transform: rotate(-45deg);
    transition: var(--mt-team-transition);
}

.mt-team-design-v3 .mt-team-card:hover .mt-team-card-arrow {
    transform: rotate(0deg);
}

.mt-team-design-v3 .mt-team-card-position {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.mt-team-design-v3 .mt-team-card-social {
    max-height: none;
    opacity: 1;
    margin-top: 12px;
    overflow: visible;
    justify-content: flex-start;
}

.mt-team-design-v3 .mt-team-card-social a {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.mt-team-design-v3 .mt-team-card-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ==========================================================================
   Post Navigation (Prev / Next)
   ========================================================================== */

.mt-post-nav {
    padding: 0;
}

.mt-post-nav-inner {
    display: flex;
    gap: 24px;
    padding: 40px 0;
    border-top: 1px solid var(--mt-team-border, #e5e7eb);
}

a.mt-post-nav-link,
span.mt-post-nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

a.mt-post-nav-link:hover {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mt-post-nav-next {
    text-align: right;
}

.mt-post-nav-arrow {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1f2937;
    border-radius: 50%;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

a.mt-post-nav-link:hover .mt-post-nav-arrow {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mt-post-nav-prev:hover .mt-post-nav-arrow {
    transform: translateX(-4px);
}

.mt-post-nav-next:hover .mt-post-nav-arrow {
    transform: translateX(4px);
}

.mt-post-nav-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.mt-post-nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.mt-post-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: color 0.3s ease;
}

a.mt-post-nav-link:hover .mt-post-nav-title {
    color: #111827;
}

@media (max-width: 767.98px) {
    .mt-post-nav-inner {
        flex-direction: column;
        gap: 12px;
        padding: 24px 0;
    }

    a.mt-post-nav-link {
        padding: 18px 20px;
    }

    .mt-post-nav-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 14px;
    }

    .mt-post-nav-title {
        font-size: 14px;
    }
}
