/* ============================================
   Team Member Widget — Full Style Sheet
   ============================================ */

/* ── Wrapper ── */


/* Decorative rings on wrapper */
/* .tmw-rings::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 520px; height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
    pointer-events: none;
    z-index: 0;
}
.tmw-rings::after {
    content: '';
    position: absolute;
    top: -140px; left: -140px;
    width: 700px; height: 700px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
    z-index: 0;
} */

/* ── Grid ── */
.tmw-grid {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}
.tmw-cols-1 { grid-template-columns: 1fr; }
.tmw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tmw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tmw-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .tmw-cols-3, .tmw-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tmw-cols-2, .tmw-cols-3, .tmw-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card ── */
.tmw-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 48px 36px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(6px);
}
/* .tmw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
} */

/* Card decorative rings */
/* .tmw-card-rings::before {
    content: '';
    position: absolute;
    bottom: -70px; right: -70px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}
.tmw-card-rings::after {
    content: '';
    position: absolute;
    bottom: -110px; right: -110px;
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
} */

/* ── Card Photo ── */
.tmw-card-image {
    width: 90px; height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.tmw-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Card Icon ── */
.tmw-card-icon {
    font-size: 44px;
    color: #FFA500;
    margin-bottom: 16px;
    line-height: 1;
}
.tmw-card-icon svg { width: 44px; height: 44px; }

/* ── Card Name ── */
.tmw-card-name {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

/* ── Card Role ── */
.tmw-card-role {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

/* ── Divider ── */
.tmw-card-divider {
    width: 80%;
    height: 1px;
    background: rgba(255,255,255,0.20);
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

/* ── Card Button ── */
.tmw-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 2;
    transition: gap 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.tmw-card-btn:hover { gap: 14px; }
.tmw-btn-arrow { font-size: 1rem; transition: transform 0.2s ease; }
.tmw-card-btn:hover .tmw-btn-arrow { transform: translateX(4px); }


/* ============================================
   MODAL
   ============================================ */
.tmw-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tmw-modal-overlay.tmw-open    { display: flex; }
.tmw-modal-overlay.tmw-visible { opacity: 1; }

.tmw-modal-box {
    background: #5B0FA0;
    border-radius: 8px;
    padding: 48px 52px 52px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tmw-modal-overlay.tmw-visible .tmw-modal-box {
    transform: translateY(0) scale(1);
}

/* Close Button */
.tmw-modal-close {
    position: absolute;
    top: 16px; right: 20px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.tmw-modal-close:hover { opacity: 0.7; }

/* Modal Name */
.tmw-modal-name {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
    padding-right: 40px; /* avoid overlap with close btn */
}

/* Modal Role */
.tmw-modal-role {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0 0 24px;
}

/* Modal Bio */
.tmw-modal-bio {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}
.tmw-modal-bio p {
    margin: 0 0 1em;
    color: inherit;
}
.tmw-modal-bio p:last-child { margin-bottom: 0; }

/* Modal Links */
.tmw-modal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.tmw-modal-link-btn {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}
.tmw-modal-link-btn:hover    { background: rgba(255,255,255,0.3); color: #fff; }
.tmw-modal-link-outline      { background: transparent; border-color: rgba(255,255,255,0.4); }
.tmw-modal-link-outline:hover { background: rgba(255,255,255,0.1); }

/* Scrollbar */
.tmw-modal-box::-webkit-scrollbar       { width: 6px; }
.tmw-modal-box::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.tmw-modal-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }

@media (max-width: 768px) {
    .tmw-modal-box  { padding: 36px 24px 40px; }
    .tmw-modal-name { font-size: 1.3rem; }
    .tmw-section    { padding: 40px 20px; }
}
