/* =========================================================
   ALUMNI PAGE
   The placement/map UI (.up-*) is adapted from the dummy
   test.php reference. Cards here are ALUMNI, not universities.
========================================================= */

.up-section {
  background: #fff9f0;
  padding: 60px 0;
}

/* ---------- HEADER ROW (heading+lead left, search right) ---------- */
.up-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 24px;
}

.up-map-header__text {
  flex: 1 1 auto;
  min-width: 0;
}

.up-map-header__text .section-title {
  margin: 0 0 8px;
  /* text-align: left; */
}

.up-map-header__lead {
  margin: 0;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.7;
  color: #33475b;
}

.up-map-header .up-placement-search {
  flex: 0 0 auto;
  margin-left: 0;
}

@media (max-width: 767px) {
  .up-map-header {
    flex-direction: column;
    align-items: stretch;
  }

  .up-map-header .up-placement-search {
    width: 100%;
  }
}

/* ---------- TABS ---------- */
.up-placement-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  position: relative;
  z-index: 10;
}

.up-placement-tab {
  --tab-height: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--tab-height);
  min-width: 48px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #16263a;
  cursor: pointer;
  /* overflow: hidden; */
  transition: padding 0.35s ease, background-color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.up-country-flag {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 23px;
  line-height: 1;
}

.up-country-name {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  transform: translateX(-8px);
  transition: max-width 0.35s ease, margin-left 0.35s ease, opacity 0.25s ease,
    visibility 0.25s ease, transform 0.35s ease;
}

.up-tab-count {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  background: var(--dark-blue);
  color: #fff;
  transition: margin 0.35s ease, background-color 0.35s ease;
  position: absolute;
  top: -10px;
  right: 0;
}

.up-placement-tab:hover,
.up-placement-tab.is-active {
  padding-left: 14px;
  padding-right: 14px;
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.up-placement-tab:hover .up-country-name,
.up-placement-tab.is-active .up-country-name {
  max-width: 250px;
  margin-left: 8px;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.up-placement-tab:hover .up-tab-count,
.up-placement-tab.is-active .up-tab-count {
  background: #fff;
  color: var(--dark-blue);
  margin-left: 6px;
}

/* ---------- SEARCH ---------- */
.up-placement-search {
  margin-left: auto;
  width: min(100%, 340px);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 8px;
  background: #344252;
  box-shadow: 0 8px 20px rgba(8, 38, 82, 0.12);
}

.up-placement-search i {
  color: #d9e0e7;
  font-size: 18px;
  margin-right: 12px;
}

.up-placement-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.up-placement-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- MAP + CARDS BOARD ---------- */
.up-placement-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1.02fr);
  gap: 0px;
  align-items: flex-start;
  margin-top: 10px;
  height: 330px;
  margin-bottom: 0px;
}

.up-placement-map {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-map-wrap {
  position: relative;
  width: 100%;
  max-width: 850px;
  aspect-ratio: 1000 / 560;
}

.up-map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- MAP PIN ---------- */
.up-map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #34485c;
  color: #fff;
  cursor: pointer;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(20, 40, 60, 0.25), 0 0 0 3px rgba(52, 72, 92, 0.16);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.up-map-pin>* {
  transform: rotate(45deg);
}

.up-map-pin:hover,
.up-map-pin.is-active {
  background: #d9bd78;
  color: #16202c;
  box-shadow: 0 8px 18px rgba(30, 45, 60, 0.3), 0 0 0 5px rgba(217, 189, 120, 0.22);
  z-index: 999;
}

.up-map-pin .pin-count {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.up-map-pin .pin-country {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 13px);
  transform: translate(-50%, 8px) scale(0.96);
  opacity: 0;
  padding: 8px 13px;
  border-radius: 7px;
  background: #26384a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(8, 38, 82, 0.2);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.up-map-pin .pin-country::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #26384a;
  transform: translateX(-50%) rotate(45deg);
}

.up-map-pin:hover .pin-country,
.up-map-pin.is-active .pin-country {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.up-map-pin::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(52, 72, 92, 0.35);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.up-map-pin.is-active::after {
  animation: alumniPinPulse 1.8s ease-out infinite;
}

@keyframes alumniPinPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

/* ---------- ALUMNI CARDS (replace university logos) ---------- */
.up-placement-alumni {
  min-width: 0;
  height: 100%;
  overflow: auto;
}

.up-alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding: 0 20px;
}

.up-alumni-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(15, 35, 55, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(20, 40, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.up-alumni-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(20, 40, 60, 0.15);
}

.up-alumni-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid rgba(15, 35, 55, 0.1);
  display: none;
}

.up-alumni-card__name {
  margin: 0 0 4px;
  font-family: 'EB Garamond' !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: var(--dark-blue);
}

.up-alumni-card__batch {
  display: block;
  font-size: 12px;
  font-weight: 600;
  /* letter-spacing: 0.04em; */
  color: var(--blue);
  margin-bottom: 6px;
}

.up-alumni-card__role {
  margin: 0;
  font-size: 14px !important;
  color: #4a5a6a;
  line-height: 1.5;
}

.up-alumni-card__linkedin {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--dark-blue);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  background: #00285e12;
}

.up-alumni-card__linkedin:hover {
  background: #0a66c2;
  color: #fff;
  transform: translateY(-2px);
}

.up-alumni-card.is-hidden {
  display: none;
}

.up-alumni-feedback {
  display: none;
  margin: 20px 0 0;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.up-alumni-feedback.is-visible {
  display: block;
}

/* =========================================================
   WHERE ARE THEY NOW? (featured alumni)
========================================================= */
.alumni-featured {
  padding: 60px 0;
}

.alumni-featured__sub {
  margin: 6px auto 48px;
  text-align: center;
  font-size: 16px;
  color: #6b7a8a;
}

.alumni-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.alumni-featured__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(9, 41, 77, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alumni-featured__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(9, 41, 77, 0.14);
}

/* Coloured accent bar down the left edge, per card. */
.alumni-featured__card::before {
  content: "";
  position: absolute;
  left: 0;
  /* top: 0; */
  bottom: 0;
  width: 100%;
  height: 6px;
  background: var(--dark-blue);
}

/* .alumni-featured__card.is-blue::before { background: #2f8ede; }
.alumni-featured__card.is-green::before { background: #46b98a; }
.alumni-featured__card.is-rose::before { background: #ef8ba0; } */

/* Head row: circular photo with a soft ring, then name/role/batch. */
.alumni-featured__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.alumni-featured__avatar {
  position: relative;
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.alumni-featured__avatar::before {
  content: "";
  position: absolute;
  inset: -0px;
  border-radius: 50%;
  z-index: 0;
}

.alumni-featured__card.is-blue .alumni-featured__avatar::before {
  background: rgba(47, 142, 222, 0.16);
}

.alumni-featured__card.is-green .alumni-featured__avatar::before {
  background: rgba(70, 185, 138, 0.16);
}

.alumni-featured__card.is-rose .alumni-featured__avatar::before {
  background: rgba(239, 139, 160, 0.18);
}

.alumni-featured__avatar img {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(9, 41, 77, 0.18);
}

.alumni-featured__who {
  min-width: 0;
}

.alumni-featured__name {
  margin: 0 0 3px;
  font-family: 'EB Garamond', serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  color: #0f3a71;
}

.alumni-featured__meta {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  line-height: normal !important;
}

.alumni-featured__batch {
  margin: 0;
  font-size: 12px;
  color: #8592a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alumni-featured__batch i {
  color: #b9c4d0;
}

/* Quote with big decorative marks. */
.alumni-featured__quote {
  position: relative;
  margin: 0;
  padding: 4px 26px 0;
}

.alumni-featured__quote p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5a6a7a;
}

.alumni-featured__q {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  line-height: 1;
  color: rgba(47, 142, 222, 0.35);
}

.alumni-featured__q--open {
  left: -2px;
  top: -6px;
}

.alumni-featured__q--close {
  right: -2px;
  bottom: -18px;
}

/* .alumni-featured__card.is-green .alumni-featured__q { color: rgba(70, 185, 138, 0.4); }
.alumni-featured__card.is-rose .alumni-featured__q { color: rgba(239, 139, 160, 0.45); } */

@media (max-width: 991px) {
  .alumni-featured__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* =========================================================
   ALUMNI STORIES & NEWS
========================================================= */
.alumni-stories {
  padding: 60px 0;
  background: #f5f9fd;
}

.alumni-stories__grid {
  display: grid;
  /* auto-fill (not auto-fit) so a lone card keeps its column width and does
     not stretch across the whole row; the grid is centered so 1-2 cards sit
     in the middle rather than hugging the left with a large empty track. */
  grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
  justify-content: center;
  gap: 20px;
}

.alumni-story-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 40, 94, 0.08);
}

.alumni-story-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.alumni-story-card__body h3 {
  margin: 0 0 4px;
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  color: #16263a;
}

.alumni-story-card__body p {
  margin: 0;
  font-size: 14px;
  color: #4a5a6a;
}

.alumni-intro {
  padding: 80px 0 60px;
}

.alumni-intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.alumni-intro__copy {
  min-width: 0;
}

.alumni-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9bd78;
  margin-bottom: 16px;
}

.alumni-intro__eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: #d9bd78;
}

.alumni-intro__title {
  text-align: left;
  margin: 0 0 18px;
}

.alumni-intro__lead {
  margin: 0;
  text-align: left;
  font-size: 19px;
  line-height: 1.85;
  color: #33475b;
}

/* ---- Beautiful framed image ---- */
.alumni-intro__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  height: 400px;
}

.alumni-intro__blob {
  position: absolute;
  width: 78%;
  height: 78%;
  right: -6%;
  top: 4%;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background: linear-gradient(135deg, rgb(47 142 222 / 25%), rgb(15 58 113 / 24%));
  filter: blur(45px);
  z-index: 0;
}

.alumni-intro__dots {
  position: absolute;
  left: -6px;
  bottom: 6px;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(rgba(217, 189, 120, 0.6) 2px, transparent 2px);
  background-size: 16px 16px;
  z-index: 0;
}

.alumni-intro__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 200px 200px 26px 26px;
  overflow: hidden;
  box-shadow: 0 30px 64px rgba(5, 29, 76, 0.28);
  height: -webkit-fill-available;
}

.alumni-intro__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.alumni-intro__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 29, 76, 0.42), transparent 55%);
  pointer-events: none;
}

.alumni-intro__frame:hover img {
  transform: scale(1.05);
}

.alumni-intro__ring {
  position: absolute;
  inset: -14px -10px 0 -10px;
  border: 1px solid rgba(47, 142, 222, 0.5);
  border-radius: 210px 210px 32px 32px;
  transform: rotate(-3deg);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 991px) {
  .alumni-intro__grid {
    grid-template-columns: 1fr;
  }

  .alumni-intro__copy {
    text-align: center;
  }

  .alumni-intro__title,
  .alumni-intro__lead {
    text-align: center;
  }

  .alumni-intro__eyebrow {
    justify-content: center;
  }

  .alumni-intro__visual {
    min-height: 0;
    margin-top: 24px;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
  .up-placement-board {
    grid-template-columns: 1fr;
    height: auto;
  }

  .up-alumni-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .up-placement-tabs {
    /* flex-wrap: nowrap; */
    /* overflow-x: auto; */
    padding: 10px 0;
    gap: 12px 6px;
  }

  .up-alumni-grid {
    grid-template-columns: 1fr;
  }

  .up-map-pin {
    width: 26px;
    height: 26px;
  }

  .up-placement-tab {
    border: none;
    box-shadow: 4px 3px 20px rgba(0, 0, 0, 0.12);
  }
}

/* =========================================================
   ALUMNI FORMS (sections 4 & 6)
========================================================= */
.alumni-form-section {
  padding: 60px 0;
  background: radial-gradient(circle at 12% 18%, rgba(56, 166, 221, 0.16) 0%, transparent 28%), radial-gradient(circle at 88% 82%, rgb(143 211 255 / 24%) 0%, transparent 26%), linear-gradient(135deg, #071a3a 0%, #0d2d63 42%, #0a1631 100%);
}

.alumni-form-section--alt {
  background: #0f3a71;
}

.alumni-form-section--alt .section-title .title-left {
  color: #fff;
}

.alumni-form-section--alt .alumni-intro__lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Form + image, half and half. */
.alumni-form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}

.alumni-form-layout--reverse {
  /* image already comes first in the DOM for section 6; nothing extra needed */
}

.alumni-form-layout--no-image {
  grid-template-columns: 1fr;
}

.alumni-form-layout__media {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

/* =========================================================
   CONNECT FORM IMAGE — career-hero style (arched portrait + ring)
========================================================= */
.alumni-media--arch {
  min-height: 500px;
}

.alumni-media__dots {
  position: absolute;
  top: 24px;
  right: 30px;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(rgba(47, 142, 222, 0.4) 2px, transparent 2px);
  background-size: 16px 16px;
  z-index: 0;
  pointer-events: none;
}

.alumni-arch {
  position: relative;
  width: 400px;
  max-width: 100%;
  height: 460px;
}

.alumni-arch__ring {
  position: absolute;
  inset: -15px -5px 0 5px;
  border: 1px solid #2f8ede;
  border-radius: 240px 240px 26px 26px;
  transform: rotate(-3deg);
  z-index: 0;
}

.alumni-arch__main {
  position: absolute;
  inset: 0;
  border-radius: 240px 240px 20px 20px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(5, 29, 76, 0.28);
  z-index: 1;
}

.alumni-arch__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.alumni-arch__main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 29, 76, 0.6), transparent 55%);
  pointer-events: none;
}

.alumni-arch:hover .alumni-arch__main img {
  transform: scale(1.05);
}

.alumni-arch__badge {
  position: absolute;
  left: 22px;
  bottom: 26px;
  z-index: 2;
  max-width: 74%;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px rgba(0, 40, 94, 0.24);
}

.alumni-arch__badge p {
  margin: 0;
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.25;
  color: #16263a;
}

.alumni-arch__badge strong {
  color: #2f8ede;
}

.alumni-arch__badge-quote {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 38px;
  line-height: 0.5;
  color: #d9bd78;
}

/* =========================================================
   JOIN FORM IMAGE — orientation-fluid style (faithful copy).
   Square rounded frame (no extra teardrop curve), soft glow blob
   behind it, a tape at top, and the gentle bottom-swing motion.
========================================================= */
.alumni-fluid__visual {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
  padding-top: 22px;
  height: 400px;
}

.alumni-fluid__visual::before {
  content: "";
  position: absolute;
  inset: 12% 6% 14%;
  border-radius: 42%;
  background: radial-gradient(circle at 40% 34%, rgba(255, 255, 255, 0.78), rgba(56, 166, 221, 0.04) 56%, rgba(56, 166, 221, 0) 78%);
  filter: blur(1px);
  pointer-events: none;
}

.alumni-fluid__image {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  margin: 0;
  z-index: 1;
  border-radius: 28px;
  overflow: visible;
  /* background: #fff;
  box-shadow: 0 28px 56px rgba(8, 38, 82, 0.14), 0 1px 0 rgba(255, 255, 255, 0.85) inset; */
  transform: translateY(8px);
  height: inherit;
}

.alumni-fluid__tape {
  position: absolute;
  top: -23px;
  left: 50%;
  width: 150px;
  height: 50px;
  z-index: 3;
  background: #38a6ddb0;
  transform: translateX(-50%);
  overflow: hidden;
}

.alumni-fluid__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  transform: scale(1.01);
  transform-origin: 50% 0%;
  animation: alumniFluidSwing 3.6s ease-in-out infinite;
}

@keyframes alumniFluidSwing {

  0%,
  100% {
    transform: scale(1.01) rotate(0deg);
  }

  25% {
    transform: scale(1.01) rotate(-0.45deg);
  }

  50% {
    transform: scale(1.01) rotate(0.65deg);
  }

  75% {
    transform: scale(1.01) rotate(-0.3deg);
  }
}

.alumni-form {
  width: 100%;
  margin: 0;
  padding: 40px clamp(24px, 3vw, 28px);
  border-radius: 18px;
  background: #ffffff0d;
  box-shadow: 0 18px 44px rgb(0 9 22 / 12%);
}

/* Two columns inside the form, since it now shares the row with an image. */
.alumni-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

/* When there is no image the form is full width — go back to 3 columns. */
.alumni-form-layout--no-image .alumni-form__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
  .alumni-form-layout {
    grid-template-columns: 1fr;
  }

  .alumni-form-layout__media,
  .alumni-media--arch {
    min-height: 0;
    padding: 30px 12px;
  }

  .alumni-arch {
    width: 340px;
    height: 440px;
  }

  .alumni-fluid__visual {
    min-height: 0;
    padding: 26px 12px 12px;
  }

  .alumni-form__grid,
  .alumni-form-layout--no-image .alumni-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .alumni-arch {
    width: 100%;
    max-width: 320px;
    height: 400px;
  }

  .alumni-fluid__image {
    width: 100%;
  }
}

.alumni-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #33475b;
}

.alumni-field--full {
  grid-column: 1 / -1;
  margin-top: 18px;
  border: 0;
  padding: 0;
}

.alumni-field>span,
.alumni-field legend {
  font-weight: 600;
  color: #ffffff;
}

.alumni-field input,
.alumni-field select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(15, 35, 55, 0.18);
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff14;
  color: #fff;
}

.alumni-field input:focus,
.alumni-field select:focus {
  outline: none;
  border-color: #2f8ede;
  box-shadow: 0 0 0 3px rgba(47, 142, 222, 0.15);
}

.alumni-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 0;
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #f8f9fa;
  /* change color */
  opacity: 1;
}

/* Full-width form (no image) has more room for the contribution options. */
.alumni-form-layout--no-image .alumni-checks {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {

  .alumni-checks,
  .alumni-form-layout--no-image .alumni-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {

  .alumni-checks,
  .alumni-form-layout--no-image .alumni-checks {
    grid-template-columns: 1fr;
  }
}

.alumni-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #fff;
}

.alumni-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.alumni-form .ob-btn {
  margin-top: 30px;
  /* min-width: 220px; */
}

@media (max-width: 767px) {
  .alumni-form__grid {
    grid-template-columns: 1fr;
  }

  .alumni-form {
    padding: 24px;
  }

  .alumni-form .ob-btn {
    width: 100%;
  }
}

/* =========================================================
   ALUMNI STORIES — category tabs
========================================================= */
.alumni-stories__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px;
  /* max-width: 980px; */
}

.alumni-stories__tab {
  appearance: none;
  border: none;
  background: #fff;
  color: #16263a;
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  /* font-weight: 600; */
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 10px 10px 20px rgba(0, 40, 94, 0.08);
}

.alumni-stories__tab:hover {
  transform: translateY(-2px);
  border-color: #2f8ede;
}

.alumni-stories__tab.is-active {
  background: var(--dark-blue, #0f3a71);
  border-color: var(--dark-blue, #0f3a71);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 58, 113, 0.22);
}

.alumni-stories__panel[hidden] {
  display: none;
}

.alumni-stories__panel {
  animation: alumniStoriesFade 0.35s ease;
}

@keyframes alumniStoriesFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .alumni-stories__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .alumni-stories__tab {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 10px 16px;
  }

  .up-placement-search {
    width: 100%;
    margin: 10px;
  }

  .up-placement-tabs {}
}

/* =========================================================
   BACKGROUND DECORATIONS
   Soft blobs, dot grids and gradient washes behind the sparse
   sections so they don't read as empty. All decorative, behind
   content (z-index/pointer-events), and clipped to the section.
========================================================= */

/* Make each decorated section a positioned, clipped stage and lift its
   content above the decorations. */
.alumni-intro,
.up-section,
.alumni-featured,
.alumni-stories {
  position: relative;
  overflow: hidden;
}

.alumni-intro>.container,
.up-section>.up-section__inner,
.alumni-featured>.container,
.alumni-stories>.container {
  position: relative;
  z-index: 1;
}

/* ---------- Intro: two faint corner blobs ---------- */
.alumni-intro::before,
.alumni-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.alumni-intro::before {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(47, 142, 222, 0.14), transparent 70%);
}

.alumni-intro::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  right: -80px;
  background: radial-gradient(circle at 50% 50%, rgba(217, 189, 120, 0.16), transparent 70%);
}

/* ---------- Map section: dotted grid + gradient wash ---------- */
.up-section::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 30px;
  width: 160px;
  height: 160px;
  background-image: radial-gradient(rgba(15, 58, 113, 0.16) 2px, transparent 2px);
  background-size: 20px 20px;
  z-index: 0;
  pointer-events: none;
}

.up-section::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(47, 142, 222, 0.12), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Featured: gradient wash + big soft circle ---------- */
.alumni-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.alumni-featured::before {
  content: "";
  position: absolute;
  top: -100px;
  right: 8%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgb(57 166 221 / 14%), #00000000 70%);
  z-index: 0;
  pointer-events: none;
}

.alumni-featured::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 40px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(47, 142, 222, 0.22) 2px, transparent 2px);
  background-size: 18px 18px;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Stories: top wave tint + corner blob ---------- */
.alumni-stories::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgb(15 58 113 / 25%), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.alumni-stories::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 90px;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(rgba(217, 189, 120, 0.35) 2px, transparent 2px);
  background-size: 20px 20px;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 767px) {

  /* Trim the largest blobs so they don't crowd small screens. */
  .alumni-intro::before,
  .alumni-intro::after,
  .up-section::after,
  .alumni-featured::before,
  .alumni-stories::before {
    width: 180px;
    height: 180px;
  }
}

/* =========================================================
   MAP TABS — collapse / "+N" / "−" toggle
========================================================= */
.up-placement-tab--hidden {
  display: none !important;
}

/* Collapsed shows "+" and a count; expanded shows a compact "−". */
.up-placement-tab--toggle {
  gap: 6px;
  padding: 0 12px;
  justify-content: center;
  font-weight: 400;
  background: #dbdbdb;
}

.up-placement-tab--toggle[aria-expanded="true"] {
  min-width: 48px;
  padding: 0;
}

.up-tab__sign {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 22px;
  line-height: 1;
}

/* The toggle's count stays visible (country-tab counts only show on hover). */
.up-placement-tab--toggle .up-tab-count {
  max-width: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: var(--dark-blue, #0f3a71);
  color: #fff;
  position: absolute;
  top: -10px;
  right: 0;
}

  .up-placement-tab--toggle .up-tab__sign {
    font-size: 40px;
    font-weight: 100;
  }

.up-placement-tab--toggle:hover .up-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ==========================================================================
   Chip strip (.academic-links-panel) — same layout as the other
   "Welcome to JNIS" pages (e.g. /welcome-to-jnis/mission-core-values/).
   Copied from welcome-to-jnis.css rather than loading that whole file, so
   none of its other page styles leak onto the Alumni page.
   ========================================================================== */
.academic-links-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px;
    margin-bottom: 46px;
}

@media (max-width: 1024px) {
    .academic-links-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    .academic-links-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .academic-link-chip {
        font-size: 0.8rem;
        padding: 12px 20px;
    }
}

@media (max-width: 767px) {
    .academic-link-chip {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 640px) {
    .academic-links-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .academic-links-panel {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px;
    }

    .academic-link-chip {
        font-size: 0.72rem;
        padding: 10px 14px;
    }
}

@media (max-width: 380px) {
    .academic-links-panel {
        grid-template-columns: 1fr !important;
    }
}
