/* =========================================================
   Visa Paramount Directory
   Cleaned styles for program cards, program modal, and university pages
========================================================= */

/* ---------------------------------------------------------
   Test / directory listing page
--------------------------------------------------------- */

.vp-program-test-page {
  direction: rtl;
  background: #f6f8fc;
}

.vp-program-test-section {
  padding: 90px 20px;
  background:
    radial-gradient(
      circle at top left,
      rgba(13, 43, 84, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.vp-directory-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.vp-directory-heading {
  max-width: 720px;
  margin-bottom: 36px;
  text-align: right;
}

.vp-directory-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e8eef8;
  color: #0b1f3a;
  font-size: 14px;
  font-weight: 700;
}

.vp-directory-title {
  margin: 18px 0 10px;
  color: #0b1f3a;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.5;
}

.vp-directory-desc {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 2;
}

.vp-directory-empty,
.vp-directory-error {
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  color: #475569;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.vp-directory-error {
  color: #b91c1c;
}

/* ---------------------------------------------------------
   Program cards
--------------------------------------------------------- */

.vp-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.vp-program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.vp-program-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0b1f3a, #1d4ed8);
}

.vp-program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.13);
  border-color: rgba(29, 78, 216, 0.22);
}

.vp-program-card__header {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "badge spacer logo"
    "title title title"
    "university university university";
  align-items: center;
  gap: 12px;
  row-gap: 4px;
  margin-bottom: 18px;
}

.vp-program-card__badge {
  grid-area: badge;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0b1f3a;
  font-size: 13px;
  font-weight: 800;
}

.vp-program-card__university-logo {
  grid-area: logo;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 42px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.vp-program-card__university-logo img,
.vp-program-card__university-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 88px;
  max-height: 42px;
  object-fit: contain;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.vp-program-card__title {
  grid-area: title;
  margin: 6px 0 0 !important;
  color: #0b1f3a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.6;
}

.vp-program-card__university {
  grid-area: university;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px !important;
  margin-bottom: 0 !important;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vp-program-card__university:hover {
  color: #0b1f3a;
}

.vp-program-card__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.vp-program-card__meta-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.vp-program-card__meta-item i {
  width: 18px;
  min-width: 18px;
  color: #0b1f3a;
  text-align: center;
}

.vp-program-card__meta-item--deadline {
  color: #9a3412;
  font-weight: 800;
}

.vp-program-card__meta-item--deadline i {
  color: #ea580c;
}

.vp-program-card__field {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.vp-program-card__summary {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 2;
}

.vp-program-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.vp-program-card__details-btn,
.vp-program-card__consult-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.vp-program-card__details-btn {
  border: 1px solid rgba(11, 31, 58, 0.14);
  background: #ffffff;
  color: #0b1f3a;
}

.vp-program-card__consult-btn {
  border: 1px solid #0b1f3a;
  background: #0b1f3a;
  color: #ffffff;
}

.vp-program-card__details-btn:hover,
.vp-program-card__consult-btn:hover {
  transform: translateY(-2px);
}

.vp-program-card__details-btn:hover {
  border-color: #0b1f3a;
  background: #f8fafc;
  color: #0b1f3a;
}

.vp-program-card__consult-btn:hover {
  background: #102a43;
  color: #ffffff;
}

/* ---------------------------------------------------------
   Program modal
--------------------------------------------------------- */

body.vp-modal-open {
  overflow: hidden;
}

.vp-program-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  direction: rtl;
}

.vp-program-modal.is-open {
  display: block;
}

.vp-program-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.62);
  backdrop-filter: blur(6px);
}

.vp-program-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  animation: vpModalIn 0.25s ease;
}

@keyframes vpModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

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

.vp-program-modal__close {
  position: absolute;
  top: 18px;
  left: 18px;
  right: auto;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #0b1f3a;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.vp-program-modal__close:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.vp-program-modal__header {
  position: relative;
  flex: 0 0 auto;
  padding: 34px 34px 24px;
  padding-left: 78px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(
      circle at 90% 20%,
      rgba(14, 165, 233, 0.1),
      transparent 30%
    ),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 62%, #f1f5ff 100%);
}

.vp-program-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f0ff, #f8fbff);
  color: #0b1f3a;
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.vp-program-modal__badge::before {
  content: "\f19d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #2563eb;
}

.vp-program-modal__title {
  margin: 0 0 12px;
  color: #0b1f3a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.5;
}

.vp-program-modal__university {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.vp-program-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 28px 34px;
  overflow-y: auto;
}

.vp-program-modal__info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.vp-program-modal__info-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.vp-program-modal__info-card::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0b1f3a, #2563eb);
  opacity: 0.85;
}

.vp-program-modal__info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.095);
  border-color: rgba(37, 99, 235, 0.16);
}

.vp-program-modal__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  color: #1d4ed8;
  font-size: 17px;
}

.vp-program-modal__info-card span {
  display: block;
  margin-bottom: 3px;
  color: #718096;
  font-size: 12.5px;
  font-weight: 700;
}

.vp-program-modal__info-card strong {
  display: block;
  color: #0b1f3a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.8;
}

.vp-program-modal__section {
  margin-top: 30px;
  padding-top: 4px;
}

.vp-program-modal__section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #0b1f3a;
  font-size: 19px;
  font-weight: 900;
}

.vp-program-modal__section h3 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  color: #1d4ed8;
  font-size: 15px;
}

.vp-program-modal__section p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 2.1;
}

.vp-program-modal__table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.vp-program-modal__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

.vp-program-modal__table th,
.vp-program-modal__table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

.vp-program-modal__table th {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: #0b1f3a;
  font-weight: 900;
}

.vp-program-modal__table tbody tr:hover td {
  background: #f8fafc;
}

.vp-program-modal__table tr:last-child td {
  border-bottom: 0;
}

.vp-program-modal__note-row td {
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}

.vp-program-modal__requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vp-program-modal__requirement {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.vp-program-modal__requirement::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 9px;
  border-radius: 9px;
  background: #ecfdf5;
  color: #16a34a;
  font-size: 12px;
}

.vp-program-modal__requirement strong {
  display: block;
  margin-bottom: 8px;
  color: #0b1f3a;
  font-size: 15px;
  font-weight: 900;
}

.vp-program-modal__footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 34px 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.vp-program-modal__official-link,
.vp-program-modal__consult-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  text-decoration: none;
}

.vp-program-modal__official-link {
  border: 1px solid rgba(11, 31, 58, 0.14);
  background: #ffffff;
  color: #0b1f3a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.vp-program-modal__consult-link {
  border: 1px solid #0b1f3a;
  background: linear-gradient(135deg, #0b1f3a 0%, #123d73 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(11, 31, 58, 0.18);
}

.vp-program-modal__consult-link:hover {
  background: linear-gradient(135deg, #102a43 0%, #1d4ed8 100%);
}

/* ---------------------------------------------------------
   University single page
--------------------------------------------------------- */

.vp-university-single {
  --vp-uni-primary: var(--country-primary-accent, #000080);
  --vp-uni-secondary: var(--country-secondary-accent, #00aaff);
  --vp-uni-dark: var(--country-dark-accent, #0b1f3a);
  --vp-uni-soft: var(--country-soft-accent, rgba(0, 0, 128, 0.08));
  --vp-uni-border: rgba(15, 23, 42, 0.08);
  --vp-uni-text: #334155;
  --vp-uni-muted: #64748b;
  background: #f5f5f5;
}

.vp-university-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.vp-university-glance,
.vp-university-about,
.vp-university-gallery,
.vp-university-testimonials,
.vp-university-programs {
  padding: 72px 0;
  background: #f5f5f5;
}

.vp-university-single .country-guide-primary-btn,
.vp-university-single .country-guide-secondary-btn,
.vp-university-programs__show-more {
  gap: 8px;
}

.vp-university-single .country-guide-section-header {
  margin-bottom: 34px;
}

/* ---------- University hero ---------- */

.vp-university-hero {
  overflow: hidden;
}

.vp-university-hero__media {
  position: relative;
  isolation: isolate;
}

.vp-university-hero__media > img,
.vp-university-hero__placeholder {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.vp-university-hero__media > img {
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03) brightness(0.97);
}

.vp-university-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(11, 31, 58, 0.22) 0%,
    rgba(11, 31, 58, 0.02) 34%,
    rgba(255, 255, 255, 0.03) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.vp-university-hero__media::after {
  content: "";
  position: absolute;
  inset: auto 18px -18px 18px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.14);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.vp-university-hero__placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, var(--vp-uni-soft)), #ffffff;
}

.vp-university-hero__placeholder i {
  font-size: 72px;
  color: var(--vp-uni-primary);
  opacity: 0.8;
}

.vp-university-hero__logo-card {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 245px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.vp-university-hero__logo-card img {
  width: 74px;
  height: 40px;
  max-width: 74px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.vp-university-hero__logo-card strong {
  display: block;
  color: var(--vp-uni-dark);
  font-size: 13.5px;
  line-height: 1.5;
}

.vp-university-hero__logo-card span {
  display: block;
  color: var(--vp-uni-muted);
  font-size: 11.5px;
  margin-top: 2px;
}

.vp-university-hero__trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 22px;
}

.vp-university-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid var(--vp-uni-soft);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.vp-university-hero__trust-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--vp-uni-soft);
  color: var(--vp-uni-primary);
  font-size: 13px;
}

.vp-university-hero__trust-item strong {
  display: block;
  color: var(--vp-uni-dark);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.vp-university-hero__trust-item small {
  display: none;
}

.vp-university-hero__actions {
  margin-top: 4px;
}

/* ---------- University glance ---------- */

.vp-university-glance__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vp-university-glance__card {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--vp-uni-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.vp-university-glance__card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--vp-uni-dark),
    var(--vp-uni-primary),
    var(--vp-uni-secondary)
  );
}

.vp-university-glance__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.vp-university-glance__card i {
  grid-column: 1;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 15px;
  background: var(--vp-uni-soft);
  color: var(--vp-uni-primary);
  font-size: 18px;
}

.vp-university-glance__card span {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0 0 4px;
  color: var(--vp-uni-muted);
  font-size: 12.5px;
}

.vp-university-glance__card strong {
  grid-column: 2;
  grid-row: 2;
  display: block;
  color: var(--vp-uni-dark);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- University about ---------- */

.vp-university-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.vp-university-about__layout.is-single-column {
  grid-template-columns: 1fr;
}

.vp-university-about__content,
.vp-university-about__highlights {
  border: 1px solid var(--vp-uni-border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
}

.vp-university-about__content {
  padding: 34px;
}

.vp-university-about__header {
  text-align: right;
  margin: 0 0 26px;
}

.vp-university-about__header h2::after {
  margin-right: 0;
  margin-left: auto;
}

.vp-university-about__text {
  color: var(--vp-uni-text);
  font-size: 15.5px;
  line-height: 2.15;
}

.vp-university-about__text p {
  margin-bottom: 18px;
}

.vp-university-about__text p:last-child {
  margin-bottom: 0;
}

.vp-university-about__text h2,
.vp-university-about__text h3,
.vp-university-about__text h4 {
  color: var(--vp-uni-dark);
  margin: 28px 0 12px;
}

.vp-university-about__text a {
  color: var(--vp-uni-primary);
  font-weight: 700;
  text-decoration: none;
}

.vp-university-about__highlights {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.vp-university-about__highlights::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--vp-uni-dark),
    var(--vp-uni-primary),
    var(--vp-uni-secondary)
  );
}

.vp-university-about__highlights h3 {
  color: var(--vp-uni-dark);
  font-size: 20px;
  margin-bottom: 22px;
}

.vp-university-about__highlight-list {
  display: grid;
  gap: 15px;
}

.vp-university-about__highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.055);
}

.vp-university-about__highlight-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--vp-uni-soft);
  color: var(--vp-uni-primary);
  font-size: 15px;
}

.vp-university-about__highlight-item strong {
  display: none;
}

.vp-university-about__highlight-item p {
  color: var(--vp-uni-text);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

/* ---------- University gallery ---------- */

.vp-university-gallery__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: 190px;
  gap: 16px;
  direction: rtl;
}

.vp-university-gallery__item {
  position: relative;
  min-height: 190px;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.075);
}

.vp-university-gallery__item.is-featured {
  grid-row: span 2;
}

.vp-university-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.vp-university-gallery__item:hover img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.vp-university-gallery__grid--count-1 {
  grid-template-columns: 1fr;
  grid-auto-rows: 420px;
}

.vp-university-gallery__grid--count-1 .vp-university-gallery__item.is-featured {
  grid-row: span 1;
}

.vp-university-gallery__grid--count-2,
.vp-university-gallery__grid--count-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vp-university-gallery__grid--count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vp-university-gallery__grid--count-4 .vp-university-gallery__item.is-featured {
  grid-row: span 1;
}

/* ---------- University testimonials ---------- */

.vp-university-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vp-university-testimonials__grid[data-count="1"] {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.vp-university-testimonials__grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}

.vp-university-testimonial-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--vp-uni-border);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.vp-university-testimonial-card__quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: var(--vp-uni-soft);
  color: var(--vp-uni-primary);
  font-size: 18px;
}

.vp-university-testimonial-card > p {
  color: var(--vp-uni-text);
  font-size: 14.5px;
  line-height: 2;
  margin-bottom: 24px;
}

.vp-university-testimonial-card__student {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.vp-university-testimonial-card__student img,
.vp-university-testimonial-card__avatar {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
}

.vp-university-testimonial-card__student img {
  object-fit: cover;
}

.vp-university-testimonial-card__avatar {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 52px;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    135deg,
    var(--vp-uni-dark),
    var(--vp-uni-primary)
  );
  color: #ffffff;
  overflow: hidden;
}

.vp-university-testimonial-card__avatar > i {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 21px !important;
  line-height: 1 !important;
  transform: none !important;
}

.vp-university-testimonial-card__avatar > i::before {
  display: block !important;
  color: #ffffff !important;
  line-height: 1 !important;
  margin: 0 !important;
  transform: none !important;
}

.vp-university-testimonial-card__student strong,
.vp-university-testimonial-card__student span,
.vp-university-testimonial-card__student small {
  display: block;
}

.vp-university-testimonial-card__student strong {
  color: var(--vp-uni-dark);
  font-size: 14.5px;
}

.vp-university-testimonial-card__student span {
  color: var(--vp-uni-muted);
  font-size: 12.5px;
  margin-top: 3px;
}

.vp-university-testimonial-card__student small {
  color: var(--vp-uni-primary);
  font-size: 11.5px;
  margin-top: 3px;
  font-weight: 700;
}

/* ---------- University programs ---------- */

.vp-university-programs {
  scroll-margin-top: 110px;
}

.vp-university-programs__grid {
  margin-top: 8px;
}

.vp-university-programs__item[hidden] {
  display: none !important;
}

.vp-university-programs__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.vp-university-programs__show-more {
  cursor: pointer;
  font-family: inherit;
}

/* =========================================================
   Program Search Page
========================================================= */

.vp-program-search-page {
  direction: rtl;
  background: #f5f5f5;
  color: #0b1f3a;
}

.vp-program-search-hero {
  padding: 76px 0 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(29, 78, 216, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.vp-program-search-page .vp-directory-heading {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.vp-program-search-section {
  padding: 24px 0 84px;
}

.vp-program-search-filters {
  margin-bottom: 42px;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.vp-program-search-filters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vp-program-search-filters__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vp-program-search-filters__field--wide {
  grid-column: span 3;
}

.vp-program-search-filters__field label {
  color: #0b1f3a;
  font-size: 13px;
  font-weight: 800;
}

.vp-program-search-filters__field input,
.vp-program-search-filters__field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.vp-program-search-filters__field input:focus,
.vp-program-search-filters__field select:focus {
  border-color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.vp-program-search-filters__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.vp-program-search-filters__submit,
.vp-program-search-filters__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.vp-program-search-filters__submit {
  border: 1px solid #0b1f3a;
  background: #0b1f3a;
  color: #ffffff;
}

.vp-program-search-filters__reset {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #334155;
}

.vp-program-search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.vp-program-search-results-head h2 {
  margin: 0;
  color: #0b1f3a;
  font-size: 26px;
  font-weight: 900;
}

.vp-program-search-results-head span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0b1f3a;
  font-size: 13px;
  font-weight: 800;
}

.vp-program-search-results {
  align-items: stretch;
}

.vp-program-search-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.vp-program-search-empty i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 22px;
}

.vp-program-search-empty h3 {
  margin: 0 0 10px;
  color: #0b1f3a;
  font-size: 22px;
  font-weight: 900;
}

.vp-program-search-empty p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 2;
}

.vp-program-search-pagination {
  margin-top: 38px;
}

.vp-program-search-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-program-search-pagination a,
.vp-program-search-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #0b1f3a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.vp-program-search-pagination .current {
  background: #0b1f3a;
  color: #ffffff;
  border-color: #0b1f3a;
}

/* Directory pages breathing space */
.vp-directory-container {
  width: min(1180px, calc(100% - 48px));
}

/* Tuition range filter */
.vp-tuition-range {
  padding: 20px 20px 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #f8fafc;
}

.vp-tuition-range__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.vp-tuition-range__values strong {
  color: #0b1f3a;
  font-size: 15px;
  font-weight: 900;
}

.vp-tuition-range__slider {
  position: relative;
  height: 36px;
}

.vp-tuition-range__track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to left,
    #e2e8f0 0%,
    #e2e8f0 var(--vp-range-start, 0%),
    #0b1f3a var(--vp-range-start, 0%),
    #0b1f3a var(--vp-range-end, 100%),
    #e2e8f0 var(--vp-range-end, 100%),
    #e2e8f0 100%
  );
  transform: translateY(-50%);
}

.vp-tuition-range__slider input[type="range"] {
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  transform: translateY(-50%);
}

.vp-tuition-range__slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
}

.vp-tuition-range__slider input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
}

.vp-tuition-range__slider input[type="range"]::-webkit-slider-thumb {
  width: 23px;
  height: 23px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #0b1f3a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  cursor: grab;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.vp-tuition-range__slider input[type="range"]::-moz-range-thumb {
  width: 23px;
  height: 23px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #0b1f3a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  cursor: grab;
  pointer-events: auto;
}

/* Tuition range thumb alignment fix */
.vp-tuition-range__slider {
  --vp-range-track-height: 8px;
  --vp-range-thumb-size: 24px;
  position: relative;
  height: 34px;
}

.vp-tuition-range__track {
  top: 50%;
  height: var(--vp-range-track-height);
  transform: translateY(-50%);
}

.vp-tuition-range__slider input[type="range"] {
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  height: var(--vp-range-thumb-size);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  transform: translateY(-50%);
  outline: none;
}

.vp-tuition-range__slider input[type="range"]:focus {
  outline: none;
  box-shadow: none;
}

.vp-tuition-range__slider input[type="range"]::-webkit-slider-runnable-track {
  height: var(--vp-range-track-height);
  background: transparent;
  border: 0;
}

.vp-tuition-range__slider input[type="range"]::-webkit-slider-thumb {
  width: var(--vp-range-thumb-size);
  height: var(--vp-range-thumb-size);
  margin-top: calc(
    (var(--vp-range-track-height) - var(--vp-range-thumb-size)) / 2
  );
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #0b1f3a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  cursor: grab;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.vp-tuition-range__slider input[type="range"]::-moz-range-track {
  height: var(--vp-range-track-height);
  background: transparent;
  border: 0;
}

.vp-tuition-range__slider input[type="range"]::-moz-range-thumb {
  width: var(--vp-range-thumb-size);
  height: var(--vp-range-thumb-size);
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #0b1f3a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  cursor: grab;
  pointer-events: auto;
}

/* Active filters chips */
.vp-program-search-active-filters {
  margin: -20px 0 34px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.vp-program-search-active-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.vp-program-search-active-filters__head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0b1f3a;
  font-size: 14px;
  font-weight: 900;
}

.vp-program-search-active-filters__head span i {
  color: #1d4ed8;
}

.vp-program-search-active-filters__head a {
  color: #ef4444;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.vp-program-search-active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vp-program-search-active-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 999px;
  background: #eef4ff;
  color: #0b1f3a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.vp-program-search-active-filters__chip:hover {
  background: #e0ecff;
  border-color: rgba(29, 78, 216, 0.24);
  transform: translateY(-1px);
}

.vp-program-search-active-filters__chip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.1);
  color: #0b1f3a;
  font-size: 11px;
}

/* Program search hero upgraded */
.vp-program-search-hero {
  position: relative;
  padding: 86px 0 42px;
  background:
    radial-gradient(circle at 12% 0%, rgba(29, 78, 216, 0.1), transparent 34%),
    radial-gradient(
      circle at 88% 18%,
      rgba(14, 165, 233, 0.08),
      transparent 30%
    ),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  overflow: hidden;
}

.vp-program-search-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 36px;
  align-items: center;
}

.vp-program-search-hero__content {
  max-width: 760px;
}

.vp-program-search-hero .vp-directory-title {
  margin: 18px 0 12px;
  font-size: 40px;
  line-height: 1.45;
}

.vp-program-search-hero .vp-directory-desc {
  max-width: 720px;
  color: #475569;
  font-size: 16px;
  line-height: 2.05;
}

.vp-program-search-hero__items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.vp-program-search-hero__items span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0b1f3a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.vp-program-search-hero__items i {
  color: #1d4ed8;
  font-size: 14px;
}

.vp-program-search-hero__card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(29, 78, 216, 0.09), transparent 36%),
    #ffffff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

.vp-program-search-hero__card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0b1f3a, #1d4ed8, #38bdf8);
}

.vp-program-search-hero__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 22px;
}

.vp-program-search-hero__card strong {
  display: block;
  margin-bottom: 10px;
  color: #0b1f3a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.6;
}

.vp-program-search-hero__card p {
  margin: 0;
  color: #64748b;
  font-size: 14.5px;
  line-height: 2;
}

/* Program search filters intro */
.vp-program-search-filters__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.vp-program-search-filters__intro span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.vp-program-search-filters__intro h2 {
  margin: 0;
  color: #0b1f3a;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.6;
}

.vp-program-search-filters__intro p {
  max-width: 520px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 2;
}
/* Program search results heading */
.vp-program-search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 22px 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.vp-program-search-results-head__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.vp-program-search-results-head__label i {
  font-size: 13px;
}

.vp-program-search-results-head h2 {
  margin: 0;
  color: #0b1f3a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
}

.vp-program-search-results-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0b1f3a;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
/* Program card summary clamp */
.vp-program-card__summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 84px;
  overflow: hidden;
}
.vp-program-card__study-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(0, 0, 128, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 128, 0.04);
  color: #000080;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 10px;
}

.vp-program-card__study-field i {
  font-size: 13px;
  color: #000080;
}

/* Program modal header background image */
.vp-program-modal__header {
  position: relative;
  overflow: hidden;
}

.vp-program-modal__header--with-bg {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 80, 0.62), rgba(0, 0, 80, 0.24)),
    var(--vp-program-modal-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Title */
.vp-program-modal__header--with-bg .vp-program-modal__title {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* University link under title */
.vp-program-modal__header--with-bg .vp-program-modal__university {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.vp-program-modal__header--with-bg .vp-program-modal__university:hover {
  color: #ffffff;
}

/* Degree badge inside image header */
.vp-program-modal__header--with-bg .vp-program-modal__badge,
.vp-program-modal__header--with-bg .vp-program-modal__degree,
.vp-program-modal__header--with-bg .vp-program-modal__degree-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #000080;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.vp-program-modal__header--with-bg .vp-program-modal__badge i,
.vp-program-modal__header--with-bg .vp-program-modal__degree i,
.vp-program-modal__header--with-bg .vp-program-modal__degree-badge i {
  color: #2563eb;
}

/* Close button */
.vp-program-modal__header--with-bg .vp-program-modal__close {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
}

.vp-program-modal__header--with-bg .vp-program-modal__close:hover {
  background: #ffffff;
}
/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 992px) {
  .vp-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vp-program-modal__info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vp-program-modal__requirements {
    grid-template-columns: 1fr;
  }

  .vp-university-glance__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vp-university-about__layout {
    grid-template-columns: 1fr;
  }

  .vp-university-gallery__grid,
  .vp-university-gallery__grid--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .vp-university-gallery__item.is-featured {
    grid-row: span 2;
  }

  .vp-university-testimonials__grid,
  .vp-university-testimonials__grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .vp-program-search-hero__layout {
    grid-template-columns: 1fr;
  }

  .vp-program-search-hero__card {
    max-width: 620px;
  }
}

@media (max-width: 768px) {
  .vp-program-test-section {
    padding: 64px 16px;
  }

  .vp-directory-title {
    font-size: 28px;
  }

  .vp-program-grid {
    grid-template-columns: 1fr;
  }

  .vp-program-card {
    padding: 22px;
    border-radius: 20px;
  }

  .vp-program-modal__dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    border-radius: 22px;
  }

  .vp-program-modal__header {
    padding: 28px 22px 20px;
    padding-left: 74px;
  }

  .vp-program-modal__body {
    padding: 22px;
  }

  .vp-program-modal__title {
    font-size: 23px;
  }

  .vp-program-modal__footer {
    flex-direction: column;
    padding: 18px 22px 24px;
  }

  .vp-program-modal__official-link,
  .vp-program-modal__consult-link {
    width: 100%;
  }

  .vp-program-modal__info-card {
    padding: 15px;
  }

  .vp-program-modal__info-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .vp-university-glance,
  .vp-university-about,
  .vp-university-gallery,
  .vp-university-testimonials,
  .vp-university-programs {
    padding: 56px 0;
  }

  .vp-university-hero__media > img,
  .vp-university-hero__placeholder {
    max-width: 100%;
    aspect-ratio: 16 / 11;
  }

  .vp-university-hero__logo-card {
    right: 14px;
    bottom: 14px;
    max-width: 210px;
    padding: 9px 10px;
  }

  .vp-university-hero__logo-card img {
    width: 64px;
    height: 34px;
    max-width: 64px;
  }

  .vp-university-hero__trust-items {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vp-university-hero__trust-item {
    width: 100%;
    padding: 8px 10px;
  }

  .vp-university-hero__trust-item strong {
    white-space: normal;
  }

  .vp-university-glance__grid {
    grid-template-columns: 1fr;
  }

  .vp-university-glance__card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px 18px;
  }

  .vp-university-glance__card i {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 16px;
  }

  .vp-university-about__content,
  .vp-university-about__highlights {
    padding: 22px;
    border-radius: 22px;
  }

  .vp-university-gallery__grid,
  .vp-university-gallery__grid--count-2,
  .vp-university-gallery__grid--count-3,
  .vp-university-gallery__grid--count-4 {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .vp-university-gallery__item.is-featured {
    grid-row: span 1;
  }

  .vp-university-testimonials__grid,
  .vp-university-testimonials__grid[data-count="1"],
  .vp-university-testimonials__grid[data-count="2"] {
    grid-template-columns: 1fr;
  }

  .vp-university-testimonial-card {
    min-height: auto;
    padding: 22px;
  }
  .vp-program-search-hero {
    padding: 56px 0 28px;
  }

  .vp-program-search-section {
    padding: 18px 0 64px;
  }

  .vp-program-search-filters {
    padding: 22px;
    border-radius: 22px;
  }

  .vp-program-search-filters__grid {
    grid-template-columns: 1fr;
  }

  .vp-program-search-filters__field--wide {
    grid-column: span 1;
  }

  .vp-program-search-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .vp-program-search-hero {
    padding: 56px 0 28px;
  }

  .vp-program-search-section {
    padding: 18px 0 64px;
  }

  .vp-program-search-filters {
    padding: 22px;
    border-radius: 22px;
  }

  .vp-program-search-filters__grid {
    grid-template-columns: 1fr;
  }

  .vp-program-search-filters__field--wide {
    grid-column: span 1;
  }

  .vp-program-search-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .vp-program-search-hero {
    padding: 64px 0 34px;
  }

  .vp-program-search-hero .vp-directory-title {
    font-size: 31px;
  }

  .vp-program-search-hero__items {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vp-program-search-hero__items span {
    width: 100%;
  }

  .vp-program-search-hero__card {
    padding: 24px;
    border-radius: 24px;
  }

  .vp-program-search-filters__intro {
    flex-direction: column;
    gap: 12px;
  }

  .vp-program-search-filters__intro h2 {
    font-size: 20px;
  }

  .vp-program-search-filters__intro p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .vp-program-search-results-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .vp-program-search-results-head strong {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .vp-program-modal__info-grid {
    grid-template-columns: 1fr;
  }

  .vp-university-hero__logo-card {
    width: auto;
    max-width: none;
    padding: 9px 11px;
    gap: 0;
    border-radius: 14px;
  }

  .vp-university-hero__logo-card > div {
    display: none;
  }

  .vp-university-hero__logo-card img {
    width: 78px;
    height: 42px;
    max-width: 78px;
    object-fit: contain;
  }
  .vp-tuition-range {
    padding: 18px 16px 20px;
  }

  .vp-tuition-range__values {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .vp-program-search-active-filters {
    padding: 16px;
    border-radius: 18px;
  }

  .vp-program-search-active-filters__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .vp-program-search-active-filters__chip {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .vp-program-card__actions {
    grid-template-columns: 1fr;
  }

  .vp-program-card__details-btn,
  .vp-program-card__consult-btn {
    width: 100%;
  }

  .vp-university-container {
    width: 92%;
  }

  .vp-university-glance__card {
    min-height: auto;
    padding: 19px 18px;
  }

  .vp-university-gallery__grid {
    grid-auto-rows: 190px;
  }

  .vp-university-hero__logo-card {
    align-items: center;
  }

  .vp-university-hero__logo-card strong {
    font-size: 12.5px;
  }

  .vp-program-card__university-logo {
    width: 76px;
    height: 38px;
  }

  .vp-program-card__university-logo img,
  .vp-program-card__university-logo-img {
    max-width: 76px;
    max-height: 38px;
  }

  .vp-program-search-filters__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vp-program-search-filters__submit,
  .vp-program-search-filters__reset {
    width: 100%;
  }
}
