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

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     */
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;

    display: flexbox;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgb(255, 255, 255);
    overflow: hidden;
    margin-top: 0px;
    margin-bottom: 20px;
}

header {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    color: rgb(0, 0, 0);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* justify-content: center; */
    /* margin-left: 30%; */
    margin: 0 auto;
    /* max-width: XYZ; */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-100px);
    }
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.0rem;
    position: relative;
    z-index: 1;
    /* font-family: 'Cardo', serif; */
    font-family: CMS;
    font-weight: 100;
    /* display: flex;
    align-items: center;
    gap: 1rem; */
}

/* insert logo */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centers horizontally */
    text-align: center;
    /* center text */
    gap: 0.5rem;
    /* margin-top: %; */
}

.header-text h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    font-family: 'Cardo', serif;
    font-weight: 100;
    text-align: center;
}


.subtitle {
    font-size: 1.35rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
}


nav {
    /* background: #6ebeff; */
    background: #ebecec;
    backdrop-filter: blur(10px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* .nav-tabs {
    display: inline-flex;
    list-style: none;
    overflow-x: auto;
    margin: auto auto auto 0;
    gap: 100px;
} */

.nav-tabs {
    display: flex;
    justify-content: center;
    /* center the tabs */
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    gap: 10%;
    /* space between tabs */
    /* overflow-x: auto; */
    /* allow horizontal scroll on small screens */
}

.nav-tabs li {
    flex: 1;
    min-width: fit-content;

}

.nav-tabs button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Cardo', serif;

}

.nav-tabs button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-tabs button:hover::before {
    left: 100%;
}

.nav-tabs button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* .nav-tabs button.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} */


.nav-center {
    width: 50%;
    margin: 0 auto;
}


.content {
    padding: 2rem;
    min-height: 600px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    color: #2c3e50;
    /* margin-bottom: 1.5rem; */
    margin: 2rem 0 1.5rem 0;
    font-size: 2rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Ensure it adapts to content size */
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


.card-layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.main-column {
    flex: 3;
}

.sidebar-column {
    flex: 1;
    position: sticky;
    top: 0;
    /* Stick it to the top */
    height: calc(100vh - 60px);
    /* Adjust height to take up the full vertical space minus the nav height */
    overflow-y: auto;
    /* Ensure scrolling for the sidebar content */
}

.person-card {
    display: flex;
    flex-direction: row;
    /* row to put photo left and info right */
    align-items: center;
    /* vertically center the items */
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 1.5rem;
    /* space between photo and info */
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.person-card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* exactly 2 cards per row */
    gap: 2rem;
    margin-top: 0rem;
    margin-bottom: 4rem;
}


.person-photo {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-bottom: 0;
    /* remove bottom margin */
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0%;
    border-radius: 15px;
    /* keep image circular */
}

.person-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.person-info .role {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Person Card Students */
/* ------------------------------------------------ */
/* Person Card PI */
.person-card.pi {
    align-items: flex-start;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    max-width: none;
    width: 100%;
    background: white;
    text-align: left;
    /* justify-content: center; */
    /* align-items: center; */
}

.person-card.pi .person-photo {
    width: 20%;
    height: 20%;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
    margin: auto 0;
}

.person-card.pi .person-photo img {
    border-radius: 15px;
}

.person-pi-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 0rem;
    flex-wrap: wrap;
}

.person-pi-content .person-info {
    flex: 2;
    font-size: 1.0rem;
    /* font-weight: 700; */
    margin-bottom: 0.5rem;
}

.pi-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1.0rem;
}

.pi-contact-info p {
    margin: 0;
}

.pi-contact-info a {
    color: #2980b9;
    text-decoration: none;
}

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

/* Optional: improve spacing inside .person-info */
.person-info p {
    margin-bottom: 1rem;
}

.person-info h4 {
    margin-top: 1.5rem;
    /* space above the heading */
    margin-bottom: 0.5rem;
    /* space below heading */
    font-size: 1.5rem;
}

.pi-contact-info h4 {
    margin-top: 0rem;
    /* space above the heading */
    margin-bottom: 0rem;
    /* space below heading */
    font-size: 1rem;
}

/* Person Card PI */
/* ------------------------------------------------ */


/* ------------------------------------------------ */
.publication-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Main Layout for the Papers and Talks columns */
.publication-layout {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

/* Left Column (Papers) */
.left-column {
    width: 60%;
}

/* Right Column (Talks) */
.right-column {
    width: 40%;
    color: #777;
}

/* Section Heading */
.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    text-transform: uppercase;
}

/* Styling for each publication item */
.publication-item {
    margin-bottom: 1rem;
}

.publication-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.publication-authors,
.publication-venue {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Placeholder for talks */
.right-column p {
    font-style: italic;
    color: #555;
}

/* ------------------------------------------------ */

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    height: 300px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    box-shadow: 0 40px 40px rgb(127, 224, 224);
}

.project-image {
    flex: 0 0 400px;
    /* fixed width */
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ccc;
}

.project-image-kush {
    flex: 0 0 400px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ccc;
    background-image: url('your-image.jpg');
    background-size: cover;
    /* Cover the container, crop overflow */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    margin-top: 60px;

}

.project-image-kush img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This makes the image fill the box while cropping the overflow */
    display: block;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.2rem;
}


.project-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* slightly wider min width */
    gap: 2rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    /* aligns top on stacked content */
    gap: 1rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    flex-wrap: wrap;
    /* allows icon + content to stack if needed */
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    /* prevent shrinking */
}

.hero-section {
    text-align: center;
    padding: 0;
    /* Padding moved to child if needed */
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    /* Stack image and description vertically */
    align-items: center;
}

.hero-image {
    width: 100vw;
    height: 550px;
    /* or whatever height you want */
    background: linear-gradient(135deg, rgba(148, 168, 212, 0.1), rgba(22, 44, 236, 0.1)),
        url("../pictures/test.png") center center / cover no-repeat;
    border-radius: 0px;
    margin-top: -32px;
}

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

.hero-description {
    font-size: 1.5rem;
    color: #000000;
    max-width: 1200px;
    margin: 2rem auto 0;
    line-height: 1.8;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}


.opening-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opening-duration {
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

.opening-application {
    color: #3498db;
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-block;
}

.opening-application ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    list-style-type: disc;
    color: #333;
}

.opening-application li {
    margin-bottom: 0.4rem;
}

.opening-status {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 1rem;
    white-space: nowrap;
}

.opening-status.open {
    background-color: #2ecc71;
    color: white;
}

.opening-status.closed {
    background-color: #e74c3c;
    color: white;
}

.card .contact-item+.contact-item {
    margin-top: 2rem;
}

.table-wrapper {
    overflow-x: auto;
}

.intern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.intern-table thead {
    background-color: #3498db;
    color: white;
}

.intern-table th,
.intern-table td {
    padding: 1rem;
    border: 1px solid #e1e8ed;
    text-align: left;
}

.intern-table tbody tr:nth-child(even) {
    background-color: #f2f8fc;
}

.intern-table tbody tr:hover {
    background-color: #e8f4fc;
}


@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    .nav-tabs {
        gap: 40px;
        /* reduce gap for smaller screens */
        flex-wrap: wrap;
        /* allow tabs to wrap if needed */
    }

    .nav-tabs button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .person-card {
        flex-direction: column;
        text-align: center;
    }

    .person-card-container {
        grid-template-columns: 1fr;
        /* Stack cards on smaller screens */
    }

    .person-photo {
        width: 120px;
        height: 120px;
    }

    .person-info h3 {
        font-size: 1.1rem;
        /* Adjust font size for smaller screens */
    }

    .hero-title {
        font-size: 2rem;
    }

    .content {
        padding: 1rem;
    }

    /* Responsive layout for main + sidebar */
    .card-layout {
        flex-direction: column;
    }

    .main-column,
    .sidebar-column {
        width: 100%;
    }

    .person-pi-content {
        flex-direction: column;
    }

    .pi-contact-info {
        margin-top: 1rem;
    }

    .publication-layout {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

}