/**
 * team.css
 * GoodHope Insure — Team Page Styles
 */

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.team-hero {
    text-align: center;
    margin-bottom: 50px;
}

.team-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.team-hero p {
    font-size: 18px;
    color: #64748b;
}

.team-row {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

/* Column logic */
.cols-1 { grid-template-columns: minmax(300px, 450px); }
.cols-2 { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(280px, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(250px, 1fr)); }

@media (max-width: 1024px) {
    .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .team-row, .cols-1, .cols-2, .cols-3, .cols-4 {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #f8fafc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-designation {
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 5px;
}

.team-department {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-details {
    text-align: left;
    font-size: 14px;
    color: #475569;
    flex-grow: 1;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.team-details h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    margin-top: 0;
}

.team-details p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.team-details p:last-child {
    margin-bottom: 0;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.team-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 90, 34, 0.08);
    color: var(--accent);
    font-size: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.team-socials a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}
