/* ============================================================
   JSV COLLEGE – MAIN STYLESHEET
   To change colors: edit the :root variables below
   ============================================================ */

:root {
  --navy:       #0d2b6b;   /* Main dark blue */
  --navy-dark:  #091d49;   /* Darker blue (topbar, footer) */
  --gold:       #e8a020;   /* Gold accent */
  --gold-light: #f5c050;   /* Lighter gold on hover */
  --light-bg:   #f4f7fb;   /* Section background */
  --text:       #2d3142;
  --muted:      #64748b;
  --border:     #dde3ef;
  --white:      #ffffff;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Hind', sans-serif; color: var(--text); background: #fff; font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy-dark);
  color: #b8cce4;
  font-size: .78rem;
  padding: 7px 0;
  z-index: 1001;
  position: relative;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.topbar a { color: #b8cce4; transition: color .2s; }
.topbar a:hover { color: var(--gold-light); }
.topbar .sep { margin: 0 10px; opacity: .35; }
.topbar i { margin-right: 4px; }

/* ── NAVBAR ── */
.navbar {
  background: #fff;
  box-shadow: 0 2px 18px rgba(13,43,107,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 28px rgba(13,43,107,.18); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }

/* Brand */
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { height: 50px; width: auto; }
.brand-text .brand-name { display: block; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.1; }
.brand-text .brand-sub  { display: block; font-size: .65rem; color: var(--muted); letter-spacing: .04em; }

/* Nav list */
.nav-list { display: flex; align-items: center; list-style: none; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; font-size: .875rem; font-weight: 500;
  color: var(--navy); border-radius: 6px; white-space: nowrap;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.nav-list > li > a:hover,
.nav-list > li > a.active { background: rgba(13,43,107,.08); color: var(--navy); }
.nav-list > li > a .arrow { font-size: .6rem; transition: transform .25s; margin-left: 1px; }
.nav-list > li:hover > a .arrow { transform: rotate(180deg); }

/* Apply button */
.btn-apply {
  background: var(--gold) !important; color: var(--navy-dark) !important;
  font-weight: 700 !important; padding: 9px 20px !important;
  border-radius: 30px !important; font-size: .85rem !important;
  transition: background .2s, transform .15s !important;
  border: none; display: inline-block;
}
.btn-apply:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

/* ── DROPDOWN ── */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px rgba(13,43,107,.13);
  padding: 12px 0 8px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 2000;
  pointer-events: none;
}
/* Invisible bridge fills gap between nav item and dropdown */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 14px;
  background: transparent;
  z-index: 1999;
  display: none;
}
.has-dropdown.open::after { display: block; }
.dropdown a {
  display: block; padding: 8px 16px;
  font-size: .845rem; color: var(--text);
  border-radius: 0; transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--light-bg); color: var(--navy); padding-left: 20px; }

/* Mega dropdown */
.dropdown.mega {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 16px;
  left: -60px;
}
.mega-col h6 {
  font-size: .72rem; font-weight: 700; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 0 4px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.mega-col a { padding: 6px 8px; border-radius: 6px; font-size: .835rem; }
.mega-col a:hover { background: var(--light-bg); color: var(--navy); padding-left: 12px; }

/* OPEN state – triggered by JS */
.nav-list > li.open > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE NAV ── */
@media (max-width: 992px) {
  .nav-list {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto; padding: 12px 0 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 999; gap: 0;
  }
  .nav-list.mobile-open { display: flex; }
  .nav-list > li > a { border-radius: 0; padding: 12px 20px; justify-content: space-between; }
  .dropdown, .dropdown.mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--light-bg);
    border-radius: 0; min-width: unset; display: none;
    padding: 4px 0; pointer-events: auto;
    grid-template-columns: 1fr;
  }
  .nav-list > li.open > .dropdown { display: block; }
  .mega-col h6 { padding: 10px 28px 4px; }
  .mega-col a, .dropdown a { padding: 9px 32px; }
  .hamburger { display: flex; }
  .topbar .container { flex-direction: column; text-align: center; }
}

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 64px 0 48px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 54px; background: var(--white); clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { font-family: 'Playfair Display', serif; color: #fff; font-size: 2.4rem; font-weight: 700; }
.breadcrumb { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; flex-wrap: wrap; }
.breadcrumb li { font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb li a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb li a:hover { color: var(--gold-light); }
.breadcrumb li.active { color: var(--gold-light); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .4; }

/* ── SECTIONS ── */
.section       { padding: 80px 0; }
.section-sm    { padding: 52px 0; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.section-title span { color: var(--gold); }
.section-label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .13em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.section-divider { width: 48px; height: 4px; background: var(--gold); border-radius: 2px; margin: 12px 0 20px; }
.section-divider.center { margin-left: auto; margin-right: auto; }
.bg-light { background: var(--light-bg) !important; }
.bg-navy  { background: var(--navy) !important; }
.bg-navy-dark { background: var(--navy-dark) !important; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── CARDS ── */
.card-jsv {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 16px rgba(13,43,107,.08);
  transition: transform .25s, box-shadow .25s; overflow: hidden; height: 100%;
}
.card-jsv:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(13,43,107,.14); }
.icon-box {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}

/* ── CHECK LIST ── */
.check-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-item i { color: #22c55e; margin-top: 2px; flex-shrink: 0; }

/* ── TABLE ── */
.jsv-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.jsv-table th { background: var(--navy); color: #fff; padding: 12px 14px; font-weight: 600; text-align: left; }
.jsv-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.jsv-table tr:nth-child(even) td { background: var(--light-bg); }
.jsv-table tr:hover td { background: #e8eef8; transition: background .15s; }

/* ── BUTTONS ── */
.btn-primary-jsv {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 11px 28px; border-radius: 30px; font-weight: 700; font-size: .93rem;
  transition: background .2s, transform .15s; border: none; cursor: pointer;
}
.btn-primary-jsv:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-1px); }
.btn-gold {
  display: inline-block; background: var(--gold); color: var(--navy-dark);
  padding: 11px 28px; border-radius: 30px; font-weight: 700; font-size: .93rem;
  transition: background .2s, transform .15s; border: none; cursor: pointer;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline-white {
  display: inline-block; background: transparent; color: #fff;
  padding: 10px 26px; border-radius: 30px; font-weight: 600; font-size: .93rem;
  border: 2px solid rgba(255,255,255,.55); transition: all .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── FORMS ── */
.form-control, .form-select {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; font-size: .92rem; width: 100%;
  transition: border-color .2s, box-shadow .2s; font-family: 'Hind', sans-serif;
}
.form-control:focus, .form-select:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13,43,107,.1); outline: none;
}
label.form-label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 5px; color: var(--text); }
label.required::after { content: ' *'; color: #e53e3e; }

/* ── GALLERY ITEMS ── */
.gal-item { overflow: hidden; border-radius: 12px; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.06); }

/* ── STATS STRIP ── */
.stats-strip { background: var(--navy-dark); }
.stat-item { padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.68); margin-top: 4px; }

/* ── DEPT GRID ── */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }
.dept-card {
  background: #fff; border-radius: 10px; border: 1px solid var(--border);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s; cursor: pointer;
}
.dept-card:hover { border-color: var(--navy); box-shadow: 0 4px 18px rgba(13,43,107,.1); transform: translateY(-2px); }
.dept-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; flex-shrink: 0; }
.dept-lbl { font-size: .83rem; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ── HERO SECTION ── */
.hero-wrap { position: relative; height: 90vh; min-height: 560px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(9,29,73,.92) 0%, rgba(13,43,107,.68) 55%, rgba(13,43,107,.25) 100%); }
.hero-body { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-badge { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: .72rem; font-weight: 700; letter-spacing: .12em; padding: 5px 14px; border-radius: 30px; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4.5vw,3.4rem); color: #fff; font-weight: 700; line-height: 1.18; margin-bottom: 16px; }
.hero-title em { color: var(--gold-light); font-style: normal; }
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 520px; margin-bottom: 30px; line-height: 1.75; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer; transition: background .2s, transform .2s; }
.hero-dot.active { background: var(--gold); transform: scale(1.35); }
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: background .2s; backdrop-filter: blur(4px);
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.3); }

/* ── LEADER MSG CARDS ── */
.msg-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 28px; height: 100%; }
.msg-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--navy-dark); flex-shrink: 0; }

/* ── FOOTER ── */
.footer { background: #0a1838; padding: 60px 0 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer h5 { color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: #7a8fbb; font-size: .87rem; transition: color .2s; }
.footer ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer p { color: #7a8fbb; font-size: .87rem; line-height: 1.7; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; color: #7a8fbb; font-size: .87rem; }
.footer-contact li i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: #7a8fbb; transition: color .2s; }
.footer-contact a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 8px; margin-top: 14px; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); color: #7a8fbb; display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: background .2s, color .2s; }
.social-row a:hover { background: var(--gold); color: var(--navy-dark); }
.footer-bottom { background: #060e22; margin-top: 40px; padding: 16px 0; text-align: center; color: #4a5a7a; font-size: .82rem; }

/* ── ANIMATION ── */
.anim { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.anim.visible { opacity: 1; transform: none; }
.anim.d1 { transition-delay: .1s; } .anim.d2 { transition-delay: .2s; }
.anim.d3 { transition-delay: .3s; } .anim.d4 { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section-title { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .hero-title { font-size: 1.8rem; }
  .dept-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .stats-strip .row-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-item { border-right: 1px solid rgba(255,255,255,.08); }
}

/* ═══════════════════════════════════════════════
   SCROLLING ANNOUNCEMENT TICKER
   ═══════════════════════════════════════════════ */
.ticker-bar {
  background: linear-gradient(90deg, #0d2b6b 0%, #1a3d8f 100%);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 42px;
  border-bottom: 2.5px solid var(--gold);
  position: relative;
  z-index: 998;
}
.ticker-label {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 0 18px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0,0,0,.15);
}
.ticker-outer {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.ticker-item {
  color: rgba(255,255,255,.92);
  font-size: .83rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 60px;
}
.ticker-item strong { color: #f5c050; font-weight: 700; }
.ticker-item .bi-star-fill { color: var(--gold); font-size: .7rem; }
.ticker-sep { color: rgba(255,255,255,.35); margin: 0 4px; }
@media(max-width: 576px) {
  .ticker-label { padding: 0 12px; font-size: .7rem; }
  .ticker-item  { font-size: .78rem; }
}
