/*------------------------------------------
TEAM PAGE - CHCI (Updated for New Design)
------------------------------------------*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Root and base */
body {
    font-family: Arial, sans-serif;
    color: #4a4a4a;
    margin: 0;
    padding: 0;
    background-color: #fff;
    line-height: 1.4;
}

/* Page Container */
.page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Title Styling */
.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #777777;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 30px;
    margin-top: 60px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

/* Leader/Team Member Container */
.leader {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.leader:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-left-color: #5a2d91;
}

/* Profile Image Styling */
.leader img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background-color: #e6e6e6;
    transition: all 0.3s ease;
}

.leader:hover img {
    transform: scale(1.05);
}

/* Leader Information Container */
.leader-info {
    max-width: 520px;
    flex: 1;
    min-width: 0;
}

/* Name Styling */
.leader-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0078d7;
    margin: 0 0 6px 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* Title and Description Styling */
.leader-title {
    font-size: 0.8rem;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 600;
}

.leader-desc {
    font-size: 0.75rem;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* View Bio Link Styling */
.view-bio {
    margin-top: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0078d7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.view-bio:hover, 
.view-bio:focus {
    color: #c8102e;
    outline: none;
    border-bottom-color: #c8102e;
}

.view-bio svg {
    width: 10px;
    height: 10px;
    stroke: #c8102e;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.view-bio:hover svg, 
.view-bio:focus svg {
    stroke: #0078d7;
    transform: translateX(2px);
}

/* Faculty Grid Layout */
.faculty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 60px;
}

/* Leadership Section Styling */
.leadership-area .leader {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.leadership-area .leader:hover {
    border-left-color: #dc3545;
}

/* Faculty Section Styling */
.faculty-area .leader {
    border-left-color: #007bff;
}

.faculty-area .leader:hover {
    border-left-color: #5a2d91;
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-container {
        padding: 30px 15px;
    }
    
    .leader {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .faculty-grid {
        gap: 25px 40px;
    }
}

@media (max-width: 700px) {
    .leader {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }
    
    .leader-info {
        max-width: 100%;
        text-align: center;
    }
    
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .leader img {
        height: auto;
        width: 180px;
        margin-bottom: 15px;
    }
    
    .section-title {
        margin-top: 40px;
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .page-container {
        padding: 20px 10px;
    }
    
    .leader {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .leader img {
        width: 150px;
        height: auto;
    }
    
    .leader-name {
        font-size: 0.9rem;
    }
    
    .leader-title {
        font-size: 0.75rem;
    }
    
    .leader-desc {
        font-size: 0.7rem;
    }
    
    .view-bio {
        font-size: 0.65rem;
    }
}

/* Loading and Error States */
.loading-state,
.error-state,
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    color: #dc3545;
}

.error-state i,
.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

/* Accessibility Improvements */
.leader:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.view-bio:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .leader {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .view-bio {
        display: none;
    }
}