/* Team Hero Section */
.team-hero {
    position: relative;
    padding: 160px 0 80px;
    margin-top: 80px;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/listing3a.jpeg') no-repeat center center/cover, #2c5530;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1;
}

.team-hero-content {
    position: relative;
    z-index: 2;
}

.team-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.team-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Team Navigation */
.team-nav {
    background: var(--light);
    padding: 40px 0;
}

.team-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    border: 2px solid #2c5530;
    color: #2c5530;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.category-btn:hover {
    background: #2c5530;
    color: white;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #2c5530;
    color: white;
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.section-title:hover {
    color: #1a3b1e;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-header.collapsed .section-title::after {
    content: '▼';
    font-size: 1rem;
    margin-left: 0.5rem;
}

.section-header:not(.collapsed) .section-title::after {
    content: '▲';
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* Grid Layouts */
.directors-section, .management-section, .advisors-section {
    background: white;
    padding: 60px 0;
}

.directors-section.collapsed .directors-grid,
.management-section.collapsed .management-grid,
.advisors-section.collapsed .advisors-grid {
    display: none;
}

.directors-grid, .management-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advisors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Team Member Card */
.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.team-member.director {
    border: 3px solid var(--secondary);
}

.team-member.director .member-role {
    background: var(--secondary);
    color: var(--dark);
}

.team-member.management .member-role {
    background: #2c5530;
    color: white;
}

.team-member.advisor .member-role {
    background: #3498db;
    color: white;
}

/* Member Image */
.member-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-image::after {
    content: '👤';
    font-size: 2.5rem;
    color: #dee2e6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.member-image img {
    position: relative;
    z-index: 2;
}

/* Member Info */
.member-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.member-role {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-bio {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.contact-link:hover {
    background: var(--light);
    transform: translateX(5px);
}

.contact-link.phone:hover {
    border-color: #2c5530;
}

.contact-link.whatsapp:hover {
    border-color: #25D366;
}

.contact-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-link.phone .contact-icon {
    color: #2c5530;
}

.contact-link.whatsapp .contact-icon {
    color: #25D366;
}

.contact-text {
    color: var(--dark);
    font-weight: 500;
    flex-grow: 1;
    text-align: left;
}

/* Team CTA Section */
.team-cta {
    background: linear-gradient(135deg, #2c5530 0%, #1a3b1e 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.team-cta .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-cta .cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.team-cta .btn-primary {
    background: #2c5530;
    border: 2px solid #2c5530;
}

.team-cta .btn-primary:hover {
    background: #1a3b1e;
    border-color: #1a3b1e;
}

.team-cta .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.team-cta .btn-outline:hover {
    background: white;
    color: #2c5530;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .advisors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .directors-grid, .management-grid, .advisors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .team-hero-content h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 120px 0 60px;
    }
    .team-categories {
        flex-direction: column;
        align-items: center;
    }
    .category-btn {
        width: 100%;
        max-width: 300px;
    }
    .team-cta .cta-content h2 {
        font-size: 2rem;
    }
    .member-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .directors-grid, .management-grid, .advisors-grid {
        grid-template-columns: 1fr;
    }
    .team-hero-content h1 {
        font-size: 2rem;
    }
    .team-hero-content p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .member-image {
        height: 280px;
    }
    .team-cta .cta-buttons {
        flex-direction: column;
    }
    .team-cta .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Animation for category filtering */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member.hidden {
    display: none;
}

.team-member.visible {
    display: flex;
    animation: fadeInUp 0.5s ease;
}