/* Staff5 - Polished Design Matching Site Aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --pgc-purple: #4b1a51;
    --accent-gold: #d4af37;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --text-medium: #444444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 0;
}

/* Ensure header from main.css displays correctly */
body.secondary-page {
    background-color: #fff;
}

/* Don't override header styles from main.css */
header#main-header {
    /* Let main.css handle header positioning and styling */
}

.staff-content-section {
    padding: 80px 0 100px;
    background: var(--white);
    margin-top: 0;
}

/* Ensure hero section displays correctly - match original styling */
.repertoire-hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    max-height: 800px;
    background: #000;
    overflow: hidden;
}

.repertoire-hero-section .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .repertoire-hero-section {
        height: auto;
        max-height: none;
        aspect-ratio: 16 / 9;
    }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

.page-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    color: var(--pgc-purple);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--pgc-purple) 0%, var(--accent-gold) 100%);
    border-radius: 2px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    color: var(--pgc-purple);
    margin: 60px 0 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--pgc-purple) 0%, var(--accent-gold) 100%);
    border-radius: 2px;
}

/* Conductor Card - Special Layout with Image in Header */
.conductor-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.conductor-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 12px rgba(75, 26, 81, 0.08);
}

.conductor-card.expanded {
    overflow: visible;
}

/* Image Container - Fixed Size, Always Visible */
.conductor-image-container {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--light-gray);
    position: relative;
    z-index: 2;
    border-radius: 16px 0 0 16px;
}

.conductor-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.conductor-card:hover .conductor-image {
    transform: scale(1.02);
}

/* Content Wrapper - Contains Header and Bio */
.conductor-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 3;
}

/* Header Section - Grey Background */
.conductor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    cursor: pointer;
    background: linear-gradient(to bottom, #f8f8f8 0%, #f5f5f5 100%);
    min-height: 200px;
    box-sizing: border-box;
    position: relative;
    border-radius: 0 16px 0 0;
    transition: background 0.3s ease;
    border-bottom: 1px solid transparent;
}

.conductor-header:hover {
    background: linear-gradient(to bottom, #f5f5f5 0%, #f0f0f0 100%);
}

.conductor-card.expanded .conductor-header {
    border-radius: 0;
    border-bottom: 1px solid transparent;
}

.conductor-info {
    flex: 1;
}

.conductor-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    color: var(--pgc-purple);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.conductor-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.conductor-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pgc-purple);
    color: var(--white);
    border: 2px solid var(--pgc-purple);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(75, 26, 81, 0.2);
    transform: scale(1);
}

.conductor-toggle:hover {
    background: transparent;
    color: var(--pgc-purple);
    border-color: var(--pgc-purple);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(75, 26, 81, 0.3);
}

.conductor-toggle span {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.conductor-card.expanded .conductor-toggle {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.conductor-card.expanded .conductor-toggle:hover {
    background: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}

.conductor-card.expanded .conductor-toggle span {
    transform: rotate(90deg);
}

/* Content Section - Expandable Bio */
.conductor-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    position: relative;
}

.conductor-card.expanded .conductor-content {
    max-height: 2000px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    border-radius: 0 0 16px 16px;
}

/* Bio Text - Full Width */
.conductor-bio {
    padding: 25px;
    color: #444;
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.conductor-card.expanded .conductor-bio {
    background: var(--white);
    margin: 0;
    padding: 30px 35px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 16px 16px;
}

.conductor-bio p {
    margin-bottom: 25px;
}

.conductor-bio p:last-child {
    margin-bottom: 0;
}

/* Karyn V2 Card - Image on left, content on right (like conductor card) */
.karyn-v2-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.karyn-v2-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 12px rgba(75, 26, 81, 0.08);
}

.karyn-v2-card.expanded {
    overflow: visible;
}

.karyn-v2-image-container {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--light-gray);
    position: relative;
    z-index: 2;
    border-radius: 16px 0 0 16px;
}

.karyn-v2-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.karyn-v2-card:hover .karyn-v2-image {
    transform: scale(1.02);
}

.karyn-v2-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.karyn-v2-card .staff-header {
    border-radius: 0 16px 0 0;
    padding: 40px;
    background: linear-gradient(to bottom, #f8f8f8 0%, #f5f5f5 100%);
    min-height: 200px;
    box-sizing: border-box;
}

.karyn-v2-card .staff-header:hover {
    background: linear-gradient(to bottom, #f5f5f5 0%, #f0f0f0 100%);
}

.karyn-v2-card.expanded .staff-header {
    border-radius: 0;
    border-bottom: 1px solid transparent;
}

.karyn-v2-card .staff-content {
    border-radius: 0 0 16px 0;
}

.karyn-v2-card.expanded .staff-content {
    border-radius: 0 0 16px 0;
}

/* Staff Card - For Interns and Accompanists (Accordion Style) */
.staff-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 12px rgba(75, 26, 81, 0.08);
}

.staff-card.expanded {
    overflow: visible;
}

.staff-header {
    display: flex;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    background: linear-gradient(to bottom, #f8f8f8 0%, #f5f5f5 100%);
    position: relative;
    z-index: 1;
    border-radius: 16px 16px 0 0;
    transition: background 0.3s ease;
    border-bottom: 1px solid transparent;
}

.staff-header:hover {
    background: linear-gradient(to bottom, #f5f5f5 0%, #f0f0f0 100%);
}

.staff-card.expanded .staff-header {
    border-bottom: 1px solid transparent;
    border-radius: 16px 16px 0 0;
}

.staff-header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.staff-header-actions .email-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.staff-header-actions .email-link:hover {
    transform: translateY(-1px);
}


.staff-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.staff-card:hover .staff-image {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.staff-info {
    flex: 1;
}

.staff-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: var(--pgc-purple);
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.staff-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

.staff-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pgc-purple);
    color: var(--white);
    border: 2px solid var(--pgc-purple);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    margin-left: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(75, 26, 81, 0.2);
    transform: scale(1);
}

.staff-header .staff-toggle {
    margin-left: 0;
}

.staff-toggle:hover {
    background: transparent;
    color: var(--pgc-purple);
    border-color: var(--pgc-purple);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(75, 26, 81, 0.3);
}

.staff-toggle span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.staff-card.expanded .staff-toggle {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.staff-card.expanded .staff-toggle:hover {
    background: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}

.staff-card.expanded .staff-toggle span {
    transform: rotate(90deg);
}

.staff-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
}

.staff-card.expanded .staff-content {
    max-height: 2000px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    border-radius: 0 0 16px 16px;
}

.staff-bio {
    padding: 25px;
    color: #444;
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.staff-card.expanded .staff-bio {
    background: var(--white);
    margin: 0;
    padding: 30px 35px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 16px 16px;
}

.staff-bio p {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.staff-bio p:last-child {
    margin-bottom: 0;
}

/* Director Card - Special Layout (if still used) */
.director-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f5f9 100%);
    border: 2px solid var(--accent-gold);
    border-left: 5px solid var(--accent-gold);
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.director-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(75, 26, 81, 0.1);
}

.director-header {
    display: flex;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--pgc-purple) 0%, #5a2a61 100%);
    color: var(--white);
    cursor: pointer;
}

.director-image-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.director-card:hover .director-image-large {
    transform: scale(1.05);
}

.director-info {
    flex: 1;
}

.director-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--white);
    letter-spacing: -0.5px;
}

.director-role {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.director-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--pgc-purple);
    border: 2px solid var(--accent-gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.director-toggle:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.director-card.expanded .director-toggle {
    transform: rotate(180deg);
}

.director-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.director-card.expanded .director-content {
    max-height: 2000px;
}

.director-bio {
    padding: 30px;
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
}

.director-bio p {
    margin-bottom: 18px;
}

.director-bio p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
        letter-spacing: -1px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin: 40px 0 30px;
    }
    
    .staff-content-section {
        padding: 40px 0 60px;
    }
    
    /* Conductor cards stack on mobile */
    .conductor-card {
        flex-direction: column;
    }
    
    .conductor-card.expanded {
        flex-direction: column;
    }
    
    .conductor-image-container {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 180px;
    }
    
    .conductor-image {
        height: 180px;
    }
    
    .conductor-header {
        padding: 30px;
        min-height: 180px;
    }
    
    .conductor-name {
        font-size: 1.3rem;
    }
    
    .conductor-card.expanded .conductor-bio {
        padding: 30px 25px;
    }
    
    .staff-header,
    .director-header {
        flex-wrap: wrap;
    }
    
    .staff-image {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .director-image-large {
        width: 100px;
        height: 100px;
        margin-right: 20px;
    }
    
    .director-name {
        font-size: 1.5rem;
    }
    
    .staff-name {
        font-size: 1.1rem;
    }
    
    /* Mobile: Email button on left with text above */
    .staff-header {
        flex-wrap: wrap;
        align-items: flex-start;
        position: relative;
    }
    
    .staff-info {
        flex: 1;
        min-width: 0;
        width: calc(100% - 75px);
        margin-bottom: 12px;
    }
    
    .staff-header-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 0;
        gap: 15px;
    }
    
    .staff-header-actions .email-link {
        margin-left: 0;
        flex: 0 0 auto;
    }
    
    .staff-header-actions .staff-toggle {
        margin-left: auto;
        position: absolute;
        top: 25px;
        right: 25px;
    }
}
