/* ==================== TEAM PAGE STYLES ==================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    text-align: center;
    padding: 70px 0 50px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 0.98rem;
    max-width: 500px;
    margin: 0 auto 18px;
    opacity: 0.9;
    line-height: 1.5;
}

.page-header .section-divider {
    background: var(--secondary-color);
    width: 45px;
    height: 3px;
}

/* ==================== LEADERSHIP SECTION ==================== */
.team-leadership {
    background: var(--bg-white);
    padding: 60px 0;
}

.leadership-grid {
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== MANAGEMENT TEAM GRID ==================== */
.team-management {
    background: var(--bg-light);
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ==================== TEAM MEMBER CARD ==================== */
.team-member-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
}

.team-member-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.team-member-card.featured {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 6px 25px rgba(201, 169, 65, 0.18);
    position: relative;
}

.team-member-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #e0a800, var(--secondary-color));
    z-index: 2;
    border-radius: 16px 16px 0 0;
}

.team-member-card.featured:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Member Image Wrapper */
.member-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.team-member-card.featured .member-image-wrapper {
    height: 340px;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: brightness(0.95) contrast(1.05);
}

.team-member-card:hover .member-image {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.1);
}

/* Gradient Overlay on Image */
.member-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.team-member-card:hover .member-image-wrapper::after {
    opacity: 0.6;
}

.member-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
}

.member-image-fallback::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Social Overlay */
.member-social-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.team-member-card:hover .member-social-overlay {
    bottom: 0;
}

.member-social-overlay a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.member-social-overlay a:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(201, 169, 65, 0.4);
}

/* Member Info */
.member-info {
    padding: 22px 20px 26px;
    text-align: center;
    position: relative;
}

.member-info::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--bg-white);
    border-radius: 4px;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.03);
}

.member-role-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(26, 86, 50, 0.2);
}

.team-member-card.featured .member-role-badge {
    background: linear-gradient(135deg, var(--secondary-color), #e0a800);
    color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(201, 169, 65, 0.3);
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.team-member-card.featured .member-name {
    font-size: 1.3rem;
}

.member-bio {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Expertise Tags */
.member-expertise {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.member-expertise span {
    background: linear-gradient(135deg, var(--bg-cream), var(--bg-light));
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.member-expertise span:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 50, 0.2);
}

/* ==================== TEAM VALUES SECTION ==================== */
.team-values {
    background: var(--bg-white);
    padding: 60px 0;
}

.team-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 850px;
    margin: 0 auto;
}

.team-value-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.team-value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.team-value-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.team-value-item:hover i {
    transform: scale(1.15);
    color: var(--secondary-color);
}

.team-value-item h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.team-value-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== JOIN TEAM CTA ==================== */
.join-team-cta {
    background: linear-gradient(135deg, var(--secondary-color), #e0a800);
    text-align: center;
    padding: 60px 0;
    color: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.join-team-cta::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.join-team-cta::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.join-team-cta h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.join-team-cta p {
    font-size: 0.98rem;
    max-width: 460px;
    margin: 0 auto 22px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.join-team-cta .btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 15px 34px;
    font-size: 0.98rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(26, 86, 50, 0.3);
}

.join-team-cta .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 86, 50, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .team-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .team-leadership,
    .team-management,
    .team-values {
        padding: 45px 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .member-image-wrapper {
        height: 270px;
    }
    
    .team-member-card.featured .member-image-wrapper {
        height: 300px;
    }
    
    .team-values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    
    .leadership-grid {
        max-width: 100%;
    }
    
    .member-social-overlay {
        bottom: 0;
    }
    
    .member-info::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }
    
    .page-header {
        padding: 50px 0 35px;
    }
    
    .team-leadership,
    .team-management,
    .team-values {
        padding: 35px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
        gap: 20px;
    }
    
    .leadership-grid {
        max-width: 360px;
    }
    
    .member-image-wrapper {
        height: 300px;
    }
    
    .team-member-card.featured .member-image-wrapper {
        height: 320px;
    }
    
    .team-values-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .join-team-cta h2 {
        font-size: 1.5rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-bio {
        font-size: 0.82rem;
    }
    
    .member-info::before {
        display: none;
    }
}