/* Team Intro Section with Image */
.team-intro-container {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.team-intro-content {
    flex: 1;
    min-width: 300px;
}

.team-intro-image {
    flex: 1;
    min-width: 300px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.team-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--accent-orange);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .team-intro-image {
        margin-top: 0;
        order: -1;
        width: 100%;
    }

    .team-carousel {
        height: 300px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .team-carousel {
        height: 250px;
    }

    .carousel-caption {
        padding: 10px;
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }
}

.simple-team-title {
    font-family: var(--font--primary);
    color: var(--text-light);
    background-color: var(--accent-orange);
    display: inline-block;
    padding: 10px 40px 5px 40px;
    font-size: 1.8rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 30px) 100%, 0 100%);
    opacity: 0;
    transform: translateX(-100%);
    animation: slideInTitle 0.8s ease-out 0.3s forwards;
}

@keyframes slideInTitle {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.simple-team-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* Team Layout */
.team-layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.team-nav-column {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.team-content-column {
    flex: 2;
    min-width: 300px;
}

.team-card a {
    text-decoration: none;
}

.team-card h3 {
    font-family: var(--font-accent);
    color: var(--text-muted);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.team-card a:hover h3,
.team-card a.active-link h3 {
    color: var(--accent-orange);
}

/* Team Content Panels */
.team-content-panel {
    display: none;
    color: var(--text-light);
    animation: fadeIn 0.5s ease-in-out;
}

.team-content-panel.active {
    display: block;
}

.team-content-panel h2 {
    font-family: var(--font-accent);
    color: var(--accent-orange);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.team-content-panel p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet */
@media (max-width: 992px) {
    .team-intro-container {
        gap: 40px;
        padding: 30px 20px;
    }

    .team-layout-container {
        gap: 40px;
        padding: 30px 20px;
    }

}

/* Mobile */
@media (max-width: 768px) {
    .team-intro-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }

    .team-intro-image {
        margin-top: 0;
        order: -1;
        width: 100%;
    }

    .team-intro-image img {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .simple-team-title {
        padding: 10px 25px 5px 25px;
        font-size: 1.5rem;
        margin-bottom: 25px;
        text-align: center;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .simple-team-content p {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Team Layout Mobile */
    .team-layout-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }

    .team-nav-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .team-card {
        text-align: center;
    }

    .team-card h3 {
        font-size: 1.2rem;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .team-card a:hover h3,
    .team-card a.active-link h3 {
        background: rgba(243, 112, 42, 0.2);
        transform: translateY(-2px);
    }

    .team-content-column {
        padding: 0;
        width: 100%;
    }

    .team-content-panel h2 {
        font-size: 2rem;
        text-align: center;
    }

    .team-content-panel p {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
    }


    .section-title-bottom-banner {
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .team-intro-container {
        gap: 20px;
        padding: 15px 10px;
    }

    .simple-team-title {
        font-size: 1.3rem;
        padding: 8px 20px 4px 20px;
        margin-bottom: 20px;
    }

    .simple-team-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .team-layout-container {
        gap: 25px;
        padding: 15px 10px;
    }

    .team-nav-column {
        gap: 10px;
    }

    .team-card h3 {
        font-size: 1.1rem;
        padding: 6px 12px;
    }

    .team-content-panel h2 {
        font-size: 1.5rem;
    }

    .team-content-panel p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section-title-bottom-banner {
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .team-nav-column {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 100%;
    }

    .team-card h3 {
        width: 100%;
        padding: 10px;
    }

    .simple-team-title {
        font-size: 1.1rem;
        padding: 6px 15px 3px 15px;
    }

}