/* About Page Specific Styles */

/* Mission Vision Section */
.mission-vision .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mission-content {
    flex: 1;
}

.mission-image img {
    max-width: 100%;
    border-radius: 5px;
}

/* Core Values Section */
.core-values {
    background: var(--secondary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
}

/* History Section */
.history .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Team member link styling */
.team-member {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    background: transparent;
}

/* Team member photo in leadership grid */
.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--primary-color);
    display: block;
    background: transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.team-member:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

/* Hover message overlay */
.team-member::after {
    content: 'Click to view more';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 71, 161, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-member:hover::after {
    opacity: 1;
}

.team-member h4 {
    margin: 0.5rem 0 0.2rem 0;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.team-member:hover h4 {
    color: var(--accent-color);
}

.team-member p {
    margin: 0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* Static team member styling (no hover effects) */
.team-member-static {
    display: block;
    color: inherit;
    padding: 1rem;
    border-radius: 8px;
    background: transparent;
    text-align: center;
}

.team-member-static h4 {
    margin: 0.5rem 0 0.2rem 0;
    color: var(--primary-color);
}

.team-member-static p {
    margin: 0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* Team Profiles Section */
.team-profiles {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.team-profile {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.profile-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.profile-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.profile-title {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.profile-content {
    line-height: 1.7;
}

.profile-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.profile-content p:last-child {
    margin-bottom: 0;
}

/* User Icon Styling for Team Members */
.user-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--primary-color);
    overflow: hidden;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-icon i {
    font-size: 60px;
    color: var(--primary-color);
}

/* Individual Team Member Profile Page */
.team-member-profile {
    padding: 3rem 0;
}

.team-member-profile .profile-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-image {
    flex-shrink: 0;
}

.user-icon-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary-color);
    overflow: hidden;
}

.user-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-icon-large i {
    font-size: 80px;
    color: var(--primary-color);
}

/* Ensure team member photos appear same size as user icons */
.team-member .team-member-photo {
    min-width: 150px;
    min-height: 150px;
    flex-shrink: 0;
}

/* Profile photo styling */
.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid var(--primary-color);
    display: block;
    margin: 0 auto;
    background: transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.profile-info h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.profile-section ul {
    padding-left: 1.5rem;
}

.profile-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.back-to-team {
    text-align: center;
    margin-top: 2rem;
}

/* About Page Responsive Design */
@media (max-width: 1300px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 1026px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .team-member-profile .profile-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-icon-large {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mission-vision .container {
        flex-direction: column;
    }

    .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .team-member {
        padding: 1rem;
    }
    
    .user-icon {
        width: 150px;
        height: 150px;
    }
    
    .user-icon i {
        font-size: 60px;
    }
    
    .user-icon-large {
        width: 200px;
        height: 200px;
    }
    
    .user-icon-large i {
        font-size: 80px;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .team-member-photo {
        width: 150px;
        height: 150px;
    }
    
    .profile-info h2 {
        font-size: 1.5rem;
    }
}
