/* Modern campus — distinct shell from classic */
:root {
  --modern-radius: 1.25rem;
  --modern-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

body.site-modern {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: #f4f6fb;
  color: #0f172a;
}

.site-modern .modern-preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #f4f6fb;
  display: flex; align-items: center; justify-content: center;
}
.site-modern .modern-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.site-modern .modern-nav-links .nav-link {
  font-weight: 600;
  color: #475569 !important;
  border-radius: 999px;
  padding: 0.45rem 0.9rem !important;
}
.site-modern .modern-nav-links .nav-link:hover,
.site-modern .modern-nav-links .nav-link.active {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary) !important;
}
.site-modern .modern-cta {
  background: var(--primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
}
.site-modern .modern-subbar {
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  color: #64748b;
}
.site-modern .hero-slider .carousel-item { height: 70vh; min-height: 420px; }
.site-modern .hero-slider .carousel-inner { border-radius: 0 0 var(--modern-radius) var(--modern-radius); overflow: hidden; }
.site-modern .carousel-caption {
  background: rgba(15,23,42,0.45);
  border-radius: var(--modern-radius);
  padding: 1.5rem 2rem;
  left: 8%; right: 8%;
  bottom: 18%;
}
.modern-pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.modern-pill {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}
.modern-bento {
  background: #fff;
  border-radius: var(--modern-radius);
  box-shadow: var(--modern-shadow);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid rgba(15,23,42,0.05);
}
.modern-course-card {
  border: none;
  border-radius: var(--modern-radius);
  overflow: hidden;
  box-shadow: var(--modern-shadow);
  transition: transform 0.2s;
}
.modern-course-card:hover { transform: translateY(-6px); }
.modern-footer { background: #0f172a; color: #e2e8f0; }
.modern-footer .modern-foot-links a { color: #cbd5e1; text-decoration: none; }
.modern-footer .modern-foot-links a:hover { color: #fff; }
.modern-social {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important;
}
.modern-back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary); color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modern-back-top.show { opacity: 1; pointer-events: auto; }

/* Home sections (distinct from classic centered stack) */
.site-modern .object-fit-cover { object-fit: cover; }
.site-modern .modern-staff-tile {
  background: #fff;
  border-radius: var(--modern-radius);
  box-shadow: var(--modern-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.site-modern .modern-staff-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}
.site-modern .modern-staff-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.site-modern .modern-staff-tile-body { padding: 1rem 1.1rem 1.25rem; }
.site-modern .modern-staff-more { color: var(--primary); }

.site-modern .home-messages-modern { background: linear-gradient(180deg, #eef2ff 0%, #f4f6fb 100%); }
.site-modern .modern-quote-card {
  background: #fff;
  border-radius: var(--modern-radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--modern-shadow);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.site-modern .modern-quote-mark { font-size: 4rem; line-height: 0.5; font-family: Georgia, serif; opacity: 0.35; }

.site-modern .home-testimonials-modern { background: #fff; }
.site-modern .modern-testimonial-shell {
  background: #f8fafc;
  border-radius: var(--modern-radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.site-modern .modern-tst-avatar { width: 120px; height: 120px; object-fit: cover; }
.site-modern .modern-tst-quote { font-size: 1.15rem; line-height: 1.55; margin: 0; color: #334155; }
.site-modern .modern-tst-ctrl {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  top: auto;
  bottom: 1rem;
}

.site-modern .home-news-modern { background: #f4f6fb; }
.site-modern .modern-news-row {
  background: #fff;
  border-radius: var(--modern-radius);
  overflow: hidden;
  box-shadow: var(--modern-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.site-modern .modern-news-thumb { min-height: 200px; }
@media (min-width: 768px) {
  .site-modern .modern-news-thumb { min-height: 100%; }
}

/* Staff listing page (/staff) */
.staff-img {
  width: 150px;
  height: 150px;
  max-width: min(100%, 150px);
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 5px solid rgba(99, 102, 241, 0.12);
}
.staff-img img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}
