:root {
  --primary: #0b2a5b;
  --primary-light: #1f5fbf;
  --accent: #f5b301;
  --dark: #0a1630;
  --light-bg: #f4f7fc;
  --text: #39424e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 91, 0.12);
}

* { scroll-behavior: smooth; }

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
}
html { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { color: var(--primary); font-weight: 700; }

a { text-decoration: none; }

.text-accent { color: var(--accent) !important; }
.bg-light-soft { background: var(--light-bg); }

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-accent:hover { background: #ffc933; color: var(--dark); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(245, 179, 1, 0.4); }

.btn-outline-light { border-radius: 50px; padding: 0.75rem 1.8rem; font-weight: 600; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--dark);
  color: #cfd8e8;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.top-bar a { color: #cfd8e8; transition: color 0.2s; }
.top-bar a:hover { color: var(--accent); }
.top-bar .badge-affil { background: rgba(245, 179, 1, 0.15); color: var(--accent); border-radius: 50px; padding: 0.2rem 0.8rem; }

/* ---------- Navbar ---------- */
.navbar {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  padding: 0.7rem 0;
  transition: all 0.3s ease;
}
.navbar.scrolled { padding: 0.35rem 0; box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12); }
.navbar-brand img { height: 64px; width: auto; transition: height 0.3s; image-rendering: -webkit-optimize-contrast; }
.navbar.scrolled .navbar-brand img { height: 52px; }
.brand-text { line-height: 1.1; }
.brand-text .name { font-weight: 800; color: var(--primary); font-size: 1.05rem; letter-spacing: 0.5px; }
.brand-text .tag { font-size: 0.7rem; color: #6c7a90; }

.navbar .nav-link {
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 60%; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--primary-light); }

.navbar .dropdown-menu {
  border: none;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}
.navbar .dropdown-item { padding: 0.55rem 1.4rem; font-weight: 500; color: var(--primary); }
.navbar .dropdown-item:hover, .navbar .dropdown-item.active { background: var(--light-bg); color: var(--primary-light); }

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* ---------- Side menu button ---------- */
.side-menu-btn {
  border: 1.5px solid rgba(11, 42, 91, 0.18);
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
  background: var(--light-bg);
}
.side-menu-btn:focus { box-shadow: 0 0 0 0.2rem rgba(31, 95, 191, 0.2); }

/* ---------- Side drawer (offcanvas) ---------- */
.side-nav {
  --bs-offcanvas-width: min(320px, 100vw);
  width: var(--bs-offcanvas-width);
  max-width: 100vw;
  border: 0 !important;
  background: linear-gradient(180deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
}
.side-nav.offcanvas-end {
  right: 0;
  border-left: 0;
}
.side-nav .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 1.15rem;
  align-items: center;
}
.side-brand-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  color: #fff;
  line-height: 1.1;
}
.side-brand-tag {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
}
.side-nav .offcanvas-body {
  padding: 0.75rem 0 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
}
.side-nav-links {
  list-style: none;
  margin: 0;
  padding: 0 0.85rem;
}
.side-nav-links > li > a,
.side-nav-group ul a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.side-nav-links > li > a i,
.side-nav-group ul a i {
  flex-shrink: 0;
  width: 1.15rem;
  color: var(--accent);
  font-size: 1.05rem;
}
.side-nav-links > li > a:hover,
.side-nav-links > li > a.active,
.side-nav-group ul a:hover,
.side-nav-group ul a.active {
  background: rgba(245, 179, 1, 0.14);
  color: #fff;
  transform: translateX(4px);
}
.side-nav-group { margin: 0.25rem 0; }
.side-nav-group-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.side-nav-group-label i { color: rgba(245, 179, 1, 0.7); width: 1.15rem; }
.side-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.4rem;
}
.side-nav-group ul a { font-size: 0.9rem; padding: 0.55rem 0.9rem; }

.side-contact {
  margin: 1rem 0.85rem 0;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.side-contact h6 {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.side-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #fff;
  margin-bottom: 0.85rem;
  max-width: 100%;
}
.side-contact-item:last-child { margin-bottom: 0; }
a.side-contact-item:hover strong { color: var(--accent); }
.side-contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 179, 1, 0.18);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.side-contact-item > span:last-child {
  min-width: 0;
  flex: 1;
}
.side-contact-item small {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.1rem;
}
.side-contact-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  transition: color 0.2s;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Hide scroll-top + remove body gap while side menu is open */
body.side-nav-open {
  padding-right: 0 !important;
  overflow: hidden;
}
body.side-nav-open #backToTop {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
.offcanvas-backdrop {
  background-color: rgba(10, 22, 48, 0.72);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .carousel,
.hero .carousel-inner {
  overflow: hidden;
}
.hero .carousel-item {
  height: 88vh;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
}
.hero .carousel-fade .carousel-item {
  transform: none !important;
}
.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 22, 48, 0.88) 0%, rgba(11, 42, 91, 0.55) 60%, rgba(11, 42, 91, 0.25) 100%);
}
.hero .carousel-caption {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 5rem 6rem 4.5rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  pointer-events: none;
}
.hero .carousel-caption > * {
  pointer-events: auto;
  max-width: min(640px, 100%);
}
.hero .carousel-item:not(.active) .carousel-caption {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.hero .carousel-caption h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.hero .carousel-caption p {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  max-width: 560px;
  width: 100%;
  color: #e2e8f3;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.hero .carousel-caption .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  max-width: 560px;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(245, 179, 1, 0.18);
  color: var(--accent);
  border: 1px solid rgba(245, 179, 1, 0.5);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 3;
  width: 4.5rem;
}
.hero .carousel-indicators {
  z-index: 3;
  margin-bottom: 1.25rem;
}
.hero .carousel-item.active .carousel-caption > * { animation: fadeUp 0.9s ease both; }
.hero .carousel-item.active .carousel-caption > *:nth-child(2) { animation-delay: 0.15s; }
.hero .carousel-item.active .carousel-caption > *:nth-child(3) { animation-delay: 0.3s; }
.hero .carousel-item.active .carousel-caption > *:nth-child(4) { animation-delay: 0.45s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  padding: 7rem 0 5rem;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 48, 0.9), rgba(31, 95, 191, 0.75));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-banner .breadcrumb { justify-content: center; margin: 0; }
.page-banner .breadcrumb a { color: var(--accent); }
.page-banner .breadcrumb-item.active, .page-banner .breadcrumb-item + .breadcrumb-item::before { color: #dbe3f0; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title .sub {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
}
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 0.4rem; }
.section-title .line {
  width: 70px; height: 4px; background: var(--accent);
  margin: 1rem auto 0; border-radius: 4px;
}
.section-title.text-start .line { margin-left: 0; }

/* ---------- Quick info strip ---------- */
.info-strip { margin-top: -60px; position: relative; z-index: 5; }
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem;
  height: 100%;
  transition: all 0.35s ease;
  border-bottom: 4px solid transparent;
}
.info-card:hover { transform: translateY(-8px); border-bottom-color: var(--accent); }
.info-card .icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem;
}

/* ---------- About ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.about-img-wrap .exp-badge {
  position: absolute; bottom: -25px; right: -10px;
  background: var(--accent); color: var(--dark);
  padding: 1.2rem 1.5rem; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow);
}
.about-img-wrap .exp-badge strong { font-size: 2.2rem; display: block; line-height: 1; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 0.4rem 0 0.4rem 2rem; position: relative; }
.check-list li::before {
  content: "\F26A"; font-family: "bootstrap-icons";
  position: absolute; left: 0; top: 0.35rem; color: var(--primary-light); font-size: 1.1rem;
}

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(135deg, rgba(10, 22, 48, 0.94), rgba(11, 42, 91, 0.9)), url("../images/hero3.jpg") center/cover fixed;
  color: #fff;
  padding: 4.5rem 0;
}
.stat-box { text-align: center; }
.stat-box i { font-size: 2.4rem; color: var(--accent); }
.stat-box .count { font-size: 2.8rem; font-weight: 800; color: #fff; display: block; }
.stat-box p { margin: 0; color: #cfd8e8; }

/* ---------- Course / generic cards ---------- */
.course-card, .facility-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  transition: all 0.35s ease;
}
.course-card:hover, .facility-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(11, 42, 91, 0.2); }
.course-card .img-box, .facility-card .img-box { position: relative; overflow: hidden; height: 210px; }
.course-card img, .facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.course-card:hover img, .facility-card:hover img { transform: scale(1.1); }
.course-card .degree-tag {
  position: absolute; top: 15px; left: 15px;
  background: var(--accent); color: var(--dark);
  font-weight: 700; font-size: 0.8rem;
  padding: 0.3rem 0.9rem; border-radius: 50px;
}
.course-card .body, .facility-card .body { padding: 1.5rem; }
.course-card .meta { font-size: 0.88rem; color: #6c7a90; border-top: 1px solid #eef1f6; padding-top: 0.9rem; margin-top: 0.9rem; }
.course-card .body .btn-view {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.85rem; font-size: 0.88rem; font-weight: 600;
  color: var(--primary-light);
}
.course-card .body .btn-view:hover { color: var(--primary); }
.table-modern .btn-sm-view {
  font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.85rem;
  border-radius: 50px; white-space: nowrap;
}

/* ---------- Course details ---------- */
.course-hero-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); height: 320px;
}
.course-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.course-hero-img .degree-tag {
  position: absolute; top: 15px; left: 15px;
  background: var(--accent); color: var(--dark);
  font-weight: 700; font-size: 0.85rem;
  padding: 0.35rem 1rem; border-radius: 50px;
}
.course-meta-row {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  font-size: 0.92rem; color: #6c7a90;
}
.course-meta-row i { color: var(--primary-light); }
.related-note {
  background: rgba(31, 95, 191, 0.08); border-left: 3px solid var(--primary-light);
  padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.9rem; color: var(--primary);
}
.vm-panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.75rem; height: 100%; border-top: 4px solid var(--primary);
}
.vm-panel.mission { border-top-color: var(--accent); }
.vm-panel .vm-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(31, 95, 191, 0.1); color: var(--primary-light);
  display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 0.85rem;
}
.vm-panel.mission .vm-icon { background: rgba(245, 179, 1, 0.18); color: #9a6f00; }
.vm-panel h3 { font-size: 1.25rem; margin-bottom: 0.85rem; }
.vm-panel ul { padding-left: 1.15rem; margin: 0; }
.vm-panel li { margin-bottom: 0.55rem; }
.vm-panel li:last-child { margin-bottom: 0; }
.outcome-block { margin-top: 2.5rem; }
.outcome-list { display: grid; gap: 0.85rem; }
.outcome-item {
  display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 0.85rem 1.1rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem; align-items: start;
}
.outcome-item .code {
  display: inline-block; background: rgba(31, 95, 191, 0.1); color: var(--primary);
  font-weight: 700; font-size: 0.82rem; padding: 0.35rem 0.7rem; border-radius: 8px;
  white-space: normal; line-height: 1.3;
}
.outcome-item p { margin: 0; font-size: 0.95rem; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.lab-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.95rem 1.1rem; font-weight: 500; font-size: 0.95rem;
  border-left: 4px solid var(--accent);
}
.lab-item i { color: var(--primary-light); font-size: 1.2rem; flex-shrink: 0; }
.lab-dept { margin-top: 1.75rem; }
.lab-dept:first-child { margin-top: 0; }
.lab-dept h5 { color: var(--primary); margin-bottom: 0.85rem; }

@media (max-width: 767px) {
  .outcome-item { grid-template-columns: 1fr; }
  .course-hero-img { height: 240px; }
}
.facility-card .icon-float {
  position: absolute; bottom: -24px; right: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--dark);
  display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); z-index: 2;
}
.facility-card .img-box { overflow: visible; }
.facility-card .img-box .clip { overflow: hidden; height: 100%; }

/* ---------- Tables ---------- */
.table-modern { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.table-modern thead th { background: var(--primary); color: #fff; font-weight: 600; padding: 1rem; border: none; }
.table-modern td { padding: 0.95rem 1rem; vertical-align: middle; }
.table-modern tbody tr { transition: background 0.2s; }
.table-modern tbody tr:hover { background: #eef4ff; }
.badge-degree { background: rgba(31, 95, 191, 0.1); color: var(--primary-light); font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 50px; }

/* ---------- Faculty ---------- */
.dept-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  color: inherit;
  transition: all 0.35s ease;
}
.dept-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(11, 42, 91, 0.2); color: inherit; }
.dept-card .img-box { height: 140px; overflow: hidden; }
.dept-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dept-card:hover .img-box img { transform: scale(1.08); }
.dept-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.dept-card h5 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.dept-card p { margin: 0 0 0.7rem; font-size: 0.82rem; color: #6c7a90; min-height: 2.4em; }
.dept-card .count {
  display: inline-block;
  background: rgba(31, 95, 191, 0.1);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.faculty-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  transition: all 0.35s ease;
  border-top: 4px solid transparent;
}
.faculty-card:hover { transform: translateY(-6px); border-top-color: var(--accent); }
.faculty-card.featured { border-top-color: var(--accent); }
.faculty-card .photo {
  height: 300px;
  background: linear-gradient(180deg, #eef3fb 0%, #e4ebf6 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faculty-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.faculty-card .body { padding: 1.35rem 1.4rem 1.5rem; }
.faculty-card h5 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.faculty-card .role {
  display: inline-block;
  background: rgba(245, 179, 1, 0.15);
  color: #9a6f00;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}
.faculty-card .details {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eef1f6;
  padding-top: 0.85rem;
}
.faculty-card .details li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  color: var(--text);
  word-break: break-all;
}
.faculty-card .details li span {
  color: #6c7a90;
  font-weight: 500;
  flex-shrink: 0;
  word-break: normal;
}

section[id] { scroll-margin-top: 100px; }

/* ---------- Committees ---------- */
.committee-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  z-index: 1;
}
.committee-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transition: height 0.4s ease; z-index: -1;
}
.committee-card:hover::before { height: 100%; }
.committee-card:hover, .committee-card:hover h5, .committee-card:hover p { color: #fff; }
.committee-card .icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(245, 179, 1, 0.15); color: var(--accent);
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.2rem;
  transition: all 0.35s;
}
.committee-card:hover .icon { background: var(--accent); color: var(--dark); }
.committee-card .num {
  position: absolute; top: 12px; right: 18px;
  font-size: 2.6rem; font-weight: 800; color: rgba(11, 42, 91, 0.07);
}
.committee-card:hover .num { color: rgba(255, 255, 255, 0.15); }

/* ---------- Placement ---------- */
.placement-block {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%;
}
.placement-block img { height: 230px; width: 100%; object-fit: cover; }
.placement-block .body { padding: 1.8rem; }
.nav-pills .nav-link { color: var(--primary); background: var(--light-bg); font-weight: 600; }
.nav-pills .nav-link.active { background: var(--primary); color: #fff; }

.process-step { text-align: center; position: relative; }
.process-step .circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: #fff; border: 3px dashed var(--accent);
  display: grid; place-items: center; margin: 0 auto 1rem;
  font-size: 1.9rem; color: var(--primary);
  transition: all 0.4s;
}
.process-step:hover .circle { background: var(--primary); color: #fff; border-style: solid; transform: rotate(360deg); }

.recruiter-logo {
  background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  padding: 1.2rem; text-align: center; font-weight: 700; color: var(--primary);
  height: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all 0.3s;
}
.recruiter-logo:hover { transform: translateY(-5px); color: var(--primary-light); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  padding: 3.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(245, 179, 1, 0.18);
}
.cta h2 { color: #fff; }

/* ---------- Contact ---------- */
.contact-info-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem; text-align: center; height: 100%; transition: all 0.3s;
}
.contact-info-card:hover { transform: translateY(-6px); }
.contact-info-card .icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 1rem;
}
.contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; }
.contact-form .form-control, .contact-form .form-select { padding: 0.8rem 1rem; border-radius: 10px; border-color: #dfe5ef; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 0.2rem rgba(31, 95, 191, 0.15); }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: #aeb9cc;
  padding-top: 4.5rem;
}
footer h5 { color: #fff; margin-bottom: 1.3rem; position: relative; padding-bottom: 0.7rem; }
footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); }
footer a { color: #aeb9cc; transition: all 0.2s; }
footer a:hover { color: var(--accent); padding-left: 4px; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.6rem; }
footer .social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-grid; place-items: center; margin-right: 0.4rem; color: #fff;
}
footer .social a:hover { background: var(--accent); color: var(--dark); padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.3rem 0; margin-top: 3rem; font-size: 0.88rem; }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed; right: 22px; bottom: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--dark);
  border: none; font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.3s; z-index: 999;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; background: #fff; z-index: 9999;
  display: grid; place-items: center; transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hide { opacity: 0; visibility: hidden; }
#preloader img { width: 120px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

@media (max-width: 1199px) {
  .hero .carousel-caption {
    padding: 5rem 4.5rem 4rem;
  }
}

@media (max-width: 991px) {
  .hero .carousel-item {
    height: auto;
    min-height: 100svh;
    min-height: 100vh;
  }
  .hero .carousel-caption {
    padding: 5rem 1.35rem;
    justify-content: center;
  }
  .hero .carousel-caption h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
    max-width: 100%;
  }
  .hero .carousel-caption p {
    font-size: 0.92rem;
    max-width: 100%;
  }
  .hero .carousel-caption .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 100%;
  }
  .hero .carousel-caption .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 2.75rem;
    opacity: 0.85;
    top: auto;
    bottom: 1.6rem;
    height: 2.75rem;
    transform: none;
  }
  .hero .carousel-control-prev { left: 0.35rem; }
  .hero .carousel-control-next { right: 0.35rem; }
  .hero .carousel-control-prev-icon,
  .hero .carousel-control-next-icon {
    width: 1.35rem;
    height: 1.35rem;
  }
  .hero .carousel-indicators {
    margin-bottom: 0.85rem;
  }
  .info-strip { margin-top: 2rem; }
  .cta { padding: 2.5rem 1.5rem; }
}

@media (max-width: 575px) {
  .hero .carousel-caption {
    padding: 5rem 1.1rem;
  }
  .brand-text .name { font-size: 0.92rem; }
  .brand-text .tag { font-size: 0.62rem; }
  .navbar-brand img { height: 52px; }
}
