/* ==========================================================================
   VIBRANT MODERN CAMPUS - DESIGN SYSTEM & FULL MOTION ENGINE
   ========================================================================== */
:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-tint: #eef2ff;
  --ink-primary: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #64748b;

  --brand-indigo: #4f46e5;
  --brand-violet: #7c3aed;
  --brand-coral: #f43f5e;
  --brand-amber: #f59e0b;
  --brand-emerald: #10b981;
  --brand-cyan: #06b6d4;

  --grad-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 48%, #ec4899 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --grad-cool: linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
  --grad-fresh: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(79, 70, 229, 0.10);
  --shadow-lg: 0 22px 48px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 12px 28px rgba(244, 63, 94, 0.35);

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Scroll Progress Bar */
.scroll-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-amber), var(--brand-coral), var(--brand-violet), var(--brand-cyan));
  transition: width 0.08s linear;
}

/* Top Announcement Strip */
.top-ticker {
  background: var(--ink-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-ticker-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: marqueeLeft 28s linear infinite;
}

.top-ticker:hover .top-ticker-track {
  animation-play-state: paused;
}

.top-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseDot 1.6s infinite;
}

/* Sticky Navbar with Glassmorphism on Scroll */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.3s var(--ease-spring);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
  transition: transform 0.35s var(--ease-bounce);
}

.brand-logo:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-indigo);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  position: relative;
  padding: 8px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  transition: color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-indigo);
  background: rgba(79, 70, 229, 0.07);
}

.nav-link.active {
  color: #fff;
  background: var(--grad-hero);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-ppdb {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: var(--shadow-glow);
  animation: subtlePulse 2.8s infinite;
}

.btn-primary {
  background: var(--grad-hero);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.btn-secondary {
  background: #fff;
  color: var(--ink-primary);
  border: 1.5px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand-indigo);
  color: var(--brand-indigo);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.8rem;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2.2px;
  background: var(--ink-primary);
  border-radius: 4px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 102px 16px auto 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(79, 70, 229, 0.12);
  z-index: 999;
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.32s var(--ease-spring);
}

.mobile-drawer.open {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-drawer ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.mobile-drawer .nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 0.96rem;
}

/* Page Sub-Header Banner for Inner Pages */
.page-banner {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 58px 24px 66px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 25%, rgba(251, 191, 36, 0.28), transparent 45%),
              radial-gradient(circle at 82% 70%, rgba(6, 182, 212, 0.32), transparent 50%);
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  z-index: 2;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.page-banner h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-banner p {
  max-width: 720px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Containers & Sections */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 46px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-tint);
  color: var(--brand-indigo);
  margin-bottom: 10px;
}

.pill-tag.coral { background: #ffe4e6; color: #e11d48; }
.pill-tag.amber { background: #fef3c7; color: #d97706; }
.pill-tag.emerald { background: #d1fae5; color: #059669; }
.pill-tag.cyan { background: #cffafe; color: #0891b2; }

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-sub {
  max-width: 620px;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  margin-top: 8px;
}

/* Photo Card & Hover Zoom + Pan + Lift */
.photo-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.38s var(--ease-spring), box-shadow 0.38s var(--ease-spring);
}

.photo-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-spring), filter 0.4s ease;
}

.photo-card:hover .photo-frame img {
  transform: scale(1.08) translate3d(0, -2%, 0);
}

.photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.photo-badge.vibrant { background: var(--grad-warm); }
.photo-badge.indigo { background: var(--grad-hero); }
.photo-badge.emerald { background: var(--grad-fresh); }

/* Continuous Marquee Rows (Left & Right) */
.marquee-band {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 46px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.marquee-row {
  display: flex;
  gap: 18px;
  width: max-content;
  margin-bottom: 18px;
}

.marquee-row:last-child {
  margin-bottom: 0;
}

.marquee-row.left {
  animation: marqueeLeft 34s linear infinite;
}

.marquee-row.right {
  animation: marqueeRight 38s linear infinite;
}

.marquee-band:hover .marquee-row {
  animation-play-state: paused;
}

.marquee-tile {
  position: relative;
  width: 280px;
  height: 185px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.marquee-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}

.marquee-tile:hover img {
  transform: scale(1.1);
}

.marquee-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 10px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Stats Strip with Count-up */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring);
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-hero);
}

.stat-box:nth-child(2)::after { background: var(--grad-warm); }
.stat-box:nth-child(3)::after { background: var(--grad-fresh); }
.stat-box:nth-child(4)::after { background: var(--grad-cool); }

.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 6px;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* Filter Pills & Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.28s var(--ease-spring);
}

.filter-btn:hover {
  border-color: var(--brand-indigo);
  color: var(--brand-indigo);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--grad-hero);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

/* Staggered Reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease-spring), transform 0.65s var(--ease-spring);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Decor Motion */
.float-slow {
  animation: floatY 4.6s ease-in-out infinite;
}

.float-alt {
  animation: floatYAlt 5.4s ease-in-out infinite;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-box {
  position: relative;
  max-width: 920px;
  width: 100%;
  background: #1e293b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease-spring);
}

.lightbox.open .lightbox-box {
  transform: scale(1);
}

.lightbox-box img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.lightbox-caption {
  padding: 18px 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-caption h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.lightbox-caption p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-primary);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease-bounce);
}

.lb-btn:hover { transform: translateY(-50%) scale(1.1); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 4;
}

/* Floating Action Buttons (WhatsApp + Scroll Top) */
.fab-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.38);
  animation: floatY 4s ease-in-out infinite;
  transition: transform 0.3s var(--ease-bounce);
}

.fab-wa:hover {
  transform: scale(1.05);
}

.fab-top {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ink-primary);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring), background 0.25s ease;
}

.fab-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-top:hover {
  background: var(--brand-indigo);
}

/* Footer */
.footer {
  background: #0b1120;
  color: #e2e8f0;
  padding: 64px 24px 28px;
  margin-top: 40px;
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer ul a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1320px;
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Keyframes */
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

@keyframes floatYAlt {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-11px) rotate(2deg); }
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(244, 63, 94, 0.34); }
  50% { box-shadow: 0 14px 34px rgba(245, 158, 11, 0.55); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .btn-ppdb span.hide-xs { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .marquee-tile { width: 230px; height: 155px; }
}
