/* ========================================
   Faculty Page Styles
   ======================================== */

/* Main Layout - Left Sidebar + Right Content */
.bio-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
  
}

/* ========================================
   Left Sidebar - Faculty Menu (Same as publications.css)
   ======================================== */
.sidebar-nav {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-nav h3 {
    font-size: 22px;
    font-family: times;
    color: #8B0000;
    padding: 15px 20px;
    background-color: #00275f;
    color: #fff;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.sidebar-nav ul {
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #eee;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 18px;
    font-family: times;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #f5f5f5;
    color: #8B0000;
    padding-left: 30px;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #8B0000;
}

/* ========================================
   Right Content - Faculty Profile
   ======================================== */
.members-content {
    flex: 1;
    min-width: 0;
}

/* Faculty Profile Container */
.faculty-profile {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    overflow: hidden;
}

/* Upper Section: Header with Photo + Basic Info */
.faculty-header {
    display: flex;
    gap: 40px;
    padding: 40px;
    /* background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%); */
    border-bottom: 1px solid #e5e7eb;
}

.faculty-photo-section {
    flex-shrink: 0;
}

.faculty-photo {
    width: 220px;
    height: 280px;
    overflow: hidden;
    background-color: #e5e7eb;
}

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

.faculty-basic-info {
    flex: 1;
    min-width: 0;
}

.faculty-name {
    font-family: 'Times New Roman', Times, serif;
    font-size: 32px;
    font-weight: bold;
    color: #00275f;
    margin: 0 0 8px 0;
}

.faculty-title {
    font-size: 18px;
    color: #666;
    margin: 0 0 10px 0;
    font-style: italic;
}

.faculty-dept {
    font-size: 15px;
    color: #555;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* Research Interests in Header */
.faculty-research {
    margin-bottom: 15px;
}

.faculty-research h4 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.faculty-research p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Contact Info in Header */
.faculty-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.contact-item .icon {
    font-size: 16px;
}

.contact-item a {
    color: #00275f;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Lower Section: Detailed Info */
.faculty-details {
    padding: 40px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px;
    font-weight: bold;
    color: #00275f;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #00275f;
}

/* Timeline for Education & Experience */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 3px;
    bottom: 0;
    width: 2px;
    background-color: #00275f;
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00275f;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #00275f;
}

.timeline-date {
    font-size: 18px;
    font-weight: bold;
    color: #00275f;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.timeline-place {
    font-size: 14px;
    color: #666;
}

/* Awards List */
.awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.awards-list li {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.awards-list li:last-child {
    border-bottom: none;
}

.award-year {
    flex-shrink: 0;
    width: 50px;
    font-size: 14px;
    font-weight: bold;
    color: #00275f;
}

.award-content {
    flex: 1;
}

.award-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.award-org {
    font-size: 14px;
    color: #666;
}

/* Selected Publications */
.selected-pubs {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.selected-pubs li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.selected-pubs li:last-child {
    border-bottom: none;
}

.selected-pubs a {
    font-size: 15px;
    color: #00275f;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.selected-pubs a:hover {
    text-decoration: underline;
}

.selected-pubs .journal {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.view-all-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #00275f;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.view-all-btn:hover {
    background-color: #001a3d;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .bio-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }
    
    /* Sidebar becomes horizontal filter bar */
    .sidebar-nav {
        width: 100%;
        position: static;
        order: -1;
    }
    
    .sidebar-nav h3 {
        display: none;
    }
    
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .sidebar-nav li {
        border-bottom: none;
    }
    
    .sidebar-nav a {
        padding: 8px 16px;
        font-size: 14px;
        background-color: #f5f5f5;
        border-radius: 20px;
        white-space: nowrap;
    }
    
    .sidebar-nav a:hover,
    .sidebar-nav a.active {
        background-color: #8B0000;
        color: #fff;
        padding-left: 16px;
    }
    
    .sidebar-nav a.active::before {
        display: none;
    }
    
    .faculty-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .faculty-contact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    
    
    .faculty-header {
        padding: 30px 20px;
    }
    
    .faculty-photo {
        width: 180px;
        height: 230px;
    }
    
    .faculty-name {
        font-size: 26px;
    }
    
    .faculty-title {
        font-size: 16px;
    }
    
    .faculty-details {
        padding: 30px 20px;
    }
    
    .detail-section h3 {
        font-size: 20px;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item::before {
        left: -21px;
    }
    
    .awards-list li {
        flex-direction: column;
        gap: 5px;
    }
    
    .award-year {
        width: auto;
    }
}

@media (max-width: 480px) {
    .faculty-photo {
        width: 150px;
        height: 190px;
    }
    
    .faculty-name {
        font-size: 22px;
    }
    
    .faculty-research p {
        font-size: 14px;
    }
    
    .contact-item {
        font-size: 13px;
    }
}

/* ========================================
   Photo Gallery Styles
   ======================================== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.photo-item {
    background-color: #fff;

    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
/*     box-shadow: 0 5px 20px rgba(0,0,0,0.15); */
}

.photo-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-img img {
    transform: scale(1.05);
}

.photo-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    font-weight: bold;
    color: #00275f;
    text-align: center;
    padding: 15px;
    margin: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Photo Gallery Responsive */
@media (max-width: 992px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-img {
        height: 200px;
    }
    
    .photo-title {
        font-size: 15px;
        padding: 12px;
    }
}

/* ========================================
   Single Column Photo List Styles
   ======================================== */
.single-photo-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.single-photo-item {
    background-color: #fff;

    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.single-photo-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.single-photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-photo-item:hover .single-photo-img img {
    transform: scale(1.03);
}

.single-photo-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    font-weight: bold;
    color: #00275f;
    text-align: center;
    padding: 18px;
    margin: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Single Photo List Responsive */
@media (max-width: 768px) {
    .single-photo-img {
        height: 250px;
    }
    
    .single-photo-title {
        font-size: 16px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .single-photo-list {
        gap: 20px;
    }
    
    .single-photo-img {
        height: 200px;
    }
    
    .single-photo-title {
        font-size: 15px;
        padding: 12px;
    }
}
