@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=PT+Serif:wght@400;700&display=swap');


/* DEFINE COLOURS */
:root {
  --purple-extra-light: #fbfaff;
  --purple-dark: #40134f;
  --purple-medium: #895da7;
  --purple-light: #d1d2f9;
  --purple-extra-dark: #0e043a;
}

/* PAGE AS A WHOLE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--purple-extra-light);
  color: var(--purple-extra-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.page {
  width: min(100% - 72px, 1120px);
  margin: 0 auto;
  padding: 42px 0 100px;
}

/* NAVIGATION BAR */

.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(48px, 17vw, 180px);
  min-height: 35px;
  padding: 0 0 5px;
  color: var(--purple-dark);
  font-family: 'PT Serif', serif;
  font-size: 16px;
}

/* Line */
.navigation-line {
  border-bottom: 1px solid #8f8993;
}

/* Bolded the current page */
.navigation-selected {
    font-weight: 700;
}

/* Remove underline for href */
.navigation a,
.navigation a:visited,
.navigation a:hover,
.navigation a:active {
  color: inherit;
  text-decoration: none;
}

/* INDEX */
.intro {
  margin-top: 24px;
}

/* Hi, I'm Veronica header */
h1 {
  color: var(--purple-dark);
  font-family: 'PT Serif', serif;
  font-weight: 700;
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -1.5px;
}

/* Intro */
.intro-content {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 10px 40px;
}

.profile-photo {
  display: block;
  width: 50%;
  aspect-ratio: 0.80;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  width: clamp(200px, 35%, 300px);
}

.bio {
  padding-top: 10px;
  line-height: 1.34;
  font-size: clamp(12px, 1.2vw, 15.5px);
}

.bio p {
  margin: 0 0 17px;
}

/* First bolded line in the intro */
.bio .bio-bold {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  font-size: clamp(14px, 1.2vw, 17px);
}

/* For emphasis */
.purple-text {
  color: var(--purple-medium);
  font-weight: 700;
}

/* Icons for LinkedIn, Google Scholar, etc */
.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.2s ease;
}

/* Sections (i.e., News, Publications, Community) */

.content-section {
  margin: 38px 38px 0 10px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.section-heading h2 {
  color: var(--purple-dark);
  font-family: 'PT Serif', serif;
  font-weight: 700;
  flex: 0 0 auto;
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
}

.heading-line {
  height: 1px;
  flex: 1;
  background: var(--purple-dark);
  transform: translateY(2px);
}

/* List of items in each section */
.section-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0 0 0 35px;
}

.section-list li {
  margin: 0 0 15px;
  font-size: clamp(12px, 1.2vw, 15.5px);
}

/* Remove underline for href */
.section-list-no-underline {
  list-style: none;
  margin: 22px 0 0;
  padding: 0 0 0 35px;
}

.section-list-no-underline li {
  margin: 0 0 15px;
  font-size: clamp(12px, 1.2vw, 15.5px);
}

.section-list-no-underline a {
  text-decoration: none;
}

.section-list-no-underline a:hover {
  text-decoration: none;
}

/* Expand for more */
.section-list-expand {
  margin-top: 12px;
  text-align: left;
}

/* See more text */
.section-list-expand summary {
  display: inline-block;
  cursor: pointer;
  font-style: italic;
  color: inherit;
  list-style: none;
  font-size: clamp(11px, 1.2vw, 14px);
}

.section-list-expand summary::-webkit-details-marker {
  display: none;
}

.section-list-expand summary::after {
  content: " +";
}

.section-list-expand[open] summary::after {
  content: " −";
}

.section-list-expand .list {
  margin-top: 16px;
  padding-left: 35px;
  text-align: left;
}

/* To open another link in Community section */
.arrow {
  cursor: pointer;
  text-decoration: none;
}

/* COMMUNITY */

/* Small heading at the top */
.small-heading {
  text-align: center;
  color: var(--purple-dark);
  font-family: 'PT Serif', serif;
  font-variant: small-caps;
  letter-spacing: 1px;
}

/* Entire panel for each event */
.event-panel {
  border: 5px solid var(--purple-dark);
  margin: 15px 70px;
  background: white;
}

/* Main title area */
.panel-header {
  background: var(--purple-extra-light);
  color: var(--purple-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 13px 8px;
  margin: 0;
  min-height: 250px;
}

/* Main title area, expandable version */
.panel-header-clickable {
  background: var(--purple-dark);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 13px 8px;
  margin: 0;
  min-height: 250px;
  box-shadow: inset 0 0 0 1px white;
  cursor: pointer;
}

/* event-title-1 and -2 are for every other event (alternating designs) */
.event-title-1 h1 {
  font-family: "PT Serif", Georgia, serif;
  font-size: 60px;
  color: var(--purple-dark);
  font-weight: 400;
  line-height: 1.3;
  padding-right: 25px;
  border-right: 1px solid var(--purple-dark);
  text-align: right;
}

.event-details-1 {
  padding-left: 25px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 70%;
}

.event-details-1 a {
  display: block;
  margin-bottom: 10px;
}

.event-title-2 h1 {
  font-family: "PT Serif", Georgia, serif;
  font-size: 60px;
  color: white;
  font-weight: 400;
  line-height: 1.3;
  padding-left: 25px;
  border-left: 1px solid white;
}

.event-details-2 {
  padding-right: 25px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-align: right;
  width: 70%;
  margin-left: auto;
}

.event-details-2 a {
  display: block;
  margin-bottom: 10px;
}

/* More details (individual workshops) */
.individual-event-content {
  max-height: 360px;
  overflow-y: auto;
  padding: 24px 35px;
  border-top: 4px solid #400078;
}

/* Each workshop listing */
.individual-event-item {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-bottom: 27px;
}

.individual-event-item:last-child {
  margin-bottom: 0;
}

.individual-event-item img {
  width: 140px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.individual-event-description h2,
.individual-event-description p {
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
}

.individual-event-description h2 {
  color: var(--purple-dark);
}

/* PERSONAL */

/* Longer description */
.description {
    max-width: 600px;
    margin: 0 auto 35px;
}
/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 750px;
  margin: 0 auto;  
}

/* Each card */
.flip-card {
  background: transparent;
  aspect-ratio: 4 / 4;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

/* Flip on hover */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Image on the front */
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text on the back */
.flip-card-back {
  background: var(--purple-dark);
  color: white;
  transform: rotateY(180deg);
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-y: auto;
}

.flip-card-back p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* INDEX PAGE */
@media (max-width: 700px) {
  .page {
    width: min(100% - 36px, 560px);
    padding-top: 24px;
  }

  /* Navigation */
  .navigation {
    gap: 0;
    justify-content: space-around;
    font-size: 15px;
  }

  /* Introduction */
  .intro {
    margin-top: 24px;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    letter-spacing: -1px;
  }

  .intro-content {
    flex-direction: column;
    align-items: center;
  }

  .profile-photo {
    width: 150px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto 4px;
  }

  .bio {
    width: 100%;
    font-size: 15px;
  }

  .bio .bio-lead {
    font-size: 15px;
  }

  /* Sections */
  .content-section {
    margin: 56px 0 0;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .see-more {
    padding-right: 4%;
  }
}

/* COMMUNITY PAGE */
@media (max-width: 1000px) {
  /* General spacing */
  body {
    padding: 12px;
  }

  /* COMMUNITY */
  /* Event panels */
  .event-panel {
    margin: 15px 12px;
    margin-bottom: 20px;
    border-width: 3px;
  }

  .panel-header,
  .panel-header-clickable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 16px;
    min-height: 0;
  }

  .panel-header h1,
  .panel-header h2 {
    font-size: clamp(29px, 7vw, 44px);
    line-height: 1.25;
  }

  /* Event titles */
  .event-title-1,
  .event-title-2 {
    position: relative;
    width: 100%;
    text-align: center;
  }

  .event-title-1 h1,
  .event-title-2 h1 {
    order: 1;
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
    padding: 0;
    margin: 0;
    border: none;
  }

  /* Event details */
  .event-details-1,
  .event-details-2 {
    order: 2;
    width: 85%;
    padding: 16px 0 0;
    margin: 0;
    text-align: left;
    font-size: 14px;
    border-top: 1px solid currentColor;
  }

  .event-details-1 a,
  .event-details-2 a {
    margin-bottom: 10px;
  }

  /* Individual workshops */
  .individual-event-content {
    padding: 18px;
    max-height: 320px;
  }

  .individual-event-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 27px;
  }

  .individual-event-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .individual-event-description {
    width: 100%;
  }

  .individual-event-description h2,
  .individual-event-description p {
    font-size: 14px;
  }

  /* Image grid captions */
  .flip-card-back {
    padding: 8px;
  }

  .flip-card-back p {
    font-size: 8px;
    line-height: 1.3;
  }
}

