:root{
  --bg: #f7f8fb;
  --text: #1c2430;
  --muted: #5b6676;
  --divider: #0A2647;
  --card: #ffffff;
  --chip: #eef3ff;
  --chip-text:#2C74B3;
  --accent: #2C74B3;
  --maxw: 1100px;
  --gap: 2rem;
}

*{box-sizing:border-box;}



/* Global resets */
body {
    margin: 0;
    margin-top: 6rem;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: rgb(252, 252, 255);

}

/* Header container */
.site-header {


    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background-color: #0A2647;
    color: white;
    padding: 0 3rem;                    /* horizontal spacing */
    height: 3.5rem;                       /* fixed clean header height */
    font-family: 'Inter', sans-serif;
    font-size: 2vh;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left side — Name */
.site-name {
    font-variant: small-caps;
    letter-spacing: 1.2px;
}

/* Right side nav */
.header-right a {
    color: white;
    text-decoration: none;
    margin-left: 1vw;                  /* spacing between links */
    padding: 0.7rem 0.5rem;                 /* vertically centers text nicely */
    border-radius: 0.25rem;
}

.header-right a:hover {
    text-decoration: none;
    background-color: #2C74B3;
}

main {
    padding: 3rem;
    margin: 3rem;
    background-color: rgb(252, 252, 255);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


.site-footer {
    /*background-color: #010048;*/
    background-color: #0A2647;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    height: 1vh;    
}

.footer-icons a {
    color: #fff;
    margin-left: 1rem;
    font-size: 1.25rem;
    text-decoration: none !important;   
}

.footer-icons a i {
    text-decoration: none !important;   /* FIX */
}

.footer-icons a:hover {
    color: #2C74B3;
    text-decoration: none !important;   /* FIX */
}

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }
}

/* Layout */
.about {
  display: grid;
  grid-template-columns: 320px 1fr; /* left column fixed-ish, right grows */
  gap: 5rem;
  align-items: start;  /* keeps top-aligned */
  max-width: 90%;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Left column */
.headshot {
    width: 90%;              /* or 100% if you prefer */
    height: 90%;             /* must match width */
    border-radius: 50%;        /* makes it a circle */
    object-fit: cover;         /* crops image cleanly */
    object-position: center;   /* centers your face */
    display: block;
    margin: 0 auto 1rem auto;  /* centers in the left column */
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.about-left {
    text-align: center;
}


/* Right column */
.about-right h2 {
  margin-top: 0;
}

.about-icons {
    margin-top: 1rem;
}

.about-icons a {
    color: #144272;
    margin: 0 0.5rem;
    font-size: 1.75rem;
    text-decoration: none !important;
}

.about-icons a:hover {
    color: #2C74B3;
}

.about-text {
    font-family: 'Inter', sans-serif;
    font-size: 2.25vh;
    color: #333;
    line-height: 1.6;   /* increase to 1.7 or 1.8 if you want more spacing */

}

.highlight {
    /*color: #4A70A9;*/
    color: #144272;
    font-weight: 600;
}

/* Responsive: collapse to one column on smaller screens */
@media (max-width: 800px) {
  .about {
    grid-template-columns: 1fr;
  }
}


.research-page{
  margin: 3rem;
  padding: 6em;
}

.research-title{
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin:0 0 1.25rem 0;
}

.research-lead{
  margin:0 0 2.25rem 0;
  color:var(--muted);
  
}

/* ========= LAB SECTION GRID ========= */

.research-interest-chips {
    margin-bottom: 1rem;
}

.research-lab-section{
  position:relative;

  display:grid;
  grid-template-columns:1fr 2fr;
  gap:var(--gap);
  padding:2rem 0;
  margin-left: 4em;
  margin-right: 4em;
}

.research-lab-section + .research-lab-section{
  border-top:0px solid rgba(10,38,71,0.12);
}

/* vertical divider */
.research-lab-section::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:calc(33.333% - (var(--gap) / 2));
  width:2px;
  background:var(--divider);
  opacity:0.85;
}

/* left column */
.research-lab-left{
  padding-right:calc(1.5 * var(--gap));
  text-align: left;
}

.research-lab-name{
  margin:0 0 .3rem 0;
  font-size:1.15rem;
  font-weight:700;
}

.research-lab-pi{
  margin:0 0 .75rem 0;
  color:var(--muted);
  font-weight:500;
}

.research-lab-meta{
  margin:.75rem 0 0 0;
  color:var(--muted);
  font-size:0.95rem;
}

/* right column */
.research-lab-right{
  padding-left:calc(var(--gap) / 2);
}

/* ========= PROJECT CARDS ========= */

.research-projects{
  display:grid;
  gap:1rem;
}

.research-project-card{
  background:var(--card);
  border-radius:12px;
  padding:1rem 1.1rem;
  box-shadow:0 6px 14px rgba(10,38,71,0.06);
  transition:transform .12s ease,box-shadow .12s ease;
}

.research-project-card:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(10,38,71,0.10);
}

.research-project-title{
  margin:0 0 .25rem 0;
  font-weight:600;
  font-size:1.05rem;
}

.research-project-venue{
  margin:0 0 .5rem 0;
  color:var(--muted);
  font-size:.95rem;
}

.research-project-desc{
  margin:.4rem 0 .75rem 0;
}

.research-chips{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}

.research-chip{
  background:var(--chip);
  color:var(--chip-text);
  font-size:.82rem;
  padding:.25rem .55rem;
  border-radius:999px;
  font-weight:600;
}

/* ========= LINKS ========= */

a{
  color:var(--accent);
  text-decoration:none;
}
a:hover{text-decoration:underline;}

/* ========= RESPONSIVE ========= */

@media (max-width:900px){
  .research-lab-section{
    grid-template-columns:1fr;
    padding:1.25rem 0 1.75rem;
  }

  .research-lab-section::before{
    display:none;
  }

  .research-lab-right{
    border-top:2px solid var(--divider);
    padding-top:1rem;
    margin-top:1rem;
  }
}

@media (prefers-reduced-motion:reduce){
  .research-project-card{transition:none;}
}


/* ===== Publications Page (scoped) ===== */

.publications-page {
  font-family: 'Inter', sans-serif;
  background: var(--bg, #f7f8fb);
  color: var(--text, #1c2430);
  padding: 6rem 2rem 2.5rem;
}

.publications-wrap {
  max-width: var(--maxw, 1100px);
  margin: 0 auto;
}

.publications-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--text, #1c2430);
}

.publications-subtitle {
  margin: 0 0 1.5rem 0;
  color: var(--muted, #5b6676);
  font-size: 0.95rem;
}

/* Cards */
.publications-card {
  background: var(--card, #fff);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(10, 38, 71, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publications-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.publications-card-head {
  margin-bottom: 0.5rem;
}

.publications-paper-title {
  font-size: 1.0rem;
  line-height: 1.35;
  margin: 0 0 0.35rem 0;
  color: var(--text, #1c2430);
}

.publications-venue {
  font-size: 0.9rem;
  color: var(--muted, #5b6676);
}

.publications-authors {
  margin: 0.1rem 0 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text, #1c2430);
}

/* Chips */
.publications-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0.45rem 0;
}

.publications-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--chip, #eef3ff);
  color: var(--chip-text, #274d8a);
  border: 1px solid rgba(39, 77, 138, 0.15);
}

/* Topic chips can share the default chip styling; override if desired */
.publications-chip--topic {}

/* Lab color schemes — pick colors per lab */
.publications-chip--lab {}

/* Vision & AI Lab */
.publications-lab--vail {
  background: #e9f1ff;
  color: #1f4fa3;
  border-color: rgba(31, 79, 163, 0.18);
}

/* CloudSys Lab */
.publications-lab--cloudsys {
  background: #eafaf2;
  color: #127a4f;
  border-color: rgba(18, 122, 79, 0.18);
}

/* Engaging Computing Group */
.publications-lab--ecg {
  background: #fff3e8;
  color: #b55a14;
  border-color: rgba(181, 90, 20, 0.18);
}

/* SyN Lab */
.publications-lab--syn {
  background: #f3eaff;
  color: #6d35b3;
  border-color: rgba(109, 53, 179, 0.18);
}

/* Links row */
.publications-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.publications-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent, #274d8a);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.publications-link:hover {
  border-bottom-color: currentColor;
}

.publications-link i {
  font-size: 1rem;
  line-height: 1;
}

/* Small screens spacing */
@media (max-width: 560px) {
  .publications-card { padding: 1rem; }
  .publications-links { gap: 0.6rem 0.8rem; }
}


/* ======== Thumbnail layout ======== */

.publications-card {
  display: grid;
  grid-template-columns: 140px 1fr; /* left image, right content */
  gap: 1.25rem;
  align-items: flex-start;
}

/* Thumbnail container */
.publications-thumb {
  width: 140px;
  height: 100%;
  display: flex;
  align-items: center;
}

.publications-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Right content */
.publications-content {
  display: flex;
  flex-direction: column;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 650px) {
  .publications-card {
    grid-template-columns: 1fr;
  }

  .publications-thumb {
    width: 100%;
    max-height: 180px;
  }

  .publications-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}

/* ========================= AWARDS PAGE ========================= */

.awards-page {
  padding: 6rem 2rem 2.5rem;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
}

.awards-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.awards-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
  
}

.awards-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ========================= GRID LAYOUT ========================= */

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ========================= AWARD CARD ========================= */

.award-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 5px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(10,38,71,0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.2s ease;
  text-align: center;
}

.award-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* Make the entire tile clickable when desired */
.award-clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.award-clickable:hover {
  background: #f5f7fc;
}

/* ========================= THUMBNAIL ========================= */

.award-thumb {
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 0.7rem;

  
  height: 10em;        /* fixed height for uniform layout */
  width: 100%;
  object-fit: contain;    /* crops edges instead of distorting */
  border-radius: 8px;
}


/* ========================= TEXT ELEMENTS ========================= */

.award-name {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.award-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Divider between date and description */
.award-divider {
  width: 60%;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0.4rem auto 0.6rem auto;
}

/* ========================= DESCRIPTION (HOVER EXPAND) ========================= */

.award-desc {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text);

  transition: max-height 0.35s ease-in-out;

  max-height: none;
  overflow: visible;
}

/*
.award-card:hover .award-desc {
  max-height: 12em;            
} 
*/

/* ========================= RESPONSIVE ========================= */

@media (max-width: 1000px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Leadership / Mentorship / Service
   =============================== */

.leadership-page {
  padding: 6rem 2rem 2.5rem;
  background: var(--bg);
}

.leadership-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.leadership-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.leadership-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== GRID (2 per row) ===== */

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 800px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CARD ===== */

.leadership-card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(10,38,71,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center; /* CENTER ALL CONTENT */
}

.leadership-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* ===== Thumbnail ===== */

.leadership-thumb {
  aspect-ratio: 3 / 2;
  margin-bottom: 0.9rem;

  height: 15em;        /* fixed height for uniform layout */
  width: 100%;
  object-fit: contain;    /* crops edges instead of distorting */
  border-radius: 8px;

}

/* ===== Text Elements (Centered) ===== */

.leadership-title-small {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.leadership-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.leadership-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

/* Thin divider under dates */

.leadership-divider {
  width: 60%;
  height: 1px;
  background: rgba(10, 38, 71, 0.18);
  margin: 0.4rem auto 1rem;
}

/* ===== Description ===== */

.leadership-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ===== Chips ===== */

.leadership-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.leadership-chip {
  background: var(--chip);
  color: var(--chip-text);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== Mini Link Icons ===== */

.leadership-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.leadership-links a {
  color: var(--accent);
  font-size: 1rem;
  transition: color 0.15s ease;
}

.leadership-links a:hover {
  color: #144272;
}



/* ===== AI Education Page (scoped) ===== */

.aied-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.aied-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.aied-lab {
  margin: 0 0 .75rem 0;
  color: var(--muted);
  font-weight: 500;
}

.aied-summary .research-lead {
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.aied-section-title {
  margin: 3rem 0 1rem 0;
  font-size: 1.3rem;
}

/* ========= CAROUSEL ========= */

.aied-carousel {
  position: relative;
}

.aied-controls {
  position: absolute;
  top: -3.1rem;
  right: 0;
  display: flex;
  gap: .5rem;
}

.aied-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(10,38,71,0.15);
  background: var(--card);
  color: var(--divider);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(10,38,71,0.06);
  transition: background .12s ease, color .12s ease;
}

.aied-btn:hover,
.aied-btn:focus-visible {
  background: var(--accent);
  color: #fff;
}

.aied-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 340px;
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 14px rgba(10,38,71,0.06);
}

.aied-slide[hidden] {
  display: none;
}

.aied-slide.is-active {
  animation: aied-fade .35s ease;
}

@keyframes aied-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.aied-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.aied-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aied-media--placeholder {
  background: var(--chip);
  color: var(--chip-text);
  font-size: 4.5rem;
}

.aied-concept {
  margin: 0 0 .3rem 0;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.aied-name {
  margin: 0 0 .25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.aied-desc {
  margin: .5rem 0 1.25rem 0;
  line-height: 1.6;
}

.aied-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.aied-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

.aied-link:hover {
  text-decoration: none;
  background: var(--chip);
}

.aied-link--primary {
  background: var(--accent);
  color: #fff;
}

.aied-link--primary:hover {
  background: var(--divider);
}

.aied-link--disabled {
  border-color: rgba(91,102,118,0.35);
  color: var(--muted);
  cursor: not-allowed;
}

.aied-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.1rem;
}

.aied-dot {
  width: .65rem;
  height: .65rem;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(10,38,71,0.2);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.aied-dot[aria-current="true"] {
  width: 1.6rem;
  background: var(--accent);
}

/* research page → AI education link */
.research-more-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  font-weight: 600;
}

@media (max-width: 800px) {
  .aied-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aied-slide.is-active { animation: none; }
  .aied-dot, .aied-btn { transition: none; }
}
