/* ==========================================================================
   MITS LKO — components.css
   Topbar, Navbar, Page Hero, Footer, CTA, Newsletter, Marquee, Counters
   ========================================================================== */

/* ====================== IDENTITY BAR (institutional header) ====================== */
.mpsp-identity-bar {
  background: var(--clr-white);
  border-bottom: 3px solid var(--clr-accent);
  padding: 0;
}

.identity-logo-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.identity-logo-left img {
  width: 114px;
  height: auto;
  object-fit: contain;
}

.identity-center {
  text-align: center;
  padding: 10px 0;
}

.identity-name {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 800;
  margin: 4px 0;
  line-height: 1.30;
  white-space: nowrap;
  font-family: var(--font-heading);
  /* Brand colour from the logo (maroon) blended with the theme navy */
  background: linear-gradient(90deg, var(--clr-logo-maroon) 0%, var(--clr-primary) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--clr-logo-maroon);
}

.identity-address {
  font-size: 18px;
  color: #8b6800;
  margin: 2px 0 0;
  font-weight: 500;
}

.identity-affiliation {
  font-size: 14px;
  color: var(--clr-accent-dark);
  margin: 4px 0 0;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.identity-logo-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-call-btn {
  font-size: 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .header-call-btn .fa-phone {
    margin-right: 0 !important;
  }

  .header-call-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .identity-center {
    padding: 14px 0;
  }
}

@media (max-width: 575.98px) {
  .identity-name {
    /* Scale with the viewport so the full name stays on one line without overflow */
    font-size: min(4.2vw, 19px);
  }

  .identity-address {
    font-size: 13px;
  }

  .identity-affiliation {
    font-size: 11.5px;
  }

  .mpsp-identity-bar {
    border-bottom-width: 2px;
  }
}

/* ====================== TOPBAR ====================== */
.topbar {
  background: var(--clr-dark);
  color: #cfd6e4;
  font-size: 0.85rem;
  padding: 8px 0;
}

.topbar a {
  color: #cfd6e4;
}

.topbar a:hover {
  color: var(--clr-accent);
}

.topbar .topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar .topbar-item i {
  color: var(--clr-accent);
}

.topbar .topbar-divider {
  color: rgba(255, 255, 255, .2);
  margin: 0 14px;
}

.topbar .btn-apply-top {
  background: var(--clr-accent);
  color: #fff;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.topbar .btn-apply-top:hover {
  background: var(--clr-accent-dark);
  color: #fff;
}

/* ====================== NAVBAR ====================== */
.navbar-mits {
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: padding .3s ease, box-shadow .3s ease;
}

/* When the page is scrolled the identity bar slides away and the navbar sticks
   to the top — emphasise it with a deeper shadow (size growth is desktop-only). */
.navbar-mits.scrolled {
  box-shadow: 0 6px 26px rgba(0, 0, 0, .14);
}

.navbar-mits .navbar-brand img {
  height: 56px;
  width: auto;
  transition: height .3s ease;
}

.navbar-mits.scrolled .navbar-brand img {
  height: 46px;
}

.navbar-mits .brand-text {
  line-height: 1.1;
}

.navbar-mits .brand-text .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-primary);
  font-size: 1.05rem;
}

.navbar-mits .brand-text .brand-sub {
  font-size: 0.7rem;
  color: var(--clr-mid-gray);
  letter-spacing: .5px;
}

.navbar-mits .navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--clr-dark);
  padding: 8px 25px !important;
  position: relative;
  white-space: nowrap;
}

/* Desktop horizontal nav: centered, full width, evenly spaced (>=1200px) */
@media (min-width: 1200px) {
  .navbar-mits .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding: 8px 25px !important;
  }

  .navbar-mits .navbar-nav .nav-link.active::after {
    left: 25px;
    right: 25px;
  }

  .navbar-mits .btn-nav-apply {
    padding: 8px 16px;
  }

  .navbar-mits .navbar-brand img {
    height: 48px;
  }

  /* Full-width justified menu: items distributed edge-to-edge with the content */
  .navbar-mits .navbar-collapse {
    flex-grow: 1;
  }

  .navbar-mits .navbar-nav {
    width: 100%;
    justify-content: space-between;
    column-gap: 0;
  }

  /* Smoothly grow the menu links and widen the container while scrolled */
  .navbar-mits .navbar-nav .nav-link {
    transition: font-size .3s ease, padding .3s ease;
  }

  .navbar-mits .container {
    transition: max-width .3s ease, padding .3s ease;
  }

  /* Scrolled (sticky) state — desktop only: bigger menu + wider container */
  .navbar-mits.scrolled {
    padding: 14px 0;
  }

  .navbar-mits.scrolled .navbar-nav .nav-link {
    font-size: 1.12rem;
    padding: 12px 28px !important;
  }

  .navbar-mits.scrolled .navbar-nav .nav-link.active::after {
    left: 28px;
    right: 28px;
  }

  .navbar-mits.scrolled .container {
    max-width: 100%;
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* Show the long brand subtitle only on very wide screens to save nav room */
@media (max-width: 1399.98px) {
  .navbar-mits .brand-text .brand-sub {
    display: none;
  }
}

.navbar-mits .navbar-nav .nav-link:hover,
.navbar-mits .navbar-nav .nav-link.active {
  color: var(--clr-primary);
}

.navbar-mits .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
}

.navbar-mits .dropdown-menu {
  border: 0;
  border-top: 3px solid var(--clr-accent);
  box-shadow: var(--shadow-md);
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  margin-top: 0;
}

.navbar-mits .dropdown-item {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 9px 20px;
  color: var(--clr-dark);
}

.navbar-mits .dropdown-item:hover {
  background: var(--clr-off-white);
  color: var(--clr-primary);
}

/* Selected page inside a dropdown — highlight in the brand yellow (accent) */
.navbar-mits .dropdown-item.active,
.navbar-mits .dropdown-item:active {
  background: var(--clr-off-white);
  color: var(--clr-accent-dark);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--clr-accent);
}

.navbar-mits .btn-nav-apply {
  background: var(--clr-accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.navbar-mits .btn-nav-apply:hover {
  background: var(--clr-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Desktop dropdown hover (xl and up, where the horizontal nav is shown) */
@media (min-width: 1200px) {
  .navbar-mits .dropdown:hover>.dropdown-menu {
    display: block;
  }
}

/* Constrain off-canvas panel so it never exceeds small viewports */
.offcanvas-mits {
  max-width: 86vw;
}

/* Offcanvas mobile */
.offcanvas-mits .offcanvas-header {
  border-bottom: 1px solid var(--clr-light-gray);
}

.offcanvas-mits .nav-link {
  padding: 12px 4px !important;
  border-bottom: 1px solid var(--clr-light-gray);
}

.offcanvas-mits .dropdown-menu {
  border: 0;
  box-shadow: none;
  padding-left: 12px;
}

/* ====================== PAGE HERO ====================== */
.page-hero {
  background: var(--grad-section-dark);
  position: relative;
  overflow: hidden;
  padding: 70px 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: var(--clr-accent);
  opacity: .12;
  border-radius: 50%;
}

.page-hero::before {
  content: '';
  position: absolute;
  left: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border: 30px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
}

.page-hero .breadcrumb {
  margin-bottom: .6rem;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
}

.page-hero .breadcrumb-item.active {
  color: var(--clr-accent);
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .4);
}

.page-hero h1 {
  color: #fff;
  font-size: var(--fs-h1);
  position: relative;
  z-index: 2;
}

/* ====================== STATS COUNTER ====================== */
.stats-section {
  background: var(--grad-section-dark);
  color: #fff;
}

.stat-item {
  text-align: center;
  padding: 18px 10px;
}

.stat-item .stat-icon {
  font-size: 2.2rem;
  color: var(--clr-accent);
  margin-bottom: 10px;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  line-height: 1;
}

.stat-item .stat-number .plus {
  color: var(--clr-accent);
}

.stat-item .stat-label {
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
  margin-top: 8px;
}

/* ====================== MARQUEE (recruiter logos) ====================== */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--clr-light-gray);
  border-radius: 10px;
  padding: 16px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--clr-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.marquee-item i {
  color: var(--clr-accent);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ====================== NEWSLETTER ====================== */
.newsletter-section {
  background: var(--grad-hero);
  color: #fff;
  border-radius: 0;
}

.newsletter-section h3 {
  color: #fff;
}

.newsletter-section .form-control {
  height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 22px;
}

.newsletter-section .btn-subscribe {
  height: 52px;
  background: var(--clr-dark);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 30px;
  font-weight: 600;
  white-space: nowrap;
}

.newsletter-section .btn-subscribe:hover {
  background: var(--clr-accent-dark);
}

/* ====================== CTA BANNER ====================== */
.cta-section {
  background: var(--grad-section-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 320px;
  height: 320px;
  background: var(--clr-accent);
  opacity: .1;
  border-radius: 50%;
}

.cta-section h2 {
  color: #fff;
  font-size: var(--fs-h2);
}

.cta-section p {
  color: rgba(255, 255, 255, .8);
}

/* ====================== FOOTER ====================== */
.footer-mits {
  background: var(--clr-dark);
  color: #aeb7c9;
  padding-top: 70px;
}

.footer-mits h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-mits h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--clr-accent);
  border-radius: 3px;
}

.footer-mits a {
  color: #aeb7c9;
}

.footer-mits a:hover {
  color: var(--clr-accent);
  padding-left: 4px;
}

.footer-mits .footer-links li {
  margin-bottom: 11px;
}

.footer-mits .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: padding .25s ease, color .25s ease;
}

.footer-mits .footer-links i {
  font-size: .7rem;
  color: var(--clr-accent);
}

.footer-mits .footer-brand img {
  height: 60px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.footer-mits .footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.footer-mits .footer-contact i {
  color: var(--clr-accent);
  margin-top: 5px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-social a:hover {
  background: var(--clr-accent);
  color: #fff;
  padding-left: 0;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 50px;
  padding: 22px 0;
  font-size: .88rem;
}

.footer-bottom span {
  margin: 0;
}

.footer-bottom .footer-credit a {
  color: var(--clr-accent);
  font-weight: 600;
}

.footer-bottom .footer-credit a:hover {
  color: #fff;
  padding-left: 0;
}

/* ====================== BACK TO TOP ====================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s ease;
  z-index: 1040;
  border: 0;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-accent-dark);
  color: #fff;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 1040;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

/* ====================== MBA SPECIALIZATION PILLS ====================== */
.prog-spec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 14px;
}

.prog-spec .spec-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-mid-gray);
  margin-right: 2px;
  width: 100%;
}

.spec-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--clr-light-gray);
  color: var(--clr-primary);
  border: 1px solid #dfe4ef;
}

/* ====================== FACILITY IMAGE SLIDESHOW ====================== */
.facility-slider {
  overflow: hidden;
}

.facility-slider .swiper-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.facility-slider .swiper-button-prev,
.facility-slider .swiper-button-next {
  color: #fff;
  --swiper-navigation-size: 26px;
}

.facility-slider .swiper-button-prev::after,
.facility-slider .swiper-button-next::after {
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.facility-slider .swiper-pagination-bullet-active {
  background: var(--clr-accent);
}

@media (max-width: 767px) {
  .facility-slider .swiper-slide img {
    height: 300px;
  }
}

/* ====================== FIXED ADMISSION BUTTON (right, vertical) ====================== */
.admission-fixed-btn {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1045;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--grad-hero);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 16px 9px;
  border-radius: 8px 0 0 8px;
  box-shadow: -3px 3px 14px rgba(0, 0, 0, .25);
  text-decoration: none;
  transition: padding .25s ease, background .25s ease;
}

.admission-fixed-btn:hover {
  color: #fff;
  padding-right: 14px;
  background: var(--clr-accent);
}

/* ====================== SOCIAL SIDEBAR (left, vertical) ====================== */
.social-fixed-bar {
  display: none;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1045;
  flex-direction: column;
}

.social-fixed-bar a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  transition: transform .2s ease, filter .2s ease;
}

.social-fixed-bar a:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.social-fixed-bar .sf-fb {
  background: #1877F2;
}

.social-fixed-bar .sf-ig {
  background: #E1306C;
}

.social-fixed-bar .sf-yt {
  background: #FF0000;
}

.social-fixed-bar .sf-wa {
  background: #25D366;
}

.social-fixed-bar a:first-child {
  border-radius: 0 6px 0 0;
}

.social-fixed-bar a:last-child {
  border-radius: 0 0 6px 0;
}

@media (max-width: 575.98px) {
  .social-fixed-bar a {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .admission-fixed-btn {
    font-size: 12px;
    padding: 12px 7px;
  }
}

/* ====================== ADMISSION ENQUIRY POPUP ====================== */
.admission-popup .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.admission-popup .popup-head {
  background: var(--grad-hero);
  color: #fff;
  padding: 22px 26px;
  position: relative;
}

.admission-popup .popup-head .popup-badge {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.admission-popup .popup-head h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  font-size: 22px;
}

.admission-popup .popup-head .btn-close {
  position: absolute;
  top: 16px;
  right: 18px;
  filter: invert(1) grayscale(1) brightness(2);
  opacity: .9;
}

.admission-popup .modal-body {
  padding: 24px 26px;
}

/* Banner-image popup (homepage). The close "X" is drawn into the artwork, so the
   real button is an invisible hit area sized to sit on top of it. */
.admission-popup-banner .modal-dialog {
  max-width: 620px;
}

.admission-popup-banner .modal-content {
  background: transparent;
  box-shadow: none;
}

.admission-popup-banner .popup-banner-link {
  display: block;
  line-height: 0;
}

.admission-popup-banner .popup-banner-link img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.admission-popup-banner .popup-banner-close {
  position: absolute;
  top: 1.2%;
  right: 1.2%;
  width: 8%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.admission-popup-banner .popup-banner-close:focus-visible {
  opacity: 1;
  outline: 3px solid var(--clr-white);
  outline-offset: 2px;
}