/* Team Page Header */

/* Container */

.page-section {
    width: 100rem;
    margin: auto;
}

.page-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0rem;
}

.page-header-photo {
    height: 35rem;
    width: auto;
    object-fit: cover;
    margin-right: 0;
}

.page-header-title {
    color: #120450;
    font-size: 3.625rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.05em;
    padding-top: 1rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.3rem;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
}

.page-header-description p {
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.6;
    color: #120450;
    padding-left: 0;
    padding-right: 1.5rem;
    padding-bottom: 0.5rem;
}

/* Buttons row */
.buttons {
    width: 100%;
    margin: auto;
    background: white;
}
.buttons-row {
    margin-bottom: 0rem;
    display: flex;
    gap: 0;
}

.btn {
    margin-top: 0rem;
    margin-bottom: 0rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.625rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #120450;
    background: none;
    /* border-left: 0.0625rem solid rgba(19,52,59,0.05);
    border-right: 0.0625rem solid rgba(19,52,59,0.05); */
    transition: background 250ms cubic-bezier(0.16,1,0.3,1);
    cursor: pointer;
}

.btn:first-child { border-left: none; }
.btn:last-child  { border-right: none; }
.btn:hover {
    background: rgba(19,52,59,0.05);
    color: #940e25;
}

/* Professor Section */
.professor-section {
    border-top: 0.125rem solid #940e25;
    margin-top: 0rem;
    align-items: center;
    scroll-margin-top: 6.25rem;
}

.professor-inner {
    width: 100rem;
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    background: #ffffff;
}

.professor-photo {
    margin-top: 0; 
    width: 35rem;
    height: 100%;
    object-fit: cover;
}

.professor-info {
    padding-top: 1rem;
    margin-left: 2rem;
}

.professor-info h2 {
    margin-top: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
    color: #120450;
}

.professor-contact {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1.3rem;
}

.professor-contact .icon {
    font-size: 1.5rem;
    color: #120450;
    margin-right: 0.625rem;
}
.professor-contact a {
    font-size: 1.5rem;
    color: #120450;
    text-decoration: none;
}
.professor-contact a:hover {
    color: #940e25;
}

.professor-cv h3 {
    padding-bottom: 0.3rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    color: #940e25;
    margin-bottom: 0.3125rem;
}

.professor-cv h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 2.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #120450;
    opacity: 0.8;
}

.professor-cv p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 2.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: #120450;
    opacity: 0.8;
}


/* Team content */
.team-content {
    width: 100rem;
    margin: auto;
    padding-top: 2rem;
    padding-bottom: 4rem 0;
    background: white;
}

.team-section {
    margin-bottom: 4rem;
    scroll-margin-top: 8rem;
}

.section-title {
    color: #120450;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 0.1875rem solid #9E0E25;
    padding-bottom: 0.5rem;
    font-weight: 600;
    padding-left: 0;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    justify-items: stretch;
    align-items: start;
}

/* Team member cards */
.team-member-card {
    background: white;
    border: 0.0625rem solid #e9ecef;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}


.member-photo, .member-photo-placeholder {
    margin-left: auto;
    margin-right: auto;
    height: 23rem;
    width: 100%;
    border-radius: 0%;
    display: block;
    object-fit: cover;
}


.member-photo-placeholder {
    background: url('../images/default_member.png') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

.member-info {
    text-align: center;
    padding: 1rem;
}

.member-name {
    color: #120450;
    font-size: 1.45rem;
    font-weight: 600;
}

.member-role {
    color: #120450;
    margin-bottom: 0.1rem;
    font-size: 1.45rem;
    font-weight: 400;
}

.member-email .icon {
    font-size: 1.2rem;
    color: #940e25;
    margin-right: 0.1rem;
}

.member-email a{
    color: #120450;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.member-email a:hover {
    color: #940e25;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}


/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member-card {
    animation: fadeInUp 0.6s ease forwards;
}

.team-member-card:nth-child(2) { animation-delay: 0.1s; }
.team-member-card:nth-child(3) { animation-delay: 0.2s; }
.team-member-card:nth-child(4) { animation-delay: 0.3s; }
.team-member-card:nth-child(4) { animation-delay: 0.3s; }

/* =========================================
   TEAM PAGE — MOBILE RESPONSIVE (<= 700px)
   ========================================= */
@media (max-width: 700px) {

    html {
        font-size: 70%;
    }

    /* GENERAL PAGE WIDTH */
    .page-section,
    .professor-inner,
    .team-content {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* HEADER */
    .page-header-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-header-photo {
        width: 100%;
        height: auto;
        object-fit: cover;
        margin: 0;
    }

    .page-header-title {
        padding: 0;
        margin: 0;
        text-align: left;
    }

    .page-header-description p {
        padding: 0;
        text-align: left;
    }

    /* BUTTONS */
    .buttons-row {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        font-size: 1.4rem;
        text-align: center;
    }

    /* PROFESSOR SECTION */
    .professor-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .professor-photo {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .professor-info {
        margin-left: 0;
        padding-top: 1rem;
    }

    /* TEAM GRID */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .member-photo,
    .member-photo-placeholder {
        width: 100%;
        height: auto;
    }

    .member-info {
        padding: 1rem 0;
    }

    .member-name {
        font-size: 1.6rem;
    }

    .member-role {
        font-size: 1.4rem;
    }

    .member-email a {
        font-size: 1.3rem;
    }
}
