/* About page styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
}

.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    margin: 0 auto;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Enlarge team member photos */
.team-photo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
}

/* About page styles */
.about-hero {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.about-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.about-content h3 {
    margin-top: 0;
}

/* Team section styling for about page */
.team-section {
    margin-top: 30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.team-section h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.team-section>p {
    color: #666;
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.team-card {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px auto;
    background: #e2e8f0;
    border: 3px solid #667eea;
}

.team-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.team-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.team-role {
    margin: 0;
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
}

/* Tablet - 3 columns */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .about-hero {
        padding: 50px 20px;
    }

    .about-hero h1 {
        font-size: 32px;
    }
}

/* Small Tablet - 3 columns with smaller cards */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .team-card {
        padding: 12px;
    }

    .team-photo {
        width: 80px;
        height: 80px;
    }

    .team-card h4 {
        font-size: 14px;
    }

    .team-role {
        font-size: 11px;
    }

    .about-hero {
        padding: 40px 15px;
    }

    .about-hero h1 {
        font-size: 28px;
    }

    .about-hero p {
        font-size: 14px;
    }

    .about-content {
        padding: 20px;
    }

    .team-section {
        padding: 20px;
    }
}

/* Mobile - 2 columns with last item centered */
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: center;
    }

    .about-team-row {
        justify-content: center;
    }

    .about-team-row .col:only-child {
        flex: 0 0 auto;
        width: 70%;
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Center the last card if it's odd */
    .team-grid>.team-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 150px;
        margin: 0 auto;
    }

    .team-card {
        padding: 10px;
        width: 100%;
        max-width: 160px;
    }

    .team-photo {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }

    .team-card h4 {
        font-size: 12px;
    }

    .team-role {
        font-size: 10px;
    }

    .about-hero {
        padding: 30px 12px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .about-hero h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .about-hero p {
        font-size: 12px;
        margin: 0;
    }

    .about-content {
        padding: 15px;
        border-radius: 10px;
    }

    .about-content h3 {
        font-size: 16px;
    }

    .about-content p,
    .about-content li {
        font-size: 13px;
    }

    .team-section {
        padding: 15px;
        border-radius: 10px;
        margin-top: 20px;
    }

    .team-section h3 {
        font-size: 18px;
    }

    .team-section>p {
        font-size: 12px;
    }
}
