body {
    background-color: #0a1333;
    color: white;
    font-size: large;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;

}



.hero {
    margin: 200px 200px 10px 200px;
    /* padding: 100px; */
}

/* Add a black background color to the top navigation */
.topnav {
    background-color: #0e1c4d;
    overflow: hidden;
}




/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 15px 17px;
    text-decoration: none;
    font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover:not(.toplogo) {
    background-color: #f4ff53;
    color: rgb(2, 49, 255);
}

/* Add an active class to highlight the current page */
.topnav a.active:not(.toplogo) {
    background-color: #e6ff59;
    color: rgb(76, 0, 255);
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}

.topnav .toplogo {
    padding: 5.5px 6px;
}


.toplogo {
    display: inline-flex;
    /* or flex */
    align-items: center;
    /* vertical alignment */
    gap: 8px;
    /* space between logo & text */
}

.toplogo img {
    width: 32px;
    height: 32px;
    /* display: block; */
    /* padding: 10px;  */
    /* margin: 10px; */
}

.topnav .toplogo:hover {
    background-color: #214c74;
}


/* .toplogo .logo-text {
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
} */

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .hero {
        margin: 50px;
        /* padding: 100px; */
    }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}

.research-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.research-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Card */
.research-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Icon circle */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(120, 130, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8f9bff;
    flex-shrink: 0;
}

/* Text */
.card-content h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    color: #ffffff;
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b8c0d4;
}

/* Responsive */
@media (max-width: 600px) {
    .research-card {
        padding: 1.25rem;
    }

    /* .icon-circle {
    width: 48px;
    height: 48px;
  } */
}












/* people section */

.section-title-h1 {
    text-align: center;
    font-size: 4rem;
    margin: 4rem 0 2.5rem;
}

.section-title-h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title-h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}


.people-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}



/* Featured wrapper */
.featured-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Grid for students */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 1fr;
    gap: 2.5rem;
}

/* Base card */
.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    min-height: 360px;
    padding: 2rem 1.5rem;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(0px);

    transition:
        transform 0.25s ease,
        backdrop-filter 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

/* Hover */
.person-card:hover {
    transform: translateY(-8px);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

/* Images */
.person-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
}

/* Text */
.person-card h3 {
    margin-top: 1.2rem;
    font-size: 1.1rem;
}

.person-card .role {
    font-size: 0.85rem;
    color: #b8c0d4;
    margin-top: 0.3rem;
}

.person-card .interest {
    font-size: 0.85rem;
    color: #9aa4bf;
    line-height: 1.4;
    margin-top: 0.8rem;
}

/* Featured card */
.person-card.featured {
    max-width: 420px;
    min-height: 420px;
    border: 1px solid rgba(150, 160, 255, 0.35);
    background: rgba(150, 160, 255, 0.08);
}

.person-card.featured:hover {
    background: rgba(150, 160, 255, 0.14);
}



/* Mobile */
@media (max-width: 600px) {
    .person-card {
        min-height: 340px;
    }

    .person-card.featured {
        min-height: 380px;
    }
}



.person-card img {
    width: 140px;
    height: 140px;
}

@media (min-width: 1024px) {
    .person-card img {
        width: 170px;
        height: 170px;
    }

    /* Optional: featured prof even bigger */
    .person-card.featured img {
        width: 250px;
        height: 250px;
    }
}

.alumni-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto 0;
    max-width: 600px;
    text-align: center;
}

.alumni-list li {
    margin-bottom: 0.9rem;
    font-size: 1rem;
    color: #b8c0d4;
}

.alumni-list a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.alumni-list a:hover {
    text-decoration: underline;
}




















/* publications */
.publications-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Individual publication */
.publication-card {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.publication-title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.publication-venue {
    font-size: 0.95rem;
    color: #b8c0d4;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.publication-link {
    font-size: 0.95rem;
    color: #8f9bff;
    text-decoration: none;
}

.publication-link:hover {
    /* text-decoration: underline; */
    color: #c3d37b;
}

/* Footer button */
.publications-footer {
    margin-top: 4rem;
    text-align: center;
}

.publications-button {
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    background: #6366f1;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
}

.publications-button:hover {
    background: #4f46e5;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .publication-title {
        font-size: 1.1rem;
    }
}




/* News section */
.news-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

/* Year heading */
.news-year-title {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: #ffffff;
}

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

/* Item */
.news-item {
  margin-bottom: 1rem;
}

/* Clickable row */
.news-item a {
  display: flex;
  gap: 1.5rem;
  padding: 0.4rem 0;
  text-decoration: none;
}

.news-item a:hover .news-text {
  /* text-decoration: underline; */
  color: #c3d37b;
}

/* Date */
.news-date {
  min-width: 90px;
  font-weight: 600;
  color: #ffffff;
}

/* Text */
.news-text {
  color: #b8c0d4;
  line-height: 1.6;
}
