/* Board of Committees Page Styles */

/* Committee Accordion */
.committee-accordion {
    transition: all 0.3s ease;
}

.committee-header {
    cursor: pointer;
    padding-left: 0;
    padding-right: 0;
}

.committee-header:hover {
    background-color: #f9fafb;
    padding-left: 1rem;
    padding-right: 1rem;
}

.committee-header h3 {
    transition: color 0.3s ease;
}

.committee-header:hover h3 {
    color: #1e3a8a;
}

/* Committee Icon Rotation */
.committee-icon {
    transition: transform 0.3s ease;
}

.committee-accordion.active .committee-icon {
    transform: rotate(45deg);
}

/* Committee Content */
.committee-content {
    max-height: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.committee-content.show {
    max-height: 2000px;
    opacity: 1;
}

/* Member Card */
.member-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Member Image */
.member-card img {
    transition: transform 0.5s ease;
}

.member-card:hover img {
    transform: scale(1.1);
}

/* Member Info */
.member-card h4 {
    transition: color 0.3s ease;
}

.member-card:hover h4 {
    color: #1e3a8a;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Title */
.committee-page-title {
    color: #1e3a8a;
}

.committee-page-title + .w-16 {
    animation: expandWidth 0.8s ease;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 4rem;
    }
}

/* Accordion Border Animation */
.committee-accordion {
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.committee-accordion::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.committee-accordion.active::after {
    width: 100%;
}

/* Date Badge */
.date-badge {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .committee-header h3 {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .member-card {
        margin-bottom: 1rem;
    }
    
    .committee-header:hover {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .member-card .flex-col {
        flex-direction: column;
    }
    
    .member-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* Focus States for Accessibility */
.committee-header:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .committee-accordion.active .committee-content {
        max-height: none;
        opacity: 1;
    }
    
    .committee-icon {
        display: none;
    }
}

/* Loading State */
.member-card.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Smooth Scroll */
.committee-content {
    scroll-behavior: smooth;
}