.about-page {
  background: #fff;
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
}

.about-page .serif-italic {
  font-family: 'IvyPresto Display Light Italic' !important;
  font-style: italic !important;
  font-size: 32px;
}

/* Hero Section */
.about-hero {
  height: 711px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("assets/banners/about_me.webp?v=2") center top / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.about-hero-title {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 64px;
  font-weight: 400;
  margin: 0;
}

/* Bio Section */
.about-bio {
  background: #081E79;
  color: #fff;
  padding: 88px 0 100px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 118px;
}

.bio-name {
  font-family: "IvyPresto Headline", Arial, sans-serif;
  font-weight: 500;
  font-size: 68px;
  line-height: 0.95;
  margin: 0 0 24px;
}

.bio-tagline {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
}

.btn-resume {
  min-width: 160px;
}

.bio-section-title {
  font-family: 'IvyPresto Display Light Italic';
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.95);
}

.bio-content p {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* Journey Section */
.about-journey {
  background: #DCE8FA;
  padding: 100px 0 120px;
}

.journey-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.8fr;
  gap: 100px;
}

.journey-title {
  font-family: 'IvyPresto Display Light Italic';
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: #081E79;
  margin: 0 0 36px;
}

.journey-intro {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.5;
  color: #081E79;
  margin: 0;
}

.journey-right {
  display: flex;
  flex-direction: column;
}

.journey-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 32px 0;
  align-items: start;
  border-bottom: 1px solid;
  border-image-source: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #0000AB 50%, rgba(255, 255, 255, 0) 100%);
  border-image-slice: 1;
}

.journey-row:first-child {
  padding-top: 0;
}

.degree-label {
  font-family: "IvyPresto Headline", Arial, sans-serif;
  font-size: 40px;
  color: #0000AB !important;
  font-weight: 500;
  line-height: 1;
  margin-top: -2px;
  /* Visual correction for serif baseline */
}

.degree-details {
  color: #051143;
}

.degree-details h4 {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 6px;
  color: inherit;
  line-height: 1;
}

.degree-details p {
  margin: 0;
  font-size: 24px;
  color: inherit;
  opacity: 0.8;
}

/* Awards Section */
.about-awards {
  padding: 100px 0 140px;
  background: #fff;
  color: #051143;
}

.awards-title {
  font-family: 'IvyPresto Display Light Italic';
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: inherit;
  margin: 0 0 48px;
}

.award-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid;
  border-image-source: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #0000AB 50%, rgba(255, 255, 255, 0) 100%);
  border-image-slice: 1;
  position: relative;
  /* Context for the popup */
  cursor: pointer;
}

.award-info {
  display: grid;
  grid-template-columns: calc(30.77% + 269px) 1fr;
  align-items: center;
  width: 100%;
  transition: opacity 0.3s;
}

.award-item:hover .award-info {
  opacity: 0.3;
  /* Dim the row on hover */
}

.award-card-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 320px;
  height: 420px;
  /* Fixed identical height */
  background: #DCEAFF;
  /* Light blue from image */
  padding: 34px 28px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.award-item:hover .award-card-popup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Blue Variant for Awards */
.award-card-popup.award-card-blue {
  background: #0F0FD7;
  color: #fff;
}

.award-card-popup.award-card-blue .award-popup-year,
.award-card-popup.award-card-blue .award-popup-name,
.award-card-popup.award-card-blue .award-popup-org,
.award-card-popup.award-card-blue .award-popup-name-large {
  color: #fff;
}

.award-card-popup.no-image-card {
  justify-content: center;
}


.award-popup-year {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  color: #051143;
  line-height: 1;
  margin-bottom: 12px;
}

.award-popup-name {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: #051143;
  margin-bottom: 12px;
}

.no-image-card .award-popup-name {
  font-size: 62px;
  font-weight: 700;
  line-height: 0.95;
  margin-top: auto;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.award-popup-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.05);
  /* Placeholder space */
}

.no-image-card .award-popup-image {
  background: transparent;
}

.award-card-blue .award-popup-image {
  background: rgba(255, 255, 255, 0.1);
}

.award-card-blue.no-image-card .award-popup-image {
  background: transparent;
}

.award-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  /* Matches the black and white look in image */
}

.award-popup-org {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #051143;
  font-weight: 400;
  margin-top: auto;
  /* Push to bottom */
}

/* Large Card Variant (e.g. Affiliated Faculty) */
.card-variant-large {
  justify-content: flex-start;
  padding: 44px 34px;
  min-height: 400px;
  /* Make it taller */
}

.award-popup-name-large {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 72px;
  /* Very large text */
  font-weight: 700;
  font-style: italic;
  color: #051143;
  line-height: 0.9;
  margin: 60px 0;
  letter-spacing: -0.04em;
}

.award-name {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: #051143;
  flex: 1;
}

.award-name strong {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
}

.award-org {
  font-size: 22px;
  color: #051143;
  width: auto;
  text-align: left;
  line-height: 1.4;
  white-space: normal;
}

/* Gallery Section */
.about-gallery {
  padding: 100px 0 120px;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 54px;
}

.btn-view-more {
  min-width: 140px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.7fr;
  gap: 20px;
  height: 700px;
  overflow: hidden;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  height: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.large-h {
  height: 60%;
}

.mid-h {
  height: 50%;
}

.full-h {
  height: 100%;
}

.half-h {
  flex: 1;
}

.gallery-item-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.gallery-item-pair .gallery-item {
  height: 100%;
}

/* Contact Card Light */
.about-contact {
  padding: 80px 0 120px;
}

.contact-card-light {
  background: #DCE8FA;
  border-radius: 12px;
  padding: 64px 60px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
}

.contact-card-title {
  font-size: 32px;
  color: #081E79;
  margin: 0 0 24px;
}

.contact-card-intro {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-size: 32px;
  line-height: 1.25;
  color: #081E79;
  margin: 0 0 44px;
  max-width: 620px;
}

.btn-contact-card {
  min-width: 180px;
}

.contact-card-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-card-block h4 {
  font-family: "Neue Haas Grotesk Display Pro", Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: #081E79;
  margin: 0 0 12px;
}

.contact-card-block p {
  font-size: 16px;
  color: #081E79;
  margin: 0;
}

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

.contact-card-socials li+li {
  margin-top: 12px;
}

.contact-card-socials a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #081E79;
  font-size: 18px;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .main-col {
    grid-column: span 2;
    height: 400px;
  }

  .contact-card-light {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }

  .contact-card-intro {
    font-size: 24px;
  }
}

@media (max-width: 1000px) {

  .bio-grid,
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .award-item {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .award-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .award-org {
    text-align: left;
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .about-hero {
    height: 356px;
  }

  .about-hero-title {
    font-size: 28px !important;
  }

  .bio-name {
    font-size: 32px !important;
    line-height: 1.1;
  }

  .bio-tagline {
    font-size: 17px !important;
    line-height: 1.3;
  }

  .bio-content p {
    font-size: 17px !important;
    line-height: 1.4;
  }

  .journey-intro {
    font-size: 17px !important;
    line-height: 1.4;
  }

  .degree-label {
    font-size: 24px !important;
  }

  .degree-details h4 {
    font-size: 20px !important;
    line-height: 1.2;
  }

  .degree-details p {
    font-size: 16px !important;
  }

  .award-name {
    font-size: 18px !important;
  }

  .award-org {
    font-size: 15px !important;
  }

  .contact-card-intro {
    font-size: 18px !important;
    line-height: 1.3;
  }

  .contact-card-block h4 {
    font-size: 20px !important;
  }

  .journey-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .award-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
    gap: 12px;
  }

  .gallery-col {
    display: contents;
  }

  .gallery-item-pair {
    display: none;
  }

  .gallery-item {
    height: 100% !important;
  }
}