:root {
    --mm-primary: #1d43fe;
    --mm-secondary: #5ac559;
    --mm-dark: #0b1633;
    --mm-gray: #667085;
    --mm-border: #eef1f6;
    --mm-bg-soft: #f7f8fc;
}

/* ===== Shell ===== */
.member-modal {
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 60px rgba(11, 22, 51, 0.25);
}

.member-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.25s ease;
}

.member-modal-close:hover {
    background: #fff;
    color: var(--mm-primary);
    transform: rotate(90deg);
}

/* ===== Cover + Identity ===== */
.member-cover {
    height: 90px;
    background: linear-gradient(120deg, var(--mm-primary), var(--mm-secondary));
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.member-cover-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.18) 1.5px,
        transparent 1.5px
    );
    background-size: 16px 16px;
    opacity: 0.6;
}

.member-identity {
    text-align: center;
    padding: 0 30px 24px;
    flex-shrink: 0;
    position: relative;
}

.member-avatar-wrap {
    width: 162px;
    height: 162px;
    margin: -54px auto 14px;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(11, 22, 51, 0.18);
    position: relative;
    z-index: 5;
}

.member-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.member-name {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 700;
    font-size: 21px;
    color: var(--mm-dark);
    margin-bottom: 2px;
}

.member-role {
    color: var(--mm-gray);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 16px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    background: var(--mm-bg-soft);
    color: var(--brand-color);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.social-btn:hover {
    background: var(--brand-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px
        color-mix(in srgb, var(--brand-color) 35%, transparent);
}

.social-gmail {
    --brand-color: #ea4335;
}

.social-facebook {
    --brand-color: #1877f2;
}

.social-telegram {
    --brand-color: #26a5e4;
}

.social-linkedin {
    --brand-color: #0a66c2;
}

/* ===== Body (scroll area) ===== */
.member-modal-body {
    overflow-y: auto;
    padding: 4px 30px 30px;
    flex: 1 1 auto;
}

.member-modal-body::-webkit-scrollbar {
    width: 5px;
}

.member-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.member-modal-body::-webkit-scrollbar-thumb {
    background: #d7dcef;
    border-radius: 10px;
}

.member-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--mm-primary);
}

/* ===== Fact cards ===== */
.member-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.fact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--mm-bg-soft);
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    padding: 12px 14px;
}

.fact-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--mm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(11, 22, 51, 0.06);
}

.fact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--mm-gray);
    font-weight: 600;
}

.fact-value {
    font-size: 13.5px;
    color: var(--mm-dark);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Detail blocks ===== */
.detail-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--mm-border);
}

.detail-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mm-dark);
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.detail-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(29, 67, 254, 0.08);
    color: var(--mm-primary);
    font-size: 11px;
}

.detail-block p {
    color: #444;
    line-height: 1.85;
    font-size: 14px;
    white-space: pre-line;
    word-wrap: break-word;
    margin: 0;
}

/* ===== Empty / loading states ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--mm-gray);
}

.empty-state i {
    font-size: 30px;
    margin-bottom: 10px;
    opacity: 0.5;
    display: block;
}

.empty-state p {
    font-size: 13.5px;
    margin: 0;
}

.member-loading {
    padding: 70px 20px;
    text-align: center;
    color: var(--mm-gray);
}

.member-loading .spinner-border {
    color: var(--mm-primary);
    margin-bottom: 12px;
}

.member-loading p {
    font-size: 13.5px;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 12px;
    }

    .member-modal {
        max-height: 94vh;
        border-radius: 18px;
    }

    .member-cover {
        height: 70px;
    }

    .member-avatar-wrap {
        width: 88px;
        height: 88px;
        margin-top: -44px;
    }

    .member-avatar-fallback {
        font-size: 28px;
    }

    .member-identity {
        padding: 0 20px 20px;
    }

    .member-name {
        font-size: 18px;
    }

    .member-modal-body {
        padding: 4px 20px 24px;
    }

    .member-facts {
        grid-template-columns: 1fr;
    }

    .detail-block p {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .member-modal-close {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }

    .member-avatar-wrap {
        width: 76px;
        height: 76px;
        margin-top: -38px;
    }
}

.testimonial__area {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background: #ffffff;
}

.testimonial__area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 0;
}

.testimonial__area .container {
    position: relative;
    z-index: 2;
}

.section__title .sub-title-a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(29, 67, 254, 0.08);
    color: #1d43fe;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section__title .title-a {
    color: #0b1633;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    font-family: "Kantumruy Pro";
}

.section__content p {
    color: #555;
    line-height: 1.8;
}

/* ===== Card layout: equal height + button fixed to bottom ===== */
.team-modern {
    text-align: center;
    position: relative;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    z-index: 2;
    position: relative;
    background: #f5f7ff;
    flex-shrink: 0;
}

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

.team-box .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.thumb-md {
    width: 100%;
    height: 100%;
    font-size: 32px;
    font-weight: 700;
}

.team-box {
    margin-top: -40px;
    padding: 70px 20px 25px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #eef1f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-box-content {
    flex: 1;
}

.team-modern:hover .team-box {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.team-box .name {
    margin-bottom: 8px;
}

.team-box .name a {
    color: #0b1633;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.team-box .name a:hover {
    color: #1d43fe;
}

.team-box .role {
    color: #666;
    font-size: 13px;
    margin-bottom: 0;
}

/* ===== Custom button: icon-circle pill ===== */
.team-action {
    margin-top: 25px;
    text-align: center;
}

.team-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    padding: 6px 6px 6px 22px;
    border: none;
    border-radius: 50px;
    background: #f2f4fb;
    color: #0b1633;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.team-action-btn span {
    transition: color 0.3s ease;
}

.team-action-btn i {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d43fe, #5ac559);
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.team-action-btn:hover {
    background: #e8ebf7;
    box-shadow: 0 8px 20px rgba(29, 67, 254, 0.15);
}

.team-action-btn:hover span {
    color: #1d43fe;
}

.team-action-btn:hover i {
    transform: translateX(4px) rotate(-45deg);
}

.testimonial__shape-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.06;
    pointer-events: none;
}

.big-shape {
    opacity: 0.08;
}

@media (max-width: 991px) {
    .section__title .title-a {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .testimonial__area {
        padding: 70px 0;
    }

    .section__title .title-a {
        font-size: 26px;
    }

    .team-box {
        padding: 65px 18px 22px;
    }
}
