@charset "utf-8";

.member-page {
    padding-bottom: 48px;
}

.member-hero {
    position: relative;
    margin: 0 0 28px;
    padding: 42px 44px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(96, 177, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #0f1930 0%, #1e3666 56%, #166569 100%);
    color: white;
    overflow: hidden;
    box-shadow: 0 22px 52px rgba(16, 29, 58, 0.18);
}

.member-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -62px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.member-hero > * {
    position: relative;
    z-index: 1;
}

.member-hero-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.member-hero-title {
    margin: 0 0 10px;
    font-size: 40px;
    line-height: 1.16;
    font-weight: 600;
    word-break: keep-all;
}

.member-hero-text {
    max-width: 720px;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.84);
}

.member-tab-wrap {
    margin-bottom: 24px !important;
}

.member-page .anchor_box .tab {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.member-page .anchor_box .tab li,
.member-page .anchor_box .tab li.active {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.member-page .anchor_box .tab li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 8px !important;
    border: 1px solid #d8e0ee !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #4b607d !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(17, 30, 58, 0.05) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.member-page .anchor_box .tab li a:hover {
    border-color: #103c92 !important;
    color: #103c92 !important;
}

.member-page .anchor_box .tab li.active a {
    border-color: transparent !important;
    background: linear-gradient(135deg, #103c92 0%, #0d6d74 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(16, 60, 146, 0.22) !important;
}

@media screen and (max-width: 900px) {
    .member-tab-wrap .anchor {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }
    
    .member-page .anchor_box .tab {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        min-width: 680px;
    }

    .member-page .anchor_box .tab li {
        flex: 1 0 auto !important;
    }

    .member-page .anchor_box .tab li a {
        font-size: 13px !important;
        padding: 0 14px !important;
        min-height: 40px !important;
    }
}

/* Card Grid & Tab Content Control */
.member-card-grid {
    margin-top: 16px;
}

/* Only the active tab is visible */
.tabcont,
.member-card-list.tabcont,
.member-page-faculty .faculty_box > ul.mb_box.member-card-list.tabcont {
    display: none !important;
    margin: 30px 0 50px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tabcont.active,
.member-card-list.tabcont.active,
.member-page-faculty .faculty_box > ul.mb_box.member-card-list.tabcont.active {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
    margin: 30px 0 50px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* Individual Profile Card */
.member-page-faculty .faculty_box > ul.mb_box.member-card-list li.member-profile-card,
.member-profile-card {
    width: 100% !important;
    min-height: 0 !important;
    float: none !important;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 22px 48px rgba(15, 29, 55, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    margin: 0 !important;
    box-sizing: border-box;
}

.member-profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(15, 29, 55, 0.18);
}

.member-profile-card .mb_cont {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

.member-profile-media {
    margin: 0 !important;
    overflow: hidden;
    background: linear-gradient(135deg, #dfe9f7 0%, #f2f6fb 100%);
    width: 100% !important;
}

.member-profile-media a,
.member-profile-media img {
    display: block;
    width: 100%;
}

.member-profile-media img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover;
}

.member-profile-media-compact img {
    height: 240px !important;
}

.member-profile-body,
.member-profile-card .mb_detail {
    width: 100% !important;
    padding: 24px 26px 28px !important;
    box-sizing: border-box;
}

.member-profile-card .mb_name {
    margin: 0 0 16px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #e4ebf5 !important;
    font-size: 28px !important;
    line-height: 1.25;
    text-align: left;
}

.member-profile-card .mb_name a {
    color: #111b2e;
    text-decoration: none;
}

.member-profile-card .mb_name_en {
    display: block;
    margin-top: 8px;
    color: #5e718e !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.member-profile-card .mb_items {
    margin-bottom: 10px;
    text-align: left;
}

.member-profile-card .mb_items dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
    margin: 0;
}

.member-profile-card .mb_items dt {
    text-align: left;
    width: auto !important;
    margin: 0 !important;
    color: #6f7f98 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.member-profile-card .mb_items dd {
    text-align: left;
    width: auto !important;
    max-width: none !important;
    margin: 0;
    color: #1b2638 !important;
    font-size: 15px;
    line-height: 1.7;
    word-break: keep-all;
}

.member-profile-card .mb_items dd a {
    text-align: left;
    color: #1b2638;
    text-decoration: none;
}

.member-profile-card .mb_items dd a:hover {
    color: #103c92;
    text-decoration: underline;
}

.member-profile-card .mb_items_dot {
    display: none;
}

.member-profile-card .mb_items img {
    margin-right: 4px;
    vertical-align: middle;
}

@media screen and (max-width: 1024px) {
    .tabcont.active,
    .member-card-list.tabcont.active,
    .member-page-faculty .faculty_box > ul.mb_box.member-card-list.tabcont.active {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .member-hero {
        padding: 34px 28px;
    }

    .member-hero-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 767px) {
    .member-hero {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .member-hero-title {
        font-size: 28px;
    }

    .member-hero-text {
        font-size: 14px;
    }

    .member-page .anchor_box .tab {
        gap: 10px;
    }

    .member-page .anchor_box .tab li,
    .member-page .anchor_box .tab li.active {
        width: calc(50% - 5px);
        min-width: 0;
    }

    .member-page .anchor_box .tab li a {
        min-height: 46px;
        padding: 0 14px;
        font-size: 14px;
    }

    .member-profile-media img {
        height: 240px !important;
    }

    .member-profile-body,
    .member-profile-card .mb_detail {
        padding: 20px 18px 22px !important;
    }

    .member-profile-card .mb_name {
        font-size: 24px !important;
    }

    .member-profile-card .mb_items dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.member-profile-detail {
    display: grid;
    grid-template-columns: minmax(280px, 456px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 0 0 28px;
}

.member-profile-detail-media {
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #dfe9f7 0%, #f2f6fb 100%);
    box-shadow: 0 20px 44px rgba(15, 29, 55, 0.12);
}

.member-profile-detail-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.member-profile-detail-card {
    padding: 28px 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(15, 29, 55, 0.12);
}

.member-profile-detail-name {
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4ebf5;
    color: #101a2e;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
}

.member-profile-detail-name span {
    display: block;
    margin-top: 10px;
    color: #5c708f;
    font-size: 15px;
    font-weight: 500;
}

.member-profile-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-profile-detail-list li {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eef3f9;
}

.member-profile-detail-list strong {
    color: #677b98;
    font-size: 13px;
    font-weight: 700;
}

.member-profile-detail-list span,
.member-profile-detail-list a {
    color: #172033;
    font-size: 15px;
    line-height: 1.8;
    word-break: keep-all;
}

.member-profile-detail-actions {
    margin-top: 24px;
}

.member-back-link,
.member-back-link:visited,
.member-back-link:hover,
.member-back-link:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #103c92 0%, #0d6d74 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(16, 60, 146, 0.2);
}

.member-profile-anchor {
    margin-bottom: 24px;
}

.member-profile-empty {
    margin: 14px 0 0;
    color: #677b98;
}

.member-profile-section {
    margin-bottom: 22px;
}

.member-profile-section-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    color: #13203a;
}

.member-profile-section-body {
    padding: 24px 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 29, 55, 0.1);
}

.member-profile-section-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-profile-section-list li {
    position: relative;
    padding: 0 0 0 20px;
    color: #25344d;
    font-size: 15px;
    line-height: 1.9;
}

.member-profile-section-list li + li {
    margin-top: 8px;
}

.member-profile-section-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #103c92 0%, #0d6d74 100%);
}

@media screen and (max-width: 1024px) {
    .member-profile-detail {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 767px) {
    .member-profile-detail-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

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

    .member-profile-detail-list li {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .member-profile-section-body {
        padding: 20px 18px;
    }
}
