/* Team Member Detail Page */
.team-member-detail-section {
    padding: 45px 0;
    background: #ffffff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-member-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Separator between team members */
.member-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #51b14644, transparent);
    margin: 80px 0;
}

/* Optional: give some breathing room on long pages */
.team-member-detail-content .member-header:last-child {
    margin-bottom: 0;
}


/* Member Header */
.member-header {
    display: flex;
    gap: 40px;
    /* margin-bottom: 50px; */
    padding: 20px;
    background: rgba(81, 177, 70, 0.05);
    border-radius: 20px;
    border-left: 4px solid #51b146;
}


.member-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #51b146, #004b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 4rem;
}


/* NEW - left side wrapper */
.member-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* flex: 0 0 50%;          fixed-ish width – adjust as needed */
    min-width: 300px;
}

.member-sub-info {
    display: flex;
    flex-direction: column;
    /* text-align: center;   ← uncomment if you want centered text on mobile */
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    /* font-size: 2.0rem; */
    font-weight: 700;
    color: #004b6b;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.member-position {
    /* font-size: 1.3rem; */
    font-weight: 600;
    color: #51b146;
    margin: 0 0 20px 0;
}



.member-department {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.member-department i {
    color: #51b146;
    font-size: 0.9rem;
}

.founder-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 16px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    width: fit-content;
}

.founder-badge i {
    font-size: 0.7rem;
}

/* Contact Information */
.member-contact {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    /* color: #333333; */
    font-size: 0.95rem;
}

.contact-item i {
    color: #51b146;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.contact-item a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #51b146;
}

/* Social Links */
.member-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Member Content */
.member-content {
    margin-bottom: 50px;
}

.member-bio,
.member-education,
.member-experience,
.member-specialization {
    margin-bottom: 40px;
}

.member-bio h3,
.member-education h3,
.member-experience h3,
.member-specialization h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004b6b;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.member-bio h3::before,
.member-education h3::before,
.member-experience h3::before,
.member-specialization h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 2px;
}

.member-bio p,
.member-education p,
.member-experience p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

/* Specialization Tags */
.specialization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialization-tag {
    padding: 8px 16px;
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(81, 177, 70, 0.3);
    transition: all 0.3s ease;
}

.specialization-tag:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(81, 177, 70, 0.3);
}

/* Member Actions */
.member-actions {
    display: flex;
    gap: 15px;
    /* padding: 20px 0; */
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    /* margin-bottom: 60px; */
}

.share-btn,
.print-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #51b146;
    background: transparent;
    color: #51b146;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover,
.print-btn:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

/* Other Members */
.other-members {
    margin-top: 80px;
}

.other-members-title {
    font-size: 2rem;
    font-weight: 700;
    color: #004b6b;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.other-members-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 2px;
}

.other-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.other-member-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.other-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.other-member-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.other-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-member-card:hover .other-member-image img {
    transform: scale(1.1);
}

.other-member-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #51b146, #004b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
}

.other-member-content {
    padding: 25px;
}

.other-member-name {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.other-member-name a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.other-member-name a:hover {
    color: #51b146;
}

.other-member-position {
    color: #51b146;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.other-member-department {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666666;
    font-size: 0.85rem;
    margin: 0 0 15px 0;
}

.other-member-department i {
    color: #51b146;
    font-size: 0.7rem;
}

.other-member-bio {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.other-member-footer {
    display: flex;
    justify-content: flex-end;
}

.view-member-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-member-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.4);
}

.view-member-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-member-btn:hover i {
    transform: translateX(3px);
}

/* Dark Theme */
.dark-theme .team-member-detail-section {
    background: #1a1a1a;
}

.dark-theme .member-header {
    background: rgba(81, 177, 70, 0.1);
    border-left-color: #51b146;
}

.dark-theme .member-name {
    color: #eeeff1;
}

.dark-theme .member-position {
    color: #51b146;
}

.dark-theme .member-department {
    color: #cccccc;
}

.dark-theme .contact-item {
    color: #e0e0e0;
}

.dark-theme .contact-item a {
    color: #eeeff1;
}

.dark-theme .contact-item a:hover {
    color: #51b146;
}

.dark-theme .member-bio h3,
.dark-theme .member-education h3,
.dark-theme .member-experience h3,
.dark-theme .member-specialization h3 {
    color: #eeeff1;
}

.dark-theme .member-bio p,
.dark-theme .member-education p,
.dark-theme .member-experience p {
    color: #e0e0e0;
}

.dark-theme .member-actions {
    border-color: #333333;
}

.dark-theme .other-members-title {
    color: #eeeff1;
}

.dark-theme .other-member-card {
    background: #2d2d2d;
}

.dark-theme .other-member-name a {
    color: #eeeff1;
}

.dark-theme .other-member-name a:hover {
    color: #51b146;
}

.dark-theme .other-member-position {
    color: #51b146;
}

.dark-theme .other-member-department {
    color: #cccccc;
}

.dark-theme .other-member-bio {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .team-member-detail-section {
        padding: 60px 0;
    }
    
    .member-header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .member-image {
        width: 150px;
        height: 150px;
    }
    
    .member-name {
        font-size: 2rem;
    }
    
    .other-members-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

}

@media (max-width: 767.98px) {
    .team-member-detail-section {
        padding: 40px 0;
    }
    
    .member-header {
        padding: 25px;
        gap: 20px;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    .member-name {
        font-size: 1.6rem;
    }
    
    .member-position {
        font-size: 1.1rem;
    }
    
    .member-bio p,
    .member-education p,
    .member-experience p {
        font-size: 1rem;
    }
    
    .member-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-btn,
    .print-btn {
        justify-content: center;
    }
    
    .other-members-title {
        font-size: 1.6rem;
    }
    
    .other-members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .member-bio p,
    .member-education p,
    .member-experience p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .specialization-tags {
        gap: 8px;
    }
    
    .specialization-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .other-member-content {
        padding: 20px;
    }
}

