/* Team Page Specific Styles */

/* Hero Section */
.team-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Profile Section */
.profile-section {
    padding: 60px 0;
    background: #f9fafb;
}

.profile-main {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.profile-image {
    flex: 1;
    max-width: 400px;
    position: sticky;
    top: 100px;
}

.profile-image img {
    width: 100%;
    border-radius: 16px; /* Changed from 50% for rectangular shape */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.profile-info {
    flex: 2;
    max-width: 900px;
}

.profile-info h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
}

.profile-info h3 {
    font-size: 1.5rem;
    color: #f59e0b;
    margin-bottom: 20px;
}

.profile-info p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.profile-roles {
    margin: 20px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.profile-roles ul {
    list-style: none;
    padding-left: 0;
}

.profile-roles li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.profile-roles li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    color: #f59e0b;
}

.profile-roles h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.125rem;
    color: #111827;
}

.profile-contact p {
    color: #374151;
    font-weight: 500;
}

.profile-contact p i {
    color: #f59e0b;
    margin-right: 10px;
}

.profile-contact a {
    color: inherit;
    text-decoration: none;
}

.profile-contact a:hover {
    text-decoration: underline;
}

/* Team Grid Section */
.team-grid-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    /* text-align: center; No longer needed */
}

.member-photo {
    width: 100%; /* Allow full width */
    height: auto; /* Adjust height automatically */
    margin: 0 auto; /* Removed bottom margin */
    border-radius: 16px; /* Changed from 50% */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    aspect-ratio: 3 / 4; /* A common certificate aspect ratio */
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-photo {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9ca3af;
}

.member-info p {
    color: #6b7280;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-main {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        max-width: 300px;
        margin-bottom: 20px;
        position: static;
    }

    .profile-info h2 {
        font-size: 2rem;
    }

    .profile-roles {
        text-align: left;
        padding: 16px;
    }

    .profile-contact {
        justify-content: center;
    }
}
