/* =============================================
   Team Archive & Single — Professional Redesign
   ============================================= */

/* ── Team Hero Override (gradient + Dots) ── */
.team-hero {
    background: linear-gradient(135deg, #1A2B8C 0%, #283593 50%, #303F9F 100%) !important;
}
.team-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}
.team-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* ── Filter Bar (below Hero) ── */
.team-filter-bar {
    background: #F8FAFC;
    border-bottom: 1px solid #E8ECF4;
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.team-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.team-filter__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748B;
    margin-right: 0.25rem;
    white-space: nowrap;
}
.team-filter__btn {
    padding: 0.4rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.team-filter__btn:hover {
    border-color: #1A2B8C;
    color: #1A2B8C;
    background: #F0F4FF;
}
.team-filter__btn--active {
    background: #1A2B8C;
    color: #fff;
    border-color: #1A2B8C;
    font-weight: 600;
}
.team-filter__btn--active:hover {
    background: #162366;
    color: #fff;
}

/* ── Team Grid ── */
.team-archive__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 480px) {
    .team-archive__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .team-archive__grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
@media (min-width: 1024px) {
    .team-archive__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Team Card ── */
.team-archive__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #F0F0F0;
    cursor: pointer;
}
.team-archive__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(26, 43, 140, 0.12), 0 4px 8px rgba(0,0,0,0.04);
    color: inherit;
    text-decoration: none;
}

/* ── Photo Area ── */
.team-archive__photo {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8ECFC 100%);
    overflow: hidden;
}
.team-archive__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.team-archive__card:hover .team-archive__img {
    transform: scale(1.06);
}

/* Fallback with initials */
.team-archive__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A2B8C 0%, #283593 50%, #303F9F 100%);
}
.team-archive__initials {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
}

/* Hover overlay */
.team-archive__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 43, 140, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.team-archive__card:hover .team-archive__overlay {
    opacity: 1;
}
.team-archive__view {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    background: #fff;
    color: var(--wp--preset--color--primary, #1A2B8C);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    transform: translateY(8px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.team-archive__card:hover .team-archive__view {
    transform: translateY(0);
}

/* ── Card Body ── */
.team-archive__body {
    padding: 1.25rem 1.375rem 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.team-archive__name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.team-archive__role {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}
.team-archive__role svg {
    flex-shrink: 0;
    color: #9CA3AF;
}
.team-archive__dept {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #1A2B8C);
    background: #F0F4FF;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    width: fit-content;
    margin-top: 0.125rem;
}

/* Social/contact icons */
.team-archive__links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.375rem;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
}
.team-archive__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F9FAFB;
    color: #6B7280;
    transition: all 0.2s;
}
.team-archive__link:hover {
    background: var(--wp--preset--color--primary, #1A2B8C);
    color: #fff;
}

/* ── Filter animation ── */
.team-archive__card {
    animation: teamFadeIn 0.4s ease both;
}
@keyframes teamFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.team-archive__card:nth-child(1)  { animation-delay: 0.00s; }
.team-archive__card:nth-child(2)  { animation-delay: 0.05s; }
.team-archive__card:nth-child(3)  { animation-delay: 0.10s; }
.team-archive__card:nth-child(4)  { animation-delay: 0.15s; }
.team-archive__card:nth-child(5)  { animation-delay: 0.20s; }
.team-archive__card:nth-child(6)  { animation-delay: 0.25s; }
.team-archive__card:nth-child(7)  { animation-delay: 0.30s; }
.team-archive__card:nth-child(8)  { animation-delay: 0.35s; }
.team-archive__card:nth-child(n+9) { animation-delay: 0.40s; }

/* Filtering hidden state */
.team-archive__card.team-filter-hidden {
    display: none;
}

/* =============================================
   Team Single Page
   ============================================= */

/* ── Single Hero ── */
.team-single-hero {
    padding: 3.5rem 0 3rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1A2B8C 0%, #283593 50%, #303F9F 100%);
}
.team-single-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.team-single-hero__inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.team-single-hero__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.team-single-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.95);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.team-single-hero__title {
    font-size: var(--wp--preset--font-size--4xl, 2.25rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    line-height: 1.15;
}
.team-single-hero__desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ── Single Layout ── */
.team-single {
    background: #F8FAFC;
}
.team-single__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}
@media (min-width: 768px) {
    .team-single__layout { grid-template-columns: 300px 1fr; }
}
@media (min-width: 1024px) {
    .team-single__layout { grid-template-columns: 340px 1fr; gap: 3rem; }
}
.team-single__sidebar {
    position: relative;
}
.team-single__card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    position: sticky;
    top: 100px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #F0F0F0;
}
.team-single__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 3px solid #F0F4FF;
    box-shadow: 0 4px 12px rgba(26, 43, 140, 0.12);
}
.team-single__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-single__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A2B8C 0%, #283593 100%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
}
.team-single__name {
    font-size: 1.375rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.25rem;
}
.team-single__position {
    font-size: 0.9375rem;
    color: #6B7280;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.team-single__dept {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #1A2B8C;
    background: #F0F4FF;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

/* Contact buttons */
.team-single__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid #F3F4F6;
}
.team-single__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}
.team-single__contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.team-single__contact svg {
    width: 18px;
    height: 18px;
}
.team-single__contact--email { color: #EA4335; }
.team-single__contact--email:hover { background: #EA4335; color: #fff; border-color: #EA4335; }
.team-single__contact--phone { color: #1A2B8C; }
.team-single__contact--phone:hover { background: #1A2B8C; color: #fff; border-color: #1A2B8C; }
.team-single__contact--whatsapp { color: #25D366; }
.team-single__contact--whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.team-single__contact--linkedin { color: #0077B5; }
.team-single__contact--linkedin:hover { background: #0077B5; color: #fff; border-color: #0077B5; }

/* ── Content Area ── */
.team-single__content {
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #F0F0F0;
}
.team-single__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A2B8C;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F0F4FF;
}
.team-single__bio {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
}
.team-single__bio p {
    margin-bottom: 1em;
}

/* ── CTA Section (bottom of single) ── */
.team-single__cta {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8ECFC 100%);
    border-radius: 14px;
    text-align: center;
}
.team-single__cta-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1A2B8C;
    margin-bottom: 0.5rem;
}
.team-single__cta-desc {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1.25rem;
}
.team-single__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #1A2B8C;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
}
.team-single__cta-btn:hover {
    background: #162366;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 43, 140, 0.25);
    color: #fff;
}

/* =============================================
   More Team Section (on single page)
   ============================================= */
.team-more {
    padding: 4rem 0;
    background: #F8FAFC;
    border-top: 1px solid #E8ECF4;
}
.team-more__title {
    font-size: var(--wp--preset--font-size--3xl, 1.875rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #111827;
}
.team-more__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .team-more__grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.team-more__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s;
    color: inherit;
}
.team-more__card:hover {
    box-shadow: 0 8px 24px rgba(26, 43, 140, 0.08);
    transform: translateY(-3px);
    border-color: #E5E7EB;
}
.team-more__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: #F3F4F6;
    border: 2px solid #F0F4FF;
}
.team-more__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-more__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1A2B8C 0%, #283593 100%);
}
.team-more__card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.team-more__card p {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin: 0;
}
