/* =============================================
   Tabbed Team Showcase Widget Styles
   ============================================= */

/* Body scroll lock when modal is open */
body.ctt-body-lock {
    overflow: hidden !important;
}

.ctt-showcase-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* ── 1. Tab Bar ── */
.ctt-tab-bar-container {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
    padding-bottom: 1px;
}

.ctt-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ctt-tab-item {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    padding-bottom: 12px;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ctt-tab-item:hover {
    color: var(--ctt-active-color, #1a365d);
}

.ctt-tab-item.ctt-active {
    color: var(--ctt-active-color, #1a365d);
    font-weight: 700;
}

.ctt-tab-item.ctt-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--ctt-active-color, #1a365d);
    border-radius: 2px;
}

/* ── 2. Grid & Cards ── */
.ctt-team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
}

.ctt-team-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ctt-team-card:hover {
    transform: translateY(-2px);
}

.ctt-card-photo-wrap {
    width: 100%;
    padding-top: 105%; /* Slightly tall rectangular photo shape */
    background-color: var(--ctt-photo-bg, #94a3b8);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.ctt-card-photo-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctt-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ctt-card-category {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.ctt-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--ctt-name-color, #1a365d);
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.ctt-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
}

.ctt-card-org {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
}

/* ── 3. Modal / Popup Overlay ── */
.ctt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ctt-modal-overlay.ctt-modal-visible {
    display: flex;
}

.ctt-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.ctt-modal-box {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 960px;
    height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 2;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: cttModalFadeIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cttModalFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Modal Header (Dark) ── */
.ctt-modal-header {
    background-color: #0b0f19;
    padding: 40px;
    display: flex;
    position: relative;
    color: #ffffff;
    gap: 40px;
    align-items: center;
}

.ctt-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.ctt-modal-close i {
    font-size: 14px;
    display: block;
}

.ctt-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ctt-header-content {
    flex: 1;
}

.ctt-header-name {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ctt-header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #00e5ff;
    line-height: 1.4;
    margin-bottom: 20px;
}

.ctt-header-intro {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #b3c5df;
    margin: 0;
}

.ctt-header-photo {
    width: 180px;
    height: 180px;
    min-width: 180px;
    background-color: #94a3b8;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.ctt-header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Modal Body (Bio & Sidebar) ── */
.ctt-modal-body {
    padding: 40px;
    display: flex;
    gap: 50px;
    flex-grow: 1;
    background-color: #ffffff;
}

.ctt-bio-col {
    flex: 1 1 62%;
}

.ctt-bio-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #00e5ff;
    display: inline-block;
    padding-bottom: 4px;
}

.ctt-bio-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
}

.ctt-bio-text p {
    margin: 0 0 16px 0;
}

.ctt-meta-col {
    flex: 0 0 38%;
    max-width: 38%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Meta Blocks (Appointments / Recognition) */
.ctt-meta-block-title {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 8px;
}

.ctt-meta-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ctt-meta-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ctt-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background-color: #e6f7ff;
    color: #0088cc;
    font-size: 14px;
}

.ctt-meta-icon svg,
.ctt-meta-icon i {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ctt-meta-content {
    display: flex;
    flex-direction: column;
}

.ctt-meta-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #111111;
    line-height: 1.35;
    margin-bottom: 2px;
}

.ctt-meta-item-details {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #666666;
    line-height: 1.35;
}

/* ── Modal Footer (Strategic Advisors / Related) ── */
.ctt-modal-footer {
    border-top: 1px solid #eeeeee;
    padding: 30px 40px;
    background-color: #fafafa;
}

.ctt-footer-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

.ctt-footer-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.ctt-footer-card {
    flex: 0 0 230px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ctt-footer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-color: #00e5ff;
}

.ctt-footer-photo {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background-color: #94a3b8;
    overflow: hidden;
    flex-shrink: 0;
}

.ctt-footer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctt-footer-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ctt-footer-name {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctt-footer-role {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #777777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   Responsive Adjustments
   ============================================= */

@media (max-width: 1024px) {
    .ctt-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ctt-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ctt-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 30px;
    }
    .ctt-header-photo {
        width: 120px;
        height: 120px;
        min-width: 120px;
        align-self: center;
    }
    .ctt-header-name {
        font-size: 28px;
    }
    .ctt-modal-body {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    .ctt-meta-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .ctt-modal-footer {
        padding: 20px 30px;
    }
}

@media (max-width: 480px) {
    .ctt-team-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .ctt-tab-bar {
        gap: 15px;
    }
    .ctt-tab-item {
        font-size: 14px;
        padding-bottom: 8px;
    }
}
