/* ==========================
   BASE
========================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f1f5f9;
    font-family: 'Segoe UI', Arial, sans-serif;
}


/* ==========================
   HERO
========================== */

.team-hero {
    position: relative;

    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e3a5f 55%,
        #1d4ed8 100%
    );

    padding: 80px 20px 100px;

    text-align: center;

    overflow: hidden;
}


/* HERO RINGS */

.hero-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}


.h-ring {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.07);

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}


.r1 {
    width: 240px;
    height: 240px;
}


.r2 {
    width: 440px;
    height: 440px;
}


.r3 {
    width: 660px;
    height: 660px;

    animation: spin 24s linear infinite;
}


@keyframes spin {

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }

}


/* HERO GRID */

.hero-grid-lines {

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,.04) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.04) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        radial-gradient(
            ellipse 80% 90% at 50% 50%,
            black,
            transparent
        );
}


/* HERO CONTENT */

.team-hero-content {

    position: relative;

    z-index: 1;

    animation: fadeUp .6s ease both;
}


.hero-eyebrow {

    display: inline-block;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #93c5fd;

    margin-bottom: 12px;
}


.team-hero-content h1 {

    font-size: 48px;

    font-weight: 900;

    color: white;

    letter-spacing: -1.5px;

    margin-bottom: 12px;

    line-height: 1.1;
}


.hero-accent {

    background: linear-gradient(
        135deg,
        #60a5fa,
        #3b82f6
    );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;
}


.team-hero-content p {

    color: #93c5fd;

    font-size: 15px;
}


/* ANIMATION */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(16px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* ==========================
   MAIN WRAPPER
========================== */

.team-wrapper {

    max-width: 1280px;

    margin: -38px auto 0;

    padding: 0 20px 70px;

    position: relative;

    z-index: 2;
}


/* ==========================
   TOOLBAR
========================== */

.team-toolbar {

    display: flex;

    align-items: center;

    gap: 14px;

    background: white;

    border-radius: 16px;

    padding: 14px 20px;

    box-shadow:
        0 8px 28px rgba(15,23,42,.10);

    border: 1px solid #eef2f7;

    margin-bottom: 30px;

    flex-wrap: wrap;

    animation:
        fadeUp .5s ease .1s both;
}


/* SEARCH */

.search-wrap {

    flex: 1;

    display: flex;

    align-items: center;

    gap: 10px;

    background: #f8fafc;

    border: 1.5px solid #e2e8f0;

    border-radius: 10px;

    padding: 9px 14px;

    transition:
        border-color .2s,
        box-shadow .2s;

    min-width: 200px;
}


.search-wrap:focus-within {

    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.10);
}


.search-wrap svg {

    color: #94a3b8;

    flex-shrink: 0;
}


.search-wrap input {

    width: 100%;

    border: none;

    background: transparent;

    outline: none;

    font-size: 14px;

    color: #0f172a;

    font-family: inherit;
}


.search-wrap input::placeholder {

    color: #94a3b8;
}


/* MEMBER COUNT */

.member-count {

    font-size: 12px;

    font-weight: 700;

    color: #64748b;

    background: #f1f5f9;

    padding: 7px 15px;

    border-radius: 999px;

    white-space: nowrap;
}


/* ==========================
   TEAM GRID
========================== */


/* DESKTOP = 4 CARDS */

.team-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

    align-items: start;
}


/* ==========================
   TEAM CARD
========================== */

.team-card {

    position: relative;

    background: white;

    border-radius: 18px;

    text-align: center;

    text-decoration: none;

    color: inherit;

    border: 1px solid #e2e8f0;

    box-shadow:
        0 4px 15px rgba(15,23,42,.08);

    overflow: hidden;

    display: flex;

    flex-direction: column;

    min-width: 0;

    transition:

        transform .3s ease,

        box-shadow .3s ease,

        border-color .3s ease;

    opacity: 0;

    animation:
        cardIn .5s ease forwards;
}


@keyframes cardIn {

    from {

        opacity: 0;

        transform: translateY(18px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* CARD HOVER */

.team-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 18px 40px rgba(15,23,42,.13);

    border-color: #bfdbfe;
}


/* ==========================
   CARD GLOW
========================== */

.tc-glow {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(37,99,235,.07),
            transparent 65%
        );

    opacity: 0;

    transition: opacity .35s;

    pointer-events: none;
}


.team-card:hover .tc-glow {

    opacity: 1;
}


/* ==========================
   FULL MEMBER IMAGE
========================== */

.tc-avatar-wrap {

    width: 100%;

    height: 280px;

    position: relative;

    overflow: hidden;

    flex-shrink: 0;

    background: #e2e8f0;
}


/* IMAGE */

.tc-avatar-wrap img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    /*
       Face properly visible
    */

    object-position: center top;

    transition:
        transform .5s ease;
}


/* IMAGE HOVER */

.team-card:hover .tc-avatar-wrap img {

    transform: scale(1.05);
}


/* ==========================
   IMAGE PLACEHOLDER
========================== */

.tc-avatar-ph {

    width: 100%;

    height: 280px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:

        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: white;

    font-size: 50px;

    font-weight: 800;
}


/* ==========================
   MEMBER INFORMATION
========================== */

.tc-body {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 20px 15px 22px;

    background: white;
}


/* MEMBER NAME */

.tc-name {

    font-size: 18px;

    font-weight: 800;

    color: #0f172a;

    letter-spacing: -.3px;

    line-height: 1.3;
}


/* MEMBER POSITION */

.tc-role {

    font-size: 12px;

    font-weight: 700;

    color: #2563eb;

    text-transform: uppercase;

    letter-spacing: 1px;

    line-height: 1.4;
}


/* ==========================
   VIEW PROFILE BUTTON
========================== */

.tc-view-btn {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    font-size: 12px;

    font-weight: 700;

    color: white;

    background:

        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    padding: 11px 16px;

    margin-top: auto;

    transition:
        background .3s ease;
}


.team-card:hover .tc-view-btn {

    background:

        linear-gradient(
            135deg,
            #1d4ed8,
            #1e40af
        );
}


/* ==========================
   EMPTY / NO RESULTS
========================== */

.no-results {

    flex-direction: column;

    align-items: center;

    gap: 10px;

    padding: 60px 20px;

    color: #94a3b8;

    text-align: center;
}


.no-results svg {

    color: #cbd5e1;
}


.no-results p {

    font-size: 14px;

    font-weight: 600;
}


.team-empty {

    text-align: center;

    padding: 80px 20px;

    color: #94a3b8;

    background: white;

    border-radius: 20px;

    border: 1px solid #eef2f7;
}


.team-empty svg {

    margin-bottom: 16px;

    color: #cbd5e1;
}


.team-empty h3 {

    font-size: 18px;

    color: #334155;

    margin-bottom: 6px;
}


.team-empty p {

    font-size: 14px;
}


/* ==========================
   TABLET
========================== */


/* TABLET = 3 CARDS */

@media (max-width: 1000px) {

    .team-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }


    .tc-avatar-wrap {

        height: 250px;

    }


    .tc-avatar-ph {

        height: 250px;

    }

}


/* ==========================
   MOBILE
========================== */


/* MOBILE = 2 CARDS */

@media (max-width: 640px) {

    /* HERO */

    .team-hero {

        padding:
            60px 20px 80px;

    }


    .team-hero-content h1 {

        font-size: 30px;

    }


    /* WRAPPER */

    .team-wrapper {

        padding:
            0 12px 50px;

    }


    /* TOOLBAR */

    .team-toolbar {

        padding: 12px;

        gap: 10px;

        margin-bottom: 22px;

    }


    .search-wrap {

        min-width: 100%;

    }


    /* GRID = 2 CARDS */

    .team-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;

    }


    /* CARD */

    .team-card {

        border-radius: 14px;

    }


    /* IMAGE */

    .tc-avatar-wrap {

        width: 100%;

        height: 190px;

    }


    .tc-avatar-wrap img {

        width: 100%;

        height: 100%;

        object-fit: cover;

        object-position: center top;

    }


    /* PLACEHOLDER */

    .tc-avatar-ph {

        width: 100%;

        height: 190px;

        font-size: 32px;

    }


    /* INFO */

    .tc-body {

        padding:
            14px 8px 16px;

        gap: 6px;

    }


    /* NAME */

    .tc-name {

        font-size: 14px;

        line-height: 1.3;

    }


    /* ROLE */

    .tc-role {

        font-size: 9px;

        letter-spacing: .5px;

        line-height: 1.4;

    }


    /* BUTTON */

    .tc-view-btn {

        display: none;

    }


    /* HERO RING */

    .r3 {

        display: none;

    }

}


/* ==========================
   SMALL MOBILE
========================== */

@media (max-width: 380px) {

    .team-grid {

        gap: 10px;

    }


    .tc-avatar-wrap {

        height: 160px;

    }


    .tc-avatar-ph {

        height: 160px;

    }


    .tc-name {

        font-size: 12px;

    }


    .tc-role {

        font-size: 8px;

    }

}