/* ============================================================
   TEAM SECTION
   ============================================================ */

.team-section {
    width: 100%;
    padding: 90px 0 100px;
    background: #ffffff;
    overflow: hidden;
}


.team-container {
    width: min(1400px, 92%);
    margin: 0 auto;
}


/* ============================================================
   TEAM HEADING
   ============================================================ */

.team-heading {
    text-align: center;
    margin-bottom: 50px;
}


.team-subtitle {
    display: block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 4px;
    text-transform: uppercase;

    color: #c99a3d;

    margin-bottom: 12px;
}


.team-title {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(32px, 4vw, 52px);

    font-weight: 500;

    line-height: 1.15;

    color: #181818;
}


/* ============================================================
   CAROUSEL
   ============================================================ */

.team-carousel {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    gap: 0;
}


/* ============================================================
   VIEWPORT
   ============================================================ */

.team-carousel-viewport {
    width: 100%;

    overflow: hidden;

    position: relative;

    touch-action: pan-y;

    cursor: grab;
}


.team-carousel-viewport.is-dragging {
    cursor: grabbing;
}


/* ============================================================
   TRACK
   ============================================================ */

.team-track {
    display: flex;

    flex-wrap: nowrap;

    gap: 20px;

    width: max-content;

    transform: translate3d(0, 0, 0);

    will-change: transform;

    user-select: none;
}


/* ============================================================
   TEAM CARD
   ============================================================ */

.team-card {
    box-sizing: border-box;

    /*
       EXACTLY 5 CARDS ON DESKTOP

       5 cards + 4 gaps
    */

    flex: 0 0
        calc(
            (100vw - (8vw) - 80px) / 5
        );

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e8e8e8;

    border-radius: 16px;

    padding: 26px 20px 28px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.team-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.10);
}


/* ============================================================
   TEAM IMAGE
   ============================================================ */

.team-card img {
    display: block;

    width: 124px;
    height: 144px;

    object-fit: cover;

    margin: 0 auto 20px;

    border-radius: 12px;

    pointer-events: none;

    user-select: none;
}


/* ============================================================
   NAME
   ============================================================ */

.team-card h3 {
    margin: 0 0 8px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 20px;

    line-height: 1.25;

    font-weight: 700;

    color: #181818;
}


/* ============================================================
   ROLE
   ============================================================ */

.team-card h4 {
    margin: 0 0 22px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 500;

    color: #777777;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.team-card p {
    margin: 0 auto 25px;

    max-width: 230px;

    min-height: 68px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    line-height: 1.6;

    color: #707070;
}


/* ============================================================
   LINKEDIN
   ============================================================ */

.team-card a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    margin: 0 auto;

    border-radius: 8px;

    background: #111111;

    color: #ffffff;

    text-decoration: none;

    font-size: 18px;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.team-card a:hover {
    transform: translateY(-3px);
}


/* ============================================================
   ARROWS
   ============================================================ */

.team-carousel-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 20;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border: none;

    border-radius: 50%;

    background: #111111;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.team-carousel-arrow:hover {
    transform:
        translateY(-50%)
        scale(1.08);
}


.team-carousel-prev {
    left: -27px;
}


.team-carousel-next {
    right: -27px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .team-container {
        width: 90%;
    }


    .team-card {
        /*
           3 cards
        */

        flex-basis:
            calc(
                (90vw - 40px) / 3
            );
    }


    .team-card img {
        width: 110px;
        height: 130px;
    }

}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media (max-width: 800px) {

    .team-section {
        padding: 70px 0 80px;
    }


    .team-container {
        width: 86%;
    }


    .team-card {

        /*
           2 cards
        */

        flex-basis:
            calc(
                (86vw - 20px) / 2
            );

    }


    .team-carousel-arrow {
        width: 46px;
        height: 46px;

        font-size: 17px;
    }


    .team-carousel-prev {
        left: -23px;
    }


    .team-carousel-next {
        right: -23px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .team-section {
        padding: 55px 0 65px;
    }


    .team-container {
        width: 82%;
    }


    .team-heading {
        margin-bottom: 35px;
    }


    .team-title {
        font-size: 31px;
    }


    .team-subtitle {
        font-size: 10px;

        letter-spacing: 3px;
    }


    .team-card {

        /*
           ONE CARD ON MOBILE
        */

        flex-basis: 100%;

        padding:
            20px 18px 24px;

    }


    .team-card img {
        width: 105px;
        height: 120px;

        margin-bottom: 16px;
    }


    .team-card h3 {
        font-size: 19px;
    }


    .team-card h4 {
        font-size: 13px;

        margin-bottom: 17px;
    }


    .team-card p {
        font-size: 13px;

        max-width: 260px;

        min-height: auto;

        margin-bottom: 20px;
    }


    .team-carousel-arrow {
        width: 40px;
        height: 40px;

        font-size: 14px;
    }


    .team-carousel-prev {
        left: -20px;
    }


    .team-carousel-next {
        right: -20px;
    }

}


/* ============================================================
   NIMITT CREATIONS
   TEAM CAROUSEL
   ============================================================ */

.nc-team {
    width: 100%;
    padding: 90px 0 100px;
    background: #ffffff;
    overflow: hidden;
}


.nc-team-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}


/* ============================================================
   HEADING
   ============================================================ */

.nc-team-heading {
    text-align: center;
    margin-bottom: 50px;
}


.nc-team-subtitle {
    display: block;

    margin-bottom: 12px;

    color: #c99a3b;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;
}


.nc-team-title {
    margin: 0;

    font-family:
        "Cormorant Garamond",
        Georgia,
        "Times New Roman",
        serif;

    font-size: 48px;
    line-height: 1.15;

    font-weight: 600;

    color: #222222;
}


/* ============================================================
   CAROUSEL
   ============================================================ */

.nc-team-carousel {
    position: relative;

    width: 100%;

    box-sizing: border-box;

    padding: 0 25px;
}


/* ============================================================
   VIEWPORT
   ============================================================ */

.nc-team-viewport {
    width: 100%;

    overflow: hidden;

    position: relative;

    cursor: grab;

    user-select: none;
    -webkit-user-select: none;

    touch-action: pan-y;
}


.nc-team-viewport.nc-dragging {
    cursor: grabbing;
}


/* ============================================================
   TRACK
   ============================================================ */

.nc-team-track {
    display: flex;

    flex-wrap: nowrap;

    align-items: stretch;

    gap: 20px;

    width: max-content;

    margin: 0;

    padding: 10px 0 25px;

    box-sizing: border-box;

    will-change: transform;

    transform: translate3d(0, 0, 0);
}


/* ============================================================
   TEAM CARD
   ============================================================ */

.nc-team-card {

    /*
     * IMPORTANT:
     *
     * Width is set by JavaScript according to the
     * actual viewport width.
     *
     * Do NOT use percentage width here.
     */

    flex: 0 0 auto;

    box-sizing: border-box;

    padding: 25px 18px;

    background: #ffffff;

    border: 1px solid #e8e8e8;

    border-radius: 16px;

    text-align: center;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);

    overflow: hidden;
}


/* ============================================================
   IMAGE
   ============================================================ */

.nc-team-card img {

    display: block;

    width: 120px;
    height: 140px;

    margin: 0 auto 18px;

    object-fit: cover;

    border-radius: 12px;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;
}


/* ============================================================
   NAME
   ============================================================ */

.nc-team-card h3 {

    margin: 0 0 7px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 19px;

    line-height: 1.3;

    font-weight: 700;

    color: #222222;
}


/* ============================================================
   ROLE
   ============================================================ */

.nc-team-card h4 {

    margin: 0 0 15px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 500;

    color: #666666;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.nc-team-card p {

    margin: 0 auto 20px;

    max-width: 230px;

    min-height: 72px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    line-height: 1.65;

    color: #666666;
}


/* ============================================================
   LINKEDIN
   ============================================================ */

.nc-team-card a {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0 auto;

    border-radius: 8px;

    background: #111111;

    color: #ffffff;

    text-decoration: none;

    font-size: 18px;
}


/* ============================================================
   ARROWS
   ============================================================ */

.nc-team-arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 100;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: #111111;

    color: #ffffff;

    font-size: 17px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.nc-team-arrow:hover {

    transform:
        translateY(-50%)
        scale(1.08);
}


.nc-team-prev {
    left: 0;
}


.nc-team-next {
    right: 0;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .nc-team-container {
        width: 88%;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .nc-team {
        padding: 60px 0 70px;
    }


    .nc-team-container {
        width: 100%;
    }


    .nc-team-heading {
        padding: 0 20px;

        margin-bottom: 35px;
    }


    .nc-team-title {
        font-size: 34px;
    }


    .nc-team-subtitle {
        font-size: 10px;

        letter-spacing: 3px;
    }


    .nc-team-carousel {
        padding: 0 42px;
    }


    .nc-team-card {
        padding: 22px 18px;
    }


    .nc-team-card img {
        width: 110px;
        height: 130px;
    }


    .nc-team-arrow {

        width: 42px;
        height: 42px;

        font-size: 14px;

    }


    .nc-team-prev {
        left: 5px;
    }


    .nc-team-next {
        right: 5px;
    }

}

/* ============================================================
   NC TEAM MANUAL DRAG
   ============================================================ */

.nc-team-viewport {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;

    /*
     * Allow vertical page scrolling on touch,
     * while JavaScript handles horizontal swipe.
     */
    touch-action: pan-y;
}

.nc-team-viewport:active {
    cursor: grabbing;
}

.nc-team-track {
    display: flex;
    gap: 20px;

    /*
     * Prevent browser from trying to
     * optimize away the movement.
     */
    will-change: transform;

    user-select: none;
    -webkit-user-select: none;
}

.nc-team-card {
    flex-shrink: 0;
}

.nc-team-card img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    /*
     * Very important for drag.
     */
    pointer-events: none;
}

.nc-team-viewport {
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.nc-team-viewport.nc-dragging {
    cursor: grabbing;
}

.nc-team-track {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.nc-team-card {
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.nc-team-card img {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.nc-team-viewport {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
    cursor: grab !important;
}

.nc-team-track {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.nc-team-card {
    pointer-events: auto !important;
}

.nc-team-card img {
    pointer-events: none !important;
}

.nc-team-arrow {
    z-index: 100 !important;
}