/* Modern Academic Website Styles */

/* 1. Import a modern font (optional) */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap'); */

:root {
  
  /* Base & Surfaces */
  --color-bg:         #ffffff;  /* pure white background */
  --color-surface:    #f7f9fa;  /* very light gray cards/sections */

  /* Text & Primary */
  --color-primary:    #2e3a59;  /* dark slate – for headings/nav bg */
  --color-text:       #343a40;  /* charcoal – for body text */
  
  /* PI name: pale gold – stands out warmly */
  --color-header-title: #f1f1f1;

  /* Nav links: off-white – classic and very legible */
  --color-nav-link: #CFD8DC ;

  /* Accent */
  --color-accent:     #4a90e2;  /* soft yet vibrant blue – links/buttons */
  --color-accent-light: #d0e6fc;/* gentle blue hover/background */
  
  /* New complementary accent */
  --color-accent-alt: #2ecc71;  /* emerald green */

  /* Muted */
  --color-muted-text: #6c757d;  /* medium gray – for dates/metadata */

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-sans);
  
  /* Spacing */
	--spacing-mini: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;

  /* Border radius */
  --radius: 0.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}


main {
  max-width: 960px;
  margin: var(--spacing-lg) auto;
  padding: 0 var(--spacing-md);
}

section {
  margin-bottom: var(--spacing-lg);
}

h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 0;
}

li .highlight {
	color: var(--color-accent);
}

/* Cards for news, publications, courses */
.article-card,
.news-item,
.course,
.publication-summary,
.publication-item {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  transition: transform 0.2s;
}

.article-card:hover,
.news-item:hover,
.course:hover,
.publication-summary:hover,
.publication-item:hover {
  transform: translateY(-2px);
}

/* Course cards: image left, content right */
.course {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-md);
}

/* Thumbnail sizing & left margin */
.course-thumb {
  width: clamp(80px, 20vw, 120px);
  height: auto;
  margin: 0  var(--spacing-md) 0 0; /* right‐side gap only */
  flex-shrink: 0;                    /* don’t let it shrink */
  object-fit: cover;
  border-radius: var(--radius);
}

/* Course info takes the rest of the space */
.course-info {
  flex: 1;
}

/* Mobile: stack again on narrow screens */
@media (max-width: 600px) {
  .course-card {
    flex-direction: column;
    align-items: center;
  }
  .course-thumb {
    margin: 0 auto var(--spacing-sm);
  }
  .course-info {
    width: 100%;
    text-align: center;
  }
}


.news-item .date,
.publication-summary .date,
.publication-item .date {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: var(--spacing-sm);
}

.news-item--highlight {
  background-color: #fff9c4;      /* pale yellow */
  border-left: 4px solid #ffeb3b; /* optional accent stripe */
  padding: 0.5rem 1rem;           /* give it some breathing room */
  border-radius: 4px;             /* soften the corners */
  margin-bottom: 0.5rem;          /* space below, if you want */
}


/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.publication-item img,
.publication-summary img {
  float: left;
  width: 120px;
  margin-right: var(--spacing-md);
  border-radius: var(--radius);
}

/* Lab members */
.lab-members {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
  padding: 0;
  list-style: none;
}

.lab-members li {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: var(--spacing-md);
  text-align: center;
  width: 200px;
  transition: transform 0.2s;
}

.lab-members li:hover {
  transform: translateY(-2px);
}

.lab-members li img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--spacing-sm);
  display: block;
  margin: 0 auto;
}

.date-updated {
	color: var(--color-muted-text);
	font-style: italic;
}

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--color-surface);
  color: #7f8c8d;
  font-size: 0.875rem;
}

/* Links and buttons */
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav ul li {
    margin: var(--spacing-sm);
  }

  .publication-item img,
  .publication-summary img {
    float: none;
    margin: 0 auto var(--spacing-md);
  }
  
  .lab-members {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
    gap: var(--spacing-md);
  }
}

/* -------------------------------
   Responsive PI Photo Styling  
---------------------------------*/

/* Container ensures proper alignment and spacing */
.pi-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

/* The photo itself */
.pi-photo {
  /* Use clamp() to keep the photo between 120px and 300px wide, 
     scaling at 20vw (20% of viewport width) in between */
  width: clamp(120px, 20vw, 300px);
  height: auto;            /* preserve aspect ratio */
  border-radius: 50%;      /* circle crop */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  object-fit: cover;       /* crop any overflow */
  transition: transform 0.2s;
}

/* Optional hover effect */
.pi-photo:hover {
  transform: scale(1.03);
}

/* On very small screens, make sure the photo doesn’t overwhelm the text */
@media (max-width: 480px) {
  .pi-photo {
    width: clamp(100px, 30vw, 180px);
  }
}

/* ===============================
   Alumni Section (collapsible)
   =============================== */

.alumni-section {
  margin: var(--spacing-lg) 0;
  background-color: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Style the summary header */
.alumni-section summary {
  cursor: pointer;
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;               /* remove default marker */
  outline: none;                  /* remove focus outline if undesirable */
  transition: background 0.2s;
}

.alumni-section summary:hover {
  background-color: var(--color-muted);
}

/* Custom arrow indicator */
.alumni-section summary::-webkit-details-marker {
  display: none;
}
.alumni-section summary::before {
  content: '▶';
  display: inline-block;
  margin-right: var(--spacing-sm);
  transition: transform 0.2s ease;
  color: var(--color-accent);
}
.alumni-section[open] summary::before {
  transform: rotate(90deg);
}

/* Container for the list */
.alumni-section .lab-members {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--color-surface);
}


/* Individual alumnus card */
.alumni-section .lab-members li {
  background-color: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: var(--spacing-md);
  text-align: center;
  flex: 1 1 calc(33% - var(--spacing-lg)); /* three across */
  max-width: calc(33% - var(--spacing-lg));
  transition: transform 0.2s;
}

.alumni-section .lab-members li:hover {
  transform: translateY(-2px);
}

.alumni-section h3 {
	padding: var(--spacing-md);
}

/* Center and size the photo */
.alumni-section .lab-members li img {
  display: block;
  margin: 0 auto var(--spacing-sm);
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px);
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .alumni-section .lab-members {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
    gap: var(--spacing-md);
  }
	
  .alumni-section .lab-members li {
    flex: 1 1 100%;
    /*max-width: 100%;*/
  }
}

/* style for the news page */
/* News timeline */
.news-list {
  position: relative;
  list-style: none;
  margin: var(--spacing-lg) 0;
  padding: 0;
}

/* Vertical line */
.news-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.5rem;
  width: 2px;
  background: var(--color-muted-text);
}

/* Each item */
.news-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: var(--spacing-sm) 0;
}

/* Dot marker */
.news-item::before {
  content: "";
  position: absolute;
  left: 2.3rem;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Date column */
.news-item time {
  flex: 0 0 5rem;
  font-size: 0.875rem;
  color: var(--color-muted-text);
  text-align: right;
  margin-right: var(--spacing-md);
  margin-top: 0.75rem;
  display: block;                /* ensure margin applies */
  margin-bottom: var(--spacing-sm); /* adjust up for more space */
}

/* Text column */
.news-text {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: var(--spacing-sm);
}

/* Tighten up the last item */
.news-list .news-item:last-child {
  padding-bottom: 0;
}

/* Mobile fallback: simple list */
@media (max-width: 600px) {
  .news-list::before { display: none; }
  .news-item {
    display: block;
    padding: var(--spacing-sm) 0;
  }
  .news-item::before { display: none; }
  .news-item time {
    display: block;
    text-align: left;
    margin-bottom: var(--spacing-xs);
  }
}

/* EDU and Experience Section */
/* Education & Experience Table Styles */
.table-container {
  overflow-x: auto; /* allows horizontal scroll on small screens */
  /*margin: var(--spacing-lg) 0;*/
}

.experience-section {
  margin-bottom: 0;
  padding-bottom: 0;
}



	/* container: fluid grid */
	.edu-cards {
	  display: grid;
	  gap: 1rem;
	  /* 1 col on mobile, 2–3 on desktop */
	  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	  margin: 0;            /* you control spacing via gap */
	  padding: 0;
	}

	/* each card */
	.edu-card {
	  display: flex;
	  align-items: center;
	  background: #fff;
	  border: 1px solid #ddd;
	  border-radius: 4px;
	  padding: 0.75rem;
	  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	}

	/* logo */
	.edu-card__logo {
	  flex-shrink: 0;
	  width: 48px;
	  height: auto;
	  margin-right: 0.75rem;
	}

	/* text block */
	.edu-card__body {
	  display: flex;
	  flex-direction: column;
	}

	/* institution/company name */
	.edu-card__title {
	  margin: 0 0 0.25rem;
	  font-size: 1rem;
	  line-height: 1.2;
	}

	/* role + years on same line */
	.edu-card__meta {
	  margin: 0;
	  font-size: 0.9rem;
	  color: #555;
	  display: flex;
	  gap: 0.5rem;
	}



/***		Contact styling ***/
/* Contact section at bottom of homepage */
#contact {
  margin: var(--spacing-lg) 0;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-muted-text);
}

#contact h2 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: var(--spacing-sm);
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--color-accent);
  text-decoration: none;
}

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




