/**
 * Faculty Profile Grid Component
 * Styles for the faculty card grid used on the HSI Faculty Hiring page.
 */

/* Section Container */
.faculty-section {
    max-width: var(--container-max-width, 76.5rem);
    margin: 0 auto;
    background: white;
}

/* Section Title */
.faculty-section .section-title-container {
    position: relative;
    margin-bottom: var(--spacing-lg, 2rem);
}

.faculty-section .section-title-accent {
    position: absolute;
    left: -24px;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #F76600;
}

.faculty-section .section-title {
    font-size: 36px;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Responsive title */
@media (max-width: 768px) {
    .faculty-section .section-title {
        font-size: 28px;
    }
}

/* Faculty Grid */
.faculty-section .faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl, 3rem);
    margin-bottom: var(--spacing-xxl, 4rem);
    margin-top: var(--spacing-xl, 3rem);
}

/* Faculty Card */
.faculty-section .faculty-card {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Portrait Section */
.faculty-section .portrait-wrapper {
    position: relative;
    background: linear-gradient(90deg, #f9f9f9 0%, #fff 100%);
    overflow: hidden;
    height: 350px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faculty-section .portrait-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Card Content */
.faculty-section .card-content {
    padding: var(--spacing-md, 1.5rem);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.faculty-section .faculty-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs, 0.5rem);
    color: #000;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.faculty-section .faculty-role {
    font-size: 1rem;
    color: #000;
    margin-bottom: var(--spacing-md, 1.5rem);
    font-weight: 400;
    line-height: 1.4;
}

/* Department Badges */
.faculty-section .department-badges {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs, 0.5rem);
}

.faculty-section .department-badge {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: rgba(39, 116, 174, 0.08);
    font-size: 0.875rem;
    color: #2774AE;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 1px solid rgba(39, 116, 174, 0.12);
}

.faculty-section .department-badge:hover {
    background-color: #2774AE;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .faculty-section .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .faculty-section .faculty-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg, 2rem);
    }

    .faculty-section .faculty-card {
        flex-direction: row;
    }

    .faculty-section .portrait-wrapper {
        flex: 0 0 40%;
        height: auto;
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 576px) {
    .faculty-section .faculty-card {
        flex-direction: column;
    }

    .faculty-section .portrait-wrapper {
        flex: none;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
}
