:root {
  --primary: #ed1c24;
  --primary-dark: #c3141c;
  --primary-deep: #981018;
  --primary-soft: #fff0f1;
  --primary-pale: #fff7f7;

  --background: #f6f6f6;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --card: #ffffff;

  --text: #1d1d1f;
  --muted: #66666b;
  --light-text: #ffffff;

  --border: #e5e5e5;
  --border-red: rgba(237, 28, 36, 0.25);

  --shadow-sm: 0 5px 18px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.11);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.17);

  /* Compatibility with older HTML/CSS */
  --navy: var(--primary);
  --navy-deep: var(--primary-dark);
  --accent: var(--primary);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Myriad Pro", Myriad, Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font-family: "Myriad Pro", Myriad, Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* =====================================
   Animated Buttons
   ===================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding: 11px 19px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  isolation: isolate;
  animation: buttonFloat 2.8s ease-in-out infinite;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 7px 18px rgba(237, 28, 36, 0.2);
}

.btn::before,
button::before,
input[type="submit"]::before,
input[type="button"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  z-index: -1;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
  );
  transform: skewX(-22deg);
  animation: buttonShine 3.4s ease-in-out infinite;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-deep)
  );
  border-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 12px 26px rgba(237, 28, 36, 0.28);
}

.btn:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(1px) scale(0.98);
}

.btn-admissions {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #ffffff;
}

@keyframes buttonFloat {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 7px 18px rgba(237, 28, 36, 0.2);
  }

  50% {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(237, 28, 36, 0.28);
  }
}

@keyframes buttonShine {
  0%,
  52% {
    left: -130%;
  }

  72%,
  100% {
    left: 160%;
  }
}

/* =====================================
   Header and Navbar
   ===================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.13);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 9px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.brand-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.95);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: auto;
  padding: 6px 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  animation: none;
  box-shadow: none;
}

.menu-toggle::before {
  display: none;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: none;
  box-shadow: none;
}

/* =====================================
   Sections
   ===================================== */

section {
  padding: 56px 0;
}

section:nth-of-type(even):not(.hero) {
  background: #ffffff;
}

.section-title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 9px;
  background: var(--primary);
  border-radius: 20px;
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-14,
.section-link {
  margin-top: 14px;
}

.white {
  color: #ffffff;
}

/* =====================================
   Hero
   ===================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 60vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/images/hero.jpg") center / cover no-repeat;
  filter: brightness(0.63) saturate(0.9);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.67),
    rgba(0, 0, 0, 0.34)
  );
}

.hero .container {
  max-width: 920px;
}

.hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.46);
}

.hero p {
  max-width: 700px;
  margin: 0 auto 21px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.05rem;
}

/* =====================================
   Principal Section
   ===================================== */

.principal {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.frame {
  padding: 6px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--primary-dark),
    var(--primary),
    #ffffff
  );
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(237, 28, 36, 0.18);
}

.frame img,
.principal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.bubble {
  position: relative;
  padding: 21px;
  color: var(--text);
  background: var(--primary-pale);
  border: 1px solid #f0d4d6;
  border-radius: 15px;
}

.bubble::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -11px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 11px solid var(--primary-pale);
}

.bubble h2,
.bubble h3 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 23px;
}

/* =====================================
   Cards and Grids
   No image popup behaviour
   ===================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.card,
.tile {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card::after,
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 0.35s ease;
}

.card:hover,
.tile:hover {
  transform: translateY(-7px);
  border-color: rgba(237, 28, 36, 0.34);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.13);
}

.card:hover::after,
.tile:hover::after {
  border-color: rgba(237, 28, 36, 0.28);
}

.card img,
.tile img {
  display: block;
  width: 100%;
  height: auto;
  cursor: default;
  transition:
    transform 0.55s ease,
    filter 0.4s ease;
}

.card:hover img,
.tile:hover img {
  transform: scale(1.035);
  filter: brightness(1.02);
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 14px 15px 17px;
}

.card-title {
  margin: 0 0 5px;
  color: var(--primary-dark);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.card-body p,
.card-body .small {
  margin-top: 0;
}

.card .small,
.tile .small {
  color: var(--muted);
}

.card a:not(.btn) {
  color: var(--primary-dark);
  font-weight: 700;
}

.card a:not(.btn):hover {
  color: var(--primary);
  text-decoration: underline;
}

.card-body .btn {
  align-self: flex-start;
  margin-top: 14px;
}

/* Prevent old data cards from looking clickable */

[data-program],
[data-ach],
[data-life],
[data-lightbox],
.tile img {
  cursor: default !important;
}

/* =====================================
   Entry Test Cards and Page
   ===================================== */

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 45px;
  padding: 24px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.entry-grid:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.entry-text {
  color: var(--text);
}

.entry-text h2 {
  margin: 0 0 10px;
  color: var(--primary-dark);
}

.entry-image img {
  display: block;
  width: 80%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 11px;
  box-shadow: var(--shadow-md);
}

.entry-tests .grid .card img,
img[alt="MDCAT Preparation"],
img[alt="ECAT Preparation"],
img[alt="Other Entry Tests"] {
  display: block;
  width: 100%;
  height: 160px !important;
  object-fit: cover;
}

/* =====================================
   Faculty Overview on Homepage
   ===================================== */

.faculty-overview {
  background: #ffffff;
}

.faculty-overview-intro {
  max-width: 760px;
  margin: -4px 0 30px;
  color: var(--muted);
}

.faculty-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.faculty-preview-card {
  padding: 26px 18px 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.faculty-preview-card:hover {
  transform: translateY(-7px);
  border-color: rgba(237, 28, 36, 0.35);
  box-shadow: var(--shadow-md);
}

.faculty-preview-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 16px;
  padding: 5px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(237, 28, 36, 0.18);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.faculty-preview-card:hover .faculty-preview-image {
  transform: scale(1.04);
  box-shadow: 0 13px 28px rgba(237, 28, 36, 0.24);
}

.faculty-preview-manager .faculty-preview-image {
  width: 175px;
  height: 175px;
}

.faculty-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  background: #f4f4f4;
  border: 4px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.faculty-preview-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.faculty-preview-card span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
}

.faculty-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faculty-overview-button {
  margin: 24px 0 0;
}

/* =====================================
   Faculty Hierarchy Page
   ===================================== */

.faculty-section {
  min-height: 100vh;
}

.faculty-intro {
  max-width: 760px;
  margin: -4px 0 42px;
  color: var(--muted);
  font-size: 1rem;
}

.faculty-level {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.faculty-manager-level {
  margin-bottom: 18px;
}

.faculty-management-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 340px));
  justify-content: center;
  gap: 30px;
  margin-bottom: 18px;
}

.hierarchy-line {
  width: 2px;
  height: 48px;
  margin: 0 auto 20px;
  background: linear-gradient(
    180deg,
    var(--primary),
    rgba(237, 28, 36, 0.25)
  );
  border-radius: 50px;
}

.faculty-group-title {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 700;
  text-align: center;
}

.faculty-group-title::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  margin: 9px auto 0;
  background: var(--primary);
  border-radius: 50px;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
}

.faculty-profile {
  position: relative;
  padding: 26px 18px 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.faculty-profile:hover {
  transform: translateY(-7px);
  border-color: rgba(237, 28, 36, 0.34);
  box-shadow: var(--shadow-md);
}

.faculty-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 17px;
  padding: 5px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 9px 24px rgba(237, 28, 36, 0.19);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.faculty-profile:hover .faculty-image-frame {
  transform: scale(1.045);
  box-shadow: 0 14px 30px rgba(237, 28, 36, 0.25);
}

.faculty-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  background: #f3f3f3;
  border: 4px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.faculty-manager {
  width: min(390px, 100%);
  padding: 31px 24px 27px;
  border-top: 4px solid var(--primary);
}

.faculty-manager .faculty-image-frame {
  width: 210px;
  height: 210px;
}

.faculty-management {
  min-height: 100%;
  padding: 28px 20px 24px;
  border-top: 3px solid var(--primary);
}

.faculty-management .faculty-image-frame {
  width: 175px;
  height: 175px;
}

.faculty-teacher {
  min-height: 100%;
}

.faculty-teacher .faculty-image-frame {
  width: 145px;
  height: 145px;
}

.faculty-details h2,
.faculty-details h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

.faculty-details h2 {
  font-size: 22px;
}

.faculty-details h3 {
  font-size: 18px;
}

.faculty-position {
  display: inline-block;
  margin-bottom: 9px;
  padding: 5px 11px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(237, 28, 36, 0.13);
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 700;
}

.faculty-details p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* =====================================
   Result Announcement Popup
   Kept only in case you still use it
   ===================================== */

.popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(5px);
}

.popup.hidden {
  display: none;
}

.popup-content {
  position: relative;
  width: min(700px, 92vw);
  padding: 20px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.popup-close {
  position: absolute;
  top: 9px;
  right: 11px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.97);
  border: 0;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  animation: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.16);
}

.popup-close::before {
  display: none;
}

.popup-close:hover {
  color: #ffffff;
  background: var(--primary);
  transform: rotate(90deg);
  box-shadow: 0 7px 18px rgba(237, 28, 36, 0.24);
}

.popup-title {
  margin: 0 0 14px;
  padding: 0 42px;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.75),
    0 0 12px rgba(237, 28, 36, 0.65);
}

.popup-content.result-popup-content {
  width: min(470px, 93vw);
  padding: 13px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.popup-content.result-popup-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 15px 42px rgba(0, 0, 0, 0.48);
}

/* =====================================
   Footer
   ===================================== */

footer {
  margin-top: 40px;
  padding: 42px 20px 20px;
  color: #ffffff;
  background: #1b1b1d;
  border-top: 4px solid var(--primary);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand,
.footer-links,
.footer-contact {
  flex: 1 1 220px;
}

.footer-logo {
  width: 64px;
  margin-bottom: 10px;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.67);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 14px;
}

/* =====================================
   Responsive Navbar
   ===================================== */

@media (max-width: 960px) {
  .nav-links {
    gap: 7px;
  }

  .nav-links a {
    padding: 8px 7px;
    font-size: 14px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 65px;
    right: 16px;
    display: none;
    width: 235px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .principal {
    grid-template-columns: 1fr;
  }

  .bubble::before {
    top: -11px;
    left: 22px;
    border-right: 11px solid transparent;
    border-left: 11px solid transparent;
    border-bottom: 11px solid var(--primary-pale);
  }
}

/* =====================================
   Tablet
   ===================================== */

@media (max-width: 900px) {
  .faculty-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 800px) {
  .faculty-overview-grid {
    grid-template-columns: 1fr;
  }

  .faculty-preview-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 46px 0;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .entry-image {
    margin-top: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================
   Mobile
   ===================================== */

@media (max-width: 650px) {
  .faculty-intro {
    margin-bottom: 32px;
  }

  .faculty-management-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .faculty-manager .faculty-image-frame {
    width: 185px;
    height: 185px;
  }

  .faculty-management .faculty-image-frame {
    width: 160px;
    height: 160px;
  }

  .faculty-teacher .faculty-image-frame {
    width: 140px;
    height: 140px;
  }

  .hierarchy-line {
    height: 38px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }

  .brand img {
    height: 46px;
  }

  .brand-title {
    max-width: 190px;
    font-size: 15px;
    line-height: 1.2;
  }

  .hero {
    min-height: 55vh;
  }

  .hero h1 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .principal {
    padding: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .popup {
    padding: 11px;
  }

  .popup-content {
    width: 94vw;
    padding: 14px;
  }

  .popup-content.result-popup-content {
    width: 94vw;
  }

  .popup-content.result-popup-content img {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
  }

  .popup-title {
    padding: 0 35px;
    font-size: 1.25rem;
  }

  .popup-close {
    top: 6px;
    right: 7px;
  }
}

/* Respect users who disable motion */

@media (prefers-reduced-motion: reduce) {
  .btn,
  button,
  input[type="submit"],
  input[type="button"] {
    animation: none;
  }

  .btn::before,
  button::before,
  input[type="submit"]::before,
  input[type="button"]::before {
    animation: none;
  }

  .card,
  .tile,
  .card img,
  .tile img,
  .faculty-profile,
  .faculty-preview-card,
  .faculty-image-frame,
  .faculty-preview-image {
    transition: none;
  }
}