/* =========================================================
   LEYSAM TEAM SECTION
========================================================= */

.leysam-team-section {
    width: 100%;
    padding: 80px 0;
    overflow: hidden;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.leysam-team-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    padding: 0 20px;
    text-align: center;
}

.leysam-team-eyebrow {
    display: block;
    margin-bottom: 10px;

    color: #e87519;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.leysam-team-heading h2 {
    margin: 0 0 16px;

    color: #241c17;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
}

.leysam-team-heading p {
    margin: 0;

    color: #666;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   SLIDER
========================================================= */

.leysam-team-slider-wrap {
    position: relative;

    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.leysam-team-slider {
    display: flex;
    gap: 24px;

    overflow-x: auto;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    padding: 5px 2px 20px;
}

.leysam-team-slider::-webkit-scrollbar {
    display: none;
}


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

.leysam-team-card {
    flex: 0 0 calc((100% - 48px) / 3);

    min-width: 0;

    overflow: hidden;

    background: #fff;

    border: 1px solid rgba(36, 28, 23, 0.08);
    border-radius: 18px;

    scroll-snap-align: start;

    box-shadow:
        0 12px 35px rgba(36, 28, 23, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.leysam-team-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(36, 28, 23, 0.12);
}


/* =========================================================
   PHOTO
========================================================= */

.leysam-team-photo {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #f4eee8;
}

.leysam-team-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center top;

    transition: transform 0.45s ease;
}

.leysam-team-card:hover .leysam-team-photo img {
    transform: scale(1.035);
}


/* Placeholder if no image is uploaded */

.leysam-team-photo-placeholder {
    width: 100%;
    height: 100%;

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

    background: #fff8f1;

    color: #e87519;

    font-size: 70px;
    font-weight: 700;
}


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

.leysam-team-content {
    padding: 24px 24px 28px;
}

.leysam-team-content h3 {
    margin: 0 0 5px;

    color: #241c17;

    font-size: 22px;
    line-height: 1.25;
}

.leysam-team-role {
    margin-bottom: 14px;

    color: #e87519;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.leysam-team-bio {
    margin: 0;

    color: #666;

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   ARROWS
========================================================= */

.leysam-team-arrow {
    position: absolute;
    top: 42%;

    z-index: 10;

    width: 48px;
    height: 48px;

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

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #fff;
    color: #241c17;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(36, 28, 23, 0.16);

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

.leysam-team-arrow:hover {
    background: #e87519;
    color: #fff;
    transform: scale(1.05);
}

.leysam-team-prev {
    left: -24px;
}

.leysam-team-next {
    right: -24px;
}


/* =========================================================
   DOTS
========================================================= */

.leysam-team-dots {
    display: none;
}


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

@media (max-width: 900px) {

    .leysam-team-section {
        padding: 65px 0;
    }

    .leysam-team-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .leysam-team-prev {
        left: -15px;
    }

    .leysam-team-next {
        right: -15px;
    }
}


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

@media (max-width: 600px) {

    .leysam-team-section {
        padding: 55px 0;
    }

    .leysam-team-heading {
        margin-bottom: 30px;
        padding: 0 22px;
    }

    .leysam-team-heading h2 {
        font-size: 36px;
    }

    .leysam-team-heading p {
        font-size: 15px;
        line-height: 1.65;
    }

    .leysam-team-slider-wrap {
        width: 100%;
    }

    .leysam-team-slider {
        gap: 16px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .leysam-team-card {
        /*
         * Slightly narrower than the screen so the next
         * card remains visible and encourages swiping.
         */
        flex: 0 0 84%;
    }

    .leysam-team-content {
        padding: 21px 20px 24px;
    }

    .leysam-team-content h3 {
        font-size: 20px;
    }

    .leysam-team-bio {
        font-size: 14px;
    }

    /*
     * Mobile users swipe instead of using arrows.
     */
    .leysam-team-arrow {
        display: none;
    }
}