/* Copied from committee/css/style.css for committee page styling */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
}
.page-title {
    color: var(--cruk-pink);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--cruk-purple);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}
.committee-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
}
.committee-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Top level chairs container */
.top-level-chairs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

/* Top level chair styling */
.top-level-chairs .committee-card {
    background-color: var(--cruk-off-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.top-level-chairs .committee-photo img {
    width: 180px;
    height: 180px;
    border-width: 6px;
}

.top-level-chairs .committee-name {
    font-size: 1.6rem;
}

.top-level-chairs .committee-role {
    font-size: 1.2rem;
}

/* Rest of the chairs container */
.other-chairs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .other-chairs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .top-level-chairs {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .committee-photo img {
        width: 120px;
        height: 120px;
    }
    
    .top-level-chairs .committee-photo img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .top-level-chairs {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .other-chairs {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
}
.committee-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.committee-photo {
    text-align: center;
    padding: 1.5rem 1.5rem 0.5rem;
}

.member-since {
    text-align: center;
    color: var(--cruk-mid-grey);
    font-size: 0.9rem;
    margin: -0.25rem 0 0.75rem;
    font-style: italic;
}

.top-level-chairs .member-since {
    font-size: 1rem;
}
.committee-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--cruk-pink);
}
.committee-details {
    padding: 1rem 1.5rem 2rem;
    text-align: center;
}
.committee-name {
    color: var(--cruk-purple);
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}
.committee-role {
    color: var(--cruk-pink);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.committee-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}
.join-committee {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 3rem;
}
.join-committee h2 {
    color: var(--cruk-purple);
    margin-bottom: 1.5rem;
}
.join-committee ul {
    display: inline-block;
    text-align: left;
    margin: 1.5rem auto;
    max-width: 500px;
}
.join-committee li {
    margin-bottom: 0.5rem;
}
.btn-primary {
    display: inline-block;
    background-color: var(--cruk-pink);
    color: white;
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--cruk-pink);
    margin-top: 1rem;
}
.btn-primary:hover {
    background-color: white;
    color: var(--cruk-pink);
}
/* Responsive Adjustments */
.page-container {
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .page-container {
        padding: 1.5rem 0;
    }
    
    .committee-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .page-title {
        font-size: 2rem;
    }
    .join-committee {
        padding: 2rem;
    }
}
@media (max-width: 576px) {
    .page-container {
        padding: 1rem 0;
    }
    
    .committee-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 1rem 2rem;
    }
    
    .committee-photo img {
        width: 120px;
        height: 120px;
    }
    
    .join-committee {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }
    
    .page-subtitle,
    .committee-intro {
        padding: 0 1rem;
    }
}
