/*
    Suma Theme - Team Page Styles
*/

.team-page-main {
    background-color: var(--color-light-beige);
}

/* ==========================================
   Section: Team Hero
   ========================================== */
.team-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--color-light-beige);
    /* Soft beige background from screenshot */
    overflow: hidden;
}

.team-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: 1;
    /* Create a fade effect from left to right so the image blends into the background */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

.team-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Subtle overlay if the image is too bright, optional */
.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 245, 240, 0.1);
    /* Slight beige overlay */
}

.team-hero-container {
    position: relative;
    z-index: 2;
    padding: 100px 20px;
}

.team-hero-content {
    max-width: 650px;
}

.team-hero-content h1 {
    font-family: var(--font-heading, "Poppins", sans-serif);
    font-size: 4rem;
    font-weight: 500;
    color: #000;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.team-hero-subline {
    font-family: var(--font-main, "DM Sans", sans-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: #222;
    line-height: 1.3;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .team-hero {
        min-height: 70vh;
    }

    .team-hero-content h1 {
        font-size: 3rem;
    }

    .team-hero-subline {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .team-hero {
        min-height: auto;
        padding: 60px 0 300px 0;
        /* Space for the background image at the bottom */
    }

    .team-hero-bg {
        width: 100%;
        height: 350px;
        top: auto;
        bottom: 0;
        /* Fade top to bottom on mobile */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
    }

    .team-hero-content h1 {
        font-size: 1.8rem;
    }

    .team-hero-subline {
        font-size: 1.2rem;
    }
}

/* ==========================================
   Section: Team Carousel
   ========================================== */
.team-carousel-section {
    padding: 80px 0 100px;
    background-color: var(--color-light-beige);
    overflow: hidden;
}

.team-carousel-header {
    text-align: center;
    margin-bottom: 50px;
}

.team-carousel-header h2 {
    color: var(--color-secondary, #C8866B);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.team-carousel-header .subline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
}

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #555;
    z-index: 10;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: white;
    color: var(--color-secondary, #C8866B);
}

.carousel-arrow svg {
    width: 32px;
    height: 32px;
}

/* We hide arrows on mobile to prefer native scrolling */
@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }
}

.team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 20px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    flex-grow: 1;
    scroll-behavior: smooth;
}

.team-carousel::-webkit-scrollbar {
    display: none;
}

.team-card {
    min-width: 300px;
    width: 300px;
    height: 480px;
    flex-shrink: 0;
    scroll-snap-align: center;
    perspective: 1000px;
    cursor: pointer;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

@media (hover: hover) {
    .team-card:hover .team-card-inner {
        transform: rotateY(180deg);
    }
}

.team-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.team-card-front {
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.team-card-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card-name {
    color: var(--color-secondary, #C8866B);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-card-role {
    font-size: 0.85rem;
    font-style: italic;
    color: #222;
    margin-bottom: 12px;
}

.team-card-year {
    font-size: 0.9rem;
    color: #555;
}

.team-card-back {
    background-color: #1f201b;
    /* Dark greenish black */
    color: white;
    transform: rotateY(180deg);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-qa {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.qa-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.qa-icon {
    color: var(--color-secondary, #C8866B);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-text strong {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.qa-text p {
    color: var(--color-secondary, #C8866B);
    margin: 0;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.4;
}

/* ==========================================
   Section: Team Gallery
   ========================================== */
.team-gallery-section {
    padding: 80px 0 100px;
    background-color: var(--color-light-beige);
}

.team-gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.team-gallery-header h2 {
    color: var(--color-secondary, #C8866B);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.team-gallery-header .subline {
    font-size: 1.2rem;
    color: #333;
}

.gallery-carousel .gallery-card {
    min-width: 380px;
    width: 380px;
    height: 380px;
    flex-shrink: 0;
    scroll-snap-align: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .gallery-carousel .gallery-card {
        min-width: 280px;
        width: 280px;
        height: 280px;
    }
}

/* ==========================================
   Section: Team CTA
   ========================================== */