.hero-section {
  height: 320px;
  background: linear-gradient(135deg, #0d6efd, #20c997);
  border-radius: 12px;
  position: relative;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stat-card {
  background: linear-gradient(145deg, #ffffff, #f1f3f5);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.stat-card h2 {
  color: #0d6efd;
  font-weight: 700;
}












/* ================= HERO BAR ================= */

.hero-bar {
  position: relative;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;

  /* Professional academic gradient */
  background: linear-gradient(
    90deg,
    #0d47a1,
    #1976d2 30%,
    #26c6da 50%,
    #1976d2 70%,
    #0d47a1
  );
}

/* Subtle coat watermark in background */
.hero-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/assets/img/coat.png") center no-repeat;
  background-size: 420px;
  opacity: 0.08;
}

/* Content container */
.hero-bar-inner {
  position: relative;
  z-index: 2;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* Center text */
.hero-bar-text {
  text-align: center;
  color: #fff;
  flex: 1;
}

.hero-bar-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.hero-bar-text p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Side coat icons */
.hero-coat-bar {
  height: 70px;
  opacity: 0.9;
}

/* Optional subtle motion */
.hero-coat-bar.left {
  animation: floatLeft 8s ease-in-out infinite;
}

.hero-coat-bar.right {
  animation: floatRight 8s ease-in-out infinite;
}

@keyframes floatLeft {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes floatRight {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-bar {
    height: auto;
    padding: 20px 0;
  }

  .hero-bar-inner {
    flex-direction: column;
    gap: 10px;
  }

  .hero-coat-bar {
    height: 55px;
  }

  .hero-bar-text h1 {
    font-size: 1.2rem;
  }
}






















/* ================= BODY BACKGROUND ================= */

body {
  min-height: 100vh;
  position: relative;

  /* Soft academic gradient */
  background: linear-gradient(
    180deg,
    #f2f6fc 0%,
    #f7f9fd 35%,
    #ffffff 70%,
    #ffffff 100%
  );
}

/* Coat watermark layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image: url("/static/assets/img/coat.png");
  background-repeat: no-repeat;
  background-position: center 140px;
  background-size: 520px;

  opacity: 0.04;          /* VERY SUBTLE (key value) */
  pointer-events: none;
  z-index: -1;
}










/* ===== TOP MEGA BAR ===== */

.top-bottom {
  background: #0d47a1;
}

.top-shadow {
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

.nav-bottom-header .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 14px 18px;
}

.nav-bottom-header .nav-link:hover {
  background: rgba(255,255,255,.1);
  border-radius: 6px;
}

/* ===== MEGA MENU ===== */

.mega-dropdown .dropdown-menu {
  width: 100%;
  left: 0;
  right: 0;
  padding: 0;
  border: none;
}

.mega-menu {
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.mega-left {
  background: #0d47a1;
  color: #fff;
  padding: 30px;
}

.mega-left h6 {
  font-size: 1.1rem;
  font-weight: 600;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px;
}

.mega-grid a {
  text-decoration: none;
  color: #000;
  border-radius: 8px;
  padding: 15px;
  transition: all .2s ease;
}

.mega-grid a span {
  font-weight: 600;
}

.mega-grid a p {
  font-size: .85rem;
  color: #555;
}

.mega-grid a:hover {
  background: #f2f6fc;
  transform: translateY(-2px);
}








/* ===== MEGA NAV FIX ===== */

.nav-bottom-header {
  padding-bottom: 0;
}

.nav-bottom-header .navbar-nav {
  align-items: stretch;
}



.mega-dropdown > .dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

/* LEFT PANEL */
.mega-left {
  background: #0d47a1;
  color: #fff;
  padding: 30px;
}

/* CONTENT GRID */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px;
}

.mega-grid a {
  display: block;
  text-decoration: none;
  color: #000;
  padding: 14px;
  border-radius: 8px;
  transition: all .2s ease;
}

.mega-grid a:hover {
  background: #f2f6fc;
  transform: translateY(-2px);
}


.navbar {
  line-height: normal !important;
}

.top-bottom {
  margin-bottom: 0 !important;
}




















/* Mega Menu Styles */
.mega-dropdown {
    position: static !important;
}

.mega-menu {
    width: 100%;
    padding: 20px !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-top: none !important;
}

.mega-left {
    background-color: #f8f9fa;
    padding: 20px;
    border-right: 1px solid #dee2e6;
}

.mega-left h6 {
    margin: 0;
    font-weight: bold;
    color: #495057;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px;
}

.mega-grid a {
    text-decoration: none;
    color: #212529;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mega-grid a:hover {
    background-color: #f8f9fa;
}

.mega-grid a span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #007bff;
}

.mega-grid a p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Ensure dropdown shows on hover (optional) */
@media (min-width: 992px) {
    .mega-dropdown:hover .mega-menu {
        display: block;
    }
}















/* ================= CAROUSEL CONTROLS ================= */

/* Ensure controls are always clickable */
#galleryCarousel {
  position: relative;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  z-index: 10;
}

/* Round modern button */
#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
  background-size: 20px 20px;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

/* Hover effect */
#galleryCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(13, 71, 161, 0.9); /* academic blue */
  transform: scale(1.08);
}

/* Positioning */
#galleryCarousel .carousel-control-prev {
  left: 18px;
}

#galleryCarousel .carousel-control-next {
  right: 18px;
}

/* Improve visibility on small screens */
@media (max-width: 768px) {
  #galleryCarousel .carousel-control-prev,
  #galleryCarousel .carousel-control-next {
    width: 44px;
    height: 44px;
  }

  #galleryCarousel .carousel-control-prev-icon,
  #galleryCarousel .carousel-control-next-icon {
    width: 44px;
    height: 44px;
  }
}


#galleryCarousel .carousel-caption {
  animation: captionFade 0.6s ease-in-out;
}

@keyframes captionFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#galleryCarousel img {
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}












/* ================= FOOTER ================= */

.ega-footer {
  background: linear-gradient(180deg, #0d47a1, #08306b);
  color: #ffffff;
  margin-top: 60px;
}

.footer-content {
  margin-bottom: 30px;
}

.footer-heading {
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  display: inline-block;
  padding-bottom: 4px;
}

/* Decorative circuit line */
.circuit-line {
  display: flex;
  gap: 6px;
  margin: 10px 0 15px;
}

.circuit-line span {
  width: 25px;
  height: 3px;
  background: #26c6da;
  border-radius: 2px;
}

/* Links */
.footer-content a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.footer-content a:hover {
  color: #26c6da;
  padding-left: 4px;
}

/* Divider */
.footer-divider {
  border-color: rgba(255,255,255,0.25);
}

/* Bottom bar */
.footer-small {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* Social icons */
.footer-social a {
  color: #ffffff;
  font-size: 1.2rem;
  margin-left: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  color: #26c6da;
  transform: translateY(-2px);
}


/* ================= GLASS CAPTION ================= */

.glass-caption {
  background: rgba(0, 0, 0, 0.25);   /* very light */
  backdrop-filter: blur(6px);       /* glass effect */
  -webkit-backdrop-filter: blur(6px);

  border-radius: 14px;
  padding: 10px 18px;
  max-width: 80%;
  margin: auto;

  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.glass-caption h5 {
  color: #ffffff;
  font-weight: 600;
  margin: 0;
}
