/* ── Admissions Section ──────────────────────────── */

.admissionsSection {
  background: #201e1f;
  padding: 100px max(50px, calc((100% - 1440px) / 2));
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.admissionsSection .header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admissionsSection .sectionTag {
  font-family: var(--font-inter, "Inter", sans-serif);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2865ba;
}

.admissionsSection .heading {
  font-family: var(--font-unbounded, "Arial Black", sans-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.admissionsSection .headingWhite {
  color: #fff;
}

.admissionsSection .headingOrange {
  color: #397de3;
}

.admissionsSection .content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admissionsSection .tabBar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #323237;
  border-radius: 100px;
  padding: 4px;
  align-self: flex-start;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.admissionsSection .tabBar::-webkit-scrollbar {
  display: none;
}

.admissionsSection .tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-inter, "Inter", sans-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: #b8b5ad;
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.admissionsSection .tabActive {
  background: #dd0020;
  color: #fff;
}

.admissionsSection .filterLabel {
  font-family: var(--font-inter, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #b8b5ad;
  padding-top: 12px;
}

.admissionsSection .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admissionsSection .chip {
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid #3a3a3a;
  background: none;
  cursor: pointer;
  font-family: var(--font-inter, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #b8b5ad;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.admissionsSection .chipActive {
  border-color: #397de3;
  background: rgba(255, 77, 28, 0.08);
  color: #397de3;
}

.admissionsSection .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 10px;
  width: 100%;
}

.admissionsSection .showAllButton {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border: 1px solid #dd0020;
  background: transparent;
  border-radius: 100px;
  font-family: var(--font-inter, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #dd0020;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.admissionsSection .showAllButton:hover {
  background: #dd0020;
  color: #fff;
}

.admissionsSection .card {
  background: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 12px;
  padding: 17px 21px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.admissionsSection .card:hover {
  border-color: #dd0020;
}

.admissionsSection .cardTitle {
  font-family: var(--font-inter, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 18.2px;
  color: #f5f3ee;
}

/* ── Adaptive ────────────────────────────────────── */

@media (max-width: 1200px) {
  .admissionsSection .tab {
    font-size: 16px;
    padding: 8px 16px;
  }
}

@media (max-width: 885px) {
  .admissionsSection {
    padding: 60px 16px;
    gap: 30px;
  }

  .admissionsSection .heading {
    font-size: 24px;
    line-height: 26px;
    letter-spacing: -1px;
  }

  .admissionsSection .tab {
    font-size: 14px;
    padding: 6px 10px;
    flex-shrink: 0;
  }

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

/* ── Profile Popup ───────────────────────────────── */

.popupOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20, 18, 19, 0.55);
  backdrop-filter: blur(4px);
  animation: popupFadeIn 0.2s ease;
}

.popupOverlay.hidden {
  display: none;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popupModal {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 64px);
  background: #fff url('../assets/popup/curve.svg') no-repeat right top;
  background-size: 100% auto;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: popupSlideUp 0.25s ease;
  background-position-y: 50px;
}

@keyframes popupSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.popupScroll {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: none;
}

.popupScroll::-webkit-scrollbar { display: none; }

.popupClose {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.9);
  color: #2b2b2b;
  cursor: pointer;
  transition: background 0.2s;
}

.popupClose:hover { background: #fff; }

.popupHeader {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.popupTitle {
  font-family: var(--font-unbounded, 'Arial Black', sans-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.22;
  text-transform: uppercase;
  color: #000;
  max-width: 80%;
}

.popupTitleCode {
  margin-right: 4px;
}

.popupPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popupPill {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 24px;
  background: rgba(57, 125, 227, 1);
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.popupBlock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popupBlockTitle {
  font-family: var(--font-unbounded, 'Arial Black', sans-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.22;
  color: #2b2b2b;
}

.popupProfileList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popupProfileCard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 16px 16px 16px 28px;
  border-radius: 16px;
  background: #e8f0f8;
  font-family: var(--font-inter, 'Inter', sans-serif);
  line-height: 1.22;
  color: #000;
  transition: background 0.2s;
}

a.popupProfileCard:hover { background: #d8e6f4; }

.popupProfileInfo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popupProfileName {
  font-size: 16px;
  font-weight: 500;
}

.popupProfileForms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popupProfileDescription {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #444;
}

.popupProfileForm {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #397de3;
  white-space: nowrap;
}

.popupProfileArrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: #397de3;
  color: #fff;
  flex-shrink: 0;
}

.popupActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popupActionButton {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 6px 6px 6px 28px;
  border-radius: 100px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.popupActionButton:hover { opacity: 0.9; }

.popupActionDark {
  background: #2b2b2b;
  color: #fff;
}

.popupActionLight {
  background: #dfdfdf;
  color: #2b2b2b;
}

.popupActionArrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: #397de3;
  color: #fff;
  flex-shrink: 0;
}

.popupActionArrowLight {
  background: #2b2b2b;
  color: #fff;
}

@media (max-width: 885px) {
  .popupModal { border-radius: 32px; }
  .popupScroll { gap: 32px; padding: 32px 24px; }
  .popupTitle { font-size: 20px; max-width: calc(100% - 48px); }
  .popupPill { padding: 10px 20px; font-size: 14px; }
  .popupBlockTitle { font-size: 16px; }
  .popupProfileCard { min-height: 64px; font-size: 14px; padding: 14px 14px 14px 20px; }
  .popupProfileArrow { width: 28px; height: 28px; }
  .popupActionButton { font-size: 14px; padding: 4px 4px 4px 20px; }
  .popupActionArrow { width: 28px; height: 28px; }
}

@media (max-width: 640px) {
  .popupOverlay { padding: 0; align-items: flex-end; }
  .popupModal { border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; }
  .popupScroll {
    gap: 28px;
    padding: 28px 20px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    max-height: 92vh;
    max-height: 92dvh;
  }
  .popupClose { top: 16px; right: 16px; width: 36px; height: 36px; }
  .popupTitle { font-size: 18px; }
  .popupPill { padding: 8px 16px; font-size: 13px; }
  .popupProfileCard { padding: 14px 14px 14px 18px; }
  .popupActions { flex-direction: column; align-items: stretch; }
  .popupActionButton { justify-content: space-between; }
}
