* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        Arial,
        sans-serif;
    background: #f6f7f9;
    color: #111;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
}


/* Header */

.site-header {
    background: #000;
    color: white;
}

.header-container {
    width: min(1200px, calc(100% - 40px));
    margin: auto;

    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover,
nav a.active {
    color: #fb2028;
}


/* Hero */

.hero {
    background: #000;
    color: white;

    padding: 80px 0 90px;

    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border: 1px solid rgba(251, 32, 40, .4);

    border-radius: 50%;

    right: -120px;
    top: -160px;
}

.eyebrow {
    color: #fb2028;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;
}

.hero h1 {
    margin: 15px 0;

    font-size: clamp(40px, 6vw, 72px);

    line-height: 1;
}

.hero p {
    max-width: 650px;

    color: #aaa;

    font-size: 18px;

    line-height: 1.7;
}


/* Directory */

.directory {
    padding: 70px 0;
}

.toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}

.toolbar h2 {
    margin: 0 0 7px;

    font-size: 30px;
}

.toolbar p {
    margin: 0;

    color: #777;
}

.search-box input {
    width: 320px;

    padding: 15px 18px;

    border: 1px solid #ddd;

    border-radius: 10px;

    font-size: 15px;

    outline: none;
}

.search-box input:focus {
    border-color: #fb2028;
}


/* Grid */

.professors-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* Card */

.professor-card {
    background: white;

    border-radius: 16px;

    overflow: hidden;

    border: 1px solid #e9e9e9;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.professor-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(0,0,0,.08);
}


.professor-top {
    height: 170px;

    background:
        linear-gradient(
            135deg,
            #000,
            #222
        );

    display: flex;

    align-items: center;

    justify-content: center;
}


.professor-photo {
    width: 110px;
    height: 110px;

    border-radius: 50%;

    object-fit: cover;

    border: 4px solid white;

    background: #eee;
}


.professor-content {
    padding: 25px;
}


.professor-name {
    margin: 0 0 8px;

    font-size: 21px;
}

.professor-affiliation {
    min-height: 45px;

    color: #777;

    font-size: 14px;

    line-height: 1.5;
}


/* Stats */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid #eee;

    border-bottom: 1px solid #eee;

    margin: 20px 0;
}

.stat {
    text-align: center;

    padding: 13px 5px;

    border-right: 1px solid #eee;
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;

    font-size: 20px;
}

.stat span {
    display: block;

    color: #888;

    font-size: 11px;

    margin-top: 4px;
}


/* Button */

.profile-btn {
    display: block;

    width: 100%;

    text-align: center;

    text-decoration: none;

    background: #fb2028;

    color: white;

    padding: 13px;

    border-radius: 8px;

    font-weight: 700;

    transition: .2s;
}

.profile-btn:hover {
    background: #d91920;
}


/* Loading */

.loading {
    text-align: center;

    padding: 50px;

    color: #777;
}


/* Empty */

.empty-state {
    text-align: center;

    padding: 70px;

    background: white;

    border-radius: 15px;
}

.empty-state h3 {
    margin-bottom: 5px;
}


/* Responsive */

@media (max-width: 900px) {

    .professors-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .header-container {
        flex-direction: column;

        gap: 15px;

        padding: 18px 0;
    }

    .toolbar {
        align-items: stretch;

        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .professors-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

}


.academic-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin-top: 12px;

    font-size: 13px;
    color: #555;
}

.academic-meta span {
    line-height: 1.4;
}