/* SOUL - Kochery School of Law - Custom styles (Tailwind CDN + brand) */

/* ========== Global scrollbars: transparent track everywhere (Firefox + WebKit) ========== */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.55) transparent; /* thumb | track */
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.5) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.42);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.55);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* ========== Global paragraph alignment: justify (all pages loading this file) ==========
   Tailwind utilities on the same <p> (e.g. p.text-center) override via higher specificity. */
p {
  text-align: justify;
  text-justify: inter-word;
}
.text-center p:not(.text-justify):not(.text-left):not(.text-right):not(.text-start):not(.text-end):not(.text-center),
.text-left p:not(.text-justify):not(.text-left):not(.text-right):not(.text-start):not(.text-end):not(.text-center),
.text-right p:not(.text-justify):not(.text-left):not(.text-right):not(.text-start):not(.text-end):not(.text-center),
.text-start p:not(.text-justify):not(.text-left):not(.text-right):not(.text-start):not(.text-end):not(.text-center),
.text-end p:not(.text-justify):not(.text-left):not(.text-right):not(.text-start):not(.text-end):not(.text-center) {
  text-align: inherit;
}

/* Fixed/sticky header offset: prevent anchor targets from hiding under header.
   Header is h-16 sm:h-20 md:h-24 → use 6rem (scroll-mt-24) so content isn’t covered. */
[id] {
  scroll-margin-top: 5rem;
}
@media (min-width: 640px) {
  [id] {
    scroll-margin-top: 5.5rem;
  }
}
@media (min-width: 768px) {
  [id] {
    scroll-margin-top: 6rem;
  }
}

:root {
  --brand-red: #22c55e;
  --brand-gold: #d4a017;
  --brand-navy: #1e3a5f;
}

/* Brand colors */
.text-brand-red { color: var(--brand-red); }
.hover\:text-brand-red:hover { color: var(--brand-red); }
.bg-brand-red { background-color: var(--brand-red); }
.hover\:bg-red-700:hover { background-color: #16a34a; }
.bg-brand-gold { background-color: var(--brand-gold); }
.text-brand-gold { color: var(--brand-gold); }
.bg-brand-navy { background-color: var(--brand-navy); }
.border-brand-gold { border-color: var(--brand-gold); }
.focus\:ring-brand-red:focus { --tw-ring-color: var(--brand-red); }
.focus\:ring-brand-gold:focus { --tw-ring-color: var(--brand-gold); }

/* Footer "Powered by" link – theme accent */
.footer-powered-by-link {
  color: var(--brand-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 0.35em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.footer-powered-by-link:hover {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
}

/* Opacity variants */
.bg-brand-navy\/50 { background-color: rgba(30, 58, 95, 0.5); }
.bg-brand-navy\/80 { background-color: rgba(30, 58, 95, 0.8); }
.bg-brand-red\/10 { background-color: rgba(196, 30, 58, 0.1); }
.bg-brand-red\/20 { background-color: rgba(196, 30, 58, 0.2); }
.bg-brand-gold\/10 { background-color: rgba(212, 160, 23, 0.1); }
.bg-brand-gold\/20 { background-color: rgba(212, 160, 23, 0.2); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.shadow-brand-red\/50 { box-shadow: 0 0 0 1px rgba(196, 30, 58, 0.5); }

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #228b22;
  color: white;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  transform: scale(1);
}
.btn-primary:hover {
  background-color: #1b5e20;
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(34, 139, 34, 0.35);
  transform: scale(1.05);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--brand-gold);
  color: white;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s;
  transform: scale(1);
}
.btn-secondary:hover {
  background-color: #b8860b;
  transform: scale(1.05);
}

/* Headings and subheadings – site-wide */
h1, h2, h3, h4, h5, h6,
.section-title,
.royal-section-title,
.main-heading,
.sub-heading,
.subtitle,
.section-subtitle,
.hero-subtitle {
  font-family: 'Playfair Display', serif !important;
  text-transform: uppercase;
}

/* Section title */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-navy);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* Vision & Mission: slide in from left / right on scroll (triggered by .run via Intersection Observer) */
@keyframes visionSlideInLeft {
  from { opacity: 0; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes visionSlideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.vision-slide-left {
  opacity: 0;
  transform: translateX(-100%);
}
.vision-slide-left.run {
  animation: visionSlideInLeft 1.2s ease-out forwards;
}
.vision-slide-right {
  opacity: 0;
  transform: translateX(100%);
}
.vision-slide-right.run {
  animation: visionSlideInRight 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

/* Hover lift */
.hover-lift { transition: transform 0.3s; }
.hover-lift:hover { transform: translateY(-0.5rem); }

/* White section (about) – subtle background illusion objects (amber, green on white) */
.white-section-illusion {
  z-index: 0;
}
.white-section-illusion-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.white-section-illusion-orb--1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.12) 0%, rgba(212, 160, 23, 0.04) 50%, transparent 70%);
  top: 5%;
  right: 8%;
  opacity: 0.9;
}
.white-section-illusion-orb--2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 50%, transparent 70%);
  bottom: 15%;
  left: 5%;
  opacity: 0.85;
}
.white-section-illusion-line {
  position: absolute;
  height: 2px;
  width: 45%;
  pointer-events: none;
}
.white-section-illusion-line--1 {
  top: 40%;
  left: 0;
  transform: rotate(-8deg);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 160, 23, 0.06) 40%, rgba(34, 197, 94, 0.04) 70%, transparent 100%);
}
@media (max-width: 1023px) {
  .white-section-illusion-orb--1,
  .white-section-illusion-orb--2 {
    opacity: 0.6;
  }
  .white-section-illusion-line--1 {
    opacity: 0.7;
  }
}

/* Discover SOUL section – illusion objects in vacant space (theme: gold, green, white on black) */
.discover-illusion {
  z-index: 0;
}
.discover-illusion-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
/* Brand gold (#d4a017) – warm accent */
.discover-illusion-orb--1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.35) 0%, rgba(212, 160, 23, 0.08) 45%, transparent 70%);
  top: 10%;
  right: 5%;
  opacity: 0.9;
}
/* Brand green (#22c55e) – primary accent */
.discover-illusion-orb--2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 50%, transparent 70%);
  bottom: 28%;
  right: 10%;
  opacity: 0.85;
}
/* Gold + white blend – ties to theme */
.discover-illusion-orb--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
  bottom: 8%;
  right: 22%;
  opacity: 0.9;
}
/* Right bottom vacant space – green + gold blend (inside content area) */
.discover-illusion-orb--4 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28) 0%, rgba(212, 160, 23, 0.12) 45%, transparent 70%);
  bottom: 8%;
  right: 22%;
  opacity: 0.95;
}
.discover-illusion-line {
  position: absolute;
  height: 1px;
  width: 40%;
  pointer-events: none;
}
/* White–gold gradient line */
.discover-illusion-line--1 {
  top: 35%;
  right: 0;
  transform: rotate(-15deg);
  transform-origin: right center;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 30%, rgba(212, 160, 23, 0.12) 60%, transparent 100%);
}
/* Gold accent line */
.discover-illusion-line--2 {
  bottom: 20%;
  right: 0;
  width: 35%;
  transform: rotate(10deg);
  transform-origin: right center;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 160, 23, 0.08) 40%, rgba(34, 197, 94, 0.06) 70%, transparent 100%);
}
/* Right bottom vacant space – diagonal accent */
.discover-illusion-line--3 {
  bottom: 12%;
  right: 24%;
  width: 28%;
  height: 4px;
  transform: rotate(25deg);
  transform-origin: right bottom;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 197, 94, 0.18) 35%, rgba(212, 160, 23, 0.22) 65%, transparent 100%);
}
/* Career growth illusion – upward rise (bottom-right vacant space) */
.discover-illusion-rise {
  position: absolute;
  bottom: 0;
  right: 15%;
  width: 22%;
  max-width: 180px;
  height: 50%;
  max-height: 280px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    transparent 0%,
    rgba(212, 160, 23, 0.08) 25%,
    rgba(34, 197, 94, 0.14) 55%,
    rgba(212, 160, 23, 0.06) 80%,
    transparent 100%
  );
  filter: blur(28px);
  transform-origin: right bottom;
  transform: skewX(-8deg);
  opacity: 0.92;
}
@media (max-width: 1023px) {
  .discover-illusion-orb--1,
  .discover-illusion-orb--2,
  .discover-illusion-orb--3,
  .discover-illusion-orb--4 {
    opacity: 0.5;
  }
  .discover-illusion-line--1,
  .discover-illusion-line--2,
  .discover-illusion-line--3 {
    opacity: 0.6;
  }
  .discover-illusion-rise {
    opacity: 0.6;
    width: 20%;
    height: 45%;
  }
}

/* Discover section – animated loader in right bottom (Excellence) */
.discover-bottom-right-cell .loader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: auto;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  user-select: none;
  color: #fff;
  transform: scale(1.25);
}
.discover-bottom-right-cell .loader {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  background-color: transparent;
  mask: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 6px,
    black 7px,
    black 8px
  );
  -webkit-mask: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 6px,
    black 7px,
    black 8px
  );
}
.discover-bottom-right-cell .loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, #ff0 0%, transparent 50%),
    radial-gradient(circle at 45% 45%, #f00 0%, transparent 45%),
    radial-gradient(circle at 55% 55%, #0ff 0%, transparent 45%),
    radial-gradient(circle at 45% 55%, #0f0 0%, transparent 45%),
    radial-gradient(circle at 55% 45%, #00f 0%, transparent 45%);
  mask: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    transparent 10%,
    black 25%
  );
  -webkit-mask: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    transparent 10%,
    black 25%
  );
  animation:
    loader-transform-anim 2s infinite alternate,
    loader-opacity-anim 4s infinite;
  animation-timing-function: cubic-bezier(0.6, 0.8, 0.5, 1);
}
@keyframes loader-transform-anim {
  0% {
    transform: translate(-55%);
  }
  100% {
    transform: translate(55%);
  }
}
@keyframes loader-opacity-anim {
  0%,
  100% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
}
.discover-bottom-right-cell .loader-letter {
  display: inline-block;
  opacity: 0;
  animation: loader-letter-anim 4s infinite linear;
  z-index: 2;
}
.discover-bottom-right-cell .loader-letter:nth-child(1) { animation-delay: 0.1s; }
.discover-bottom-right-cell .loader-letter:nth-child(2) { animation-delay: 0.205s; }
.discover-bottom-right-cell .loader-letter:nth-child(3) { animation-delay: 0.31s; }
.discover-bottom-right-cell .loader-letter:nth-child(4) { animation-delay: 0.415s; }
.discover-bottom-right-cell .loader-letter:nth-child(5) { animation-delay: 0.521s; }
.discover-bottom-right-cell .loader-letter:nth-child(6) { animation-delay: 0.626s; }
.discover-bottom-right-cell .loader-letter:nth-child(7) { animation-delay: 0.731s; }
.discover-bottom-right-cell .loader-letter:nth-child(8) { animation-delay: 0.837s; }
.discover-bottom-right-cell .loader-letter:nth-child(9) { animation-delay: 0.942s; }
.discover-bottom-right-cell .loader-letter:nth-child(10) { animation-delay: 1.047s; }
@keyframes loader-letter-anim {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
    text-shadow: 0 0 4px #fff;
    transform: scale(1.1) translateY(-2px);
  }
  20% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}

/* Loader on light backgrounds (e.g. white band) */
.discover-bottom-right-cell--light .loader-wrapper {
  color: #111827; /* gray-900 */
}
.discover-bottom-right-cell--light .loader-letter {
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.35) !important;
}

/* Uiverse-style "fly" button (scoped) */
.uiverse-fly-btn {
  font-family: inherit;
  font-size: 14px;
  background: #228b22;
  color: #ffffff;
  padding: 0.7em 1em;
  padding-left: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.uiverse-fly-btn span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}
.uiverse-fly-btn svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}
.uiverse-fly-btn:hover .svg-wrapper {
  animation: uiverse-fly-1 0.6s ease-in-out infinite alternate;
}
.uiverse-fly-btn:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}
.uiverse-fly-btn:hover span:last-child {
  transform: translateX(5em);
}
.uiverse-fly-btn:hover {
  background: #1b5e20;
  color: #ffffff;
}
.uiverse-fly-btn:active {
  transform: scale(0.95);
}
@keyframes uiverse-fly-1 {
  from {
    transform: translateY(0.1em);
  }
  to {
    transform: translateY(-0.1em);
  }
}

/* Animated arrow button (Advisory section) */
.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #22c55e;
  box-shadow: 0 0 0 2px #22c55e;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  line-height: 1;
}

.animated-button svg {
  position: absolute;
  width: 24px;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  fill: currentColor;
  color: #22c55e;
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #22c55e;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  color: #212121;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #22c55e;
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

/* Discover SOUL section cards – content-based height, responsive grid */
.discover-cards-grid {
  grid-auto-rows: min-content;
}
@media (min-width: 1024px) {
  .discover-cards-grid {
    align-items: start;
  }
}
.discover-card {
  transition: border-color 0.25s ease, background-color 0.25s ease;
  min-height: 0;
}
.discover-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Particle animation */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(212, 160, 23, 0.6);
  border-radius: 50%;
  animation: float 20s infinite;
}
.particle-1 { top: 20%; left: 20%; animation-delay: 0s; }
.particle-2 { top: 40%; left: 80%; animation-delay: 4s; }
.particle-3 { top: 60%; left: 40%; animation-delay: 8s; }
.particle-4 { top: 80%; left: 60%; animation-delay: 12s; }
.particle-5 { top: 30%; left: 70%; animation-delay: 16s; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { transform: translateY(-100px) translateX(50px); }
}

/* Background pattern */
.background-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Anchor offset for fixed header */
#praxis {
  scroll-margin-top: 6rem;
}

/* Line clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile menu — animated slide + fade, always show when .open on small viewports */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              visibility 0.3s ease;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .mobile-menu { max-height: 0 !important; opacity: 0 !important; visibility: hidden !important; display: none !important; pointer-events: none !important; }
}
.mobile-menu.open {
  max-height: 90vh;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overflow-y: auto;
}

/* Staggered link animations — direct child links and accordion toggles */
.mobile-menu .mobile-nav-item,
.mobile-menu .mobile-accordion-toggle {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open .mobile-nav-item,
.mobile-menu.open .mobile-accordion-toggle {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu.open .mobile-nav-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-nav-item:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-nav-item:nth-child(3) { transition-delay: 0.11s; }
.mobile-menu.open .mobile-nav-item:nth-child(4) { transition-delay: 0.14s; }
.mobile-menu.open .mobile-nav-item:nth-child(5) { transition-delay: 0.17s; }
.mobile-menu.open .mobile-nav-item:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-item:nth-child(7) { transition-delay: 0.23s; }
.mobile-menu.open .mobile-nav-item:nth-child(8) { transition-delay: 0.26s; }
.mobile-menu.open .mobile-nav-item:nth-child(9) { transition-delay: 0.29s; }
.mobile-menu.open .mobile-nav-item:nth-child(10) { transition-delay: 0.32s; }
.mobile-menu.open .mobile-nav-item:nth-child(11) { transition-delay: 0.35s; }
.mobile-menu.open .mobile-nav-item:nth-child(12) { transition-delay: 0.38s; }
.mobile-menu.open .mobile-nav-item:nth-child(13) { transition-delay: 0.41s; }
.mobile-menu.open .mobile-nav-item:nth-child(14) { transition-delay: 0.44s; }
.mobile-menu.open .mobile-nav-item:nth-child(15) { transition-delay: 0.47s; }

/* Reset delays when closing */
.mobile-menu:not(.open) .mobile-nav-item,
.mobile-menu:not(.open) .mobile-accordion-toggle {
  transition-delay: 0s;
}

/* Mobile accordion: only collapse when closed — if .open shared max-height:0, long Courses/Praxis lists stay clipped */
.mobile-accordion-panel {
  transition: max-height 0.35s ease;
}
.mobile-accordion-panel:not(.open) {
  max-height: 0;
  overflow: hidden;
}
.mobile-accordion-panel.open {
  max-height: none;
  overflow: visible;
}
.mobile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
}
.mobile-accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}
.mobile-accordion-toggle .caret {
  transition: transform 0.25s ease;
}
.mobile-accordion-toggle[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}
.mobile-accordion-panel a {
  display: block;
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  border-radius: 0.375rem;
}
.mobile-accordion-panel a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.mobile-menu-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(156, 163, 175, 0.9);
  margin: 0.75rem 0.75rem 0.25rem 1.5rem;
  padding-top: 0.25rem;
}
.mobile-accordion-panel .mobile-menu-group-label:first-of-type {
  margin-top: 0.35rem;
}

/* ========== Header: TCS-style nav + two-column dropdown modals ========== */
.header-nav-link {
  position: relative;
  /* Let Tailwind control sizing/padding (responsive) */
  padding: 0;
  font-size: inherit;
  color: rgba(209, 213, 219, 1);
  font-weight: 500;
  transition: color 0.2s;
  
 
}
.header-nav-link:hover,
.nav-dropdown-trigger:hover .header-nav-link {
  color: #fff;
}
.nav-dropdown-trigger {
  position: relative;
}
.nav-dropdown-trigger .nav-dropdown-caret {
  transition: transform 0.2s;
}
.nav-dropdown-trigger:hover .nav-dropdown-caret,
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret,
.nav-dropdown-trigger.nav-dropdown-open .nav-dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown-trigger .header-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-dropdown-trigger:hover .header-nav-link::after,
.nav-dropdown-trigger[aria-expanded="true"] .header-nav-link::after,
.nav-dropdown-trigger.nav-dropdown-open .header-nav-link::after {
  transform: scaleX(1);
}
/* Full-width dropdown panel: fixed below header; tall enough for Courses (two columns of links), scroll if needed */
.nav-dropdown-modal {
  position: fixed;
  left: 0;
  right: 0;
  width: 100vw;
  top: 6.75rem; /* below header + ticker (base: 4rem header + 2.75rem ticker) */
  height: auto;
  max-height: min(78vh, 820px);
  min-height: 200px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 40;
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: none;
}
@media (min-width: 640px) {
  .nav-dropdown-modal {
    top: 7.75rem; /* sm: 5rem header + 2.75rem ticker */
  }
}
@media (min-width: 768px) {
  .nav-dropdown-modal {
    top: 8.75rem; /* md+: 6rem header + 2.75rem ticker */
  }
}
.nav-dropdown-trigger.nav-dropdown-open .nav-dropdown-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown-modal-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .nav-dropdown-modal-inner {
    padding: 1.25rem 2rem;
    gap: 3rem;
  }
}
.nav-dropdown-promo {
  padding-right: 0.75rem;
  align-self: center;
}
.nav-dropdown-promo h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .nav-dropdown-promo h3 {
    font-size: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .nav-dropdown-promo h3 {
    font-size: 1.35rem;
  }
}
.nav-dropdown-promo p {
  font-size: 0.8125rem;
  color: rgba(156, 163, 175, 1);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .nav-dropdown-promo p {
    font-size: 0.875rem;
  }
}
.nav-dropdown-promo a.cta-link {
  font-size: 0.8125rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
@media (min-width: 768px) {
  .nav-dropdown-promo a.cta-link {
    font-size: 0.875rem;
  }
}
.nav-dropdown-promo a.cta-link:hover {
  color: #f87171;
}
.nav-dropdown-courses-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}
.nav-dropdown-courses-columns .nav-dropdown-list {
  flex: 1;
  min-width: 180px;
  max-width: 100%;
}
.nav-dropdown-list-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(156, 163, 175, 0.95);
  margin: 0 0 0.35rem 0;
  padding: 0.25rem 0.75rem 0.35rem 0.75rem;
}
.nav-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-dropdown-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.8125rem;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-dropdown-list a:hover {
  background: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.15);
}
@media (min-width: 768px) {
  .nav-dropdown-list a {
    font-size: 0.875rem;
    padding: 0.6rem 0.875rem;
  }
}
.nav-dropdown-list a .arrow {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.7;
}
.nav-dropdown-list a:hover .arrow {
  opacity: 1;
}

/* Prose / focus ring overrides for forms */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-red);
}

/* ========== Landing: Royal Black & White + Ticker + Programs scroll ========== */

/* Ticker strip: royal horizontal auto-scroll — fixed directly under header; top matches header height so it never goes under */
.ticker-wrap {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  height: 2.75rem;
  overflow: hidden;
  z-index: 40;
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  border-bottom: 1px solid rgba(212,160,23,0.2);
  /* Match header height: h-16 → 4rem, sm:h-20 → 5rem, md:h-24 → 6rem */
  top: 4rem;
}
@media (min-width: 640px) {
  .ticker-wrap { top: 5rem; }
}
@media (min-width: 768px) {
  .ticker-wrap { top: 6rem; }
}
.ticker {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: ticker-h 28s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  flex-shrink: 0;
}
.ticker span {
  flex-shrink: 0;
  padding: 0 1.5rem;
  white-space: nowrap;
}
/* Three copies: scroll by one-third for seamless continuous loop (no visible jump) */
@keyframes ticker-h {
  0% { transform: translateZ(0) translateX(0); }
  100% { transform: translateZ(0) translateX(-33.333%); }
}

/* Programs: horizontal auto-scroll cards — min 4 visible, continuous, opposite (right) direction */
.programs-cards-scroll-wrap {
  overflow: hidden;
  padding: 0.5rem 0;
  margin: 0 -1rem;
  width: 100%;
}
.programs-cards-scroll {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: programs-cards-scroll 32s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
/* Same keyframes, opposite direction (rightward marquee vs default). */
.programs-cards-scroll--reverse {
  animation-direction: reverse;
}
.programs-cards-scroll-wrap:hover .programs-cards-scroll {
  animation-play-state: paused;
}
.programs-card-item {
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 280px;
}
/* Index #courses + admissions integrated carousel: 60% navy / 40% white. Scoped so Tailwind `block` + other pages’ carousels are unaffected. */
#courses .programs-cards-scroll .programs-card-item,
.integrated-programmes-carousel .programs-cards-scroll .programs-card-item {
  box-sizing: border-box;
  display: grid !important;
  grid-template-rows: 60fr 40fr;
  height: 24rem;
  overflow: hidden;
}
#courses .programs-cards-scroll .programs-card-visual,
.integrated-programmes-carousel .programs-cards-scroll .programs-card-visual {
  min-height: 0;
  overflow: hidden;
}
#courses .programs-cards-scroll .programs-card-body,
.integrated-programmes-carousel .programs-cards-scroll .programs-card-body {
  min-height: 0;
  overflow-y: auto;
  background: #fff !important;
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #374151;
}
#courses .programs-cards-scroll .programs-card-body h3,
.integrated-programmes-carousel .programs-cards-scroll .programs-card-body h3 {
  color: #000 !important;
}
#courses .programs-cards-scroll .programs-card-body p,
.integrated-programmes-carousel .programs-cards-scroll .programs-card-body p {
  color: #4b5563 !important;
}

/* Integrated honours programme thumbnails — navy panel, gold icon, serif/sans type */
.program-thumb-professional {
  background: #1a365d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.program-thumb-professional__icon {
  width: 3rem;
  height: 3rem;
  color: #c9a962;
  flex-shrink: 0;
}
#courses .programs-cards-scroll .program-thumb-professional__icon,
.integrated-programmes-carousel .programs-cards-scroll .program-thumb-professional__icon {
  width: 5.5rem;
  height: 5.5rem;
}
.program-thumb-professional__abbr {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.program-thumb-professional__full {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  margin: 0;
  max-width: 12rem;
}
.program-thumb-professional--hero {
  padding: 1.75rem 1.25rem;
  gap: 0.75rem;
}
.program-thumb-professional--hero .program-thumb-professional__icon {
  width: 4rem;
  height: 4rem;
}
.program-thumb-professional--hero .program-thumb-professional__abbr {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
.program-thumb-professional--hero .program-thumb-professional__full {
  font-size: 0.8125rem;
  max-width: 16rem;
}

/* Start at full width (0), scroll left by one-third; 3 copies for seamless continuous loop */
@keyframes programs-cards-scroll {
  0% { transform: translateZ(0) translateX(0); }
  100% { transform: translateZ(0) translateX(-33.333%); }
}

/* Programs: horizontal auto-scroll (infinite, seamless — no break) */
.programs-h-scroll {
  display: flex;
  width: max-content;
  animation: programs-h 50s linear infinite;
  will-change: transform;
}
.programs-h-scroll:hover {
  animation-play-state: paused;
}
/* Three copies of content: scroll by one-third for seamless loop */
@keyframes programs-h {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* Programs: horizontal strip scrolling opposite direction (right), big font — seamless */
.programs-h-scroll-opposite {
  display: flex;
  width: max-content;
  align-items: center;
  animation: programs-h-reverse 45s linear infinite;
  will-change: transform;
}
.programs-h-scroll-opposite:hover {
  animation-play-state: paused;
}
@keyframes programs-h-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Royal B&W: hero video grayscale */
.theme-royal-bw .hero-video {
  filter: grayscale(100%) contrast(1.05) brightness(0.9);
}
.theme-royal-bw .hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%);
}

/* ========== Why Choose: timeline pathway (green line, alternating left/right cards, animated) ========== */
.why-choose-timeline-list {
  padding-bottom: 2rem;
}
.why-choose-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(180deg, #15803d 0%, #166534 50%, #14532d 100%);
  border-radius: 2px;
  z-index: 0;
  transform-origin: top;
  animation: why-choose-line-grow 1.2s ease-out forwards;
}
@keyframes why-choose-line-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.why-choose-timeline-item {
  position: relative;
  min-height: 140px;
  margin-bottom: 2rem;
  z-index: 1;
}
.why-choose-timeline-item:last-child { margin-bottom: 0; }
.why-choose-timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  background: #15803d;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #15803d;
  z-index: 2;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s;
}
.why-choose-timeline-item.in-view .why-choose-timeline-dot {
  opacity: 1;
  transform: scale(1);
}
.why-choose-timeline-item:nth-child(1).in-view .why-choose-timeline-dot,
.why-choose-timeline-item:nth-child(1).in-view .why-choose-timeline-card { transition-delay: 0s; }
.why-choose-timeline-item:nth-child(2).in-view .why-choose-timeline-dot,
.why-choose-timeline-item:nth-child(2).in-view .why-choose-timeline-card { transition-delay: 0.1s; }
.why-choose-timeline-item:nth-child(3).in-view .why-choose-timeline-dot,
.why-choose-timeline-item:nth-child(3).in-view .why-choose-timeline-card { transition-delay: 0.2s; }
.why-choose-timeline-item:nth-child(4).in-view .why-choose-timeline-dot,
.why-choose-timeline-item:nth-child(4).in-view .why-choose-timeline-card { transition-delay: 0.3s; }
.why-choose-timeline-item:nth-child(5).in-view .why-choose-timeline-dot,
.why-choose-timeline-item:nth-child(5).in-view .why-choose-timeline-card { transition-delay: 0.4s; }
.why-choose-timeline-item:hover .why-choose-timeline-dot {
  background: #166534;
  transform: scale(1.15);
}
.why-choose-timeline-card {
  width: calc(50% - 2rem);
  max-width: 380px;
  padding: 1.5rem;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0.25rem;
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease;
  opacity: 0;
}
.why-choose-card-inner {
  position: relative;
}
.why-choose-animated-image {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(220,38,38,0.12), rgba(15,118,110,0.08), rgba(30,64,175,0.12));
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  overflow: hidden;
}
.why-choose-animated-bar {
  height: 0.55rem;
  width: 26%;
  max-width: 90px;
  border-radius: 9999px;
  background: rgba(248,113,113,0.9);
  animation: why-choose-pulse 2.4s ease-in-out infinite;
}
.why-choose-animated-bar--short {
  width: 18%;
  margin-left: 0.5rem;
  background: rgba(251,191,36,0.9);
  animation-delay: 0.3s;
}
.why-choose-animated-bar--tall {
  width: 22%;
  margin-left: 0.5rem;
  height: 0.8rem;
  background: rgba(56,189,248,0.9);
  animation-delay: 0.6s;
}
.why-choose-animated-syllabus {
  flex: 1;
  height: 2.4rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(31,41,55,0.25);
  background: rgba(254,243,199,0.7);
  position: relative;
  overflow: hidden;
}
.why-choose-animated-syllabus::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: why-choose-shine 3s linear infinite;
}
.why-choose-animated-syllabus--offset {
  max-width: 40%;
  margin-left: 0.6rem;
  opacity: 0.9;
}
.why-choose-animated-badge {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  border: 2px solid rgba(59,130,246,0.7);
  background: rgba(191,219,254,0.5);
  box-shadow: 0 0 0 4px rgba(191,219,254,0.4);
  animation: why-choose-float 3s ease-in-out infinite;
}
.why-choose-animated-badge--small {
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.65rem;
  border-width: 1px;
  animation-duration: 2.6s;
  animation-delay: 0.4s;
}
.why-choose-animated-connection {
  flex: 1;
  height: 0.32rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(16,185,129,0.85), rgba(59,130,246,0.85));
  position: relative;
  overflow: hidden;
}
.why-choose-animated-connection::before {
  content: '';
  position: absolute;
  top: -0.4rem;
  left: -10%;
  width: 18%;
  height: 1.1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.8);
  filter: blur(4px);
  animation: why-choose-sweep 2.2s linear infinite;
}
.why-choose-animated-connection--second {
  max-width: 55%;
  margin-left: 0.6rem;
  opacity: 0.85;
}
.why-choose-animated-globe {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at 30% 30%, rgba(248,250,252,0.95), rgba(148,163,184,0.9));
  position: relative;
}
.why-choose-animated-globe::before,
.why-choose-animated-globe::after {
  content: '';
  position: absolute;
  inset: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(15,23,42,0.25);
}
.why-choose-animated-globe::after {
  inset: 0.2rem 0.55rem;
}
.why-choose-animated-globe-dot {
  position: absolute;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #ef4444;
}
.why-choose-animated-globe-dot--one {
  top: 0.5rem;
  left: 1.3rem;
  animation: why-choose-float 2.2s ease-in-out infinite;
}
.why-choose-animated-globe-dot--two {
  bottom: 0.4rem;
  right: 0.6rem;
  animation: why-choose-float 2.4s ease-in-out infinite 0.2s;
}
.why-choose-orbit-icon {
  position: absolute;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15,23,42,0.22);
  animation: why-choose-orbit 5.5s ease-in-out infinite;
}
.why-choose-orbit-icon--top-right {
  top: -0.4rem;
  right: -0.4rem;
}
.why-choose-orbit-icon--bottom-left {
  bottom: -0.4rem;
  left: -0.4rem;
}
.why-choose-orbit-icon--top-left {
  top: -0.4rem;
  left: -0.4rem;
}
.why-choose-orbit-icon--bottom-right {
  bottom: -0.4rem;
  right: -0.4rem;
}

@keyframes why-choose-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.9; }
  50% { transform: scaleX(1.08); opacity: 1; }
}
@keyframes why-choose-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(120%); }
}
@keyframes why-choose-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes why-choose-sweep {
  0% { transform: translateX(-30%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(150%); opacity: 0; }
}
@keyframes why-choose-orbit {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.why-choose-timeline-item--left .why-choose-timeline-card {
  margin-right: auto;
  margin-left: 0;
  transform: translateX(-24px);
}
.why-choose-timeline-item--right .why-choose-timeline-card {
  margin-left: auto;
  margin-right: 0;
  transform: translateX(24px);
}
.why-choose-timeline-item.in-view .why-choose-timeline-card {
  opacity: 1;
  transform: translateX(0);
}
.why-choose-timeline-item--right.in-view .why-choose-timeline-card {
  transform: translateX(0);
}
.why-choose-timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.why-choose-timeline-item--left .why-choose-timeline-card:hover {
  transform: translateY(-4px);
}
.why-choose-timeline-item--right .why-choose-timeline-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 767px) {
  .why-choose-timeline-line {
    left: 1.25rem;
    margin-left: 0;
    width: 3px;
  }
  .why-choose-timeline-dot {
    left: 1.25rem;
    margin-left: 0;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    top: 1.75rem;
  }
  .why-choose-timeline-card {
    width: calc(100% - 3rem);
    max-width: none;
    margin-left: 2.5rem !important;
    margin-right: 0 !important;
    transform: translateX(-16px);
  }
  .why-choose-orbit-icon {
    opacity: 0.5;
    transform: scale(0.85);
  }
  .why-choose-animated-image {
    height: 2.6rem;
  }
  .why-choose-timeline-item.in-view .why-choose-timeline-card {
    transform: translateX(0);
  }
  .why-choose-timeline-item--right .why-choose-timeline-card {
    margin-left: 2.5rem !important;
  }
  .why-choose-timeline-item { min-height: 120px; margin-bottom: 1.5rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .why-choose-timeline-card { width: calc(50% - 1.5rem); max-width: 320px; }
}

/* ========== SOUL section: scroll progress bar + timeline (red/green) ========== */
.soul-scroll-progress {
  left: 0;
  right: 0;
  width: 100%;
}
/* Fixed at bottom of header; visible only when SOUL section is in view (JS toggles .soul-progress-hidden) */
.soul-scroll-progress.soul-scroll-progress-fixed {
  position: fixed;
  top: 4rem; /* h-16 */
  transition: opacity 0.2s ease;
}
@media (min-width: 640px) {
  .soul-scroll-progress.soul-scroll-progress-fixed { top: 5rem; } /* sm: h-20 */
}
@media (min-width: 768px) {
  .soul-scroll-progress.soul-scroll-progress-fixed { top: 6rem; } /* md: h-24 */
}
.soul-scroll-progress.soul-progress-hidden {
  opacity: 0;
  pointer-events: none;
}
.soul-scroll-progress-track {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #059669; /* green track */
}
.soul-scroll-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  min-width: 0;
  z-index: 1;
  background-color: #dc2626; /* red line filling over green */
}
.soul-timeline-node {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s, opacity 0.2s;
}
.soul-timeline-node .node-dot {
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.soul-timeline-node:hover .node-dot {
  transform: scale(1.2);
}
/* Passed (scrolled past): green */
.soul-timeline-node.passed .node-dot {
  background-color: #059669;
  border-color: #10b981;
}
.soul-timeline-node.passed .text-gray-500 {
  color: #10b981;
}
/* Active (current in view): red */
.soul-timeline-node.active .node-dot {
  background-color: #dc2626;
  border-color: #ef4444;
}
.soul-timeline-node.active .text-gray-500 {
  color: #f87171;
}
/* Connector line: fill with green up to active, then red for current segment (optional) */
.soul-timeline-connector.connector-passed {
  background-color: #059669;
}
.soul-timeline-connector.connector-active {
  background: linear-gradient(to right, #059669, #dc2626);
}
.soul-block {
  scroll-margin-top: 12rem;
}

/* Articles: 2 cards per row, 45% width and height; slide in from left/right on scroll */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 45%);
  justify-content: center;
  gap: 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
/* Homepage #articles only: scroll-reveal (articles.html uses .article-card without #articles parent) */
#articles .article-card {
  opacity: 0;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
}
/* Left column: enter from left */
#articles .article-card:nth-child(odd) {
  transform: translateX(-80px);
}
#articles .article-card:nth-child(odd).article-card-visible {
  transform: translateX(0);
}
/* Right column: enter from right */
#articles .article-card:nth-child(even) {
  transform: translateX(80px);
}
#articles .article-card:nth-child(even).article-card-visible {
  transform: translateX(0);
}
#articles .article-card.article-card-visible {
  opacity: 1;
}
#articles .article-card:nth-child(1) { transition-delay: 0s; }
#articles .article-card:nth-child(2) { transition-delay: 0.08s; }
#articles .article-card:nth-child(3) { transition-delay: 0.16s; }
#articles .article-card:nth-child(4) { transition-delay: 0.24s; }
#articles .article-card > div:first-child {
  min-height: 18vh;
  flex: 0 0 auto;
}

/* ========== Royal theme: rich section styling ========== */
.royal-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.royal-section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), var(--brand-red), transparent);
}
.royal-section-title.light {
  color: #111;
}
.royal-section-title.light::after {
  background: linear-gradient(90deg, transparent, var(--brand-gold), var(--brand-red), transparent);
}
.royal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,23,0.4), rgba(196,30,58,0.4), transparent);
  margin: 2rem 0;
}
.royal-card {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.royal-card:hover {
  border-color: rgba(212,160,23,0.5);
  background: rgba(212,160,23,0.06);
  transform: translateY(-4px);
}

/* Scroll-down indicator (hero) */
.scroll-down-wrap {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-down-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.scroll-down-link:hover {
  color: var(--brand-gold);
}
.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: typewriter-blink 1s step-end infinite;
  color: rgba(255,255,255,0.8);
}
@keyframes typewriter-blink {
  50% { opacity: 0; }
}

.scroll-down-chevron {
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scroll-down-bounce 2s ease-in-out infinite;
}
.scroll-down-chevron svg {
  width: 14px;
  height: 14px;
}
@keyframes scroll-down-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.7; }
}

/* ========== Carousel (royal) ========== */
.royal-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
}
/* Why SOUL fullscreen: section = one viewport height/width, carousel fills remaining space */
.why-soul-fullscreen .royal-carousel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.why-soul-fullscreen .royal-carousel-track {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.why-soul-fullscreen .royal-carousel-70 .royal-carousel-slide {
  display: flex;
  align-items: stretch;
  height: auto;
}
.why-soul-fullscreen .royal-carousel-70 .royal-carousel-card {
  flex: 1;
  min-height: 0;
}
.why-soul-fullscreen .royal-carousel-70 .royal-carousel-card-image {
  min-height: 0;
}
.royal-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.royal-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 3rem 2rem;
  box-sizing: border-box;
}
/* Why SOUL: each card 70% width, image left + content right */
.royal-carousel-70 .royal-carousel-track {
  gap: 0;
}
.royal-carousel-70 .royal-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}
.royal-carousel-70 .royal-carousel-card-image img {
  display: block;
}
.royal-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.royal-carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.royal-carousel-dots button:hover,
.royal-carousel-dots button.active {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}
.royal-carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  z-index: 5;
}
.royal-carousel-arrows:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}
.royal-carousel-arrows.prev { left: 1rem; }
.royal-carousel-arrows.next { right: 1rem; }

/* ========== Explore strip: horizontal auto-scroll (all pages) ========== */
.explore-strip-wrap {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}
.explore-strip {
  display: flex;
  width: max-content;
  animation: explore-strip-scroll 28s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.explore-strip:hover {
  animation-play-state: paused;
}
.explore-strip a {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border: none;
  border-radius: 0.25rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s, background 0.3s, box-shadow 0.3s;
}
.explore-strip a:hover {
  color: var(--brand-gold);
  background: rgba(212,160,23,0.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.explore-strip a svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
/* Three copies: scroll by one-third for seamless continuous loop (opposite direction) */
@keyframes explore-strip-scroll {
  0% { transform: translateZ(0) translateX(-33.333%); }
  100% { transform: translateZ(0) translateX(0); }
}

/* Programs / Upcoming events page – event cards (TCS-style grid) */
.event-card-image {
  min-height: 12rem;
}
.event-detail-section {
  display: block;
}
.event-detail-section.hidden {
  display: none;
}

/* Courses page: category filter buttons */
.course-category-btn {
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.course-category-btn.active {
  background-color: rgba(196, 30, 58, 0.9);
  color: white;
  border-color: var(--brand-red);
}

/* Courses page: card slide-in on scroll (run on both scroll down and up when card enters view) */
@keyframes courseSlideInLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes courseSlideInRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}
.course-card-content-slide-left,
.course-card-image-slide-right,
.course-card-content-slide-right,
.course-card-image-slide-left {
  opacity: 0;
}
.course-card-content-slide-left.run {
  animation: courseSlideInLeft 0.8s ease-out forwards;
}
.course-card-image-slide-right.run {
  animation: courseSlideInRight 0.8s ease-out forwards;
  animation-delay: 0.15s;
}
.course-card-content-slide-right.run {
  animation: courseSlideInRight 0.8s ease-out forwards;
}
.course-card-image-slide-left.run {
  animation: courseSlideInLeft 0.8s ease-out forwards;
  animation-delay: 0.15s;
}
.course-card-row {
  min-height: 280px;
}
.course-card-row.hidden-by-filter {
  display: none !important;
}

/* Academic programmes page: hero thumb height = natural 4:3 minus 150px */
#academic-programs-list-root .academic-program-image-col {
  container-type: inline-size;
  container-name: academic-program-thumb;
}
#academic-programs-list-root .academic-program-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: max(6rem, calc(75cqw - 150px));
  min-height: 0;
  box-sizing: border-box;
}

/* ========== Hero: Scales of Justice (matches Lady Justice / law theme) ========== */
.hero-scales-wrapper {
  position: relative;
  width: 420px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero-scales-wrapper { width: 500px; height: 580px; }
}
@media (min-width: 1024px) {
  .hero-scales-wrapper { width: 540px; height: 620px; }
}

.hero-scales-svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0,0,0,0.4));
}

/* ========== Library shelf hero (optional; used on other pages if needed) ========== */
.library-shelf-wrapper {
  position: relative;
  width: 420px;
  height: 500px;
  perspective: 1200px;
}
@media (min-width: 768px) {
  .library-shelf-wrapper { width: 500px; height: 580px; }
}
@media (min-width: 1024px) {
  .library-shelf-wrapper { width: 540px; height: 620px; }
}

/* Back panel (wall behind shelves) */
.library-shelf {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1c1410 0%, #151010 50%, #0f0a08 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem 1rem 1.5rem;
  gap: 0;
}

/* Cursor-following "data pulse" glow - positioned by JS */
.library-glow-path {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  left: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(34,197,94,0.03) 20%,
    rgba(34,197,94,0.12) 50%,
    rgba(34,197,94,0.03) 80%,
    transparent 100%);
  transform: translateX(-50%);
  transition: left 0.08s ease-out;
}
.library-shelf-wrapper:hover .library-glow-path {
  opacity: 1;
}

/* Shelf unit = one plank + one row of books */
.library-shelf-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

/* Optional: drop a hyper-realistic image here */
.library-shelf-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  border-radius: 12px;
}
.library-shelf-bg + * { position: relative; z-index: 1; }

/* Row of book spines - z-index so glow path can sit behind/over */
.library-books-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  padding-bottom: 1px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Glowing green acrylic divider (new world) */
.library-acrylic-divider {
  width: 3px;
  height: 88px;
  flex-shrink: 0;
  margin: 0 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(34,197,94,0.25) 20%,
    rgba(34,197,94,0.5) 50%,
    rgba(34,197,94,0.25) 80%,
    transparent 100%);
  box-shadow: 0 0 16px rgba(34,197,94,0.4), 0 0 32px rgba(34,197,94,0.15);
  border-radius: 2px;
  opacity: 0.9;
}

/* Wooden shelf plank (mahogany) - the actual shelf books sit on */
.library-shelf-plank {
  width: 100%;
  height: 18px;
  background: linear-gradient(180deg, #4a2c1a 0%, #3d2215 30%, #2d1810 70%, #1f1008 100%);
  border-radius: 2px 2px 0 0;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.06),
    inset 0 -1px 2px rgba(0,0,0,0.4),
    0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
  position: relative;
}
.library-shelf-plank::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
  background: linear-gradient(180deg, #2d1810 0%, #1a0f0a 100%);
  border-radius: 0 0 2px 2px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.5);
}

/* Individual book spine - leather (old world) + gold foil, hover micro-interaction */
.library-book {
  height: 88px;
  min-width: 18px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(90deg, #252018 0%, #1a1510 20%, #151210 80%, #1c1712 100%);
  border-radius: 1px 2px 0 0;
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,0.04),
    inset -1px 0 0 rgba(0,0,0,0.3),
    1px 0 0 rgba(0,0,0,0.2);
  flex-shrink: 0;
  position: relative;
  border-left: 1px solid rgba(0,0,0,0.25);
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.library-book:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,0.06),
    inset -1px 0 0 rgba(0,0,0,0.25),
    0 0 0 1px rgba(34,197,94,0.2),
    0 4px 12px rgba(0,0,0,0.3);
}
/* Gold foil lettering (old world) */
.library-book::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(212,175,55,0.35) 15%,
    rgba(230,195,80,0.7) 35%,
    rgba(255,220,100,0.85) 50%,
    rgba(230,195,80,0.7) 65%,
    rgba(212,175,55,0.35) 85%,
    transparent 100%);
  border-radius: 1px;
  opacity: 0.95;
  box-shadow: 0 0 6px rgba(212,175,55,0.3);
}
/* Digital dust puff on hover */
.library-book::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.25) 0%, rgba(34,197,94,0.08) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.3);
}
.library-book:hover::after {
  animation: libraryDustPuff 0.6s ease-out forwards;
}
@keyframes libraryDustPuff {
  0% { opacity: 0; transform: scale(0.3); }
  20% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.5); }
}
/* Book spine widths (use class when dividers are present) */
.library-book.bw-20 { width: 20px; }
.library-book.bw-22 { width: 22px; }
.library-book.bw-24 { width: 24px; }
.library-book.bw-26 { width: 26px; }
.library-book.bw-28 { width: 28px; }
.library-book.bw-30 { width: 30px; }
/* Fallback when no width class */
.library-book:not([class*="bw-"]) { width: 24px; }
.library-book:not([class*="bw-"]):nth-child(6n+1) { width: 22px; }
.library-book:not([class*="bw-"]):nth-child(6n+2) { width: 28px; }
.library-book:not([class*="bw-"]):nth-child(6n+3) { width: 20px; }
.library-book:not([class*="bw-"]):nth-child(6n+4) { width: 26px; }
.library-book:not([class*="bw-"]):nth-child(6n+5) { width: 24px; }
.library-book:not([class*="bw-"]):nth-child(6n)   { width: 30px; }

/* Gap in the books where SOUL emblem sits - recessed, with subtle green rim */
.library-soul-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  width: 92px;
  height: 88px;
  margin: 0 2px;
  background: linear-gradient(180deg, rgba(10,8,6,0.95) 0%, rgba(5,4,3,0.98) 100%);
  border-radius: 2px 2px 0 0;
  box-shadow:
    inset 0 0 24px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(34,197,94,0.15),
    0 0 24px rgba(34,197,94,0.12);
  flex-shrink: 0;
}

.library-soul-emblem {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow:
    0 0 16px rgba(34,197,94,0.8),
    0 0 32px rgba(34,197,94,0.4);
  animation: librarySoulGlow 3s ease-in-out infinite;
}

@keyframes librarySoulGlow {
  0%, 100% { opacity: 1; text-shadow: 0 0 16px rgba(34,197,94,0.8), 0 0 32px rgba(34,197,94,0.4); }
  50% { opacity: 0.95; text-shadow: 0 0 22px rgba(34,197,94,0.95), 0 0 44px rgba(34,197,94,0.5); }
}

/* ========== Home: Team Preview marquee (#team-preview) ========== */
.team-preview-cols {
  -webkit-overflow-scrolling: touch;
}

.team-preview-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes team-preview-marquee-down {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes team-preview-marquee-up {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

.team-preview-marquee--down {
  animation-name: team-preview-marquee-down;
}

.team-preview-marquee--up {
  animation-name: team-preview-marquee-up;
}

@media (prefers-reduced-motion: reduce) {
  .team-preview-track {
    animation: none !important;
  }
}

/* Bold column captions (#team-preview) */
.team-preview-col-caption {
  font-weight: 700;
}

/* Auto-scrolling columns (HOD when scrolling, Visiting, Faculties): clip height scales with viewport */
.team-preview-clip-four {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  max-height: min(22rem, 42svh);
  align-self: flex-end;
}

@media (min-width: 640px) {
  .team-preview-clip-four {
    max-height: min(30rem, 50svh);
  }
}

@media (min-width: 1024px) {
  .team-preview-clip-four {
    max-height: min(38rem, 58vh);
  }
}
