:root {
  --mbbs-uni-navy: #073f55;
  --mbbs-uni-navy-deep: #032d3e;
  --mbbs-uni-teal: #087f9c;
  --mbbs-uni-orange: #f47b20;
  --mbbs-uni-green: #138653;
  --mbbs-uni-ink: #173747;
  --mbbs-uni-muted: #617985;
  --mbbs-uni-line: #d7e5eb;
  --mbbs-uni-soft: #f3f8fb;
  --mbbs-uni-orange-soft: #fff5ea;
  --mbbs-uni-white: #fff;
  --mbbs-uni-shadow: 0 18px 50px rgba(4, 54, 75, .10);
}

.mbbs-university-profile .wp-block-post-title {
  width: min(1180px, calc(100vw - 32px));
  margin: clamp(30px, 5vw, 66px) auto 20px !important;
  color: #fff !important;
  font-size: clamp(34px, 5vw, 64px) !important;
  font-weight: 850 !important;
  letter-spacing: -.045em;
  line-height: 1.03 !important;
  text-align: left;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .36);
}

@media (min-width: 782px) {
  .mbbs-university-profile .wp-block-post-title {
    box-sizing: border-box;
    padding-left: 45px !important;
  }
}

.mbbs-uni-page,
.mbbs-uni-page * {
  box-sizing: border-box;
}

.mbbs-uni-page {
  position: relative;
  left: 50%;
  width: min(1180px, calc(100vw - 24px));
  max-width: none !important;
  margin: 0 0 76px;
  transform: translateX(-50%);
  color: var(--mbbs-uni-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.68;
}

.mbbs-uni-page a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mbbs-uni-page h2,
.mbbs-uni-page h3,
.mbbs-uni-page p,
.mbbs-uni-page ul,
.mbbs-uni-page ol {
  margin-top: 0;
}

.mbbs-uni-page h2,
.mbbs-uni-page h3 {
  color: var(--mbbs-uni-navy);
  font-family: inherit;
  letter-spacing: -.028em;
}

.mbbs-uni-page h2 {
  margin-bottom: 15px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 850;
  line-height: 1.08;
}

.mbbs-uni-page h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.mbbs-uni-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--mbbs-uni-muted);
  font-size: 12px;
  font-weight: 700;
}

.mbbs-uni-breadcrumbs a {
  color: #0b6682;
  text-decoration: none;
}

.mbbs-uni-breadcrumbs a:hover,
.mbbs-uni-breadcrumbs a:focus-visible {
  color: var(--mbbs-uni-orange);
  text-decoration: underline;
}

.mbbs-uni-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(410px, .97fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #bfd4dd;
  border-radius: 34px;
  background: var(--mbbs-uni-navy);
  box-shadow: 0 28px 70px rgba(3, 44, 61, .18);
}

.mbbs-uni-hero__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #dce8ed;
}

.mbbs-uni-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 45, 62, .05) 45%, rgba(3, 45, 62, .72) 100%);
  content: '';
}

.mbbs-uni-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  margin: 0;
  object-fit: cover;
  object-position: 62% center;
}

.mbbs-uni-hero__caption {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(3, 45, 62, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.mbbs-uni-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 100% 0, rgba(8, 127, 156, .38), transparent 42%),
    linear-gradient(145deg, var(--mbbs-uni-navy) 0%, var(--mbbs-uni-navy-deep) 100%);
}

.mbbs-uni-identity {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
}

.mbbs-uni-identity__logo {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  margin: 0;
  padding: 7px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.mbbs-uni-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--mbbs-uni-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mbbs-uni-identity__name,
.mbbs-uni-identity__place {
  margin-bottom: 0;
}

.mbbs-uni-identity__name {
  color: #fff;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.15;
}

.mbbs-uni-identity__place {
  margin-top: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
}

.mbbs-uni-hero h2 {
  margin-bottom: 17px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
}

.mbbs-uni-hero__lead {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.7;
}

.mbbs-uni-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mbbs-uni-facts span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  line-height: 1.35;
}

.mbbs-uni-facts strong {
  color: #fff;
}

.mbbs-uni-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.mbbs-uni-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.mbbs-uni-button:hover,
.mbbs-uni-button:focus-visible {
  transform: translateY(-1px);
}

.mbbs-uni-button:focus-visible,
.mbbs-uni-page summary:focus-visible,
.mbbs-uni-jumpnav a:focus-visible {
  outline: 3px solid rgba(244, 123, 32, .35);
  outline-offset: 3px;
}

.mbbs-uni-button--primary {
  background: var(--mbbs-uni-orange);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(244, 123, 32, .24);
}

.mbbs-uni-button--secondary {
  border-color: #b9d5df;
  background: #fff;
  color: var(--mbbs-uni-navy) !important;
}

.mbbs-uni-button--quiet {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
}

.mbbs-uni-actions--section .mbbs-uni-button--quiet {
  border-color: #b9d5df;
  background: var(--mbbs-uni-soft);
  color: var(--mbbs-uni-navy) !important;
}

.mbbs-uni-jumpnav {
  position: sticky;
  z-index: 20;
  top: 14px;
  display: flex;
  gap: 8px;
  margin: 18px 0 10px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 30px rgba(5, 55, 74, .09);
  scrollbar-width: thin;
}

.admin-bar .mbbs-uni-jumpnav {
  top: 46px;
}

.mbbs-uni-jumpnav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--mbbs-uni-navy);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.mbbs-uni-jumpnav a:hover {
  background: var(--mbbs-uni-orange-soft);
  color: #a74c00;
}

.mbbs-uni-section {
  scroll-margin-top: 96px;
  margin-top: 26px;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--mbbs-uni-shadow);
}

.mbbs-uni-section--tinted {
  background: linear-gradient(145deg, #f2f8fb 0%, #fff 76%);
}

.mbbs-uni-section__intro {
  max-width: 820px;
  margin-bottom: 27px;
}

.mbbs-uni-section__intro > p {
  margin-bottom: 0;
  color: var(--mbbs-uni-muted);
  font-size: 16px;
}

.mbbs-uni-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mbbs-uni-card {
  padding: 24px;
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 18px;
  background: #fff;
}

.mbbs-uni-card--good {
  border-top: 4px solid var(--mbbs-uni-green);
}

.mbbs-uni-card--check {
  border-top: 4px solid var(--mbbs-uni-orange);
}

.mbbs-uni-card ul {
  margin-bottom: 0;
  padding-left: 21px;
}

.mbbs-uni-card li + li {
  margin-top: 8px;
}

.mbbs-uni-history,
.mbbs-uni-fee-note,
.mbbs-uni-caution {
  margin-top: 18px;
  padding: 17px 19px;
  border-left: 4px solid var(--mbbs-uni-orange);
  border-radius: 12px;
  background: var(--mbbs-uni-orange-soft);
  color: #5e4a38;
  font-size: 14px;
}

.mbbs-uni-history a,
.mbbs-uni-related-line a {
  color: #006b77;
  font-weight: 800;
}

.mbbs-uni-programme-grid,
.mbbs-uni-life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mbbs-uni-programme-grid article,
.mbbs-uni-life-grid article {
  padding: 22px;
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 18px;
  background: #fff;
}

.mbbs-uni-programme-grid article > span {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f4f8;
  color: #086781;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mbbs-uni-programme-grid p,
.mbbs-uni-life-grid p {
  margin-bottom: 0;
  color: var(--mbbs-uni-muted);
  font-size: 13px;
}

.mbbs-uni-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--mbbs-uni-navy);
  color: #fff;
}

.mbbs-uni-inline-cta strong,
.mbbs-uni-inline-cta span {
  display: block;
}

.mbbs-uni-inline-cta span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.mbbs-uni-inline-cta a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--mbbs-uni-navy);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.mbbs-uni-inline-cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.mbbs-live-rate-notice + .mbbs-uni-section,
[data-mbbs-rate-anchor] + .mbbs-live-rate-notice {
  margin-top: 22px;
}

.mbbs-uni-fee-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mbbs-uni-fee-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 18px;
  background: var(--mbbs-uni-soft);
}

.mbbs-uni-fee-card--first {
  border-color: #f2c58e;
  background: var(--mbbs-uni-orange-soft);
}

.mbbs-uni-fee-card--total {
  border-color: var(--mbbs-uni-navy);
  background: var(--mbbs-uni-navy);
  color: #fff;
}

.mbbs-uni-fee-card > span,
.mbbs-uni-breakdown article > span {
  display: block;
  margin-bottom: 8px;
  color: var(--mbbs-uni-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mbbs-uni-fee-card--total > span {
  color: rgba(255, 255, 255, .72);
}

.mbbs-fee-money strong,
.mbbs-fee-money small {
  display: block;
}

.mbbs-fee-money strong {
  color: var(--mbbs-uni-navy);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.15;
}

.mbbs-fee-money small,
.mbbs-live-currency-row {
  margin-top: 5px;
  color: #5f7883;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.mbbs-uni-fee-card--total .mbbs-fee-money strong {
  color: #fff;
}

.mbbs-uni-fee-card--total .mbbs-fee-money small,
.mbbs-uni-fee-card--total p {
  color: rgba(255, 255, 255, .72);
}

.mbbs-uni-fee-card p {
  margin: 12px 0 0;
  color: var(--mbbs-uni-muted);
  font-size: 11px;
  line-height: 1.55;
}

.mbbs-uni-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
  padding: 14px;
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 18px;
  background: #fff;
}

.mbbs-uni-breakdown article {
  padding: 13px;
  border-radius: 12px;
  background: #f7fafb;
}

.mbbs-uni-breakdown .mbbs-fee-money strong {
  font-size: 17px;
}

.mbbs-uni-breakdown__sum {
  background: #eaf5f8 !important;
}

.mbbs-uni-fee-note p,
.mbbs-uni-caution {
  margin-bottom: 0;
}

.mbbs-uni-timeline {
  display: grid;
  gap: 11px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.mbbs-uni-timeline li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 15px;
  background: #fff;
}

.mbbs-uni-timeline li > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mbbs-uni-orange);
  color: #fff;
  font-weight: 900;
}

.mbbs-uni-timeline strong {
  color: var(--mbbs-uni-navy);
}

.mbbs-uni-timeline p {
  margin: 3px 0 0;
  color: var(--mbbs-uni-muted);
  font-size: 13px;
}

.mbbs-uni-life-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mbbs-uni-life-grid article > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--mbbs-uni-orange-soft);
  font-size: 20px;
}

.mbbs-uni-related-line {
  margin: 19px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--mbbs-uni-line);
  color: var(--mbbs-uni-muted);
  font-size: 13px;
}

.mbbs-uni-faqs {
  display: grid;
  gap: 10px;
}

.mbbs-uni-faqs details {
  overflow: hidden;
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 15px;
  background: #fff;
}

.mbbs-uni-faqs summary {
  position: relative;
  padding: 17px 52px 17px 18px;
  color: var(--mbbs-uni-navy);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.mbbs-uni-faqs summary::-webkit-details-marker {
  display: none;
}

.mbbs-uni-faqs summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mbbs-uni-soft);
  color: var(--mbbs-uni-teal);
  content: '+';
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
  transform: translateY(-50%);
}

.mbbs-uni-faqs details[open] summary::after {
  content: '–';
}

.mbbs-uni-faqs details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--mbbs-uni-muted);
  font-size: 14px;
}

.mbbs-uni-related {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--mbbs-uni-shadow);
}

.mbbs-uni-related p {
  margin-bottom: 0;
  color: var(--mbbs-uni-muted);
}

.mbbs-uni-related__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mbbs-uni-related__links a {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--mbbs-uni-line);
  border-radius: 14px;
  color: var(--mbbs-uni-navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.mbbs-uni-related__links a:hover,
.mbbs-uni-related__links a:focus-visible {
  border-color: #f2bd7e;
  background: var(--mbbs-uni-orange-soft);
}

.mbbs-uni-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(8, 127, 156, .48), transparent 44%),
    linear-gradient(145deg, var(--mbbs-uni-navy) 0%, var(--mbbs-uni-navy-deep) 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(3, 45, 62, .22);
}

.mbbs-uni-final-cta > div:first-child > span {
  color: #ffb15f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.mbbs-uni-final-cta h2 {
  margin: 7px 0 10px;
  color: #fff;
}

.mbbs-uni-final-cta p {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .75);
}

.mbbs-uni-final-cta .mbbs-uni-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.mbbs-uni-button--light {
  background: #fff;
  color: var(--mbbs-uni-navy) !important;
}

.mbbs-uni-button--outline-light {
  border-color: rgba(255, 255, 255, .4);
  background: transparent;
  color: #fff !important;
}

@media (max-width: 980px) {
  .mbbs-uni-hero {
    grid-template-columns: 1fr;
  }

  .mbbs-uni-hero__media,
  .mbbs-uni-hero__media img {
    min-height: 390px;
    max-height: 460px;
  }

  .mbbs-uni-hero__media::after {
    background: linear-gradient(0deg, rgba(3, 45, 62, .65), transparent 55%);
  }

  .mbbs-uni-fee-summary,
  .mbbs-uni-life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mbbs-uni-related,
  .mbbs-uni-final-cta {
    grid-template-columns: 1fr;
  }

  .mbbs-uni-final-cta .mbbs-uni-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .mbbs-university-profile .wp-block-post-title {
    width: calc(100vw - 24px);
    margin-top: 24px !important;
    font-size: clamp(31px, 10vw, 46px) !important;
  }

  .mbbs-uni-page {
    width: calc(100vw - 16px);
    padding-bottom: 78px;
    font-size: 15px;
  }

  .mbbs-university-profile #mbbs-ai-genie {
    bottom: 14px !important;
    left: 8px !important;
    transform: scale(.72);
    transform-origin: left bottom;
  }

  .mbbs-university-profile .wHelp-multi {
    right: 8px !important;
    bottom: 14px !important;
    transform: scale(.72);
    transform-origin: right bottom;
  }

  .mbbs-uni-breadcrumbs {
    padding-inline: 4px;
  }

  .mbbs-uni-hero,
  .mbbs-uni-section,
  .mbbs-uni-related,
  .mbbs-uni-final-cta {
    border-radius: 21px;
  }

  .mbbs-uni-hero__media,
  .mbbs-uni-hero__media img {
    min-height: 280px;
    max-height: 330px;
  }

  .mbbs-uni-hero__content,
  .mbbs-uni-section,
  .mbbs-uni-related,
  .mbbs-uni-final-cta {
    padding: 23px 18px;
  }

  .mbbs-uni-identity {
    align-items: flex-start;
    gap: 12px;
  }

  .mbbs-uni-identity__logo {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .mbbs-uni-identity__name {
    font-size: 19px;
  }

  .mbbs-uni-actions,
  .mbbs-uni-actions .mbbs-uni-button {
    width: 100%;
  }

  .mbbs-uni-jumpnav {
    top: 7px;
    margin-inline: 2px;
    border-radius: 13px;
  }

  .admin-bar .mbbs-uni-jumpnav {
    top: 52px;
  }

  .mbbs-uni-two-column,
  .mbbs-uni-programme-grid,
  .mbbs-uni-fee-summary,
  .mbbs-uni-breakdown,
  .mbbs-uni-life-grid,
  .mbbs-uni-related__links {
    grid-template-columns: 1fr;
  }

  .mbbs-uni-card,
  .mbbs-uni-programme-grid article,
  .mbbs-uni-life-grid article,
  .mbbs-uni-fee-card {
    padding: 18px;
  }

  .mbbs-uni-inline-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .mbbs-uni-inline-cta__links,
  .mbbs-uni-inline-cta a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .mbbs-uni-related__links a {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mbbs-uni-button {
    transition: none;
  }
}
