/* 
 * Team Module Styles 
 * Dedicated styles for the team list, home slider, and individual member profiles
 */

:root {
    --team-card-bg: #ffffff;
    --team-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --team-card-hover-shadow: 0 20px 40px rgba(46, 49, 146, 0.1);
    --team-accent: #2E3192;
    --team-accent-light: #4A4EB2;
    --team-text-main: #1A1A1A;
    --team-text-muted: #666666;
    --app-radius: 20px;
}

/* Breadcrumbs Design */
.breadcrumbs-new {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.breadcrumbs-new a {
    color: var(--team-text-muted);
    text-decoration: none;
    padding: 6px 12px;
    background: #f0f2f5;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.breadcrumbs-new a:hover {
    background: var(--team-accent);
    color: white;
}

.breadcrumbs-new .separator {
    color: #ccc;
    font-weight: 300;
}

.breadcrumbs-new .current {
    color: var(--team-accent);
}

/* Team Grid Layout (Full Page) */
.team-page {
    padding: 60px 0;
    background-color: #fdfdfd;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.team-intro h1 {
    font-size: 3rem;
    color: var(--team-text-main);
    margin-bottom: 15px;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Professional Team Card (Grid Version) */
.team-card {
    background: var(--team-card-bg);
    border-radius: 24px;
    padding: 0; /* Removing padding for bigger image */
    box-shadow: var(--team-card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--team-card-hover-shadow);
}

.tc-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .tc-image-wrapper img {
    transform: scale(1.08);
}

.fallback-img {
    padding: 40px;
    object-fit: contain !important;
    background: #f8f9fa;
    filter: none !important;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px;
}

.team-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--team-text-main);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.95rem;
    color: var(--team-accent);
    font-weight: 600;
}

.team-office {
    font-size: 0.85rem;
    color: var(--team-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.team-contact-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.contact-link {
    font-size: 1.1rem;
    color: var(--team-text-muted);
}

/* Housing Card */
.housing-card-small {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6eeff 100%);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    border: 1px solid rgba(46, 49, 146, 0.08);
    transition: all 0.3s ease;
    z-index: 10;
}

.housing-card-small:hover {
    background: linear-gradient(135deg, #e6eeff 0%, #dce8ff 100%);
    transform: scale(1.02);
    border-color: var(--team-accent);
}

.ah-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ah-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--team-accent);
}

.ah-desc {
    font-size: 0.75rem;
    color: var(--team-text-muted);
    line-height: 1.3;
}

/* Home Slider Styles (Crucial for Home Page) */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.team-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.team-nav {
    display: flex;
    gap: 10px;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-button-prev-custom:hover, 
.swiper-button-next-custom:hover {
    background: var(--team-accent) !important;
    color: white !important;
    border-color: var(--team-accent) !important;
}

.team-card-slider {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-img-box::after,
.tc-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.team-card-slider:hover .team-img-box::after,
.team-card:hover .tc-image-wrapper::after {
    animation: shimmerEffect 1.5s infinite;
}

@keyframes shimmerEffect {
    0% { left: -150%; }
    100% { left: 150%; }
}

.team-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--team-text-main);
}

.team-details p {
    font-size: 0.9rem;
    color: var(--team-text-muted);
}

/* Member Profile Page */
.member-profile {
    padding: 20px 0 80px;
    background: #ffffff;
}

.profile-grid-new {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
}

.profile-main-image {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.profile-header-new h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--team-text-main);
    margin-bottom: 5px;
}

.profile-position {
    font-size: 1.2rem;
    color: var(--team-accent);
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-contact-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.profile-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--team-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.profile-contact-item i {
    color: var(--team-accent);
    font-size: 1.2rem;
}

.social-btn-circle {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--team-text-main);
    text-decoration: none;
}

/* App-like Mobile Optimizations */
@media (max-width: 992px) {
    .profile-grid-new {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Reduce site header footprint */
    .navbar {
        padding: 10px 0 !important;
    }
    
    .logo img {
        height: 35px !important;
    }

    .btn-affordable {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    .team-page {
        padding: 30px 0;
    }

    .team-intro {
        margin-bottom: 30px;
    }

    .team-intro h1 {
        font-size: 2.2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        border-radius: 20px;
    }

    .team-info {
        padding: 20px;
    }

    .team-info h3 {
        font-size: 1.3rem;
    }

    .member-profile {
        padding-top: 0;
    }

    .breadcrumbs-new {
        margin: 10px 0 15px;
        gap: 5px;
    }

    .breadcrumbs-new a {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .profile-grid-new {
        display: block;
    }

    .profile-image-section {
        margin: 0 -15px 25px; /* Full width feel */
    }

    .profile-main-image {
        border-radius: 0 0 40px 40px; /* App-style header image */
        box-shadow: none;
        height: 380px; /* Shorter image */
        object-fit: cover;
        object-position: top;
    }

    .profile-header-new h1 {
        font-size: 2.2rem;
    }

    .profile-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        background: #f9f9f9;
        padding: 15px;
        border-radius: 20px;
        border: none;
        margin: 20px 0;
    }

    .profile-contact-item {
        width: 100%;
        padding: 12px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }

    .bio-section h3 {
        font-size: 1.4rem;
    }

    .housing-card-small {
        margin-top: 20px;
        padding: 20px;
        border-radius: 24px;
        background: linear-gradient(135deg, #f0f4ff 0%, #e0e9ff 100%);
    }

    .team .btn-text, 
    .team .team-nav {
        display: none !important;
    }
}
