/* =========================================
   CORE TEAM SECTION
   Theme: Odoo X Indus (Deep Purple & Glass)
========================================= */

.core-team-section {
    padding: 100px 0;
    /* Seamless blend with Schedule/About gradients */
    background: linear-gradient(180deg, #110b1d 0%, #241235 50%, #110b1d 100%);
    position: relative;
    overflow: hidden;
}

/* Background Ambient Glows */
.core-team-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -100px;
    width: 500px;
    height: 500px;
    background: #7e22ce;
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.core-team-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -100px;
    width: 500px;
    height: 500px;
    background: #4f46e5;
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.team-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    /* Wide for carousel */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section Header --- */
.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-title span {
    color: #d8b4fe;
    /* Soft Purple */
    background: linear-gradient(120deg, #d8b4fe, #7e22ce);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-subtitle {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Separated Heads Grid --- */
.team-heads-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.team-card.head-team-card {
    width: 280px;
    height: 420px;
    transform: scale(1);
    opacity: 1;
    z-index: 5;
    flex: 0 0 auto;
    margin: 0;
}

.team-card.head-team-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #a855f7;
    box-shadow: 0 20px 50px rgba(126, 34, 206, 0.4);
}

.team-card.head-team-card .team-img-box img {
    filter: grayscale(0%);
}

.team-card.head-team-card .member-name {
    transform: translateY(0);
}

/* --- Carousel Wrapper --- */
.team-carousel {
    padding: 50px 0;
    position: relative;
    /* Ensure shadows don't clip */
}

/* Slick Specific Overrides for proper layout */
.slick-track {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.slick-list {
    overflow: visible;
    /* Allow glow/shadow to spill */
    margin: 0 -10px;
}

/* --- CARD DESIGN --- */
.team-card {
    position: relative;
    width: 100px;
    /* Fixed width base */
    height: 500px;
    margin: 0 15px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.9);
    opacity: 0.6;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* The Photo Area (Top 80%) */
.team-img-box {
    width: 100%;
    height: 80%;
    overflow: hidden;
    position: relative;
}

.team-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
    filter: grayscale(80%);
    /* Muted by default */
}

/* Card Info (Bottom 20%) */
.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(180deg, rgba(20, 15, 30, 0.8) 0%, rgba(20, 15, 30, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.member-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    transform: translateY(5px);
    transition: transform 0.3s ease;
}

.member-role {
    font-size: 0.9rem;
    color: #a855f7;
    /* Accent Color */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- ACTIVE STATE (Slick Center) --- */
.slick-center .team-card {
    transform: scale(1.1);
    /* Zoom up */
    opacity: 1;
    z-index: 10;
    border-color: #a855f7;
    box-shadow: 0 20px 50px rgba(126, 34, 206, 0.4);
}

.slick-center .team-img-box img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.slick-center .member-name {
    transform: translateY(0);
}

/* --- HOVER EFFECT (On desktop active card) --- */
.slick-center .team-card:hover .team-img-box img {
    transform: scale(1.1);
}

/* --- Controls --- */
.team-nav-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.team-prev,
.team-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-prev:hover,
.team-next:hover {
    background: #a855f7;
    border-color: #a855f7;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .team-card {
        width: 260px;
        height: 380px;
    }

    .team-card.head-team-card {
        width: 240px;
        height: 360px;
    }
}

@media (max-width: 768px) {
    .core-team-section {
        padding: 60px 0;
    }

    .team-title {
        font-size: 2rem;
    }

    .team-heads-grid {
        gap: 20px;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: center;
    }

    .team-card.head-team-card {
        width: 220px;
        height: 320px;
        margin: 0;
    }

    /* On mobile, center mode allows partial visibility */
    .team-carousel .team-card {
        width: 70vw;
        /* Take mostly screen */
        height: 60vh;
        max-height: 450px;
        margin: 0 10px;
    }

    .slick-center .team-card {
        transform: scale(1.05);
    }
}