/* ============================================================
   CHBEA - Premium Law College Theme
   Colors: Maroon #6D1124 | Gold #C9A84C | White | Dark Charcoal
   ============================================================ */

:root {
  --maroon:     #6D1124;
  --maroon-dk:  #4d0c19;
  --maroon-lt:  #8b1530;
  --gold:       #C9A84C;
  --gold-lt:    #e2c173;
  --gold-dk:    #a8852e;
  --dark:       #1a1a2e;
  --charcoal:   #2c2c3e;
  --light-bg:   #faf8f5;
  --beige:      #f5ede0;
  --border:     #e8e0d5;
  --text-muted: #6b7280;
}

/* ─── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--charcoal);
  background: #fff;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', Georgia, serif; color: var(--dark); }

a { transition: color 0.2s, opacity 0.2s; }
img { max-width: 100%; }

/* ─── Topbar ──────────────────────────────────────────────── */
.topbar {
  background: var(--maroon-dk);
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
  font-size: 0.78rem;
}
.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  margin-left: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s;
}
.topbar-social:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.btn-xs { font-size: 0.72rem; padding: 2px 10px; border-radius: 12px; }
.btn-gold { background: var(--gold); color: var(--dark); border: none; font-weight: 600; transition: all 0.2s; }
.btn-gold:hover { background: var(--gold-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.4); }

/* ─── Navbar ──────────────────────────────────────────────── */
.chbea-navbar {
  background: var(--maroon) !important;
  box-shadow: 0 2px 20px rgba(109,17,36,0.3);
  padding: 0.6rem 0;
  transition: all 0.3s ease;
}
.chbea-navbar.scrolled {
  background: rgba(109,17,36,0.97) !important;
  backdrop-filter: blur(10px);
  padding: 0.4rem 0;
}
.brand-logo { display: flex; align-items: center; gap: 0.65rem; }
.brand-icon {
  width: 42px; height: 42px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; line-height: 1; }
.brand-sub { color: var(--gold); font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; }

.chbea-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  position: relative;
  transition: all 0.2s;
}
.chbea-navbar .nav-link:hover,
.chbea-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.12) !important; }
.chbea-navbar .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-top: 3px solid var(--gold);
  padding: 0.5rem;
}
.chbea-navbar .dropdown-item {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--charcoal);
  transition: all 0.2s;
}
.chbea-navbar .dropdown-item:hover { background: var(--beige); color: var(--maroon); }
.text-maroon { color: var(--maroon) !important; }
.text-gold { color: var(--gold) !important; }

/* ─── Hero Banner ─────────────────────────────────────────── */
.hero-banner {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(165deg, #0d0510 0%, var(--maroon-dk) 35%, #1a0812 70%, #0f0820 100%);
  padding: 8rem 0 11rem;
}

.hero-banner-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 20% 65%, rgba(201,168,76,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 55% 80% at 82% 25%, rgba(109,17,36,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201,168,76,0.06) 0%, transparent 75%);
}

.hero-banner::before {
  content: '';
  position: absolute; top: -280px; right: -280px;
  width: 850px; height: 850px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
  pointer-events: none;
  animation: heroRingPulse 9s ease-in-out infinite;
}
.hero-banner::after {
  content: '';
  position: absolute; bottom: 60px; left: -220px;
  width: 650px; height: 650px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
@keyframes heroRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.06); opacity: 1; }
}

.hero-banner-container { position: relative; z-index: 2; }

/* Badge */
.hero-banner-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  backdrop-filter: blur(10px);
  color: var(--gold-lt);
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 1.75rem;
}

/* Title */
.hero-banner-title {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-banner-accent {
  display: block;
  background: linear-gradient(110deg, var(--gold-lt) 0%, var(--gold) 40%, #f5d87a 65%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroTextShimmer 5s linear infinite;
}
@keyframes heroTextShimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}
.hero-banner-abbr {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 2px;
  display: block;
  margin-top: 0.3rem;
}

/* Tagline */
.hero-banner-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold-lt);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

/* Description */
.hero-banner-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* CTA Buttons */
.hero-banner-cta {
  display: flex; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 1.75rem;
}
.btn-banner-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, #e8c44a 50%, var(--gold-dk) 100%);
  color: #1a0a12;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 25px rgba(201,168,76,0.45), 0 1px 3px rgba(0,0,0,0.2);
  position: relative; overflow: hidden;
  letter-spacing: 0.3px;
}
.btn-banner-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-banner-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 45px rgba(201,168,76,0.55), 0 4px 12px rgba(0,0,0,0.2);
  color: #1a0a12;
}
.btn-banner-primary:hover::after { opacity: 1; }

.btn-banner-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.35s;
}
.btn-banner-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(255,255,255,0.12);
}

.btn-banner-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  border: 1.5px solid rgba(201,168,76,0.45);
  color: var(--gold-lt);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.35s;
}
.btn-banner-outline:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.2);
}

/* Affiliation tags */
.hero-banner-affiliations {
  display: flex; gap: 0.65rem;
  flex-wrap: wrap; justify-content: center;
}
.affiliation-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.65);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s;
}
.affiliation-badge:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.3);
  color: var(--gold-lt);
}
.affiliation-badge i { color: var(--gold); font-size: 0.85rem; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 95px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot-line {
  width: 2px; height: 56px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.75), rgba(201,168,76,0));
  margin: 0 auto;
  animation: scrollLineFade 2.2s ease-in-out infinite;
}
@keyframes scrollLineFade {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ─── Floating Stats Card ─────────────────────────────────── */
.hero-floating-stats {
  position: relative;
  margin-top: -80px;
  z-index: 10;
  padding-bottom: 1.5rem;
}
.hfs-card {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 24px;
  padding: 1.75rem 2rem;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.13),
    0 4px 12px rgba(0,0,0,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}
.hfs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hfs-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-right: 1px solid rgba(0,0,0,0.08);
  justify-content: center;
}
.hfs-item:last-child { border-right: none; }
.hfs-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.hfs-item:hover .hfs-icon { transform: scale(1.1) rotate(-5deg); }
.hfs-blue {
  background: linear-gradient(135deg, rgba(26,35,90,0.1), rgba(26,35,90,0.05));
  color: #1a235a;
  border: 1px solid rgba(26,35,90,0.12);
}
.hfs-gold {
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.08));
  color: var(--gold-dk);
  border: 1px solid rgba(201,168,76,0.25);
}
.hfs-body { text-align: left; }
.hfs-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  letter-spacing: -0.5px;
}
.hfs-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Shared CTA button styles (used across page sections) */
.btn-hero-primary {
  background: var(--gold); color: var(--dark);
  border: none; font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  display: inline-block;
}
.btn-hero-primary:hover { background: var(--gold-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.4); }
.btn-hero-outline {
  border: 2px solid rgba(255,255,255,0.4); color: #fff;
  font-weight: 600; padding: 0.875rem 2rem;
  border-radius: 8px; text-decoration: none;
  transition: all 0.3s; background: transparent;
  display: inline-block;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); color: #fff; }

/* ─── Section Styles ──────────────────────────────────────── */
.section-header { margin-bottom: 3rem; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(109,17,36,0.07);
  color: var(--maroon);
  border: 1px solid rgba(109,17,36,0.16);
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.22;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
  margin-top: 0.3rem;
  margin-bottom: 0;
}
.section-header.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-divider {
  width: 72px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  border-radius: 2px;
  margin: 0.9rem auto 0;
}
.section-divider.left { margin: 0.9rem 0 0; }
.bg-light-warm { background: var(--light-bg); }
.bg-beige { background: var(--beige); }
.bg-maroon { background: var(--maroon); }
.bg-dark-maroon { background: var(--maroon-dk); }

/* ─── Course Cards ────────────────────────────────────────── */
.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(109,17,36,0.12); border-color: var(--gold); }
.course-card-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dk) 100%);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.course-card-header::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}
.course-icon { font-size: 2.5rem; color: var(--gold); display: block; margin-bottom: 0.5rem; position: relative; }
.course-level { font-size: 0.7rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.course-title { color: #fff; font-size: 1.15rem; font-weight: 600; margin: 0.25rem 0 0; }
.course-card-body { padding: 1.5rem; }
.course-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.course-meta-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.course-meta-item i { color: var(--maroon); }
.course-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.course-fee { font-size: 1.1rem; font-weight: 700; color: var(--maroon); }
.course-fee small { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.btn-outline-maroon {
  border: 1.5px solid var(--maroon); color: var(--maroon);
  background: transparent; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }
.btn-maroon {
  background: var(--maroon); color: #fff; border: none;
  border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 1.25rem; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-maroon:hover { background: var(--maroon-dk); color: #fff; transform: translateY(-1px); }

/* ─── Faculty Cards ───────────────────────────────────────── */
.faculty-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  text-align: center;
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.faculty-photo-wrap { position: relative; padding: 1.5rem 1.5rem 0; }
.faculty-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dk));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 3rem; color: rgba(255,255,255,0.5);
}
.faculty-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.faculty-body { padding: 1rem 1.25rem 1.5rem; }
.faculty-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.faculty-designation { font-size: 0.78rem; color: var(--maroon); font-weight: 600; margin-bottom: 0.25rem; }
.faculty-dept { font-size: 0.75rem; color: var(--text-muted); }
.faculty-exp { display: inline-block; background: var(--beige); color: var(--maroon); font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-top: 0.5rem; }

/* ─── Notice & Event Cards ────────────────────────────────── */
.notice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--maroon);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.notice-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-left-color: var(--gold); transform: translateX(4px); color: inherit; }
.notice-card.urgent { border-left-color: #dc3545; }
.notice-date { font-size: 0.75rem; color: var(--text-muted); }
.notice-title { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin: 0.25rem 0 0; }
.badge-urgent { background: #dc3545; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.badge-category { background: var(--beige); color: var(--maroon); font-size: 0.65rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; }

/* ─── Event Cards ─────────────────────────────────────────── */
.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  height: 100%;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.event-img { height: 200px; object-fit: cover; width: 100%; background: var(--beige); }
.event-date-box {
  background: var(--maroon); color: #fff;
  text-align: center; padding: 0.5rem 0.75rem;
  border-radius: 8px; min-width: 52px;
  flex-shrink: 0;
}
.event-date-box .day { font-size: 1.5rem; font-weight: 800; line-height: 1; font-family: 'Playfair Display', serif; }
.event-date-box .month { font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }

/* ─── Testimonial Cards ───────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
}
.testimonial-card:hover { box-shadow: 0 12px 35px rgba(0,0,0,0.08); transform: translateY(-3px); }
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 1rem; left: 1.5rem;
  font-size: 5rem; color: var(--gold); opacity: 0.2;
  font-family: Georgia, serif; line-height: 1;
}
.testimonial-text { font-size: 0.9rem; line-height: 1.8; color: var(--charcoal); font-style: italic; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dk));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 1.2rem;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); line-height: 1; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
.star-rating { color: var(--gold); font-size: 0.8rem; }

/* ─── Blog Cards ──────────────────────────────────────────── */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.blog-img { height: 200px; object-fit: cover; width: 100%; background: var(--beige); }
.blog-body { padding: 1.5rem; }
.blog-category { font-size: 0.7rem; font-weight: 700; color: var(--maroon); text-transform: uppercase; letter-spacing: 1px; }
.blog-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin: 0.5rem 0; }
.blog-title a { text-decoration: none; color: inherit; }
.blog-title a:hover { color: var(--maroon); }
.blog-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: 0.78rem; color: var(--text-muted); }

/* ─── Gallery ─────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(109,17,36,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  color: #fff; font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── Page Banner ─────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--maroon-dk) 0%, var(--maroon) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner-content { position: relative; z-index: 1; }
.page-banner-title { color: #fff; font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-banner-breadcrumb .breadcrumb-item a { color: var(--gold-lt); text-decoration: none; }
.page-banner-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.page-banner-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ─── Why Choose Us ───────────────────────────────────────── */
.why-card {
  text-align: center; padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px; background: #fff;
  transition: all 0.3s;
}
.why-card:hover { box-shadow: 0 12px 35px rgba(109,17,36,0.1); border-color: var(--gold); transform: translateY(-4px); }
.why-icon {
  width: 70px; height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(109,17,36,0.08), rgba(109,17,36,0.04));
  border: 1px solid rgba(109,17,36,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem; color: var(--maroon);
  transition: all 0.3s;
}
.why-card:hover .why-icon { background: var(--maroon); color: var(--gold); }
.why-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.why-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Admission Steps ──────────────────────────────────────── */
.step-card {
  text-align: center; padding: 2rem 1.5rem;
  position: relative;
}
.step-number {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dk));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(109,17,36,0.3);
  font-family: 'Playfair Display', serif;
  position: relative; z-index: 1;
}
.step-connector {
  position: absolute; top: 52px; left: 50%; right: -50%;
  height: 2px; background: linear-gradient(90deg, var(--gold), rgba(201,168,76,0.2));
}

/* ─── Contact Page ────────────────────────────────────────── */
.contact-page-section { padding: 5rem 0; background: var(--light-bg); }

/* Contact Info Panel */
.contact-panel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(109,17,36,0.12);
}
.contact-panel-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dk) 100%);
  padding: 2.25rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.contact-panel-header::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.contact-panel-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  margin-bottom: 1rem;
}
.contact-panel-title { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-panel-sub { color: rgba(255,255,255,0.75); font-size: 0.83rem; line-height: 1.6; margin-bottom: 0; }

.contact-panel-body { background: #fff; padding: 1.75rem 2rem; }
.contact-detail-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail-row:last-of-type { border-bottom: none; }
.contact-detail-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(109,17,36,0.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon); font-size: 1rem;
}
.contact-detail-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-detail-value { font-size: 0.88rem; color: var(--charcoal); line-height: 1.5; }
.contact-detail-link { color: var(--maroon); text-decoration: none; }
.contact-detail-link:hover { color: var(--maroon-dk); text-decoration: underline; }

.contact-socials-wrap { padding-top: 1rem; }
.contact-social-btn {
  display: inline-flex; align-items: center;
  background: var(--light-bg); border: 1px solid var(--border);
  color: var(--charcoal); border-radius: 8px;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.contact-social-btn:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Contact Form Card */
.contact-form-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
.contact-form-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.75rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--light-bg);
}
.contact-form-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.contact-form-subtitle { font-size: 0.83rem; color: var(--text-muted); }
.contact-form-header-icon {
  width: 44px; height: 44px;
  background: rgba(109,17,36,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon); font-size: 1.2rem; flex-shrink: 0;
}
.contact-form-body { padding: 1.75rem 2rem 2rem; }

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute; top: 50%; left: 0.9rem;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.95rem;
  pointer-events: none; z-index: 2;
}
.form-control-chbea.with-icon { padding-left: 2.5rem; }

/* Map Section */
.contact-map-section { }
.contact-map-label {
  display: inline-flex; align-items: center;
  background: var(--maroon); color: #fff;
  font-size: 0.82rem; font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 10px 10px 0 0;
  letter-spacing: 0.5px;
}
.contact-map-container {
  border-radius: 0 16px 16px 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  min-height: 380px;
}
.contact-map-container iframe { display: block; width: 100%; min-height: 380px; border: none; }

/* Legacy classes kept for backward compatibility */
.contact-info-card { background: #fff; border-radius: 16px; padding: 2rem; border: 1px solid var(--border); }
.contact-icon-box {
  width: 48px; height: 48px;
  background: rgba(109,17,36,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon); font-size: 1.25rem;
  flex-shrink: 0;
}

.form-control-chbea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control-chbea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(109,17,36,0.1);
  outline: none;
}
.form-label-chbea { font-size: 0.85rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.4rem; }

/* ─── Scholarship Cards ────────────────────────────────────── */
.scholarship-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border); padding: 1.75rem;
  transition: all 0.3s; height: 100%;
  border-top: 4px solid var(--gold);
}
.scholarship-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.scholarship-type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--maroon); margin-bottom: 0.5rem; }
.scholarship-amount { font-size: 1.1rem; font-weight: 700; color: var(--gold-dk); background: var(--beige); padding: 0.3rem 0.75rem; border-radius: 8px; display: inline-block; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-accordion .accordion-button {
  background: #fff; color: var(--dark);
  font-weight: 600; font-size: 0.95rem;
}
.faq-accordion .accordion-button:not(.collapsed) { background: var(--beige); color: var(--maroon); box-shadow: none; }
.faq-accordion .accordion-button::after { filter: none; }
.faq-accordion .accordion-button:not(.collapsed)::after { color: var(--maroon); }
.faq-accordion .accordion-item { border: 1px solid var(--border); border-radius: 10px !important; margin-bottom: 0.5rem; overflow: hidden; }

/* ─── Stats Counter ───────────────────────────────────────── */
.counter-section { background: var(--maroon); padding: 4rem 0; }
.counter-item { text-align: center; }
.counter-num { font-size: 3rem; font-weight: 800; color: var(--gold); font-family: 'Playfair Display', serif; line-height: 1; }
.counter-label { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 0.25rem; }

/* ─── Admin Form Fields ───────────────────────────────────── */
.form-control, .form-select { border-radius: 8px; border-color: #dee2e6; }
.form-control:focus, .form-select:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(109,17,36,0.1); }

/* ─── Footer ─────────────────────────────────────────────── */
.chbea-footer { background: var(--dark); }
.footer-top { padding: 4rem 0 3rem; }
.footer-heading {
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(201,168,76,0.3);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-contact-list i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-contact-list a:hover { color: var(--gold); }
.footer-socials { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.9rem; transition: all 0.2s;
}
.footer-socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}
.hover-gold:hover { color: var(--gold) !important; }

/* ─── Back to Top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--maroon); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(109,17,36,0.4);
  opacity: 0; transform: translateY(10px);
  transition: all 0.3s; pointer-events: none;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--dark); }

/* ─── Utilities ───────────────────────────────────────────── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rounded-xl { border-radius: 16px !important; }
.shadow-maroon { box-shadow: 0 8px 30px rgba(109,17,36,0.2) !important; }
.border-gold { border-color: var(--gold) !important; }
.pagination .page-link { color: var(--maroon); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--maroon); border-color: var(--maroon); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-banner { padding: 6rem 0 9rem; }
  .hfs-grid { grid-template-columns: repeat(2, 1fr); }
  .hfs-item {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 1rem 1.5rem;
    justify-content: flex-start;
  }
  .hfs-item:nth-child(odd)      { border-right: 1px solid rgba(0,0,0,0.07); }
  .hfs-item:nth-last-child(-n+2){ border-bottom: none; }
}
@media (max-width: 768px) {
  .hero-banner { min-height: 100svh; padding: 5rem 0 9rem; }
  .hero-banner-cta { flex-direction: column; align-items: center; }
  .hero-banner-cta a { width: 100%; max-width: 290px; justify-content: center; }
  .hero-floating-stats { margin-top: -50px; }
  .hfs-card { padding: 1.25rem 1rem; border-radius: 16px; }
  .hfs-num { font-size: 1.65rem; }
  .hero-scroll-hint { display: none; }
  .affiliation-badge { font-size: 0.72rem; padding: 0.3rem 0.7rem; }
  .page-banner { padding: 2.5rem 0; }
  .page-banner-title { font-size: 1.6rem; }
}

/* ─── Home Page Layout ────────────────────────────────────── */

/* Section padding classes replace inline styles for responsive control */
.home-section    { padding: 5rem 0; }
.home-section-sm { padding: 4rem 0; }

/* Spacer between carousel/ticker and floating stats */
.home-spacer { height: 6rem; }

/* Carousel image height */
.banner-carousel-img { max-height: 520px; object-fit: cover; }

/* Notice ticker bar padding */
.notice-ticker-bar { padding: 0.5rem 0; }

/* Director photo - responsive sizing via CSS instead of inline style */
.director-photo-img {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  display: block;
  margin: 0 auto;
}
.director-photo-placeholder {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  border: 6px solid var(--gold);
  margin: 0 auto;
}
.director-placeholder-icon { font-size: 5rem; }

/* Admission CTA button */
.btn-admission-cta { font-size: 1rem; padding: 1rem 2.5rem; }

/* ── Tablet (≤ 991px) ──────────────────────────────────────── */
@media (max-width: 991px) {
  .home-section    { padding: 3.5rem 0; }
  .home-section-sm { padding: 3rem 0; }
  .home-spacer { height: 5rem; }
  .banner-carousel-img { max-height: 420px; }
}

/* ── Mobile (≤ 768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  .home-section    { padding: 2.5rem 0; }
  .home-section-sm { padding: 2rem 0; }
  .home-spacer { height: 4rem; }

  .banner-carousel-img { max-height: 260px; }

  /* Director photo */
  .director-photo-img        { width: 150px; height: 150px; border-width: 4px; }
  .director-photo-placeholder{ width: 150px; height: 150px; border-width: 4px; }
  .director-placeholder-icon { font-size: 3.5rem; }

  /* Section title smaller on mobile */
  .section-title { font-size: 1.5rem; }

  /* Gallery - two columns */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }

  /* Counter */
  .counter-section { padding: 2.5rem 0; }
  .counter-num { font-size: 2.2rem; }

  /* Admission step cards */
  .step-card { padding: 1.5rem 1rem; }

  /* Admission CTA */
  .btn-admission-cta { font-size: 0.9rem; padding: 0.75rem 1.5rem; }

  /* Why cards - ensure padding is comfortable */
  .why-card { padding: 1.5rem 1rem; }

  /* Faculty photo slightly smaller */
  .faculty-photo { width: 80px; height: 80px; }

  /* Testimonial card padding */
  .testimonial-card { padding: 1.5rem 1.25rem; }

  /* Course card body */
  .course-card-body { padding: 1.25rem; }

  /* CTA section headings */
  .home-section-sm h2 { font-size: 1.4rem; }
}

/* ── Small mobile (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .home-spacer { height: 3rem; }
  .banner-carousel-img { max-height: 200px; }

  /* Director photo */
  .director-photo-img        { width: 110px; height: 110px; border-width: 3px; }
  .director-photo-placeholder{ width: 110px; height: 110px; border-width: 3px; }
  .director-placeholder-icon { font-size: 2.5rem; }

  /* Gallery - force two equal columns */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.375rem; }

  /* Stats card */
  .hfs-icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 10px; }
  .hfs-num  { font-size: 1.4rem; }
  .hfs-card { padding: 1rem 0.75rem; }

  /* Step number circle */
  .step-number { width: 40px; height: 40px; font-size: 1rem; }

  /* Section title */
  .section-title { font-size: 1.35rem; }

  /* Notice ticker - compact */
  .notice-ticker-bar .container { padding-left: 0.75rem; padding-right: 0.75rem; }

  /* Buttons full-width on CTA */
  .home-section-sm .d-flex.gap-3 { flex-direction: column; align-items: center; }
  .home-section-sm .btn-hero-primary,
  .home-section-sm .btn-hero-outline { width: 100%; max-width: 280px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   SPLASH NOTICE MODAL
   Reuses existing color tokens: --maroon, --gold, --beige, --border,
   --dark, --charcoal, --text-muted
   ═══════════════════════════════════════════════════════════════ */

/* ── Backdrop overlay ───────────────────────────────────────── */
.splash-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* Hidden by default; JS adds .splash-visible to show */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.splash-overlay.splash-visible {
  opacity: 1;
  visibility: visible;
}
/* Animate dialog in when overlay becomes visible */
.splash-overlay.splash-visible .splash-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Dialog card ─────────────────────────────────────────────── */
.splash-dialog--pdf {
  max-width: 800px;
}

.splash-dialog {
  background: #fff;
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  /* Entrance animation - starts translated/scaled down */
  transform: translateY(-28px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  border-top: 5px solid var(--maroon);
  position: relative;
  /* Scroll thin for WebKit */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.splash-dialog::-webkit-scrollbar { width: 5px; }
.splash-dialog::-webkit-scrollbar-track { background: transparent; }
.splash-dialog::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Urgent notices get red top border */
.splash-dialog.urgent-splash { border-top-color: #dc3545; }

/* ── Header ─────────────────────────────────────────────────── */
.splash-header {
  padding: 1.1rem 1.5rem 0.75rem;
}
.splash-header-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.splash-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.splash-close-btn:hover {
  color: var(--maroon);
  background: var(--beige);
}

/* ── Image ───────────────────────────────────────────────────── */
.splash-image {
  margin-top: 1rem;
}
.splash-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── PDF embed ───────────────────────────────────────────────── */
.splash-pdf {
  margin-top: 1rem;
}
.splash-pdf iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

/* ── Body ───────────────────────────────────────────────────── */
.splash-body {
  padding: 0.25rem 1.5rem 0.75rem;
}
.splash-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0;
  line-height: 1.35;
  min-width: 0;
}
.splash-title-link {
  color: inherit;
  text-decoration: none;
}
.splash-title-link:hover {
  color: var(--maroon);
  text-decoration: underline;
}
.splash-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.splash-content {
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.75;
  white-space: pre-wrap;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-right: 0.25rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.splash-footer {
  padding: 0.9rem 1.5rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.splash-dont-show-check {
  margin: 0;
  flex-shrink: 0;
}
.splash-dont-show-check .form-check-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}

/* ── Auto-hide progress bar ──────────────────────────────────── */
.splash-progress {
  height: 4px;
  background: var(--border);
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}
.splash-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  transform-origin: left;
  animation: splashCountdown linear forwards;
  /* animation-duration set via inline style from Blade */
}
@keyframes splashCountdown {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .splash-dialog {
    border-radius: 14px;
    max-height: 88vh;
    border-top-width: 4px;
  }
  .splash-title  { font-size: 1.1rem; }
  .splash-pdf iframe { height: 340px; }
  .splash-body   { padding: 0.25rem 1.1rem 0.5rem; }
  .splash-header { padding: 0.9rem 1.1rem 0.65rem; }
  .splash-footer {
    padding: 0.8rem 1.1rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Dark mode ───────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .splash-overlay { background: rgba(0, 0, 0, 0.75); }
  .splash-dialog  { background: #1c1c2e; border-top-color: var(--maroon); }
  .splash-dialog.urgent-splash { border-top-color: #e05260; }
  .splash-title   { color: #e8e6f0; }
  .splash-title-link { color: #e8e6f0; }
  .splash-title-link:hover { color: #c89ab5; }
  .splash-date    { color: #9090aa; }
  .splash-content { color: #b8b6cc; }
  .splash-footer  { border-top-color: #2e2e44; }
  .splash-dont-show-check .form-check-label { color: #9090aa; }
  .splash-close-btn:hover { background: #2e2e44; color: var(--gold); }
  .splash-progress { background: #2e2e44; }
}

/* ═══════════════════════════════════════════════════════════
   Faculty Members Page  (fm-*)
   ═══════════════════════════════════════════════════════════ */
.fm-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.fm-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(109,17,36,0.12); }
.fm-ribbon {
  background: var(--beige);
  color: var(--maroon);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.fm-photo-wrap { padding: 1.5rem 1.5rem 0.75rem; text-align: center; }
.fm-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dk));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 3rem; color: rgba(255,255,255,0.45);
  overflow: hidden;
}
.fm-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fm-body { padding: 0.5rem 1.25rem 1rem; text-align: center; flex: 1; }
.fm-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.fm-designation { font-size: 0.78rem; color: var(--maroon); font-weight: 600; margin-bottom: 0.2rem; }
.fm-dept { font-size: 0.73rem; color: #6c757d; margin-bottom: 0.4rem; }
.fm-bio { font-size: 0.77rem; color: #6c757d; line-height: 1.55; margin: 0.5rem 0 0; }
.fm-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 0.65rem; }
.fm-tag {
  display: inline-block;
  background: var(--beige);
  color: var(--maroon);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.fm-footer {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--light-bg);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon);
  transition: background 0.2s;
}
.fm-card:hover .fm-footer { background: var(--beige); }
.fm-stat-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 1.5rem;
  font-size: 0.85rem;
  color: var(--dark);
}

/* ═══════════════════════════════════════════════════════════
   Academic Staff Page  (as-*)  - same palette as Faculty Members
   ═══════════════════════════════════════════════════════════ */
.as-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.as-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(109,17,36,0.12); }
.as-ribbon {
  background: var(--beige);
  color: var(--maroon);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.as-photo-wrap { padding: 1.5rem 1.5rem 0.75rem; text-align: center; }
.as-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dk));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 3rem; color: rgba(255,255,255,0.45);
  overflow: hidden;
}
.as-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.as-body { padding: 0.5rem 1.25rem 1rem; text-align: center; flex: 1; }
.as-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.as-designation { font-size: 0.78rem; color: var(--maroon); font-weight: 600; margin-bottom: 0.2rem; }
.as-dept { font-size: 0.73rem; color: #6c757d; margin-bottom: 0.4rem; }
.as-bio { font-size: 0.77rem; color: #6c757d; line-height: 1.55; margin: 0.5rem 0 0; }
.as-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 0.65rem; }
.as-tag {
  display: inline-block;
  background: var(--beige);
  color: var(--maroon);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.as-footer {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--light-bg);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon);
  transition: background 0.2s;
}
.as-card:hover .as-footer { background: var(--beige); }
.as-stat-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 1.5rem;
  font-size: 0.85rem;
  color: var(--dark);
}

@media (max-width: 576px) {
  .fm-photo, .as-photo { width: 88px; height: 88px; font-size: 2.2rem; }
}
