/*
  GRINLab website stylesheet
  ---------------------------------------
  This file controls the look of the whole website.
  A new student should mostly edit:
  1. the color variables below
  2. the text inside each HTML page
  3. the navigation links in site.js
*/

:root {
  --nav-bg: #34475b;
  --nav-text: #f5f1ec;
  --nav-hover: #f0c8c8;
  --page-bg: #ece9e7;
  --panel-bg: #d9d6d5;
  --deep-blue: #0f283d;
  --purple: #40257a;
  --maroon: #7a0907;
  --peach: #ecc9bc;
  --gold: #e5ad32;
  --soft-text: #3f4347;
  --heading-text: #f8f2ec;
  --card-blue: #56697d;
  --white: #ffffff;
  --max-width: 1280px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--soft-text);
  background: var(--page-bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover { color: #7e3b2f; }

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
}

.site-header-wrap {
  background: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: 10px solid rgba(255,255,255,0.95);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.main-nav a {
  color: var(--nav-text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--nav-hover);
  border-bottom-color: currentColor;
}

.main-nav .caret {
  font-size: 0.75em;
  margin-left: 4px;
  opacity: 0.85;
}

.hero-title {
  padding: 26px 0 18px;
  color: var(--heading-text);
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero-band {
  min-height: 150px;
  background-position: center;
  background-size: cover;
  border-top: 8px solid rgba(255,255,255,0.95);
  border-bottom: 8px solid rgba(255,255,255,0.95);
}

.hero-band.neuron-green { background-image: url('assets/Banner-1.jpg'); }
.hero-band.book-brown { background-image: url('assets/banner-books-brown.svg'); }
.hero-band.eggs-gold { background-image: url('assets/neurons.jpeg'); }
.hero-band.maroon-flat { background: linear-gradient(180deg, #7b0303, #7b0303); }
.hero-band.slate-flat { background: linear-gradient(180deg, #32465b, #32465b); }

.hero-shell.deep-blue { background: var(--deep-blue); }
.hero-shell.slate { background: #31465b; }
.hero-shell.gold { background: linear-gradient(180deg, #d99819 100%, #dbab39 0%); }
.hero-shell.maroon { background: var(--maroon); }

.panel {
  padding: 28px 0;
}

.panel.purple { background: var(--purple); color: #fff; }
.panel.grey { background: #d7d4d4; }
.panel.peach { background: var(--peach); }
.panel.white { background: #f8f6f4; }

.upcoming-talk {
  min-height: 220px;
  padding-top: 22px;
}

.upcoming-talk h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.upcoming-talk p {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 60px;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.text-block h2,
.text-block h3,
.text-block h1,
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  color: #222;
}

.text-block h2,
.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin: 0 0 14px;
}

.text-block.lead p,
.lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.figure-card,
.photo-card {
  background: #101010;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.figure-card img,
.photo-card img {
  width: 100%;
  height: auto;
}

.fake-photo {
  width: 100%;
  min-height: 430px;
  background: radial-gradient(circle at 30% 55%, rgba(65,15,15,0.7), transparent 22%),
              radial-gradient(circle at 50% 68%, rgba(200,0,0,0.9), transparent 5%),
              radial-gradient(circle at 68% 55%, rgba(160,0,0,0.9), transparent 5%),
              linear-gradient(180deg, #070707, #210202 55%, #090909);
  position: relative;
}

.fake-photo::before,
.fake-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 35%, rgba(37,61,255,0.85) 0 1.2%, transparent 1.4%),
    radial-gradient(circle at 40% 76%, rgba(62,62,255,0.85) 0 1.5%, transparent 1.7%),
    radial-gradient(circle at 69% 18%, rgba(255,16,16,0.95) 0 0.7%, transparent 0.9%),
    radial-gradient(circle at 84% 68%, rgba(255,16,16,0.95) 0 0.8%, transparent 1%);
}

.fake-photo::after {
  background-image:
    linear-gradient(112deg, transparent 14%, rgba(205,0,0,0.75) 16%, transparent 18%),
    linear-gradient(38deg, transparent 58%, rgba(205,0,0,0.7) 60%, transparent 62%),
    linear-gradient(96deg, transparent 68%, rgba(205,0,0,0.6) 70%, transparent 72%);
  mix-blend-mode: screen;
}

.button-stack {
  display: grid;
  gap: 12px;
}

.pill-link {
  display: block;
  background: var(--card-blue);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 22px 20px;
  border-radius: 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}

.pill-link:hover { color: #fff; filter: brightness(1.06); }

.notice-bar {
  background: #d1cece;
  padding: 8px 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.publication-list {
  padding-left: 1.4rem;
  font-size: 0.98rem;
}

.publication-list li { margin-bottom: 0.8rem; }

.highlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  color: rgba(255,255,255,0.94);
}

.highlight-links a {
  text-decoration: none;
  color: inherit;
}

.callout-button {
  display: inline-block;
  background: rgba(44,21,10,0.75);
  color: #fff;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 1rem;
}

.publication-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.project-summary {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 56px;
  padding: 48px 0;
}

.project-summary ul {
  margin-top: 0.5rem;
}

.black-divider {
  height: 14px;
  background: #000;
}

.placeholder-art {
  background-image: url('assets/placeholder-micrograph.svg');
  background-size: cover;
  background-position: center;
}

.outreach-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.outreach-grid h2 {
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: #a44c2f;
  margin-bottom: 1rem;
}

.soft-list li { margin-bottom: 8px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.info-card {
  background: #fff;
  padding: 22px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.site-footer {
  background: var(--nav-bg);
  color: #f3efe9;
  margin-top: 48px;
}

.footer-grid {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 28px;
  padding: 36px 0 42px;
}

.site-footer h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 400;
}

.site-footer a {
  color: #fff;
}

.small-note {
  font-size: 0.92rem;
  opacity: 0.9;
}

.page-spacer { padding: 44px 0; }

.edit-note {
  background: #fff4ce;
  border-left: 6px solid #dfb100;
  padding: 14px 16px;
  margin: 24px 0;
  font-size: 0.96rem;
}

@media (max-width: 980px) {
  .two-col,
  .publication-hero-grid,
  .project-summary,
  .outreach-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .three-col {
    grid-template-columns: 1fr 1fr;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    gap: 12px 18px;
  }
}

@media (max-width: 700px) {
  .container,
  .footer-grid {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .gallery-grid,
  .three-col {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 4px;
  }

  .hero-band { min-height: 110px; }

  .upcoming-talk { min-height: 140px; }

  .hero-title { padding: 18px 0 14px; }
}
/* Publications page */
.publications-hero {
  background-image: url("assets/publications-hero.jpg");
  background-size: cover;
  background-position: center;
  min-height: 280px;
  position: relative;
}

.page-hero-overlay {
  background: rgba(40, 25, 15, 0.25);
  min-height: 280px;
  display: flex;
  align-items: center;
}

.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: #f6f1ee;
  margin: 0 0 1.25rem 0;
  font-weight: 400;
}

.pub-links-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pub-links-row a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: #f6f1ee;
  text-decoration: none;
}

.pub-links-row a:hover {
  text-decoration: underline;
}

.pub-links-row span {
  color: #f6f1ee;
  font-size: 2rem;
}

.preprint-button-wrap {
  margin-top: 1rem;
}

.hero-button {
  display: inline-block;
  background: rgba(40, 20, 10, 0.65);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  font-size: 1.1rem;
}

.hero-button:hover {
  background: rgba(40, 20, 10, 0.8);
}

.light-section {
  background: #e7e7e7;
  padding: 2rem 0 4rem;
}

.pub-note {
  background: #cfcfcf;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.pub-note a {
  color: #2f455d;
}

.publication-list {
  margin: 0;
  padding-left: 2rem;
}

.publication-list li {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.08rem;
  color: #333;
}

.publication-list a {
  color: #4c4c4c;
  text-decoration: underline;
}

.publication-list a:hover {
  color: #1f3348;
}

.pubmed-link {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.pubmed-link a {
  color: #2f455d;
  font-weight: 600;
  text-decoration: none;
}

.pubmed-link a:hover {
  text-decoration: underline;
}

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


.grant-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.grant-card:hover {
  transform: translateY(-5px);
}

.grant-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  margin-right: 6px;
}

.csir { background-color: #007bff; }
.dst { background-color: #28a745; }
.dbt { background-color: #6f42c1; }

.amount {
  font-weight: bold;
  margin-top: 8px;
}

.profile-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 6px; 
}

.map-container {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

.gallery-item {
  width: 100% !important;
  height: 250px !important;   /* fixed height */
  overflow: hidden !important;
  background: #000;
}

.gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.photo-card {
  background: #101010;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.real-photo {
  width: 100% !important;
  height: 100% !important;
  max-height: 430px !important;
  object-fit: cover !important;  /* 🔥 FULL IMAGE */
  display: block !important;
}

.member-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.info-card {
  padding: 15px;
  text-align: center;
}

.thesis {
  font-size: 0.95rem;
  color: #444;
  margin: 6px 0;
}

.affiliation {
  font-size: 0.9rem;
  color: #1a3d6d;
  margin-top: 6px;
  font-weight: 500;
}

.info-card ul {
  list-style: none;     /* removes dots */
  padding-left: 0;      /* removes left spacing */
  margin-left: 0;
}

.btn-download {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  background: #333;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

/* =========================
   COMMON (shared basics only)
========================= */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Buttons (shared) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover {
  background: rgba(0,0,0,0.7);
}

/* Dots (shared) */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.carousel-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots .active-dot {
  background: white;
}

/* =========================
   HOMEPAGE CAROUSEL (original)
========================= */

.home-carousel {
  height: 300px;
}

.home-carousel .carousel-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 🔥 original behavior */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.home-carousel .carousel-img.active {
  opacity: 1;
}

/* =========================
   TALENT SHOWCASE CAROUSEL
========================= */

.talent-carousel {
  height: 200px;
}

.talent-carousel .carousel-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* or change to cover if you prefer */
  background: #f5f5f5;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.talent-carousel .carousel-img.active {
  opacity: 1;
}

/* =========================
   Talent Showcase Section
========================= */

.section-title {
  text-align: left;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #666;
  margin-bottom: 30px;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.talent-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.talent-card:hover {
  transform: translateY(-6px);
}

.talent-info {
  padding: 14px 18px;
  margin: 0;
}

.talent-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.talent-info p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
/* Talent carousel buttons fix */
.talent-carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 18px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.talent-carousel .prev {
  left: 10px;
}

.talent-carousel .next {
  right: 10px;
}

.talent-carousel button:hover {
  background: rgba(0,0,0,0.8);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out; /* 🔥 smooth slide */
}
.talent-carousel .carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* better than contain here */
  flex-shrink: 0;
}