/**
 * Leadership Team - Card Design with Orange Toggle Button
 * Expandable cards showing team members
 */

.leadership-cards-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.leadership-cards-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Orange Toggle Button */
.leadership-toggle-btn {
    background-color: var(--brand-primary-orange);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    display: block;
    margin: 0 auto 3rem auto;
    min-width: 250px;
}

.leadership-toggle-btn:hover {
    background-color: #c66f35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 127, 69, 0.3);
}

.leadership-toggle-btn:active {
    transform: translateY(0);
}

/* Team Cards Container - Initially Hidden */
.team-cards-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.team-cards-container.active {
    max-height: 3000px; /* Large enough to accommodate all cards */
}

/* Grid of 3 Cards */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 900px; /* 3 cards * 300px */
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

/* Individual Team Card */
.team-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Team Photo */
.team-card-photo {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-card-photo img {
    transform: scale(1.05);
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.team-photo-placeholder i {
    font-size: 5rem;
    opacity: 0.5;
}

/* Card Content */
.team-card-content {
    padding: 1.5rem;
}

.team-card-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.team-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-mid-blue-gray);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bio - Initially Hidden */
.team-card-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 1rem;
}

.team-card.expanded .team-card-bio {
    max-height: 500px;
}

.team-card-bio p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* View More/Less Button */
.team-card-btn {
    background-color: transparent;
    color: var(--brand-primary-orange);
    border: 2px solid var(--brand-primary-orange);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    width: 100%;
    display: block;
}

.team-card-btn:hover {
    background-color: var(--brand-primary-orange);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 127, 69, 0.2);
}

.team-card-btn:active {
    transform: translateY(0);
}

/* Change button text content based on state */
.team-card-btn::before {
    content: 'Learn more';
}

.team-card.expanded .team-card-btn::before {
    content: 'View less';
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .leadership-cards-section {
        padding: 3rem 0;
    }

    .leadership-toggle-btn {
        min-width: 200px;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .team-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-card-photo {
        height: 300px;
    }

    .team-card-name {
        font-size: 1.25rem;
    }

    .team-card-title {
        font-size: 0.875rem;
    }
}
