
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.header {
    background: linear-gradient(135deg, #ffff 0%, #265cc9 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav {
    background: #1e293b;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
      color: white;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.section-title {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.widget-title {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-date {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.post-title {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    color: #64748b;
    font-size: 0.9rem;
}

.hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.hero-title {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.close:hover {
    color: #ef4444;
}

.faculty-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faculty-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.faculty-title {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.research-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.research-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-upcoming {
    background: #fef3c7;
    color: #92400e;
}

.publication-item {
    padding: 1rem;
    border-left: 3px solid #3b82f6;
    background: #f8fafc;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.publication-title {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: #64748b;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.publication-venue {
    color: #059669;
    font-weight: 500;
}

@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

.hidden {
    display: none;
}

.announcement-banner {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 3rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.resource-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    background: white;
}

.resource-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.resource-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.download-btn {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.team-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    /* Add Flexbox for layout */
    display: flex;
    flex-direction: column; /* Stack image and info vertically by default */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
}

.team-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.team-info h4 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.team-contact {
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
}

.alumni-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alumni-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #059669, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.alumni-info h5 {
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.alumni-current {
    color: #64748b;
    font-size: 0.9rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.lightbox img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-caption {
    padding: 1rem;
    background: white;
    color: #333;
}
/* Container for the image - controls the size */
.ind_image {
    /* Set a fixed maximum width for the image container */
    width: 200px; /* Adjust this value as needed (e.g., 150px, 250px) */
    height: 200px; /* Set height equal to width for a perfect circle/square */
    /* Hide overflow to make border-radius work cleanly with object-fit: cover */
    overflow: hidden;
    border-radius: 50%; /* Makes the container circular */
    margin-bottom: 1rem; /* Add space between image and info */
    /* Optional: If you want to center the image container itself if flex-direction changes */
    /* align-self: center; */
}

/* Style the actual <img> element */
.ind_image img {
    width: 100%; /* Make the image fill its container */
    height: 100%; /* Make the image fill its container */
    display: block;
    /* object-fit: cover; */ /* Use this if you want the image to fill the container, potentially cropping.
                               /* It's great for profile pictures to ensure a consistent shape. */
    object-fit: cover; /* Recommended for profile photos in circles */
    /* border-radius is handled by the .ind_image container now */
}
.s_ind_image {
    /* Set a fixed maximum width for the image container */
    width: 100px; /* Adjust this value as needed (e.g., 150px, 250px) */
    height: 100px; /* Set height equal to width for a perfect circle/square */
    /* Hide overflow to make border-radius work cleanly with object-fit: cover */
    overflow: hidden;
    border-radius: 50%; /* Makes the container circular */
    margin-bottom: 1rem; /* Add space between image and info */
    /* Optional: If you want to center the image container itself if flex-direction changes */
    /* align-self: center; */
}

/* Style the actual <img> element */
.s_ind_image img {
    width: 100%; /* Make the image fill its container */
    height: 100%; /* Make the image fill its container */
    display: block;
    /* object-fit: cover; */ /* Use this if you want the image to fill the container, potentially cropping.
                               /* It's great for profile pictures to ensure a consistent shape. */
    object-fit: cover; /* Recommended for profile photos in circles */
    /* border-radius is handled by the .ind_image container now */
}

/* Adjust text alignment if needed when layout changes */
/* .team-info {
    /* If flex-direction on .team-card changes to row, you might need to adjust this */
    /* For column layout, these might not be necessary if text-align: center is on .team-card */
    /* text-align: left;  /* Uncomment if you want left-aligned text */
 */

.team-role {
    font-weight: 500;
    color: #4a5568; /* Example color, adjust as needed */
    margin: 0.5rem 0; /* Add some vertical margin */
}

.research-areas {
    margin: 0.75rem 0; /* Add margin above research areas */
}

.research-tag {
    /* Ensure your .research-tag styles are defined elsewhere */
    /* Example (adjust as needed): */
    display: inline-block;
    background-color: #ebf8ff;
    color: #3182ce;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px; /* Makes it pill-shaped */
    font-size: 0.875rem;
    margin: 0.25rem;
}

.team-contact {
    /* Style your contact link */
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}
.team-contact:hover {
    text-decoration: underline;
}

/* Optional: For a horizontal layout on larger screens */
@media (min-width: 768px) { /* Adjust breakpoint as needed */
    .team-card {
        flex-direction: row; /* Arrange image and info horizontally */
        text-align: left; /* Align text to the left */
        align-items: flex-start; /* Align items to the top */
    }

    .ind_image {
        margin-bottom: 0; /* Remove bottom margin */
        margin-right: 1.5rem; /* Add right margin for spacing */
        flex-shrink: 0; /* Prevent image container from shrinking */
    }
    .s_ind_image {
        margin-bottom: 0; /* Remove bottom margin */
        margin-right: 1.5rem; /* Add right margin for spacing */
        flex-shrink: 0; /* Prevent image container from shrinking */
    }

    .team-info {
        flex: 1; /* Allow info section to take remaining space */
    }
}