﻿/* Team member list page */
.page-title {
    text-align: center;
    font-weight: 300;
    font-size: 2rem;
    margin-top: 2.5em;
}

.directory-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 5.5em;
}

.team-card {
    display: flex;
    align-items: center;
    background: var(--secondary-bg-color);
    color: var(--secondary-font-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s;
    text-decoration: none;
    padding: 20px;
}

    .team-card:hover {
        transform: translateY(-2px);
    }

.avatar-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.employee-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.employee-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.employee-info {
    font-size: 0.95rem;
    line-height: 1.5em;
    color: #555;
    margin: 0 0 15px;
    flex: 1;
}

.view-profile {
    align-self: flex-start;
    text-decoration: none;
    color: var(--secondary-link-color);
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid var(--secondary-link-color);
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

    .view-profile:hover {
        background: var(--secondary-link-color);
        color: var(--secondary-bg-color);
    }

/* Responsive */
@media (max-width: 600px) {
    .team-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar-wrapper {
        margin: 0 0 15px;
    }

    .employee-info {
        margin-bottom: 15px;
    }
}

/*----------------*/
/* profile page */
/* Add top and bottom margin around the page content */
.profile-page-container {
    width: 90%;
    max-width: 800px;
    margin: 60px auto;
}

.page-title {
    text-align: center;
    font-weight: 300;
    margin: 0 0 40px;
    font-size: 2rem; 
}

.profile-card {
    background: var(--secondary-bg-color);
    color: var(--secondary-font-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--secondary-bg-color);
    color: var(--secondary-font-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
  
.profile-info {
    font-size: 1rem;
    line-height: 1.7em;
    color: var(--secondary-font-color);
    text-align: left;
    max-width: 600px;
    margin: 0 auto 5px;
}
  
.return-link {
    text-decoration: none;
    color: var(--secondary-link-color);
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid var(--secondary-link-color);
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

    .return-link:hover {
        background: var(--secondary-link-color);
        color: #fff;
    }

/* Responsive */
@media (max-width: 600px) {
    .profile-info {
        font-size: 0.95rem;
    }

    .employee-name {
        font-size: 1.5rem;
    }
}
