:root {
  --maroon: #123a63;
  --maroon-dark: #0a2543;
  --gold: #c9a227;
  --gold-light: #e8cf6d;
  --cream: #faf7f0;
  --ink: #2b2320;
  --font-head: 'Merriweather', serif;
  --font-body: 'Inter', sans-serif;
}

body { font-family: var(--font-body); color: var(--ink); background: #fff; }
h1,h2,h3,h4,.font-head { font-family: var(--font-head); }

/* ---- top strip ---- */
.top-strip { background: linear-gradient(95deg, #081d36 0%, var(--maroon-dark) 100%); color: #f2e4c8; }

/* ---- navbar ---- */
.navbar-main { background: linear-gradient(95deg, #0d2f52 0%, var(--maroon) 45%, #1a4a7a 100%); padding: .6rem 0; box-shadow: 0 2px 14px rgba(0,0,0,.22); }
.navbar-brand { display: flex; align-items: center; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--maroon-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; margin-left: .6rem; line-height: 1.15; }
.brand-title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand-sub { color: var(--gold-light); font-size: .72rem; letter-spacing: .03em; }
.navbar-nav .nav-link { color: #f2e4c8 !important; font-weight: 500; margin: 0 .3rem; }
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover { color: var(--gold-light) !important; }
.btn-gold {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e8cf6d 0%, #c9a227 60%, #a9821e 100%);
  border-color: transparent; color: #3a2c05; font-weight: 700;
  box-shadow: 0 6px 18px rgba(201,162,39,.35); transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #f3e29a 0%, #d9b53a 60%, #b8912a 100%);
  border-color: transparent; color: #3a2c05;
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,162,39,.45);
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.js .btn-gold::after { animation: btnShimmer 3.2s ease-in-out infinite; }
@keyframes btnShimmer {
  0% { left: -60%; }
  45% { left: 130%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) { .js .btn-gold::after { animation: none; } }

/* ---- hero (used on secondary pages: About, Academics, Contact, etc.) ---- */
.hero {
  background: linear-gradient(120deg, #0a2543 0%, #123a63 22%, #1e5a96 50%, #123a63 78%, #0a2543 100%);
  background-size: 220% 220%;
  color: #fff; padding: 6rem 0 7rem; position: relative; overflow: hidden;
}
.js .hero { animation: heroGradientShift 11s ease infinite; }
@keyframes heroGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ledger-ruled paper texture + teal accent glow, on-brand for a commerce department */
.hero::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(circle at 6% 94%, rgba(70,149,142,.28), transparent 45%),
    repeating-linear-gradient(0deg, rgba(201,162,39,.09) 0px, rgba(201,162,39,.09) 1px, transparent 1px, transparent 42px),
    linear-gradient(90deg, rgba(201,162,39,.14) 0px, rgba(201,162,39,.14) 2px, transparent 2px, transparent 84px);
  opacity: .55;
}
.hero::after {
  content:""; position:absolute; right:-120px; top:-120px; width:460px; height:460px;
  border-radius:50%; background: radial-gradient(circle, rgba(232,207,109,.28), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: 2.9rem; font-weight: 900; }
.hero .lead { color: #dbe6f2; }
.hero-rotate-line { font-size: 1.35rem; font-weight: 600; color: var(--gold-light); min-height: 1.9em; }
.hero-rotate-word { display: inline-block; transition: opacity .3s ease, transform .3s ease; }

.hero-float-icon {
  position: absolute; color: rgba(232,207,109,.28); pointer-events: none; z-index: 1;
}
.js .hero-float-icon { animation: floatDrift 7s ease-in-out infinite; }
@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  color: rgba(255,255,255,.55); font-size: 1.4rem; z-index: 2;
}
.js .scroll-cue { animation: bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translate(-50%, 0); opacity: .5; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .hero-float-icon, .scroll-cue { animation: none !important; }
}

/* ---- homepage hero slider (photo carousel + banner text combined) ---- */
.hero-slider {
  position: relative; overflow: hidden; min-height: 640px; color: #fff;
  background: linear-gradient(120deg, #0a2543 0%, #123a63 22%, #1e5a96 50%, #123a63 78%, #0a2543 100%);
  background-size: 220% 220%;
}
.js .hero-slider { animation: heroGradientShift 11s ease infinite; }
.hero-slider-carousel, .hero-slider-carousel .carousel-inner, .hero-slider-carousel .carousel-item {
  position: absolute; inset: 0; height: 100%;
}
.hero-slider-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.js .carousel-item.active .hero-slider-img { animation: kenBurns 9s ease-in-out forwards; }

.hero-slider-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(10,30,58,.86) 0%, rgba(18,58,99,.60) 40%, rgba(18,58,99,.30) 68%, rgba(18,58,99,.14) 100%);
}
.hero-slider::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:
    radial-gradient(circle at 92% 8%, rgba(232,207,109,.30), transparent 42%),
    radial-gradient(circle at 4% 96%, rgba(70,149,142,.28), transparent 45%),
    repeating-linear-gradient(0deg, rgba(201,162,39,.09) 0px, rgba(201,162,39,.09) 1px, transparent 1px, transparent 42px),
    linear-gradient(90deg, rgba(201,162,39,.12) 0px, rgba(201,162,39,.12) 2px, transparent 2px, transparent 84px);
  opacity: .55;
}
.hero-slider-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-slider .hero-float-icon { z-index: 2; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next,
.hero-slider .slideshow-indicators, .hero-slider .slideshow-gallery-link { z-index: 3; }
.hero-slider .scroll-cue { z-index: 3; }

@media (max-width: 767.98px) {
  .hero-slider { min-height: 560px; }
}

/* ---- shared slideshow nav/indicator styles (used by hero-slider) ---- */
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.slideshow-nav-btn {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; transition: background .2s ease, transform .2s ease;
}
.carousel-control-prev, .carousel-control-next { width: 80px; opacity: 1; }
.carousel-control-prev:hover .slideshow-nav-btn, .carousel-control-next:hover .slideshow-nav-btn { background: var(--gold); color: var(--maroon-dark); transform: scale(1.08); }
.slideshow-indicators { margin-bottom: 1.2rem; }
.slideshow-indicators button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; margin: 0 4px; }
.slideshow-indicators button.active { background: var(--gold); width: 26px; border-radius: 6px; }
.slideshow-gallery-link {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3;
  background: rgba(8,25,46,.55); backdrop-filter: blur(4px); color: #fff;
  padding: .55rem 1.1rem; border-radius: 30px; font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: background .2s ease;
}
.slideshow-gallery-link:hover { background: var(--gold); color: var(--maroon-dark); }

/* ---- stats strip floating over the hero slider's bottom edge ---- */
.stats-section { position: relative; }
.stats-float { position: relative; z-index: 3; margin-top: -3.5rem; }
.stat-card-vivid {
  background: #fff; border-radius: 16px; padding: 1.6rem 1.2rem; text-align: center;
  box-shadow: 0 18px 40px rgba(10,37,67,.22); transition: transform .3s ease;
}
.stat-card-vivid:hover { transform: translateY(-6px); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto .7rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff;
}
.stat-icon-a { background: linear-gradient(135deg, #123a63, #1c4f82); }
.stat-icon-b { background: linear-gradient(135deg, #c9a227, #e8cf6d); color:#3a2c05; }
.stat-icon-c { background: linear-gradient(135deg, #2f6f6a, #46958e); }
.stat-icon-d { background: linear-gradient(135deg, #8452a8, #a879c9); }
.stat-card-vivid .num { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--maroon); }
.stat-card-vivid .label { color:#6b6259; font-size:.85rem; }

/* ---- section headers ---- */
.section-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .78rem; }
.section-title { font-family: var(--font-head); font-weight: 900; color: var(--maroon-dark); }

/* ---- gradient text utility for extra pop on key headings ---- */
.section-title-gradient {
  background: linear-gradient(90deg, var(--maroon-dark) 0%, #1e5a96 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- scroll reveal ---- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- cards ---- */
.card-soft { border: 1px solid #eee2ce; border-radius: 14px; transition: .2s; }
.card-soft:hover { box-shadow: 0 12px 28px rgba(18,58,99,.12); transform: translateY(-3px); }
.icon-badge {
  width: 52px; height:52px; border-radius: 12px; background: #eef3f8; color: var(--maroon);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
}

/* ---- colorful icon-chip list (About page "At a Glance", Contact info, etc.) ---- */
.glance-list li { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.glance-list li:last-child { margin-bottom: 0; }
.glance-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* ---- gallery ---- */
.gallery-thumb { overflow: hidden; border-radius: 14px; }
.gallery-thumb img { transition: transform .5s ease; display:block; }
.gallery-thumb:hover img { transform: scale(1.1); }

/* ---- homepage: notices as a card grid ---- */
.notices-section { padding: 6rem 0 5rem; background: var(--cream); }
.notice-card {
  display: block; background: #fff; border-radius: 16px; padding: 1.6rem;
  text-decoration: none; height: 100%; border-top: 4px solid var(--gold);
  box-shadow: 0 10px 26px rgba(10,37,67,.08); transition: transform .3s ease, box-shadow .3s ease;
}
.notice-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10,37,67,.16); }
.notice-card-icon {
  width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; margin-bottom: 1rem;
}
.notice-card-title { color: var(--ink); font-weight: 700; font-size: 1.02rem; margin-bottom: .5rem; line-height: 1.4; }
.notice-card-meta { color: #8a8078; font-size: .8rem; }

/* ---- homepage: Notices & Events auto-scrolling ticker boxes ---- */
.ticker-section { padding: 6rem 0 5rem; background: linear-gradient(160deg, #faf7f0 0%, #f2e8cf 100%); }

.ticker-box { background: #fff; border-radius: 18px; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: 0 18px 42px rgba(10,37,67,.14); }

.ticker-box-header {
  padding: 1.1rem 1.5rem; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; gap: .6rem; background-size: 200% 200%;
}
.js .ticker-box-header { animation: heroGradientShift 10s ease infinite; }
.ticker-header-notices { background-image: linear-gradient(120deg, #0a2543, #123a63 45%, #1e5a96 100%); }
.ticker-header-events { background-image: linear-gradient(120deg, #a9821e, #c9a227 45%, #e8cf6d 100%); color: #3a2c05; }

.ticker-viewport { height: 360px; overflow: hidden; position: relative; }
.ticker-viewport::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, #fff, rgba(255,255,255,0));
}
.ticker-track { --ticker-duration: 20s; }
.js .ticker-track { animation: tickerScroll var(--ticker-duration) linear infinite; }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .js .ticker-track { animation: none; }
  .js .ticker-box-header { animation: none; }
}

.ticker-item {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.4rem;
  text-decoration: none; border-bottom: 1px solid #f1ede2; transition: background .2s ease;
}
a.ticker-item:hover { background: #faf7f0; }
.ticker-item-icon {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.ticker-item-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ticker-item-title { color: var(--ink); font-weight: 600; font-size: .93rem; }
.ticker-item-meta { color: #8a8078; font-size: .78rem; }

.ticker-event-date {
  width: 52px; height: 52px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(160deg, #1e5a96, #123a63 60%, #0a2543); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.ticker-event-date .d { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; }
.ticker-event-date .m { font-size: .64rem; letter-spacing: .06em; color: var(--gold-light); }

.ticker-box-footer {
  display: block; text-align: center; padding: .9rem; font-weight: 700; font-size: .85rem;
  color: var(--maroon); text-decoration: none; border-top: 1px solid #f1ede2; transition: background .2s ease;
}
.ticker-box-footer:hover { background: var(--cream); color: var(--maroon-dark); }

/* ---- homepage: events as ticket cards (legacy, kept for compatibility) ---- */
.events-section { padding: 6rem 0 5rem; background: linear-gradient(150deg, #0a2543 0%, #123a63 45%, #1c4f82 75%, #123a63 100%); }
.event-ticket {
  display: flex; align-items: stretch; background: #fff; border-radius: 16px; overflow: hidden;
  height: 100%; box-shadow: 0 16px 34px rgba(0,0,0,.22); transition: transform .3s ease;
}
.event-ticket:hover { transform: translateY(-6px); }
.event-ticket-date {
  width: 84px; flex-shrink: 0; background: linear-gradient(160deg, #c9a227, #a9821e); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  position: relative;
}
.event-ticket-date::after {
  content:""; position:absolute; right:-8px; top:50%; transform: translateY(-50%);
  width:16px; height:16px; border-radius:50%; background: var(--maroon-dark);
}
.event-ticket-day { font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; }
.event-ticket-mon { font-size: .72rem; letter-spacing: .08em; }
.event-ticket-body { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; justify-content: center; }
.event-ticket-title { color: var(--ink); font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.event-ticket-venue { color: #8a8078; font-size: .82rem; }

/* ---- badges ---- */
.badge-status-pending { background:#f5d68a; color:#664d03; }
.badge-status-approved { background:#b6e3c6; color:#0b5e2b; }
.badge-status-rejected { background:#f3b6b6; color:#7a1414; }

/* ---- footer ---- */
.site-footer { background: linear-gradient(160deg, var(--maroon-dark) 0%, #081d36 100%); }
.footer-links { color: #d9c9ae; }
.footer-links a { color: #d9c9ae; text-decoration:none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-links li { margin-bottom:.5rem; color: #d9c9ae; }
.footer-links li i { color: var(--gold-light); }

/* ---- auth pages ---- */
.auth-wrap { min-height: 80vh; display:flex; align-items:center; background:var(--cream); }
.auth-card { border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.08); overflow:hidden; }
.auth-side { background: linear-gradient(160deg, #1c4f82, var(--maroon) 55%, var(--maroon-dark)); color:#fff; padding: 2.5rem; }

/* ---- dashboards ---- */
.dash-sidebar {
  background: var(--maroon-dark);
  width: 260px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 1040;
  transition: transform .25s ease;
}
.dash-content { margin-left: 260px; min-height: 100vh; }
.dash-sidebar-backdrop { display: none; }

.dash-sidebar a { color:#e6d7ba; text-decoration:none; display:flex; align-items:center; padding:.7rem 1.1rem; border-radius:10px; margin:.15rem .6rem; font-size:.93rem; }
.dash-sidebar a i { width: 22px; }
.dash-sidebar a.active, .dash-sidebar a:hover { background: rgba(201,162,39,.18); color: var(--gold-light); }
.dash-topbar { background:#fff; border-bottom:1px solid #eee; }
.kpi-card { border-radius:14px; padding:1.2rem; background:#fff; border:1px solid #f0e7d8; }
.kpi-card .n { font-size:1.7rem; font-weight:800; color:var(--maroon); font-family: var(--font-head); }

@media (max-width: 991.98px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.show { transform: translateX(0); }
  .dash-content { margin-left: 0; }
  .dash-sidebar-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 1035; opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .dash-sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
}

/* generic */
.table-uni thead { background: var(--maroon); color:#fff; }
.text-maroon { color: var(--maroon); }
.bg-cream { background: var(--cream); }
