/* ============================================================
   JCEducation – Modern College Website CSS
   Inspired by Amity, MIT WPU, Christ University design patterns
   ============================================================ */

:root {
  --primary:       #1a3a5c;
  --primary-dark:  #0f2340;
  --primary-light: #2d5f8e;
  --accent:        #2e7d32;
  --accent-light:  #4caf50;
  --accent2:       #d4a017;
  --accent2-light: #f5c842;
  --text-dark:     #1a1a2e;
  --text-muted:    #666;
  --bg-light:      #f8f9fb;
  --bg-section:    #f0f4f8;
  --white:         #ffffff;
  --border:        #e0e0e0;
  --shadow-sm:     0 2px 12px rgba(0,0,0,.08);
  --shadow-md:     0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.16);
  --radius:        10px;
  --radius-lg:     18px;
  --transition:    all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  overflow-x: hidden;
}
a { transition: var(--transition); }
img { max-width: 100%; }

/* ─── TOP BAR ───────────────────────────────────────────────── */
.top-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  width: 100%;
  color: rgba(255,255,255,.9);
  font-size: 0.78rem;
  letter-spacing: .3px;
  padding: 6px 0;
  border-bottom: 2px solid var(--accent2);
}
.top-bar a { color: rgba(255,255,255,.9); text-decoration: none; }
.top-bar a:hover { color: var(--accent-light); }
.top-bar .separator { opacity: .4; margin: 0 8px; }

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 20px rgba(26,58,92,.15);
  transition: padding .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { padding: 8px 0; box-shadow: 0 4px 24px rgba(26,58,92,.25); }
.site-logo { height: 70px; transition: height .3s ease; }
.site-header.scrolled .site-logo { height: 54px; }
.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
}
.site-subtitle {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}
.site-tagline { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ─── NAVIGATION ────────────────────────────────────────────── */
.main-nav {
  background: var(--primary);
  padding: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.main-nav .navbar-toggler { border-color: rgba(255,255,255,.5); padding: 4px 8px; }
.main-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.main-nav .nav-link {
  color: rgba(255,255,255,.92) !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 14px 14px !important;
  letter-spacing: .6px;
  text-transform: uppercase;
  position: relative;
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--accent2);
  transition: left .25s ease, right .25s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { left: 0; right: 0; }
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: #fff !important; background: rgba(0,0,0,.15); }
.main-nav .dropdown-menu {
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 200px;
  animation: dropIn .2s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.main-nav .dropdown-item {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 20px;
  color: var(--text-dark);
  border-left: 3px solid transparent;
}
.main-nav .dropdown-item:hover { background: #f0f6ff; color: var(--primary); border-left-color: var(--accent); }

/* ─── NEWS TICKER ───────────────────────────────────────────── */
.ticker-bar {
  background: linear-gradient(90deg, #e8f5e9, #f1f8e9);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid #c8e6c9;
  padding: 7px 0;
  font-size: 0.85rem;
}
.ticker-label {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.ticker-wrap { display: inline-block; animation: ticker-scroll 32s linear infinite; white-space: nowrap; }
@keyframes ticker-scroll {
  0%   { transform: translateX(60vw); }
  100% { transform: translateX(-100%); }
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-slide {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}
.hero-content .hero-badge {
  display: inline-block;
  background: var(--accent2);
  color: #1a1a2e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: 16px;
}
.hero-content p.lead { font-size: 1.05rem; opacity: .9; max-width: 540px; }
.btn-hero-primary {
  background: var(--accent2);
  color: #1a1a2e;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  font-size: 0.9rem;
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(212,160,23,.4);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-hero-primary:hover { background: var(--accent2-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,160,23,.5); color: #1a1a2e; }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,.7);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.hero-section .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; margin: 0 4px;
}
.hero-section .carousel-indicators .active { background: var(--accent2); width: 28px; border-radius: 5px; }

/* ─── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.stat-item {
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: #f0f8f0; }
.stat-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 6px; display: block; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; display: block; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ─── SECTION STYLES ────────────────────────────────────────── */
.section-pad { padding: 64px 0; }
.section-pad-sm { padding: 40px 0; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(46,125,50,.1);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.section-title .highlight { color: var(--primary); }
.section-divider {
  width: 50px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 12px auto 20px;
}
.section-heading {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.section-divider.left { margin-left: 0; }
.section-lead { color: var(--text-muted); font-size: 0.95rem; }
.section-heading {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ─── CHAIRMAN SECTION ──────────────────────────────────────── */
.chairman-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chairman-photo-wrap {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}
.chairman-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -1px; right: 0; left: 0;
  height: 32px;
  background: var(--white);
  clip-path: ellipse(65% 100% at 50% 100%);
}
.chairman-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.chairman-name { color: #fff; font-size: 1.1rem; font-weight: 700; margin-top: 12px; }
.chairman-title-text { color: rgba(255,255,255,.8); font-size: 0.8rem; }
.quote-icon { font-size: 3rem; color: rgba(139,0,0,.12); line-height: 1; margin-bottom: -10px; display: block; }
.chairman-message-text { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); font-style: italic; }
.chairman-sig { font-weight: 700; color: var(--primary); font-style: normal; font-size: 0.95rem; }

/* ─── WHY CHOOSE US ─────────────────────────────────────────── */
.why-section { background: var(--bg-section); }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border-bottom: 3px solid transparent;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-bottom-color: var(--primary); }
.feature-icon-wrap {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,58,92,.1), rgba(46,125,50,.15));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}
.feature-card:hover .feature-icon-wrap { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.feature-card h5 { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 8px; }
.feature-card p { font-size: 0.83rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── COURSES SECTION ───────────────────────────────────────── */
.course-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: none;
  background: var(--white);
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.course-card-top {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 28px 20px 20px;
  text-align: center;
  position: relative;
}
.course-code-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  position: absolute;
  top: 12px; right: 12px;
}
.course-icon { font-size: 2.5rem; color: rgba(255,255,255,.9); }
.course-name { font-size: 1rem; font-weight: 700; color: #fff; margin-top: 10px; }
.course-card-body { padding: 20px; background: var(--white); }
.course-meta { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.course-meta-item { font-size: 0.75rem; color: var(--text-muted); }
.course-meta-item i { color: var(--accent); margin-right: 4px; }
.course-card-footer {
  background: var(--bg-light);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-course {
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-course:hover { background: var(--primary-dark); color: #fff; }
.seats-badge { font-size: 0.72rem; color: var(--accent); font-weight: 600; }

/* ─── ANNOUNCEMENTS ─────────────────────────────────────────── */
.announcement-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: none; }
.announcement-header {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.announcement-header i { color: var(--accent2); }
.announcement-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
}
.announcement-item:last-child { border-bottom: none; }
.announcement-item:hover { background: #f0f6ff; }
.new-badge {
  background: #e53935;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
}
.announcement-title { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.announcement-meta { font-size: 0.75rem; color: var(--text-muted); }
.announcement-link { font-size: 0.78rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.announcement-link:hover { text-decoration: underline; }

.quick-links-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: none; margin-top: 20px; }
.quick-link-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
  background: var(--white);
}
.quick-link-item:last-child { border-bottom: none; }
.quick-link-item:hover { background: #f0f6ff; color: var(--primary); padding-left: 22px; }
.quick-link-item i { width: 20px; color: var(--accent); margin-right: 6px; }

/* ─── GALLERY ───────────────────────────────────────────────── */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img, .gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
  border-radius: var(--radius);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,58,92,.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: 0.8rem; font-weight: 600; }

/* ─── CTA BANNER ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.cta-sub { color: rgba(255,255,255,.8); font-size: 0.95rem; }
.btn-cta {
  background: var(--accent2);
  color: #1a1a2e;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 30px;
  border: none;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(212,160,23,.4);
  text-decoration: none;
  display: inline-block;
}
.btn-cta:hover { background: var(--accent2-light); transform: translateY(-2px); color: #1a1a2e; }
.btn-cta-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,.6);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  margin-left: 12px;
}
.btn-cta-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: #0f0f1a; color: rgba(255,255,255,.75); }
.footer-top { padding: 56px 0 32px; }
.footer-brand img { height: 60px; margin-bottom: 12px; }
.footer-brand-name { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-brand-tagline { font-size: 0.78rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.footer-about { font-size: 0.82rem; line-height: 1.7; margin-top: 12px; }
.footer-social { margin-top: 16px; display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,160,23,.3);
}
.footer-link-list { list-style: none; padding: 0; margin: 0; }
.footer-link-list li { margin-bottom: 8px; }
.footer-link-list a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 0.83rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-link-list a i { font-size: 0.65rem; color: var(--accent2); }
.footer-link-list a:hover { color: #fff; padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.83rem; }
.footer-contact-item i { color: var(--accent2); margin-top: 2px; flex-shrink: 0; width: 16px; }
.footer-contact-item span { color: rgba(255,255,255,.7); line-height: 1.5; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 0; }
.footer-bottom { padding: 16px 0; font-size: 0.78rem; color: rgba(255,255,255,.45); text-align: center; }
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent2); }
/* Legacy footer links support */
.footer-link { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-link:hover { color: var(--accent2); text-decoration: underline; }

/* ─── PAGE BANNER ───────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--accent2));
}
.page-banner h2 { font-size: 2rem; font-weight: 800; color: #fff; }
.breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ─── CARDS ─────────────────────────────────────────────────── */
.jce-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
}
.jce-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.jce-card .card-header {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  letter-spacing: .5px;
  padding: 12px 18px;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-jce { background: var(--primary); color: #fff; border: none; border-radius: 6px; font-weight: 600; transition: var(--transition); }
.btn-jce:hover { background: var(--primary-dark); color: #fff; }
.btn-jce-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 6px; font-weight: 600; transition: var(--transition); }
.btn-jce-outline:hover { background: var(--primary); color: #fff; }

/* ─── ADMIN ─────────────────────────────────────────────────── */
.admin-sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.7);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active { background: rgba(26,58,92,.4); color: #fff; border-left-color: var(--accent2); }
.admin-sidebar .nav-link i { width: 20px; }
.admin-content { padding: 28px; }
.stat-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-content h1 { font-size: 1.8rem; }
}
@media (max-width: 767px) {
  .stats-bar .row > div:nth-child(odd) .stat-item { border-right: 1px solid var(--border); }
  .site-title { font-size: 1.1rem; }
  .site-logo { height: 52px; }
  .hero-section, .hero-slide { min-height: 380px; }
  .hero-content { padding: 40px 0; }
  .section-pad { padding: 44px 0; }
  .cta-section { padding: 40px 0; }
  .btn-cta-outline { margin-left: 0; margin-top: 10px; }
}


/* ══════════════════════════════════════════════════════════════
   MODERN LAYOUT ADDITIONS  (v3 – unified nav + section flow)
   ══════════════════════════════════════════════════════════════ */

/* ─── TOP BAR EXTRAS ─────────────────────────────────────────── */
.top-bar-link  { color: rgba(255,255,255,.85); text-decoration: none; font-size:.78rem; }
.top-bar-link:hover { color: var(--accent2); }
.top-bar-btn   { background: none; border: 1px solid rgba(255,255,255,.4); color: rgba(255,255,255,.85);
                  border-radius: 4px; font-size: .72rem; padding: 2px 8px; cursor: pointer;
                  transition: var(--transition); }
.top-bar-btn:hover { border-color: var(--accent2); color: var(--accent2); }

/* ─── UNIFIED STICKY NAVBAR ──────────────────────────────────── */
.main-navbar {
  background: var(--white);
  padding: 0;
  box-shadow: 0 2px 20px rgba(26,58,92,.12);
  border-bottom: 3px solid var(--primary);
  transition: padding .3s, box-shadow .3s;
  z-index: 1040;
  width: 100%;
}
.main-navbar.scrolled {
  box-shadow: 0 4px 28px rgba(26,58,92,.22);
  padding: 0;
}
/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  padding: 10px 0;
}
.nav-logo { height: 58px; transition: height .3s; flex-shrink: 0; }
.main-navbar.scrolled .nav-logo { height: 46px; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name {
  font-size: .92rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .3px;
  line-height: 1.2;
  text-transform: uppercase;
}
.nav-brand-sub {
  font-size: .68rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* Nav Links */
.main-navbar .nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: .82rem;
  padding: 22px 13px !important;
  letter-spacing: .4px;
  text-transform: uppercase;
  position: relative;
  transition: color .2s;
}
.main-navbar .nav-link::after {
  content: '' !important;
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  border: 0 !important;
  background: var(--primary);
  transition: left .25s, right .25s;
  vertical-align: 0;
  margin: 0;
}
.main-navbar .nav-link:hover::after { left: 0; right: 0; }
.main-navbar .nav-link:hover { color: var(--primary) !important; }
.main-navbar .nav-link.active { color: var(--primary) !important; }
.main-navbar .nav-link.active::after { left: 0; right: 0; }
.main-navbar .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 3px solid var(--primary);
  padding: 8px 0;
  animation: dropIn .2s ease;
}
.main-navbar .dropdown-item {
  font-size: .84rem;
  font-weight: 500;
  padding: 9px 20px;
  color: var(--text-dark);
  border-left: 3px solid transparent;
}
.main-navbar .dropdown-item:hover { background: #f0f6ff; color: var(--primary); border-left-color: var(--accent); }
/* Apply Now CTA */
.btn-apply {
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: .8rem;
  padding: 9px 22px;
  border-radius: 25px;
  border: 2px solid var(--primary);
  letter-spacing: .5px;
  text-decoration: none !important;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-apply:hover { background: transparent; color: var(--primary) !important; }
/* Mobile toggler – custom hamburger → X */
.mob-toggler {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 8px;
  transition: background .2s;
}
/* Hide hamburger on desktop (≥992px) */
@media (min-width: 992px) {
  .mob-toggler { display: none !important; }
}
.mob-toggler:hover { background: rgba(26,58,92,.07) !important; }
.mob-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 3px;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .25s ease, width .3s ease;
  transform-origin: center;
}
.mob-toggler.open .mob-line-1 { transform: translateY(7.5px) rotate(45deg); }
.mob-toggler.open .mob-line-2 { opacity: 0; width: 0; }
.mob-toggler.open .mob-line-3 { transform: translateY(-7.5px) rotate(-45deg); }

/* Backdrop overlay */
.mob-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,18,34,.55);
  z-index: 1049;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mob-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
body.mob-menu-open { overflow: hidden; }

/* Mobile / Tablet drawer (< 992px) */
@media (max-width: 991.98px) {
  /* Override Bootstrap collapse — keep in DOM, animate via transform */
  #navMenu.collapse,
  #navMenu.collapsing {
    display: flex !important;
    height: auto !important;
    overflow: hidden;
  }
  #navMenu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 82vw; max-width: 300px;
    background: var(--white);
    z-index: 1055;
    padding: 0;
    overflow-y: auto;
    box-shadow: -6px 0 40px rgba(8,18,34,.2);
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .3s ease, visibility 0s .32s;
  }
  #navMenu.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  }
  /* Drawer header */
  .mob-drawer-header {
    padding: 16px 20px 14px;
    border-bottom: 2px solid #f0f2f5;
    flex-shrink: 0;
  }
  /* Nav list */
  #navMenu .navbar-nav {
    flex-direction: column !important;
    width: 100%;
    padding: 8px 0;
  }
  #navMenu .nav-item { border-bottom: 1px solid #f0f3f7; }
  #navMenu .nav-link {
    padding: 13px 22px !important;
    font-size: .9rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 600;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #navMenu .nav-link:hover {
    background: #f4f8ff;
    color: var(--primary) !important;
    padding-left: 28px !important;
  }
  #navMenu .nav-link.active {
    color: var(--primary) !important;
    background: #eef4ff;
    border-left: 3px solid var(--primary);
    padding-left: 19px !important;
  }
  #navMenu .nav-link::after { display: none !important; }
  #navMenu .dropdown-menu {
    position: static !important;
    box-shadow: none;
    border: none;
    background: #f8f9fb;
    padding: 4px 0 4px 20px;
    animation: none;
    border-radius: 0;
  }
  #navMenu .dropdown-item {
    font-size: .86rem;
    padding: 9px 16px;
    border-left: none;
  }
  #navMenu .btn-apply {
    display: block;
    margin: 16px 20px 20px;
    text-align: center;
    font-size: .88rem;
  }
  /* Close button */
  .mob-close-btn {
    background: none;
    border: 1.5px solid #dde1ea;
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark);
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    flex-shrink: 0;
  }
  .mob-close-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
}

/* ─── HERO UPDATES ────────────────────────────────────────────── */
/* Fix: override old display:flex so carousel fills full width */
.hero-section {
  display: block !important;
  min-height: 600px;
}
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
  width: 100% !important;
}
.hero-slide {
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
}
.hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff !important;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-title em { font-style: normal; color: var(--accent2) !important; }
.hero-sub  { font-size: 1rem; color: rgba(255,255,255,.9) !important; max-width: 600px; line-height: 1.7; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-indicators { bottom: 24px !important; }
.hero-content { padding: 60px 0; width: 100%; }
/* ── Carousel controls: compact edge buttons, no content overlap ── */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
  background: none;
}
#heroCarousel .carousel-control-prev { left: 12px; }
#heroCarousel .carousel-control-next { right: 12px; }
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background-size: 18px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color .2s, border-color .2s, transform .2s;
}
#heroCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#heroCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--accent2);
  border-color: var(--accent2);
  transform: scale(1.1);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%231a1a2e' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
#heroCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%231a1a2e' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
@media (max-width: 575px) {
  #heroCarousel .carousel-control-prev,
  #heroCarousel .carousel-control-next { width: 36px; }
  #heroCarousel .carousel-control-prev-icon,
  #heroCarousel .carousel-control-next-icon { width: 34px; height: 34px; background-size: 14px; }
  #heroCarousel .carousel-control-prev { left: 6px; }
  #heroCarousel .carousel-control-next { right: 6px; }
}
.hero-badge { display: inline-block; background: var(--accent2); color: #1a1a2e; font-size: .75rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
/* Slide backgrounds - darker for better text contrast */
.slide-1 { background: linear-gradient(135deg, #0a1828 0%, #1a3a5c 70%, #1e4d6b 100%); }
.slide-2 { background: linear-gradient(135deg, #071a08 0%, #1a4d1c 70%, #2e7d32 100%); }
.slide-3 { background: linear-gradient(135deg, #100900 0%, #3a2200 70%, #6b4800 100%); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(0,0,0,.15) 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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-strip {
  background: var(--primary-dark);
  border-bottom: 4px solid var(--accent2);
}
.stats-strip .stat-item {
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
  transition: var(--transition);
  background: transparent;
}
.stats-strip .stat-item:last-child { border-right: none; }
.stats-strip .stat-item:hover    { background: rgba(255,255,255,.06); }
.stats-strip .stat-icon           { color: var(--accent2); font-size: 1.8rem; margin-bottom: 8px; display: block; }
.stats-strip .stat-number         { color: #fff; font-size: 2.4rem; font-weight: 800; line-height: 1; display: block; }
.stats-strip .stat-label          { color: rgba(255,255,255,.6); font-size: .72rem; font-weight: 600;
                                     text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ─── CHAIRMAN SPLIT SECTION ──────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 480px;
}
.about-split-image {
  background: linear-gradient(160deg, #0d3320 0%, #1a5c35 55%, #2e7d32 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-split-image::after {
  content: '';
  position: absolute;
  top: 0; right: -60px;
  width: 120px; height: 100%;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
  z-index: 1;
}
.about-split-image img {
  width: 220px; height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid rgba(255,255,255,.25);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  position: relative; z-index: 0;
}
.about-split-placeholder {
  width: 200px; height: 250px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.4);
}
.about-split-name-tag {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent2);
  color: #1a1a2e;
  padding: 8px 20px;
  border-radius: 25px;
  text-align: center;
  z-index: 2;
  white-space: nowrap;
}
.about-split-name-tag strong { display: block; font-size: .88rem; font-weight: 700; }
.about-split-name-tag span   { font-size: .72rem; font-weight: 600; letter-spacing: .5px; }
.about-split-body {
  padding: 64px 56px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-split-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}
.about-split-title em { font-style: normal; color: var(--primary); }
.about-split-text { font-size: .92rem; color: var(--text-muted); line-height: 1.85; }

/* ─── PROGRAMMES / COURSES STRIP ──────────────────────────────── */
.programmes-strip {
  background: linear-gradient(135deg, #0f2340 0%, var(--primary) 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.programmes-strip::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.prog-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  backdrop-filter: blur(4px);
}
.prog-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.prog-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: #1a1a2e;
}
.prog-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.prog-desc { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 14px; }
.prog-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.prog-meta span { font-size: .76rem; color: rgba(255,255,255,.6); }
.prog-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent2);
  font-size: .82rem; font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.prog-link:hover { color: var(--accent2-light); gap: 10px; }

/* ─── PROGRAMMES CAROUSEL ─────────────────────────────────────── */
.prog-carousel-wrap {
  position: relative;
  padding: 0 44px;
}
.prog-track {
  display: flex;
  gap: 24px;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.prog-slide {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
}
@media (max-width: 991px) {
  .prog-slide { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 575px) {
  .prog-slide { flex: 0 0 100%; }
  .prog-carousel-wrap { padding: 0 36px; }
}
.prog-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.prog-nav:hover:not(:disabled) { background: var(--accent2); color: #1a1a2e; border-color: var(--accent2); }
.prog-nav:disabled { opacity: 0.3; cursor: default; }
.prog-prev { left: 0; }
.prog-next { right: 0; }
.prog-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 28px;
}
.prog-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none; cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.prog-dot.active, .prog-dot:hover { background: var(--accent2); transform: scale(1.2); }

/* ─── WHY JCE SECTION ─────────────────────────────────────────── */
.why-jce-section {
  background: var(--bg-section);
  padding: 72px 0;
}
.feature-card.feature-primary { border-bottom-color: var(--primary); }
.feature-card.feature-green   { border-bottom-color: var(--accent); }
.feature-card.feature-gold    { border-bottom-color: var(--accent2); }
.feature-title { font-weight: 700; font-size: .95rem; color: var(--text-dark); margin-bottom: 8px; }
.feature-desc  { font-size: .83rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.feature-card.feature-green .feature-icon-wrap { color: var(--accent); }
.feature-card.feature-gold  .feature-icon-wrap { color: var(--accent2); }

/* ─── NEWS SECTION ────────────────────────────────────────────── */
.news-section { padding: 72px 0; background: var(--white); }
.jce-card-header {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.jce-card-header i { color: var(--accent2); }
.jce-card-body { padding: 0 !important; }
/* Announcement items redesign */
.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
}
.announcement-item:last-child { border-bottom: none; }
.announcement-item:hover { background: #f4f8ff; }
.ann-date {
  min-width: 44px; height: 50px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ann-day { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1; }
.ann-mon { font-size: .58rem; color: var(--accent2); font-weight: 700;
           text-transform: uppercase; letter-spacing: 1px; }
.ann-body { flex: 1; min-width: 0; }
.ann-title { font-size: .87rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.ann-desc  { font-size: .78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }
.ann-badge {
  background: #e53935; color: #fff;
  font-size: .62rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
/* Quick links redesign */
.quick-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
  background: var(--white);
}
.quick-link-item:last-child { border-bottom: none; }
.quick-link-item:hover { background: #f4f8ff; color: var(--primary); padding-left: 22px; }
.quick-link-item > i:first-child {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(26,58,92,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: .85rem; flex-shrink: 0;
}
.quick-link-item span { flex: 1; }

/* ─── SECTION TAG (light variant for dark bg) ─────────────────── */
.section-tag.light {
  background: rgba(255,255,255,.15);
  color: var(--accent2);
}
.section-sub { color: var(--text-muted); font-size: .92rem; max-width: 600px; margin: 0 auto; }

/* ─── GALLERY SECTION ─────────────────────────────────────────── */
.gallery-section { padding: 72px 0; background: var(--bg-section); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,58,92,.85) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end;
  padding: 12px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: .8rem; font-weight: 600; }

/* ─── CTA SECTION ─────────────────────────────────────────────── */
.cta-overlay {
  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.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── FOOTER BRAND ────────────────────────────────────────────── */
.footer-brand-name    { font-size: 1.05rem; font-weight: 700; color: #fff; }
.footer-brand-tagline { font-size: .75rem; color: rgba(255,255,255,.5); }
.footer-bottom a      { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent2); }

/* ─── ABOUT PAGE ──────────────────────────────────────────────── */
/* Hero */
.about-hero {
  background: linear-gradient(135deg, #071a08 0%, #1a4d1c 55%, #2e7d32 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}
.about-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-hero > .container { position: relative; z-index: 2; }
.about-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  margin-bottom: 16px;
}
.about-hero-title em { font-style: normal; color: var(--accent2); }
.about-hero-sub { font-size: 1rem; color: rgba(255,255,255,.85); line-height: 1.7; max-width: 540px; margin-bottom: 0; }
.about-breadcrumb {
  background: rgba(0,0,0,.2);
  padding: 10px 0;
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.1);
}
/* Hero floating images */
.about-hero-visual {
  position: relative;
  width: 500px;
  height: 380px;
}
.about-hero-img-main {
  position: absolute;
  top: 0; right: 0;
  width: 380px; height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border: 3px solid rgba(255,255,255,.2);
}
.about-hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-hero-img-thumb {
  position: absolute;
  bottom: 0; left: 0;
  width: 200px; height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  border: 3px solid rgba(255,255,255,.2);
}
.about-hero-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.about-hero-img-badge {
  position: absolute;
  bottom: 60px; right: 20px;
  z-index: 5;
}
.about-badge-circle {
  width: 90px; height: 90px;
  background: var(--accent2);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.about-badge-number { font-size: 1.4rem; font-weight: 800; color: #1a1a2e; line-height: 1; }
.about-badge-label  { font-size: .55rem; font-weight: 700; color: #1a1a2e; text-align: center; line-height: 1.3; text-transform: uppercase; letter-spacing: .5px; }

/* About image gallery block */
.about-img-gallery {
  position: relative;
  padding: 0 0 60px 0;
}
.aig-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26,58,92,.18);
}
.aig-main img { width: 100%; height: 300px; object-fit: cover; display: block; }
.aig-accent {
  position: absolute;
  bottom: 0; right: -20px;
  width: 200px; height: 160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  border: 4px solid #fff;
}
.aig-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aig-badge {
  position: absolute;
  top: 20px; left: -16px;
  background: var(--accent2);
  color: #1a1a2e;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  line-height: 1.3;
}
.aig-badge i { font-size: 1.1rem; flex-shrink: 0; }

/* check list */
.about-check-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 500;
  color: var(--text-dark);
  padding: 6px 0;
}
.about-check-item i { color: var(--accent); font-size: .85rem; flex-shrink: 0; }

/* Vision & Mission */
.about-vm-section {
  background: var(--primary-dark);
  padding: 72px 0;
}
.about-vm-section .section-title { color: #fff; }
.vm-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.vm-vision  { background: linear-gradient(135deg, rgba(26,58,92,.95) 0%, rgba(30,77,107,.95) 100%); border: 1px solid rgba(255,255,255,.1); }
.vm-mission { background: linear-gradient(135deg, rgba(14,46,15,.95) 0%, rgba(46,125,50,.8) 100%); border: 1px solid rgba(255,255,255,.1); }
.vm-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #1a1a2e;
  margin-bottom: 20px;
}
.vm-title { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.vm-text  { color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.vm-list  { list-style: none; padding: 0; margin: 0; }
.vm-list li {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.75); font-size: .85rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.vm-list li:last-child { border-bottom: none; }
.vm-list li i { color: var(--accent2); font-size: .7rem; }

/* Chairman section */
.about-chairman-section {
  background: var(--bg-section);
  padding: 72px 0;
}
.about-chairman-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,58,92,.12);
}
.about-chairman-left {
  background: linear-gradient(160deg, #0a1828 0%, #1a3a5c 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  position: relative;
  min-height: 360px;
}
.about-chairman-img-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.about-chairman-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: .8;
}
.about-chairman-meta {
  position: relative; z-index: 2;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  width: 100%; padding: 18px 24px;
  display: flex; flex-direction: column; gap: 3px;
}
.about-chairman-meta strong { color: #fff; font-size: .95rem; font-weight: 700; }
.about-chairman-meta span   { color: var(--accent2); font-size: .78rem; font-weight: 600; }
.about-chairman-quote-icon  { color: rgba(255,255,255,.3); font-size: 1.4rem; margin-top: 4px; }
.about-chairman-right {
  background: #fff;
  padding: 48px 44px;
}
.about-chairman-text {
  font-size: .92rem; color: var(--text-muted);
  line-height: 1.85;
  max-height: 280px; overflow-y: auto;
  padding-right: 8px;
}
.about-chairman-text::-webkit-scrollbar { width: 4px; }
.about-chairman-text::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.about-chairman-signature { display: flex; flex-direction: column; gap: 4px; }
.sig-line { width: 80px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; }
.sig-text  { font-size: .8rem; font-weight: 600; color: var(--text-muted); }

/* Core values */
.cv-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.cv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cv-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}
.cv-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.cv-text  { font-size: .84rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Infrastructure cards */
.infra-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: #fff;
  height: 100%;
}
.infra-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.infra-img { position: relative; overflow: hidden; }
.infra-img img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .4s; }
.infra-card:hover .infra-img img { transform: scale(1.05); }
.infra-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent2); color: #1a1a2e;
  font-size: .7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: .8px; text-transform: uppercase;
}
.infra-body { padding: 20px 22px 24px; }
.infra-title { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.infra-text  { font-size: .83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* btn-jce-gold */
.btn-jce-gold {
  background: var(--accent2);
  color: #1a1a2e;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-jce-gold:hover { background: #c49015; color: #1a1a2e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,160,23,.4); }

/* ─── COURSES PAGE ──────────────────────────────────────────── */
.courses-hero {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #071a08 0%, #1a3a5c 60%, #0d2238 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.courses-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1400&fit=crop&q=60') center/cover no-repeat;
  opacity: .12;
}
.courses-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,26,8,.88) 0%, rgba(26,58,92,.85) 100%);
}
.courses-hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.courses-hero-sub   { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto; }

.courses-stat-strip { background: #1a3a5c; padding: 18px 0; }
.cstat-item { padding: 12px 8px; border-right: 1px solid rgba(255,255,255,.12); }
.cstat-item:last-child { border-right: none; }
.cstat-num   { font-size: 1.6rem; font-weight: 800; color: #d4a017; line-height: 1; }
.cstat-label { font-size: .72rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

.bg-light-soft { background: #f4f7fb; }

/* Course card */
.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.13); }

.course-card-top {
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-color-1 { background: linear-gradient(135deg, #1a3a5c, #2a5298); }
.course-color-2 { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.course-color-3 { background: linear-gradient(135deg, #7b2d00, #bf360c); }
.course-color-4 { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.course-color-5 { background: linear-gradient(135deg, #006064, #00838f); }
.course-color-6 { background: linear-gradient(135deg, #b7860b, #d4a017); }

.course-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.course-icon-wrap i { font-size: 1.6rem; color: #fff; }

.course-code-badge {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.course-card-body { padding: 22px 22px 14px; flex: 1; }
.course-card-title { font-size: 1.05rem; font-weight: 700; color: #1a3a5c; margin-bottom: 8px; line-height: 1.3; }
.course-card-desc  { font-size: .85rem; color: #64748b; line-height: 1.5; margin-bottom: 14px; }

.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.course-meta-pill {
  font-size: .75rem;
  background: #f0f4ff;
  color: #1a3a5c;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.course-elig { font-size: .8rem; color: #444; }

.course-card-footer { padding: 14px 22px 18px; }

/* Why JCE boxes on courses page */
.why-jce-box { padding: 28px 20px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; height: 100%; transition: box-shadow .2s, transform .2s; }
.why-jce-box:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-4px); }
.why-jce-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.why-jce-icon i { font-size: 1.4rem; color: #fff; }
.why-jce-box h5 { font-weight: 700; color: #1a3a5c; margin-bottom: 8px; }

/* ─── FACULTY PAGE ──────────────────────────────────────────── */
.faculty-hero {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2238 50%, #071a08 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.faculty-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1577896851231-70ef18881754?w=1400&fit=crop&q=60') center/cover no-repeat;
  opacity: .1;
}
.faculty-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,.92) 0%, rgba(7,26,8,.85) 100%);
}

/* Faculty Card */
.faculty-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  transition: transform .28s, box-shadow .28s;
  display: flex;
  flex-direction: column;
}
.faculty-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,.14); }

.faculty-card-top {
  position: relative;
  background: linear-gradient(135deg, #1a3a5c 0%, #2e7d32 100%);
  padding: 32px 20px 60px;
  text-align: center;
  overflow: hidden;
}
.fc-deco-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.fc-deco-1 { width: 120px; height: 120px; top: -30px; right: -30px; }
.fc-deco-2 { width: 70px;  height: 70px;  bottom: 20px; left: -20px; }

.faculty-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}
.faculty-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.faculty-avatar-placeholder span {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
}

.faculty-dept-tag {
  display: inline-block;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212,160,23,.9);
  color: #1a1a2e;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.faculty-card-body {
  padding: 24px 20px 18px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.faculty-name        { font-size: 1.05rem; font-weight: 700; color: #1a3a5c; margin-bottom: 4px; }
.faculty-designation { font-size: .85rem; color: #2e7d32; font-weight: 600; margin-bottom: 8px; }
.faculty-qual        { font-size: .78rem; color: #64748b; margin-bottom: 12px; }

.faculty-card-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin: 10px 0 14px;
}
.faculty-social { display: flex; gap: 10px; justify-content: center; margin-top: auto; }
.faculty-social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all .2s;
  font-size: .85rem;
}
.faculty-social-icon:hover { background: #1a3a5c; border-color: #1a3a5c; color: #fff; }

/* ─── GALLERY PAGE ──────────────────────────────────────────── */
.gallery-hero {
  position: relative;
  min-height: 260px;
  background: linear-gradient(135deg, #0d1117 0%, #1a3a5c 60%, #071a08 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=1400&fit=crop&q=60') center/cover no-repeat;
  opacity: .1;
}
.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,.9) 0%, rgba(26,58,92,.85) 100%);
}

/* Filter Bar */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #1a3a5c;
  border-radius: 30px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.gf-btn:hover  { border-color: #2e7d32; color: #2e7d32; }
.gf-btn.active { background: #1a3a5c; color: #fff; border-color: #1a3a5c; }
.gf-count {
  background: rgba(255,255,255,.2);
  color: inherit;
  font-size: .7rem;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 700;
}
.gf-btn.active .gf-count { background: rgba(255,255,255,.25); }

/* Responsive auto-fill grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.gallery-item a { display: block; position: relative; }
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,26,8,.85) 0%, rgba(26,58,92,.45) 100%);
  border-radius: 12px;
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-overlay-inner {
  padding: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-overlay-inner .fa-search-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255,255,255,.8);
}
.gallery-caption-text {
  font-size: .8rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  line-height: 1.3;
}
.gallery-cat-tag {
  display: inline-block;
  background: rgba(212,160,23,.85);
  color: #1a1a2e;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  align-self: flex-start;
}

/* ─── RESPONSIVE UPDATES ──────────────────────────────────────── */
@media (max-width: 991px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split-image { min-height: 220px; padding: 32px 20px 70px; }
  .about-split-image::after { display: none; }
  .about-split-body { padding: 36px 28px; }
  .about-split-image img,
  .about-split-placeholder { width: 140px; height: 175px; }
  .stats-strip .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  /* 3 cols on tablet for features/programmes */
  .why-jce-section .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}
/* Desktop nav links: reduce padding slightly to fit at lg+ (992px) */
@media (min-width: 992px) {
  .main-navbar .nav-link { padding: 22px 12px !important; font-size: .82rem; }
  .main-navbar .nav-link::after { height: 3px; }
}
/* At lg-xl, shrink brand to free up navbar space for links */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: 0.78rem; white-space: normal; max-width: 115px; line-height: 1.25; }
  .nav-logo { height: 42px; }
  .main-navbar .navbar-brand { padding-top: 8px; padding-bottom: 8px; }
}
@media (min-width: 1200px) {
  .main-navbar .nav-link { padding: 22px 16px !important; font-size: .84rem; }
}
/* Mobile (< 992px): page-level styles — nav handled by drawer rules above */
@media (max-width: 767px) {
  .hero-section, .hero-slide { min-height: 400px; }
  .hero-title { font-size: 1.6rem; }
  .hero-sub  { font-size: .88rem; }
  .stats-strip .stat-number { font-size: 1.8rem; }
  .stats-strip .stat-item { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-brand-name { font-size: .84rem; }
  .nav-logo { height: 46px; }
  .about-split-image { min-height: 180px; }
  .about-split-body { padding: 24px 20px; }
  .programmes-strip { padding: 40px 0 48px; }
  .why-jce-section  { padding: 40px 0; }
  .news-section     { padding: 40px 0; }
  .gallery-section  { padding: 40px 0; }
  .why-jce-section .col-lg-4,
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

/* ─── REGISTRATION PAGE ─────────────────────────────────────── */
.reg-hero {
  position: relative;
  min-height: 240px;
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 50%, #1a4a2e 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.reg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/campus.jpg');
  background-size: cover;
  background-position: center;
  opacity: .07;
}
.reg-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(13,33,55,.85) 0%, rgba(26,74,46,.75) 100%);
}
.reg-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.5px;
  color: #fff;
  margin-bottom: .3rem;
}
.reg-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 0;
}
.reg-breadcrumb { background: transparent; margin-bottom: 0; }
.reg-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .88rem; }
.reg-breadcrumb .breadcrumb-item a:hover { color: #f9c74f; }
.reg-breadcrumb .breadcrumb-item.active { color: #f9c74f; font-size: .88rem; }
.reg-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* INFO STRIP */
.reg-info-strip {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.reg-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-right: 1px solid #f0f0f0;
}
.reg-info-item:last-child { border-right: none; }
.reg-info-icon {
  font-size: 1.5rem;
  color: var(--primary);
  opacity: .85;
  flex-shrink: 0;
}
.reg-info-val { font-size: 1.25rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.reg-info-lbl { font-size: .78rem; color: #666; text-transform: uppercase; letter-spacing: .5px; }

/* CONTAINER */
.reg-container { max-width: 960px; padding-top: 2.5rem; padding-bottom: 4rem; }

/* SUCCESS ALERT */
.reg-success-alert {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: none;
  border-left: 5px solid #2e7d32;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.25rem;
  color: #1b5e20;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.reg-success-alert .fa-check-circle { color: #2e7d32; margin-top: 3px; }

/* STEP PROGRESS */
.reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0;
}
.reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.reg-step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s;
}
.reg-step.active .reg-step-num,
.reg-step.done .reg-step-num {
  background: var(--primary);
  color: #fff;
}
.reg-step.done .reg-step-num { background: var(--accent); }
.reg-step-label {
  font-size: .78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.reg-step.active .reg-step-label { color: var(--primary); font-weight: 600; }
.reg-step.done .reg-step-label { color: var(--accent); font-weight: 600; }
.reg-step-line {
  flex: 1;
  height: 3px;
  background: #e0e0e0;
  min-width: 60px;
  max-width: 120px;
  margin-bottom: 20px;
}

/* SECTION CARDS */
.reg-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0,0,0,.08);
  margin-bottom: 1.8rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
}
.reg-section-header {
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 100%);
  color: #fff;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.reg-section-header::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.reg-section-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
}
.reg-section-title { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.reg-section-sub { font-size: .8rem; opacity: .75; }
.reg-section-icon {
  margin-left: auto;
  font-size: 2.2rem;
  opacity: .2;
  position: relative;
  z-index: 1;
}
.reg-section-body { padding: 1.5rem; }

/* LABELS & INPUTS */
.reg-label {
  font-size: .83rem;
  font-weight: 600;
  color: #444;
  margin-bottom: .3rem;
  display: block;
  letter-spacing: .1px;
}
.reg-label .fa { color: var(--primary); opacity: .7; font-size: .8rem; }
.reg-label .req { color: #e53e3e; }
.reg-label-sm {
  font-size: .75rem;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.reg-input {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: .55rem .85rem;
  font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
  background: #fafbfc;
}
.reg-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,.1);
  background: #fff;
  outline: none;
}
.reg-input-sm { padding: .35rem .6rem; font-size: .85rem; }

/* QUALIFICATIONS GRID */
.qual-grid { display: flex; flex-direction: column; gap: 1rem; }
.qual-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem 1rem 1rem .75rem;
  border: 1px solid #edf2f7;
}
.qual-label { display: flex; align-items: flex-start; padding-top: 22px; }
.qual-badge {
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* DECLARATION */
.reg-declaration-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-left: 4px solid #d4a017;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.reg-declaration-icon {
  font-size: 1.8rem;
  color: #b8860b;
  flex-shrink: 0;
  margin-top: 2px;
}
.reg-check { gap: 10px; cursor: pointer; }
.reg-check .form-check-input {
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 2px solid #b8860b;
  cursor: pointer;
}
.reg-check .form-check-input:checked { background-color: #b8860b; border-color: #b8860b; }
.reg-check .form-check-label { font-size: .93rem; color: #4a3700; line-height: 1.5; cursor: pointer; }

/* SUBMIT */
.reg-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.reg-submit-note {
  font-size: .83rem;
  color: #666;
  text-align: center;
}
.reg-submit-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a2e 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .85rem 3.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .3px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 6px 20px rgba(26,58,92,.35);
}
.reg-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26,58,92,.45);
  color: #fff;
  opacity: .95;
}
.reg-submit-btn:active { transform: translateY(0); }

@media (max-width: 576px) {
  .reg-info-item { padding: 12px 14px; gap: 10px; }
  .reg-info-val { font-size: 1rem; }
  .reg-step-line { min-width: 30px; }
  .qual-row { flex-direction: column; }
  .qual-label { padding-top: 0; }
  .reg-submit-btn { width: 100%; }
}

/* ─── REGISTRATION CONFIRMATION PAGE ────────────────────────── */
.conf-hero {
  position: relative;
  min-height: 200px;
  background: linear-gradient(135deg, #1a4a2e 0%, #2e7d32 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.conf-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.15);
}
.conf-success-icon {
  font-size: 3.8rem;
  color: #a5f3a5;
  margin-bottom: .5rem;
  animation: popIn .4s cubic-bezier(.36,2,.5,1) both;
}
@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.conf-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .3rem;
}
.conf-hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
}
.conf-print-btn {
  background: #fff;
  color: #1a4a2e;
  font-weight: 700;
  border-radius: 50px;
  padding: .55rem 1.8rem;
  font-size: .95rem;
  transition: background .2s, color .2s;
}
.conf-print-btn:hover { background: #e8f5e9; color: #1a4a2e; }
.conf-new-btn {
  background: rgba(255,255,255,.15);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: .55rem 1.8rem;
  font-size: .95rem;
  border: 1.5px solid rgba(255,255,255,.4);
  transition: background .2s;
}
.conf-new-btn:hover { background: rgba(255,255,255,.25); color: #fff; }

/* RECEIPT CARD */
.conf-receipt {
  max-width: 900px;
  margin: 2rem auto 1.5rem;
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,.09);
  font-size: .9rem;
  color: #222;
}

/* RECEIPT HEADER */
.conf-receipt-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 100%);
  color: #fff;
  border-bottom: 3px solid #d4a017;
}
.conf-receipt-logo {
  flex-shrink: 0;
  min-width: 72px;
}
.conf-receipt-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.conf-receipt-college { flex: 1; }
.conf-receipt-college-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .3px;
}
.conf-receipt-college-addr {
  font-size: .82rem;
  opacity: .8;
  margin-top: 2px;
}
.conf-receipt-college-contact {
  font-size: .8rem;
  opacity: .7;
  margin-top: 1px;
}
.conf-receipt-appno {
  text-align: right;
  flex-shrink: 0;
}
.conf-appno-label {
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  opacity: .7;
}
.conf-appno-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f9c74f;
  letter-spacing: .5px;
}
.conf-appno-date {
  font-size: .78rem;
  opacity: .75;
  margin-top: 2px;
}

/* TITLE BAR */
.conf-receipt-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 24px;
  background: #f0f4f8;
  border-bottom: 1px solid #dde3ec;
  font-size: .88rem;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.conf-status-badge {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 20px;
  padding: 2px 14px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* SECTION HEADINGS */
.conf-section-head {
  background: linear-gradient(90deg, #1a3a5c, #1a4a2e);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 24px;
}

/* DETAIL TABLE */
.conf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.conf-table td {
  padding: 8px 14px;
  border: 1px solid #e8ecf0;
  vertical-align: top;
  font-size: .88rem;
}
.conf-lbl {
  background: #f7f9fc;
  color: #555;
  font-weight: 600;
  width: 17%;
  white-space: nowrap;
}
.conf-val { color: #1a1a2e; width: 30%; }
.conf-val-strong { font-weight: 700; font-size: .95rem; color: #1a3a5c; }

/* QUALIFICATIONS TABLE */
.conf-qual-table thead tr {
  background: #e8f0fe;
}
.conf-qual-table th {
  padding: 7px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: #1a3a5c;
  text-transform: uppercase;
  letter-spacing: .3px;
  border: 1px solid #d0d9f0;
  text-align: center;
}
.conf-qual-table td {
  text-align: center;
  font-size: .85rem;
}
.conf-qual-name {
  font-weight: 700;
  color: #1a3a5c;
  text-align: left !important;
}
.conf-qual-table tbody tr:nth-child(odd) { background: #fafbfc; }

/* DECLARATION */
.conf-declaration {
  padding: 10px 24px;
  font-size: .83rem;
  color: #444;
  line-height: 1.6;
  background: #fffbee;
  border-bottom: 1px solid #fde68a;
}
.conf-declaration p { margin-bottom: .4rem; }

/* SIGNATURE ROW */
.conf-sig-row {
  display: flex;
  gap: 0;
  padding: 18px 24px;
  border-top: 1px solid #e8ecf0;
  border-bottom: 1px solid #e8ecf0;
}
.conf-sig-box { flex: 1; text-align: center; padding: 0 12px; }
.conf-sig-box + .conf-sig-box { border-left: 1px solid #e8ecf0; }
.conf-sig-line {
  height: 40px;
  border-bottom: 1.5px solid #999;
  margin-bottom: 6px;
}
.conf-sig-label {
  font-size: .75rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.conf-sig-stamp {
  height: 72px;
  width: 72px;
  border: 2px dashed #aab0bc;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: #aaa;
  text-align: center;
  line-height: 1.3;
}

/* RECEIPT FOOTER */
.conf-receipt-footer {
  text-align: center;
  padding: 8px 24px;
  font-size: .76rem;
  color: #777;
  background: #f7f9fc;
  border-top: 1px solid #e8ecf0;
  line-height: 1.7;
}

/* SCREEN-ONLY INFO CARDS */
.conf-screen-note { padding-bottom: 3rem; }
.conf-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}
.conf-info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.conf-ic-icon {
  font-size: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .8;
}
.conf-ic-title { font-weight: 700; font-size: .93rem; color: #1a3a5c; margin-bottom: 3px; }
.conf-ic-text { font-size: .84rem; color: #555; line-height: 1.5; }

/* ─── PRINT STYLES ───────────────────────────────────────────── */
@media print {
  /* Hide everything that isn't the receipt */
  .no-print,
  .top-bar, .main-navbar, .navbar,
  .site-footer, .footer-top, .footer-bottom, .news-ticker,
  .conf-hero, .conf-screen-note { display: none !important; }

  /* Reset receipt to normal flow */
  body { background: #fff !important; }
  #printArea {
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 10pt;
    color: #000;
  }

  /* Reset backgrounds for ink-saving */
  .conf-receipt-header {
    background: #1a3a5c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: #fff !important;
  }
  .conf-receipt-title-bar {
    background: #f0f4f8 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .conf-section-head {
    background: #1a3a5c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: #fff !important;
  }
  .conf-qual-table thead tr {
    background: #e8f0fe !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .conf-declaration { background: #fffbee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .conf-receipt-footer { background: #f7f9fc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Prevent page break inside key sections */
  .conf-table, .conf-qual-table, .conf-sig-row { page-break-inside: avoid; }

  @page {
    size: A4;
    margin: 12mm 14mm;
  }
}

/* ─── INFRASTRUCTURE PAGE ───────────────────────────────────── */

/* Hero */
.infra-hero {
  position: relative;
  min-height: 300px;
  background: linear-gradient(135deg, #0d1117 0%, #1a3a5c 50%, #1e3a1e 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.infra-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1400&fit=crop&q=60') center/cover no-repeat;
  opacity: .08;
}
.infra-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,.92) 0%, rgba(26,58,92,.88) 100%);
}
.infra-hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.infra-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: .75rem auto 0;
}

/* Stats strip */
.infra-stats-strip {
  background: #1a3a5c;
  color: #fff;
  padding: 18px 0;
}
.infra-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.infra-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.infra-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #d4a017;
  line-height: 1;
}
.infra-stat-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}
.infra-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
}
@media (max-width: 500px) {
  .infra-stat-sep { display: none; }
  .infra-stat-item { flex: 1 1 45%; padding: 8px 16px; }
}

/* Main section layout */
.infra-main-section {
  background: #f4f7fb;
  padding: 56px 0 48px;
}

/* Mobile pills */
.infra-pill-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 0 0 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.infra-pill-nav::-webkit-scrollbar { display: none; }
.infra-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid #dde3ed;
  background: #fff;
  color: #1a3a5c;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.infra-pill.active,
.infra-pill:hover {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
}

/* Desktop layout */
.infra-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* Sidebar */
.infra-sidebar {
  flex: 0 0 260px;
  position: sticky;
  top: 90px;
}
.infra-sidebar-inner {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(26,58,92,.10);
  overflow: hidden;
}
.infra-sidebar-heading {
  background: #1a3a5c;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 18px;
}
.infra-nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-bottom: 1px solid #f0f2f5;
  background: transparent;
  color: #374151;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  text-align: left;
}
.infra-nav-btn:last-child { border-bottom: none; }
.infra-nav-btn:hover { background: #f4f7fb; color: #1a3a5c; }
.infra-nav-btn.active {
  background: linear-gradient(90deg, #e8f0fe 0%, #f4f7fb 100%);
  color: #1a3a5c;
  font-weight: 700;
  border-left: 4px solid #1a3a5c;
}
.infra-nav-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e8f0fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #1a3a5c;
  font-size: .85rem;
  flex-shrink: 0;
  transition: all .18s;
}
.infra-nav-btn.active .infra-nav-icon-wrap {
  background: #1a3a5c;
  color: #fff;
}
.infra-nav-label { flex: 1; }
.infra-nav-arrow {
  color: #ccc;
  font-size: .7rem;
  transition: transform .18s;
}
.infra-nav-btn.active .infra-nav-arrow {
  color: #1a3a5c;
  transform: translateX(3px);
}

/* Content area */
.infra-content-area { flex: 1; min-width: 0; }

/* Panel */
.infra-panel {
  display: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(26,58,92,.10);
  overflow: hidden;
  animation: panelFadeIn .3s ease;
}
.infra-panel.active { display: block; }
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.infra-panel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2e5080 100%);
  color: #fff;
}
.infra-panel-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
}
.infra-panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}
.infra-panel-badge {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.infra-panel-body {
  padding: 28px 32px;
  font-size: 1rem;
  color: #374151;
  line-height: 1.8;
}
.infra-panel-body p { margin-bottom: .9rem; }
.infra-panel-body p:last-child { margin-bottom: 0; }

/* Prev/Next nav */
.infra-panel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-top: 1px solid #f0f2f5;
  background: #fafbfe;
}
.infra-pnav-btn {
  background: none;
  border: 2px solid #dde3ed;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: #1a3a5c;
  cursor: pointer;
  transition: all .18s;
}
.infra-pnav-btn:hover {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
}

@media (max-width: 767px) {
  .infra-layout { display: block; }
  .infra-panel { margin-top: 16px; }
  .infra-panel-header { padding: 20px; gap: 14px; }
  .infra-panel-icon-circle { width: 48px; height: 48px; font-size: 1.3rem; }
  .infra-panel-title { font-size: 1.2rem; }
  .infra-panel-body { padding: 20px; }
  .infra-panel-nav { padding: 14px 20px; gap: 10px; flex-wrap: wrap; }
  .infra-pnav-btn { font-size: .78rem; padding: 6px 12px; }
}

/* Cards section */
.infra-cards-section {
  background: #fff;
  padding: 64px 0 72px;
}
.infra-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.infra-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--card-color, #1a3a5c);
  display: flex;
  flex-direction: column;
}
.infra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.infra-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--card-color, #1a3a5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 22px 22px 12px;
}
.infra-card-body {
  padding: 0 22px 14px;
  flex: 1;
}
.infra-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2742;
  margin-bottom: 6px;
}
.infra-card-desc {
  font-size: .85rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}
.infra-card-footer {
  padding: 12px 22px;
  border-top: 1px solid #f0f2f5;
  font-size: .82rem;
  font-weight: 600;
  color: var(--card-color, #1a3a5c);
}

/* ─── BULK ACTION BAR ───────────────────────────────────────── */
.bulk-action-bar {
  display: flex;
  align-items: center;
  background: #1a3a5c;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(26,58,92,.25);
  flex-wrap: wrap;
  gap: 8px;
}
.bulk-count {
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ================================================================
   STUDENTS PAGE — Hero, Stats, Filter, Table, Cards, Home Section
   ================================================================ */

/* Hero */
.students-hero {
  position:relative;
  background: linear-gradient(135deg,#0d2137 0%,#1a3a5c 60%,#0d4f7c 100%);
  padding: 60px 0 50px;
  overflow: hidden;
}
.students-hero::before {
  content:'';position:absolute;top:0;right:0;width:350px;height:100%;
  background:radial-gradient(ellipse at top right,rgba(26,100,180,.35) 0%,transparent 70%);
}
.students-hero-overlay {
  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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.students-hero-title { font-size:2.4rem;font-weight:800;text-shadow:0 2px 12px rgba(0,0,0,.4); }
.students-hero-sub   { font-size:1.05rem;opacity:.85; }

/* Stats Strip */
.students-stats-strip {
  background:#1a3a5c;
  color:#fff;
  padding: 0;
  border-bottom:3px solid rgba(249,199,74,.3);
}
.students-stat {
  display:flex;align-items:center;gap:14px;
  padding:20px 24px;border-right:1px solid rgba(255,255,255,.1);
}
.students-stat:last-child { border-right:none; }
.students-stat-icon { font-size:2rem;color:#f9c74f;opacity:.85; }
.students-stat-val  { font-size:1.7rem;font-weight:800;line-height:1; }
.students-stat-lbl  { font-size:.75rem;opacity:.7;margin-top:3px;text-transform:uppercase;letter-spacing:.5px; }

/* Filter Bar */
.students-filter-bar {
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  background:#fff;border:1px solid #e2e8f0;border-radius:12px;
  padding:12px 16px;box-shadow:0 2px 12px rgba(0,0,0,.06);
}
.students-filter-group {
  position:relative;flex:1;min-width:180px;
}
.students-filter-icon {
  position:absolute;left:10px;top:50%;transform:translateY(-50%);
  color:#94a3b8;font-size:.8rem;
}
.students-filter-input {
  width:100%;padding:8px 10px 8px 28px;
  border:1px solid #e2e8f0;border-radius:8px;
  font-size:.9rem;background:#f8fafc;outline:none;
  transition:border-color .2s;
  -webkit-appearance:none;
}
.students-filter-input:focus { border-color:#1a3a5c;background:#fff; }

/* Table Card */
.students-table-card {
  background:#fff;border-radius:14px;
  box-shadow:0 2px 16px rgba(26,58,92,.1);
  overflow:hidden;border:1px solid #e2e8f0;
}
.students-table-header {
  background:linear-gradient(135deg,#1a3a5c 0%,#0d4f7c 100%);
  color:#fff;padding:14px 20px;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;
  font-weight:600;font-size:.95rem;
}
.students-table-note { font-size:.78rem;opacity:.75;font-weight:400; }
.students-table { margin:0; }
.students-table thead tr { background:#f0f4f8; }
.students-table thead th { font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#475569;border:none;padding:12px 16px; }
.students-table tbody td { padding:12px 16px;border-bottom:1px solid #f1f5f9;vertical-align:middle; }
.students-table tbody tr:last-child td { border-bottom:none; }
.students-table tbody tr:hover { background:#f8fafc; }
.students-sno { font-size:.8rem;color:#94a3b8;font-weight:600; }

/* Avatar */
.students-avatar {
  width:38px;height:38px;border-radius:50%;
  background:linear-gradient(135deg,#1a3a5c,#0d4f7c);
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:1rem;flex-shrink:0;
}
.students-avatar.lg { width:48px;height:48px;font-size:1.2rem; }
.students-name-cell { display:flex;align-items:center;gap:10px; }

/* Gender Badge */
.students-gender-badge {
  display:inline-block;padding:3px 10px;border-radius:20px;font-size:.75rem;font-weight:600;
}
.students-gender-badge.female { background:#fce7f3;color:#be185d; }
.students-gender-badge.male   { background:#dbeafe;color:#1d4ed8; }
.students-gender-badge.other  { background:#f3e8ff;color:#7c3aed; }

/* Category Badge */
.students-cat-badge {
  display:inline-block;padding:3px 10px;border-radius:20px;font-size:.75rem;font-weight:600;
  background:#e0f2fe;color:#0369a1;
}
.students-cat-badge.obc { background:#fef9c3;color:#854d0e; }
.students-cat-badge.sc  { background:#dcfce7;color:#166534; }
.students-cat-badge.st  { background:#fde8d8;color:#c2410c; }

/* Phone */
.students-phone { font-family:monospace;font-size:.88rem;color:#475569; }

/* Mobile Cards */
.students-mobile-card {
  background:#fff;border-radius:12px;border:1px solid #e2e8f0;
  padding:14px 16px;margin-bottom:10px;
  box-shadow:0 1px 6px rgba(0,0,0,.05);
}
.students-mobile-top { display:flex;align-items:center;gap:12px;margin-bottom:10px; }
.students-mobile-meta { display:flex;flex-wrap:wrap;gap:10px;font-size:.8rem;color:#64748b; }
.students-mobile-meta span { background:#f1f5f9;padding:3px 10px;border-radius:20px; }

/* Empty State */
.students-empty {
  text-align:center;padding:60px 20px;color:#94a3b8;
}
.students-empty i { font-size:3rem;display:block;margin-bottom:16px;opacity:.4; }
.students-empty h4 { color:#475569; }

/* Disclaimer */
.students-disclaimer {
  margin-top:24px;padding:14px 20px;
  background:#f0f9ff;border-left:4px solid #0284c7;border-radius:0 8px 8px 0;
  color:#0369a1;font-size:.85rem;
}

/* ── Home Page Section ─────────────────────────────────────── */
.students-highlight-section {
  background:linear-gradient(135deg,#0d2137 0%,#1a3a5c 60%,#0d4f7c 100%);
  padding:70px 0;
  position:relative;overflow:hidden;
}
.students-highlight-section::before {
  content:'';position:absolute;top:-80px;right:-80px;
  width:400px;height:400px;border-radius:50%;
  background:radial-gradient(circle,rgba(249,199,74,.1) 0%,transparent 70%);
}
.students-highlight-inner {
  display:flex;align-items:center;gap:60px;
}
.students-highlight-left { flex:1; }
.students-highlight-right {
  flex:0 0 280px;align-items:center;justify-content:center;
}
.students-highlight-stats {
  display:flex;gap:30px;margin-top:24px;flex-wrap:wrap;
}
.sh-stat-val { font-size:2rem;font-weight:800;color:#f9c74f;line-height:1; }
.sh-stat-lbl { font-size:.75rem;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.5px;margin-top:4px; }

/* Floating Icon Decoration */
.sh-icon-wrap {
  position:relative;width:200px;height:200px;
}
.sh-main-icon {
  font-size:7rem;color:rgba(255,255,255,.08);
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
}
.sh-badge {
  position:absolute;background:#fff;color:#1a3a5c;
  padding:6px 14px;border-radius:20px;font-size:.8rem;font-weight:700;
  box-shadow:0 4px 14px rgba(0,0,0,.2);white-space:nowrap;
}
.sh-badge i { margin-right:5px; }
.sh-badge-1 { top:20px;left:0;color:#0d7a0d; }
.sh-badge-2 { top:50%;right:-20px;transform:translateY(-50%);color:#1a3a5c; }
.sh-badge-3 { bottom:20px;left:10px;color:#7c3aed; }

/* Button */
.btn-students-view {
  background:#f9c74f;color:#1a3a5c;font-weight:700;
  border-radius:8px;padding:12px 28px;
  transition:all .25s;display:inline-flex;align-items:center;gap:8px;
  border:none;
}
.btn-students-view:hover { background:#f5b800;color:#0d2137;transform:translateY(-2px);box-shadow:0 6px 20px rgba(249,199,74,.4); }

@media(max-width:991px) {
  .students-highlight-inner { flex-direction:column;gap:30px; }
  .students-hero-title { font-size:1.8rem; }
  .students-stat { padding:14px 16px; }
}

/* ── Students List — Print Styles ──────────────────────────── */
@media print {
  /* Hide everything except the students table card */
  nav, header, footer, .ticker-bar,
  .students-hero, .students-stats-strip,
  .container > .students-filter-bar,
  .container:has(.students-filter-bar),
  .students-disclaimer,
  .d-md-none,
  .no-print { display: none !important; }

  body { background: #fff !important; margin: 0; }

  .print-only-header { display: block !important; }

  .students-table-card {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .students-table-header {
    background: #fff !important;
    color: #1a3a5c !important;
    border-bottom: 2px solid #1a3a5c;
    padding: 6px 0 8px !important;
  }
  .students-table-header button { display: none !important; }
  .students-table-note { color: #475569 !important; }

  .students-table thead tr { background: #f0f4f8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .students-table thead th { font-size: .78rem !important; }
  .students-table tbody td { font-size: .82rem !important; padding: 8px 10px !important; }
  .students-table tbody tr:nth-child(even) { background: #f8fafc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .students-avatar { width: 28px !important; height: 28px !important; font-size: .8rem !important; }
  .students-name-cell { gap: 6px !important; }

  .badge.bg-success { background: #16a34a !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .container { max-width: 100% !important; padding: 0 !important; }
  .d-none.d-md-block { display: block !important; }

  @page { margin: 16mm 12mm; size: A4 portrait; }
}
