/* =========================================================
   OUR TEAM ARCHIVE
========================================================= */

.our-team-archive .team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}


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

.our-team-archive .team-card {
    position: relative;
    min-width: 0;
}

.our-team-archive .team-card-inner {
    position: relative;
    width: 100%;
}


/* =========================================================
   TEAM IMAGE
========================================================= */

.our-team-archive .team-image {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
}

.our-team-archive .team-image-inner {
    position: relative;

    /*
     * Diteck reference:
     * 405 x 520 ≈ 128%
     */
    padding-top: 128%;

    overflow: hidden;

    background: var(--primary, #005cc8);

    border-radius: 20px;
}


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

.our-team-archive .team-image img {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    opacity: 0.9;

    /*
     * Reference uses grayscale
     */
    filter: grayscale(100%);

    border: 0;
    border-radius: 0;
    box-shadow: none;

    transition:
        transform 0.5s ease,
        filter 0.5s ease,
        opacity 0.5s ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.our-team-archive .team-card:hover .team-image img {
    transform: scale(1.04);

    filter: grayscale(0%);

    opacity: 1;
}


/* =========================================================
   GRADIENT
========================================================= */

.our-team-archive .team-card-gradient {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    z-index: 2;

    pointer-events: none;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 55.91%,
            #000 100%
        );

    transition: background 0.35s ease;
}


/* =========================================================
   HOVER GRADIENT
========================================================= */

.our-team-archive .team-card:hover .team-card-gradient {

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 55.91%,
            var(--primary, #005cc8) 100%
        );
}


/* =========================================================
   TEAM CONTENT
========================================================= */

.our-team-archive .team-content {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;

    padding: 25px 40px;

    z-index: 3;

    box-sizing: border-box;
}


/* =========================================================
   NAME
========================================================= */

.our-team-archive .team-name {
    margin: 0 0 4px;

    color: #fff;

    font-size: 32px;
    line-height: 1.15;
    font-weight: 500;
}

.our-team-archive .team-name a {
    color: #fff;
    text-decoration: none;
}


/* =========================================================
   DESIGNATION
========================================================= */

.our-team-archive .team-job {
    color: #fff;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
}


/* =========================================================
   PLUS BUTTON
========================================================= */

.our-team-archive .team-plus {

    position: absolute;

    right: 0;
    bottom: -30px;

    width: 64px;
    height: 64px;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fff;

    color: #111;

    border-radius: 20px;

    text-decoration: none;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.our-team-archive .team-plus span {
    display: block;

    font-size: 27px;
    font-weight: 300;

    line-height: 1;
}


/* Plus hover */

.our-team-archive .team-plus:hover {
    background: var(--primary, #005cc8);

    color: #fff;

    transform: translateY(-4px);
}


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

.our-team-archive .team-image-placeholder {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #e9ebf1;

    color: #555;

    font-size: 20px;

    text-align: center;
}


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

@media (max-width: 1200px) {

    .our-team-archive .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .our-team-archive .team-content {
        padding: 20px 25px;
    }

    .our-team-archive .team-name {
        font-size: 27px;
    }

}


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

@media (max-width: 991px) {

    .our-team-archive .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .our-team-archive .team-name {
        font-size: 26px;
    }

    .our-team-archive .team-job {
        font-size: 17px;
    }

}


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

@media (max-width: 767px) {

    .our-team-archive .team-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .our-team-archive .team-card {
        max-width: 405px;
        margin: 0 auto;
    }

    .our-team-archive .team-image-inner {
        padding-top: 128%;
        border-radius: 20px;
    }

    .our-team-archive .team-content {
        padding: 20px 25px;
    }

    .our-team-archive .team-name {
        font-size: 27px;
    }

    .our-team-archive .team-job {
        font-size: 17px;
    }

    .our-team-archive .team-plus {
        width: 58px;
        height: 58px;

        bottom: -28px;

        border-radius: 18px;
    }

}

.button-popup-detail {
    position: absolute;
    width: 62px;
    height: 38px;
    bottom: 22px;
    right: 0;
    padding: 14px 0 0 14px;
    border-radius: 20px 0 0;
    background-color: var(--background_light);
    z-index: 2;
}
.button-popup-detail:before {
    content: "";
    width: 20px;
    height: 20px;
    clip-path: path("M 0 0 Q 0,20 21,21 L -1 21 Z");
    background-color: var(--background_light);
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: rotate(-90deg);
}

.button-popup-detail .popup-icon:before {
    position: absolute;
    width: 48px;
    height: 48px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--accent);
    font-size: 14px;
    bottom: -22px;
    right: 0;
    z-index: 3;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.button-popup-detail .popup-icon:before, .button-popup-detail .popup-icon:before {
    font-family: "diteck-icon";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: middle;
    content: "";
}

.button-popup-detail:after {
    content: "";
    width: 20px;
    height: 20px;
    clip-path: path("M 0 0 Q 0,20 21,21 L -1 21 Z");
    background-color: var(--background_light);
    position: absolute;
    bottom: 0;
    right: 100%;
    transform: rotate(-90deg);
}


/* =========================================
   SINGLE TEAM
========================================= */

.single-team-hero {
    padding: 80px 20px;
    background: #f6f8fb;
}

.single-team-hero .container,
.single-team-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

.single-team-hero-inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 70px;
    align-items: center;
}

.single-team-image {
    overflow: hidden;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

.single-team-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.single-team-intro h1 {
    margin: 0 0 15px;
    color: #2b2463;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
}

.single-team-designation {
    margin-bottom: 8px;
    color: #005cc8;
    font-size: 22px;
    font-weight: 700;
}

.single-team-department {
    color: #777;
    font-size: 16px;
}

.single-team-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.single-team-social a {
    padding: 10px 16px;
    border: 1px solid #e7ecf2;
    border-radius: 8px;
    background: #fff;
    color: #2b2463;
    text-decoration: none;
    transition: .3s ease;
}

.single-team-social a:hover {
    background: #005cc8;
    border-color: #005cc8;
    color: #fff;
}


/* =========================================
   CONTENT
========================================= */

.single-team-content {
    padding: 90px 20px;
}

.single-team-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 70px;
}

.single-team-main h2 {
    margin: 0 0 25px;
    color: #2b2463;
    font-size: 32px;
}

.team-biography {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}

.team-video {
    margin-top: 60px;
}

.team-video-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
}

.team-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================
   SIDEBAR
========================================= */

.team-info-box {
    padding: 30px;
    border-radius: 20px;
    background: #f6f8fb;
}

.team-info-box h3 {
    margin: 0 0 25px;
    color: #2b2463;
    font-size: 24px;
}

.team-info-item {
    padding: 18px 0;
    border-bottom: 1px solid #e1e6ed;
}

.team-info-item:last-child {
    border-bottom: 0;
}

.team-info-item strong {
    display: block;
    margin-bottom: 6px;
    color: #2b2463;
}

.team-info-item span,
.team-info-item a {
    color: #666;
    line-height: 1.5;
    word-break: break-word;
}

.team-info-item a {
    text-decoration: none;
}

.team-info-item a:hover {
    color: #005cc8;
}


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

@media (max-width: 991px) {

    .single-team-hero-inner {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }

    .single-team-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}

@media (max-width: 767px) {

    .single-team-hero {
        padding: 50px 15px;
    }

    .single-team-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-team-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .single-team-intro {
        text-align: center;
    }

    .single-team-social {
        justify-content: center;
    }

    .single-team-content {
        padding: 60px 15px;
    }

}

.team-skill {
    margin-bottom: 22px;
}

.team-skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #2b2463;
    font-size: 15px;
    font-weight: 600;
}

.team-skill-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 10px;
    background: #e7ecf2;
}

.team-skill-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #005cc8;
}