/* ═══════════════════════════════════════════════════════
   RATHINAM GLOBAL UNIVERSITY — styles.css
   Theme: Refined Academic — Deep Purple + Antique Gold
   Fonts: Fraunces (display) + Instrument Sans (body)
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   CSS VARIABLES — Single Source of Truth
───────────────────────────────────────────── */
:root {
  --rgu-purple:  #6B1F7C;
  --rgu-deep:    #3D0A4A;
  --rgu-mid:     #8A2B9E;
  --rgu-light:   #B85CC8;
  --rgu-gold:    #C8922A;
  --rgu-amber:   #E5A83A;
  --rgu-cream:   #FAF7F2;
  --rgu-chalk:   #F2EDF7;
  --rgu-ink:     #1A0520;
  --rgu-smoke:   #6B6078;

  --ff-display:  'Fraunces', Georgia, serif;
  --ff-body:     'Instrument Sans', system-ui, sans-serif;

  --section-pad: clamp(5rem, 8vw, 8rem);
  --container:   1280px;
  --radius-lg:   1.25rem;
  --radius-xl:   1.75rem;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--rgu-cream);
  color: var(--rgu-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }


/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

/* Dark gradient to ensure legibility over hero */
#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,5,32,0.72) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--transition);
}
#navbar.scrolled::before { opacity: 0; }

#navbar.scrolled {
  background: rgba(26, 5, 32, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 32px rgba(0,0,0,0.5);
}

/* Nav link */
.nav-link {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.25s ease;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rgu-amber);
  transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

#navbar.scrolled .nav-link { color: rgba(255,255,255,0.8); }
#navbar.scrolled .nav-link:hover { color: #fff; }

/* Apply button */
.apply-btn {
  background: var(--rgu-gold);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.apply-btn:hover {
  background: var(--rgu-amber);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,146,42,0.35);
}

/* Mobile menu button */
.menu-btn {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.25s ease;
}
.menu-btn:hover { background: rgba(255,255,255,0.15); }
#navbar.scrolled .menu-btn { color: #fff; }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
  background: rgba(26,5,32,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-menu.open { max-height: 480px; }

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.625rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-link:hover { background: rgba(255,255,255,0.07); color: #fff; }


/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero-section {
  background: var(--rgu-ink);
  position: relative;
}

/* Layered background */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(107,31,124,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 15% 80%, rgba(61,10,74,0.7) 0%, transparent 65%),
    linear-gradient(160deg, #1A0520 0%, #280833 40%, #1A0520 100%);
  z-index: 0;
}

/* Subtle dot grid */
.hero-grid-layer {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(184,92,200,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(107,31,124,0.35);
  top: -100px; right: -80px;
}
.orb-2 {
  width: 350px; height: 350px;
  background: rgba(200,146,42,0.15);
  bottom: 60px; left: 10%;
}
.orb-3 {
  width: 280px; height: 280px;
  background: rgba(184,92,200,0.2);
  top: 30%; left: 55%;
}

/* Hero pill */
.hero-pill {
  background: rgba(200,146,42,0.12);
  border: 1px solid rgba(200,146,42,0.3);
  color: var(--rgu-amber);
}

/* Hero CTAs */
.hero-cta-primary {
  background: var(--rgu-gold);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.hero-cta-primary:hover {
  background: var(--rgu-amber);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200,146,42,0.4);
}

.hero-cta-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-family: var(--ff-body);
  font-weight: 500;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.hero-cta-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* Hero stats */
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-div {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* Hero card */
.hero-card-wrap { position: relative; }
.hero-card { position: relative; }
.hero-card-overlay {
  background: linear-gradient(to top, rgba(26,5,32,0.75) 0%, transparent 50%);
}
.hero-card-badge {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(26,5,32,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  animation: floatY 3s ease-in-out infinite;
}
.float-badge-tl { top: -20px; left: -28px; }
.float-badge-br { bottom: -16px; right: -24px; }

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

/* Scroll indicator */
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}


/* ═══════════════════════════════════════════
   TICKER / ANNOUNCEMENT BAR
═══════════════════════════════════════════ */
.ticker-bar {
  background: var(--rgu-purple);
  position: relative;
  overflow: hidden;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
  will-change: transform;
}
.ticker-item {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 0 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ticker-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  padding: 0 0.5rem;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════
   SECTION REUSABLE ELEMENTS
═══════════════════════════════════════════ */
.section-rule {
  width: 32px;
  height: 2px;
  background: var(--rgu-purple);
  flex-shrink: 0;
}
.section-label {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rgu-purple);
}
.section-label-light {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
}
.section-label-dark {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
}


/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════ */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}
.reveal       { transform: translateY(28px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}


/* ═══════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════ */
.about-section { position: relative; }
.about-bg-shape {
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(107,31,124,0.06);
  pointer-events: none;
}

.about-milestone {
  background: #fff;
  border: 1px solid rgba(107,31,124,0.08);
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.about-milestone:hover {
  box-shadow: 0 8px 32px rgba(107,31,124,0.12);
  transform: translateY(-3px);
}

.about-img-wrap { position: relative; }
.about-accent-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(107,31,124,0.08);
  min-width: 200px;
}

.about-pill {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(107,31,124,0.12);
  border-radius: 100px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.about-pill-1 { top: -16px; right: 24px; }
.about-pill-2 { top: 40%; right: -20px; }


/* ═══════════════════════════════════════════
   STATS SECTION
═══════════════════════════════════════════ */
.stats-section { background: var(--rgu-deep); }
.stats-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(184,92,200,0.1) 1px, transparent 1px);
  background-size: 36px 36px;
}

.stat-block {
  text-align: center;
  padding: 32px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.stat-block:hover {
  border-color: rgba(184,92,200,0.3);
  background: rgba(107,31,124,0.12);
  transform: translateY(-4px);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(107,31,124,0.25);
  color: var(--rgu-light);
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}


/* ═══════════════════════════════════════════
   PROGRAMS SECTION
═══════════════════════════════════════════ */
.prog-card {
  background: var(--rgu-cream);
  border: 1px solid rgba(107,31,124,0.08);
  border-radius: 20px;
  padding: 28px 24px;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.prog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rgu-purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.prog-card:hover {
  box-shadow: 0 16px 48px rgba(107,31,124,0.12);
  transform: translateY(-4px);
  border-color: rgba(107,31,124,0.2);
}
.prog-card:hover::before { transform: scaleX(1); }

.prog-card-featured {
  background: var(--rgu-deep);
  border-color: rgba(255,255,255,0.07);
}
.prog-card-featured::before { background: var(--rgu-gold); }

.prog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(107,31,124,0.1);
  color: var(--rgu-purple);
  font-size: 1.2rem;
}
.prog-icon-gold  { background: rgba(200,146,42,0.1);  color: var(--rgu-gold); }
.prog-icon-teal  { background: rgba(20,148,155,0.1);  color: #14949B; }
.prog-icon-rose  { background: rgba(219,39,119,0.08); color: #DB2777; }
.prog-icon-green { background: rgba(22,163,74,0.08);  color: #16A34A; }
.prog-icon-white { background: rgba(255,255,255,0.12); color: #fff; }

.prog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rgu-purple);
  transition: gap 0.25s ease;
}
.prog-link:hover { gap: 10px; }

.prog-link-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: gap 0.25s ease, color 0.25s ease;
}
.prog-link-white:hover { gap: 10px; color: #fff; }


/* ═══════════════════════════════════════════
   RESEARCH SECTION
═══════════════════════════════════════════ */
.research-section { background: var(--rgu-chalk); }
.research-bg-accent {
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(107,31,124,0.06);
  pointer-events: none;
}

.research-mosaic { position: relative; }
.res-img-main { position: relative; }

.res-stat-float {
  position: absolute;
  top: -20px; left: -20px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid rgba(107,31,124,0.08);
}

/* Progress bars */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(107,31,124,0.1);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rgu-purple), var(--rgu-mid));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.progress-bar.animated { width: var(--target-width); }

.res-feat-card {
  background: #fff;
  border: 1px solid rgba(107,31,124,0.08);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.res-feat-card:hover {
  box-shadow: 0 6px 20px rgba(107,31,124,0.1);
  border-color: rgba(107,31,124,0.2);
}

@media (max-width: 768px) {
  .research-mosaic {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .res-img-main {
    width: 100%;
  }

  .res-img-sm {
    position: relative !important;
    bottom: auto;
    right: auto;
    width: 100%;
    border: none;
  }
}




/* ═══════════════════════════════════════════
   PLACEMENTS SECTION
═══════════════════════════════════════════ */
.placements-section { background: var(--rgu-deep); position: relative; }
.placements-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(184,92,200,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.placement-stat {
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

/* ═══════════════════════════════════════════
   RECRUITER CAROUSEL
═══════════════════════════════════════════ */
.rgu-carousel-wrap {
  overflow: hidden;
  position: relative;
}
.rgu-carousel-wrap::before,
.rgu-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.rgu-carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--rgu-deep), transparent);
}
.rgu-carousel-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--rgu-deep), transparent);
}

.rgu-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  align-items: center;
  animation: rguCarouselLeft 32s linear infinite;
  cursor: grab;
}
.rgu-carousel-track:active { cursor: grabbing; }
.rgu-carousel-track:hover  { animation-play-state: paused; }
.rgu-carousel-reverse      { animation-name: rguCarouselRight; animation-duration: 28s; }

.rgu-car-item {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.197);
  border: 1px solid rgba(184,92,200,0.15);
  border-radius: 12px;
  width: 160px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.rgu-car-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0.45;
  transition: filter 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.rgu-car-item:hover {
  background: rgba(107,31,124,0.2);
  border-color: rgba(184,92,200,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(107,31,124,0.25);
}
.rgu-car-item:hover img {
  filter: grayscale(0%) brightness(1) invert(0);
  opacity: 1;
}

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


/* ═══════════════════════════════════════════
   CAMPUS LIFE
═══════════════════════════════════════════ */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 200px;
  gap: 12px;
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .campus-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
  .campus-item-large { grid-column: span 2; }
}
@media (max-width: 480px) {
  .campus-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .campus-item { height: 200px; }
  .campus-item-large { grid-column: span 1; height: 240px; }
}

.campus-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.campus-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.campus-item:hover img { transform: scale(1.06); }

.campus-item-large { grid-column: span 2; grid-row: span 2; border-radius: 12px; }

.campus-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,5,32,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.campus-item:hover .campus-overlay { opacity: 1; }

.campus-tag {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
}

.campus-club {
  background: #fff;
  border: 1px solid rgba(107,31,124,0.08);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.campus-club:hover {
  box-shadow: 0 8px 28px rgba(107,31,124,0.1);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   CAMPUS CAROUSEL (inside campus-item-large)
═══════════════════════════════════════════ */
.campus-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle Ken Burns zoom effect per slide */
  /* animation: kenBurns 6s ease-in-out infinite alternate; */
}

/* @keyframes kenBurns {
  0%   { transform: scale(1);    }
  100% { transform: scale(1.06); }
} */

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(26, 5, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.carousel-arrow:hover {
  background: rgba(107, 31, 124, 0.75);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 52px;   /* sits above the campus-overlay tag */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active {
  background: var(--rgu-amber);
  transform: scale(1.4);
}


/* ═══════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 220px;
  gap: 12px;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-tall { grid-row: span 1; height: 220px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(26,5,32,0.8) 0%, transparent 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }


/* ═══════════════════════════════════════════
   NEWS & EVENTS
═══════════════════════════════════════════ */
.news-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(107,31,124,0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.news-card:hover {
  box-shadow: 0 16px 48px rgba(107,31,124,0.1);
  transform: translateY(-4px);
}

.news-img-wrap {
  position: relative;
  height: 196px;
  overflow: hidden;
}
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.news-date-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rgu-purple);
  letter-spacing: 0.04em;
}
.news-date-gold  { color: var(--rgu-gold); }
.news-date-amber { color: var(--rgu-smoke); }

.news-body { padding: 20px 22px 24px; }

.news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rgu-purple);
}
.news-tag-gold  { color: var(--rgu-gold); }
.news-tag-amber { color: var(--rgu-gold); }

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rgu-purple);
  transition: gap 0.25s ease;
}
.news-read-more:hover { gap: 10px; }


/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
.cta-section { background: var(--rgu-deep); position: relative; }

.cta-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.cta-orb-1 {
  width: 500px; height: 500px;
  background: rgba(107,31,124,0.4);
  top: -150px; left: -100px;
}
.cta-orb-2 {
  width: 400px; height: 400px;
  background: rgba(200,146,42,0.15);
  bottom: -100px; right: -80px;
}

.cta-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
}

.cta-btn-primary {
  background: var(--rgu-gold);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 700;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.cta-btn-primary:hover {
  background: var(--rgu-amber);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(200,146,42,0.4);
}

.cta-btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-family: var(--ff-body);
  font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.cta-btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  color: #fff;
}


/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.social-icon:hover {
  background: rgba(107,31,124,0.35);
  color: #fff;
  border-color: rgba(107,31,124,0.5);
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.25s ease;
}
.footer-link:hover { color: rgba(255,255,255,0.85); }


/* ═══════════════════════════════════════════
   PARALLAX UTILITY CLASSES
═══════════════════════════════════════════ */
.parallax-orb,
.parallax-grid,
.parallax-up,
.parallax-down,
.parallax-img {
  will-change: transform;
}


/* ═══════════════════════════════════════════
   ANIMATED COUNTER
═══════════════════════════════════════════ */
.counter { display: inline-block; }


/* ═══════════════════════════════════════════
   LOGO IMAGE
═══════════════════════════════════════════ */
.logo-img {
  height: 250px;   /* base size */
  width: auto;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

/* Tablet */
@media (min-width: 768px) {
  .logo-img {
    height: 300px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .logo-img {
    height: 290px;
  }
}

/* Large screens */
@media (min-width: 1280px) {
  .logo-img {
    height: 350px;
  }
}

/* #navbar.scrolled .logo-img { filter: brightness(10) saturate(0); }
.logo-img.logo-light { filter: none; } */

/* ═══════════════════════════════════════════
   RESPONSIVE UTILITIES
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-pill-2 { display: none; }
  .about-accent-card { left: 0; bottom: -20px; }
}
@media (max-width: 768px) {
  .about-accent-card { position: static; margin-top: 20px; }
  .about-pill-1, .about-pill-2 { display: none; }
  .res-stat-float { position: static; margin-top: 16px; }
  .res-img-sm { position: static; width: 100%; aspect-ratio: 16/9; margin-top: 12px; border: none; }
}

/* ─────────────────────────────────────────────
   PRINT — suppress animations
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}