:root {
  /* BRAND PALETTE */
  /*--color-lavender-light: #f3e8ff; /* page background */
  --color-lavender-mid: #dab2ff; /* countdown card */
  --color-headline-purple: #57068c;
  --color-ink-strong: #020618;
  /* --color-ink-soft: #0f172b; */
  --color-accent-pink: #f4a8ff; /* RSVP button */
  --color-accent-purple: #57068c; /* event card border */

  /* SEMANTIC TOKENS */
  --bg-page: #053345;
  --bg-card: rgba(247, 233, 255, 0.6);
  --bg-countdown: var(--color-lavender-mid);

  --text-primary: var(--color-ink-strong);
  --text-secondary: var(--color-ink-strong);
  --text-footer: var(--color-ink-strong);

  --button-bg: var(--color-accent-pink);
  --button-text: var(--color-ink-strong);

  --border-strong: var(--color-accent-purple);
}

/* GLOBAL RESET */

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

body {
  margin: 0;
  background: #053345;
  font-family: "Montserrat", system-ui, sans-serif;
}

/* WRAPPER */

.idm-showcase {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 4rem 3rem 5rem; /* 7.5rem 3rem 5rem */
  overflow: hidden;

  display: flex;
  flex-direction: column; /* main content on top, footer at bottom */
}

/* CENTERED CONTENT CONTAINER */

.idm-showcase__container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1; /* pushes footer down */
}

/* MAIN LAYOUT */

.idm-showcase__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5rem;
  flex: 1;
}

/* LEFT COLUMN */

.idm-showcase__left {
  max-width: 31.25rem; /* 500px */
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.idm-showcase__title {
  width: 31.25rem;
  margin: 0;
  font-family: "Monofett", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5rem); /* responsive: 40px–80px */
  line-height: 1;
  color: rgba(255, 123, 125, 1);
  filter: drop-shadow(0.1rem 0.3rem 0.05rem rgba(0, 0, 0, 0.1));
}

/* EVENTS LIST */

.idm-showcase__events {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* EVENT CARD */

.event-card {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: 0.125rem solid rgba(255, 123, 125, 1);
  box-shadow: 0 0.25rem 0 rgba(0, 0, 0, 0.05);
}

.event-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-card__datetime {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: white;
}

.event-card__rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 0.8rem;
  background: rgba(255, 123, 125, 1);
  color: black;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.25rem 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card__rsvp:hover {
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.1875rem 0 rgba(0, 0, 0, 0.12);
}

.event-card__body {
  font-family: "Montserrat", system-ui, sans-serif;
}

.event-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 123, 125, 1);
}

.event-card__location {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 350;
  line-height: 1.3;
  color: white;
}

/* RIGHT COLUMN */

.idm-showcase__right {
  width: 28.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* COUNTDOWN CARD */

.countdown-card {
  position: relative; /* allows absolute children */
  overflow: visible; /* makes sure the sticker can stick out */
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  background: rgba(255, 123, 125, 1);
  border-radius: 2rem;
  box-shadow: 0 0.25rem 0 rgba(0, 0, 0, 0.05);
}

.countdown-sticker {
  position: absolute;
  top: -3.5rem;
  right: -3.5rem;
  width: 8rem;
  height: auto;
  pointer-events: none; /* avoids blocking your countdown numbers */
  filter: drop-shadow(0.1rem 0.3rem 0.05rem rgba(0, 0, 0, 0.2));
}

.countdown-grid {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5625rem;
}

.time-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9375rem;
}

.time-value,
.time-label,
.time-separator {
  font-family: "Moulpali", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-secondary);
}

.time-value {
  font-size: 5rem;
}

.time-label {
  font-size: 2.5rem;
}

.time-separator {
  display: flex;
  align-items: center;
  font-size: 3.75rem;
}

/* PROGRAM BLURB */

.idm-blurb {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: white;
}

.idm-blurb p {
  margin: 0;
}

.idm-blurb strong {
  font-weight: 700;
}

.idm-blurb__program-link {
  font-weight: 700;
  text-decoration: underline;
  color: white;
}

.idm-blurb__archive-link {
  margin-top: 0.5rem;
  font-weight: 700;
  text-decoration: underline;
  color: white;
  align-self: flex-end;
}

/* New Hero Project Navigation */
.hero-project-nav {
  /* margin-top: 2rem;  */
  /* Space it away from the archive link */
  display: flex;
  flex-direction: column; /* Stacks the items vertically */
  align-items: flex-start; /* Aligns text to the left */
  gap: 0.5rem; /* Space between lines */

  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: white;
}

.hero-project-nav .nav-label {
  color: rgba(255, 123, 125, 1);
  /* color: black; */
  font-weight: 700; /* Make "See the Projects:" bold */
  margin-bottom: 0.25rem;
}

.hero-project-nav .nav-link {
  margin-left: 1.5rem;
  /* color: black; */
  color: white;
  text-decoration: none; /* Remove default underline */
  transition: color 0.2s ease;
}

/* Hover Effect using your pink variable */
.hero-project-nav .nav-link:hover {
  color: var(--color-accent-pink);
  text-decoration: underline;
}

/* Creates breathing room when jumping to these sections */
#grad-header,
#senior-header {
  scroll-margin-top: 3rem;
  /* Adjust this value (e.g. 6rem) if you want more space */
}

/* FOOTER */

.idm-showcase__footer {
  margin-top: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

/* SVG-READY ICON SYSTEM */

.footer-icons {
  width: 12rem;
}

.footer-icon-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  text-decoration: none; /* no underline on SVGs */
}

.footer-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  filter: invert(100%);
}

.footer-text {
  margin: 0;
  text-align: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  fill: white;
}

.footer-link {
  text-decoration: underline;
  color: white;
}

.footer-logo {
  width: 10.5rem;
  height: 3.5rem;
  object-fit: contain;

  filter: invert(100%);
}

/* ---------------------------------------- */
/*  PROJECTS SECTION                        */
/* ---------------------------------------- */

.projects-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(2, 6, 24, 0.08);
}

.projects-section__inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.projects-section__title {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
}

.projects-section__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1;
  color: white;
}

.projects-section__nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.projects-section__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 24, 0.15);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
}

.projects-section__pill:hover {
  border-color: white;
}

/* HEADERS */

.projects-header {
  margin: 2.5rem 0 1rem;
  text-align: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
}

/* GRID OF PROJECTS */

.projects {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

/* Individual project card */

/* .all-li {
  height: 10rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 123, 125, 1);
  padding: 0.9rem 1.1rem;
  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.all-li a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: white;
  align-items: center;
  text-align: center;
} */

/* Individual project card */
.all-li {
  height: 10rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 123, 125, 1);

  /* 1. REMOVE PADDING FROM THE CONTAINER */
  /* padding: 0.9rem 1.1rem; <-- Delete this line */
  padding: 0;

  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;

  /* Optional: Ensures the link corners don't overflow the rounded card */
  overflow: hidden;
}

.all-li a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: white;
  align-items: center;
  text-align: center;

  /* 2. MAKE THE LINK FILL THE CONTAINER */
  width: 100%;
  height: 100%;

  /* 3. MOVE PADDING HERE SO IT IS CLICKABLE */
  padding: 0.9rem 1.1rem;

  /* 4. OPTIONAL: Center the text vertically? */
  /* justify-content: center; */
  justify-content: space-between;
}

.all-li:hover {
  transform: translateY(-0.05rem);
  border-color: white;
  box-shadow: 0 0.35rem 0 white;
}

/* Text hierarchy inside card */

.project-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.medium {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255, 123, 125, 1);
}

.full-name {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.1rem;
  color: rgba(255, 123, 125, 1);
}

/* State: Countdown is over.
   Logic: Add top spacing so the content doesn't jump too high.
   Constraint: Only apply on screens wider than 900px (Desktop/Tablet mode).
   (Note: Match 900px to the breakpoint where your layout actually un-stacks).
*/
@media (min-width: 72rem) {
  .idm-showcase__right.countdown-finished {
    padding-top: 10rem; /* Adjust this number to align it how you like */
  }
}

/* ---------------------------------------- */
/*  RESPONSIVE: tablet ≤ 72rem              */
/* ---------------------------------------- */

@media (max-width: 72rem) {
  .idm-showcase__content {
    flex-direction: column;
    gap: 6rem;
  }

  .idm-showcase__left,
  .idm-showcase__right {
    max-width: 100%;
    width: 100%;
    gap: 3rem;
  }

  .idm-showcase__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    width: 100%;
  }

  .idm-showcase {
    padding: 3rem 4rem 4rem;
  }

  .countdown-sticker {
    width: 8rem;
    top: -4rem;
    right: -1.5rem;
  }

  .idm-showcase__footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .projects-section {
    margin-top: 4rem;
  }
}

/* ---------------------------------------- */
/*  RESPONSIVE: mobile ≤ 36rem              */
/* ---------------------------------------- */

@media (max-width: 36rem) {
  .idm-showcase {
    padding: 4rem 1.5rem 3rem;
  }

  .idm-showcase__content {
    flex-direction: column;
    gap: 5rem;
  }

  .idm-showcase__left,
  .idm-showcase__right {
    max-width: 100%;
    width: 100%;
    gap: 2rem;
  }

  .idm-showcase__title {
    width: 100%;
    font-size: clamp(2.5rem, 10vw, 5rem);
  }

  .event-card {
    padding: 1.25rem 1.5rem;
  }

  .countdown-card {
    padding: 2rem;
  }

  .event-card__title,
  .event-card__location {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .countdown-sticker {
    width: 5rem;
    top: -3rem;
    right: -1rem;
  }

  .time-value {
    font-size: 2.5rem;
  }

  .time-label {
    font-size: 1.5rem;
  }

  .time-separator {
    font-size: 2rem;
  }

  .idm-showcase__footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-icons {
    width: auto;
  }

  .footer-icon {
    width: 4rem;
    height: 4rem;
  }

  .footer-icon-row {
    justify-content: center;
  }

  .footer-logo {
    width: 8.5rem;
    height: auto;
  }

  .projects-section__inner {
    gap: 1.5rem;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------- */
/*  PROJECT PAGE LAYOUT                     */
/* ---------------------------------------- */

.project-page {
  min-height: 100vh;
  padding: 4rem 1.5rem 3rem;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-header {
  width: 100%;
  max-width: 64rem;
  margin-bottom: 2rem;
}

.project-nav {
  margin-bottom: 1rem;
}

.project-nav__home {
  font-size: 0.9rem;
  text-decoration: underline;
  color: white;
  text-align: justify;
}

#project-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  font-family: "Montserrat", system-ui, sans-serif;
  color: rgba(255, 123, 125, 1);
  text-align: center;
}

#name {
  margin-top: 0.25rem;
  font-size: 1.05rem;
  color: white;
  text-align: center;
}

#qualifiers {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 123, 125, 1);
  text-align: center;
}

#link {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

#link a {
  text-decoration: underline;
  font-weight: 600;
  color: rgb(150, 229, 240);
}

/* Project content grid */

.project-body {
  width: 100%;
  max-width: 64rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: flex-start;
}

.project-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#main-img img,
#supp-img img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.project-sidebar {
  font-size: 0.95rem;
  line-height: 1.7;
}

#description {
  margin-bottom: 1rem;
  color: white;
}

#keywords {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: rgba(255, 123, 125, 1);
}

.project-links a {
  display: inline-block;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-decoration: underline;
  color: white;
}

/* Responsive */

@media (max-width: 48rem) {
  .project-body {
    grid-template-columns: 1fr;
  }

  .project-page {
    padding-top: 3rem;
  }
}
