/* MGM College Patna - Complete Stylesheet */

:root {
  --mgm-navy: #0a1628;
  --mgm-navy-mid: #132a4a;
  --mgm-crimson: #c41e3a;
  --mgm-crimson-light: #e03a55;
  --mgm-ivory: #fefcf7;
  --mgm-gold: #d4af37;
  --font-display: "Montserrat", system-ui, sans-serif;
  /* Desktop fallback until JS sets exact .top-bar height */
  --mgm-topbar-height: 2.35rem;
  /* Hero photos: bias crop downward so faces sit below fixed header overlay */
  --hero-img-anchor-y: 42%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-display);
  background: var(--mgm-ivory);
  color: #1e2a3a;
  overflow-x: hidden;
}

/* Top bar — own strip, fixed above navbar (desktop) */
.top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1041;
  padding: 0.28rem 0;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(90deg, #4a1522 0%, #5c1a2e 35%, #3d1424 100%);
  border-bottom: 2px solid var(--mgm-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, opacity 0.3s ease, box-shadow 0.3s ease, visibility 0s linear;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  row-gap: 0.2rem;
}
.top-bar strong {
  color: #fff;
  font-weight: 700;
}
.top-bar a {
  color: rgba(255, 230, 200, 0.95);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.top-bar a:hover {
  color: #fff;
  border-bottom-color: var(--mgm-gold);
}
@media (min-width: 768px) {
  .top-bar {
    display: flex;
    align-items: center;
  }
}

/* Navbar — transparent over hero; solid gradient after scroll */
.navbar-mgm {
  top: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 0.5rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, top 0.35s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 768px) {
  /* Beat Bootstrap `.fixed-top { top: 0 }` so navbar sits under the contact strip */
  .navbar.navbar-expand-lg.navbar-dark.navbar-mgm.fixed-top {
    top: calc(var(--mgm-topbar-height) + 6px);
  }
  /* After scroll: ribbon hides, navbar snaps to top of viewport */
  body.mgm-header-compact .top-bar {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    transition: transform 0.35s ease, opacity 0.28s ease, box-shadow 0.25s ease, visibility 0s linear 0.35s;
  }
  body.mgm-header-compact .navbar.navbar-expand-lg.navbar-dark.navbar-mgm.fixed-top {
    top: 0;
  }
}
.navbar-mgm.navbar-scrolled {
  padding: 0.35rem 0;
  background: linear-gradient(95deg, rgba(196, 30, 58, 0.96) 0%, rgba(10, 22, 40, 0.96) 55%, rgba(19, 42, 74, 0.92) 100%);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 215, 170, 0.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0;
}
.brand-logo {
  height: 48px;
  width: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: height 0.35s ease, filter 0.35s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
.navbar-mgm.navbar-scrolled .brand-logo {
  height: 42px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}
.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-text .brand-sub {
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffd700;
}
.navbar-mgm:not(.navbar-scrolled) .navbar-nav .nav-link {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 2px 12px rgba(0, 0, 0, 0.4);
}
.navbar-nav .nav-link {
  color: rgba(255, 255, 245, 0.95) !important;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0.08rem;
  border-radius: 30px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, text-shadow 0.35s ease;
}
.navbar-mgm.navbar-scrolled .navbar-nav .nav-link {
  text-shadow: none;
}
.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 245, 0.14);
  color: white !important;
  transform: translateY(-1px);
}
.navbar-mgm:not(.navbar-scrolled) .nav-item .btn-mgm-primary {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.navbar-mgm .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}
.navbar-mgm:not(.navbar-scrolled) .navbar-toggler-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.btn-mgm-primary {
  background: linear-gradient(105deg, var(--mgm-crimson), var(--mgm-crimson-light));
  border: none;
  color: white;
  border-radius: 40px;
  font-weight: 700;
  padding: 0.5rem 1.6rem;
  transition: 0.25s;
}
.btn-mgm-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(196,30,58,0.55);
  background: var(--mgm-crimson-light);
  color: white;
}

/* Hero Carousel — full viewport height, image visible under transparent nav */
.hero-carousel-wrap {
  margin-top: 0;
  position: relative;
}
.hero-carousel-bs {
  min-height: 100vh;
  min-height: 100dvh;
}
.hero-carousel-bs .carousel,
.hero-carousel-bs .carousel-inner {
  min-height: inherit;
}
.hero-carousel-bs .carousel-inner {
  height: 100vh;
  height: 100dvh;
}
.hero-carousel-bs .carousel-item {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
}
.hero-carousel-bs .carousel-item img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  object-fit: cover;
  /* Shift focal point down — reduces heads clipped under top bar + navbar */
  object-position: center var(--hero-img-anchor-y);
}
@media (min-width: 768px) {
  :root {
    --hero-img-anchor-y: 46%;
  }
}
@media (max-width: 767px) {
  :root {
    --hero-img-anchor-y: 38%;
  }
}
/* Light vignette so photo stays visible; text reads via caption panel */
.hero-carousel-bs .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.25) 0%,
    rgba(10, 22, 40, 0.08) 35%,
    rgba(10, 22, 40, 0.15) 55%,
    rgba(5, 8, 14, 0.55) 100%
  );
  pointer-events: none;
}
.hero-carousel-bs .carousel-caption {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: clamp(5.5rem, 16vh, 9rem);
  max-width: min(36rem, 92vw);
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.45rem;
  text-align: center;
  background: rgba(10, 22, 40, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.hero-carousel-bs .carousel-caption h1,
.hero-carousel-bs .carousel-caption h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}
.hero-carousel-bs .carousel-caption p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero-carousel-bs .carousel-caption .btn-mgm-primary {
  padding: 0.55rem 1.5rem;
}
.hero-carousel-bs .carousel-indicators {
  margin-bottom: 0.75rem;
}
.hero-carousel-bs .carousel-indicators [data-bs-target] {
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  border: none;
  opacity: 0.45;
}
.hero-carousel-bs .carousel-indicators .active {
  opacity: 1;
  background-color: #fff;
}
.hero-carousel-bs .carousel-control-prev,
.hero-carousel-bs .carousel-control-next {
  z-index: 3;
}
.hero-carousel-bs .carousel-control-prev-icon,
.hero-carousel-bs .carousel-control-next-icon {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

/* Hero — unique slow drift / Ken Burns per slide (active only) */
@keyframes heroKen1 {
  0% { transform: scale(1.06) translate(0%, 0%); }
  100% { transform: scale(1.14) translate(-2.5%, 2.2%); }
}
@keyframes heroKen2 {
  0% { transform: scale(1.1) translate(1.5%, 0%); }
  100% { transform: scale(1.06) translate(-2%, -1.8%); }
}
@keyframes heroKen3 {
  0% { transform: scale(1.08) translate(-1.2%, 0.8%); }
  100% { transform: scale(1.13) translate(2.2%, -1.2%); }
}
@keyframes heroKen4 {
  0% { transform: scale(1.07) translate(0.8%, -0.6%); }
  100% { transform: scale(1.12) translate(-2.2%, 1.6%); }
}
@keyframes heroCaptionFloat {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-8px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-carousel-bs .carousel-item.active > img {
    animation-duration: 18s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    will-change: transform;
  }
  .hero-carousel-bs .carousel-item:nth-child(1).active > img {
    animation-name: heroKen1;
  }
  .hero-carousel-bs .carousel-item:nth-child(2).active > img {
    animation-name: heroKen2;
  }
  .hero-carousel-bs .carousel-item:nth-child(3).active > img {
    animation-name: heroKen3;
  }
  .hero-carousel-bs .carousel-item:nth-child(4).active > img {
    animation-name: heroKen4;
  }
  .hero-carousel-bs .carousel-item.active .carousel-caption {
    animation: heroCaptionFloat 7s ease-in-out infinite alternate;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-bs .carousel-item > img,
  .hero-carousel-bs .carousel-item .carousel-caption {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .hero-carousel-bs .carousel-caption {
    bottom: clamp(4.5rem, 14vh, 7rem);
    padding: 1rem 1.1rem 1.15rem;
  }
  .hero-carousel-bs .carousel-caption p {
    font-size: 0.9rem;
  }
  .hero-carousel-bs .carousel-caption .display-5 {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }
}

/* Ticker */
.ticker-wrap {
  background: var(--mgm-navy);
  color: var(--mgm-gold);
  border-top: 2px solid var(--mgm-crimson);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-block;
  padding: 0.65rem 0;
  animation: ticker 26s linear infinite;
}
.ticker-inner span {
  margin: 0 1.5rem;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Parallel Banner */
.parallel-banner {
  background: linear-gradient(115deg, #f9f3e7 0%, #fff4e8 100%);
  border-bottom: 3px solid var(--mgm-crimson);
  padding: 2rem 0;
}
.parallel-banner h3 span {
  color: var(--mgm-crimson);
}
.program-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.program-pill {
  background: white;
  border-radius: 60px;
  padding: 0.8rem 1.2rem;
  border-left: 4px solid var(--mgm-crimson);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}
.program-pill:hover {
  transform: translateX(6px);
  background: var(--mgm-navy);
  color: white;
}

/* Quick Links Tiles */
.quick-links {
  padding: 3rem 0;
}
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .tiles-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
  .tiles-grid { grid-template-columns: repeat(6, 1fr); }
}
.tile-quick {
  background: white;
  border-radius: 32px;
  padding: 1.5rem 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  display: block;
}
.tile-quick:hover {
  transform: translateY(-12px);
  background: var(--mgm-navy);
  color: white;
  box-shadow: 0 28px 40px -12px rgba(196,30,58,0.25);
}
.tile-quick .icon {
  background: linear-gradient(145deg, var(--mgm-crimson), #a51730);
  width: 60px;
  height: 60px;
  border-radius: 30px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background: white;
}
.section-kicker {
  color: var(--mgm-crimson);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-section h2 span {
  color: var(--mgm-crimson);
}

/* Admissions Banner */
.admissions-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--mgm-navy) 0%, var(--mgm-navy-mid) 50%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
}
.admissions-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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");
  pointer-events: none;
}
.admissions-content {
  position: relative;
  z-index: 1;
}
.admissions-banner h2 {
  color: #fff;
  font-size: 2rem;
  line-height: 1.3;
}
.admissions-banner h3 {
  color: var(--mgm-gold);
}
.admissions-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}
.admissions_divider {
  width: 120px;
  height: 3px;
  background: var(--mgm-crimson);
  margin: 1.5rem auto;
  border: none;
}
.admissions-banner .btn-mgm-primary {
  background: var(--mgm-crimson);
  border-color: var(--mgm-crimson);
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.admissions-banner .btn-mgm-primary:hover {
  background: var(--mgm-crimson-light);
  border-color: var(--mgm-crimson-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}
@media (max-width: 768px) {
  .admissions-banner {
    padding: 3rem 0;
  }
  .admissions-banner h2 {
    font-size: 1.4rem;
  }
}

/* Courses Section */
.courses-section {
  padding: 4rem 0;
  background: #fefaf5;
}
.courses-section h2 span {
  color: var(--mgm-crimson);
}
.courses-section--alt {
  background: #fff;
}
.courses-section--pharmacy {
  background: #f4f2ec;
}
.courses-section--law {
  background: #fff;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
/* Nursing & paramedical: exactly 3 cards per row (desktop) */
.courses-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 991.98px) {
  .courses-grid--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .courses-grid--cols-3 {
    grid-template-columns: 1fr;
  }
}
/* Pharmacy: two cards per row, centred */
.courses-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 575.98px) {
  .courses-grid--cols-2 {
    grid-template-columns: 1fr;
    max-width: none;
  }
}
.course-card {
  border-radius: 28px;
  background: white;
  transition: 0.35s;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 48px -15px rgba(196,30,58,0.2);
}
.course-card .thumb {
  height: 165px;
  background-size: cover;
  background-position: center;
}
.btn-read {
  background: transparent;
  border: none;
  color: var(--mgm-crimson);
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0;
}
.btn-read:hover { text-decoration: underline; }

/* Course detail modals (IT, nursing & paramedical) */
.modal-course-mgm .modal-content {
  border: none;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 22, 40, 0.35);
}
.modal-course-mgm .modal-header {
  background: linear-gradient(95deg, var(--mgm-crimson) 0%, var(--mgm-navy-mid) 52%, var(--mgm-navy) 100%);
  color: #fff;
  border-bottom: 3px solid var(--mgm-gold);
  padding: 1rem 1.25rem;
}
.modal-course-mgm .modal-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.modal-course-mgm .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.modal-course-mgm .btn-close:hover {
  opacity: 1;
}
/* Modal footer — site footer colours (navy gradient + gold accent strip) */
.modal-course-mgm .modal-course-mgm__footer {
  margin-top: 0;
  border-radius: 0 0 1.1rem 1.1rem;
  overflow: hidden;
}
.modal-course-mgm__footer-accent {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--mgm-gold) 0%, var(--mgm-crimson-light) 50%, var(--mgm-gold) 100%);
  opacity: 0.95;
}
.modal-course-mgm__footer-inner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
    linear-gradient(180deg, var(--mgm-navy) 0%, #050a12 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
}
.modal-course-mgm__footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: min(22rem, 100%);
}
.modal-course-mgm__footer-text {
  font-size: 0.8rem;
  line-height: 1.45;
}
.modal-course-mgm__footer-text strong {
  color: #fff;
  font-weight: 700;
}
.modal-course-mgm__footer-note {
  display: block;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}
.modal-course-mgm__footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.modal-course-mgm__footer-btn-close {
  color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  font-weight: 600;
}
.modal-course-mgm__footer-btn-close:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
  color: #fff !important;
}
@media (max-width: 575.98px) {
  .modal-course-mgm__footer-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .modal-course-mgm__footer-copy {
    max-width: none;
    align-items: center;
  }
  .modal-course-mgm__footer-actions {
    justify-content: center;
  }
}
.modal-course-mgm__inner {
  padding: 1.15rem 1.35rem 1.35rem;
  background: var(--mgm-ivory);
}
/* One row: details 5 / about 7 (Bootstrap col-lg-5 + col-lg-7) */
.modal-course-mgm .course-modal-split > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.modal-course-mgm .course-modal-split .course-spec-card {
  margin-bottom: 0;
}
/* Same title size, equal box heights, justified about text */
.modal-course-mgm .course-modal-split .course-spec-card,
.modal-course-mgm .course-modal-split .course-about-block {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.modal-course-mgm .course-modal-split .course-spec-card__title,
.modal-course-mgm .course-modal-split .course-about-block h4 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--mgm-navy);
  margin: 0 0 0.65rem;
  padding: 0.75rem 0 0.55rem;
  border-bottom: 1px solid #e8eaef;
  flex-shrink: 0;
}
.modal-course-mgm .course-modal-split .course-about-block h4 {
  border-bottom: 2px solid rgba(196, 30, 58, 0.22);
}
.modal-course-mgm .course-modal-split .course-about-block p {
  flex: 1 1 auto;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #2c3544;
}
.course-spec-card {
  background: #fff;
  border-radius: 0.65rem;
  border: 1px solid rgba(10, 22, 40, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  padding: 0 1rem;
  margin-bottom: 1.25rem;
}
.course-spec-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mgm-navy);
  padding: 1rem 0 0.65rem;
  margin: 0;
  border-bottom: 1px solid #e8eaef;
  letter-spacing: 0.02em;
}
.course-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eceef3;
  font-size: 0.9rem;
  color: #1e2a3a;
  line-height: 1.45;
}
.course-spec-row:last-child {
  border-bottom: none;
}
.course-spec-ic {
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.88;
  line-height: 1.4;
}
.course-spec-row__text strong {
  color: var(--mgm-navy);
  font-weight: 700;
}
.course-spec-sep {
  color: #6b7280;
  font-weight: 500;
  margin: 0 0.25rem 0 0.1rem;
}
.course-spec-sep::after {
  content: "\00a0";
}
.course-about-block {
  background: #fff;
  border-radius: 0.65rem;
  border: 1px solid rgba(10, 22, 40, 0.08);
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}
.course-about-block h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mgm-navy);
  margin: 0 0 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(196, 30, 58, 0.25);
}
.course-about-block p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #2c3544;
}

/* Stats Section */
.stats-section {
  padding: 3rem 0;
  background: white;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-block .num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--mgm-crimson), #a51c3a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Why Section */
.why-section {
  padding: 4rem 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.why-card {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  font-weight: 500;
}

/* Admissions Section */
.admissions-section {
  padding: 4rem 0;
}
.step-line {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.8rem;
}
.step-dot {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--mgm-crimson);
  border-radius: 50%;
}
.step-line::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 1.6rem;
  bottom: -0.8rem;
  width: 2px;
  background: rgba(196,30,58,0.3);
}
.step-line:last-child::before { display: none; }
.enquiry-form {
  background: rgba(255,255,250,0.95);
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(212,175,55,0.5);
}
.form-control, .form-select {
  border-radius: 60px;
  padding: 0.7rem 1.2rem;
  border: 1px solid #e2dfd7;
}
.form-control:focus, .form-select:focus {
  border-color: var(--mgm-crimson);
  box-shadow: 0 0 0 3px rgba(196,30,58,0.2);
}

/* Placement Section */
.placement-section {
  padding: 4rem 0;
  background: #eef2f7;
}
.recruiters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.recruiters span {
  background: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.testimonial {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: white;
}
.map-frame {
  width: 100%;
  border-radius: 1rem;
  height: 220px;
  border: 0;
}

/* Footer — multi-column academic style (reference: institutional footers with accent strip + columns) */
.footer-mgm {
  background: linear-gradient(180deg, var(--mgm-navy) 0%, #050a12 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 0;
  margin-top: 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}
.footer-accent-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--mgm-gold) 0%, var(--mgm-crimson-light) 45%, var(--mgm-gold) 100%);
  opacity: 0.95;
}
.footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1rem;
}
.footer-brand-block:hover .footer-brand-title {
  color: var(--mgm-gold);
}
.footer-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.footer-brand-title {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-brand-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-lead {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
  max-width: 26rem;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.footer-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--mgm-gold);
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mgm-gold);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(196, 30, 58, 0.65);
  display: inline-block;
  min-width: 6rem;
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link-list li {
  margin-bottom: 0.55rem;
}
.footer-link-list a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
  border-left: 2px solid transparent;
  padding-left: 0;
}
.footer-link-list a:hover {
  color: #fff;
  padding-left: 6px;
  border-left-color: var(--mgm-crimson-light);
}
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.footer-contact-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}
.footer-contact-icon {
  flex-shrink: 0;
  opacity: 0.9;
}
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.footer-contact-list a:hover {
  color: var(--mgm-gold);
  text-decoration: underline;
}
.footer-hours {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.5rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social-link:hover {
  background: rgba(196, 30, 58, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.footer-bottom-bar {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.9rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.78rem;
}
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.footer-bottom-links a:hover {
  color: var(--mgm-gold);
}
.footer-dot {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}
@media (max-width: 575px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Floating Buttons */
.float-actions {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.float-actions a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.2s;
}
.whatsapp-btn { background: #25d366; color: white; }
.call-btn { background: var(--mgm-crimson); color: white; }
.float-actions a:hover { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes mgmFabPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  }
  @keyframes mgmFabPulseCrimson {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(196, 30, 58, 0); }
  }
  .float-actions .whatsapp-btn {
    animation: mgmFabPulse 3.2s ease-in-out infinite;
  }
  .float-actions .call-btn {
    animation: mgmFabPulseCrimson 3.2s ease-in-out 0.6s infinite;
  }
  .float-actions a:hover {
    animation: none;
  }
}

/* Scroll Reveal */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), filter 0.85s ease;
  filter: blur(0.35px);
}
.reveal { transform: translateY(36px); }
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-scale { transform: scale(0.9); transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), filter 0.85s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: none;
}

/* Section blocks — scroll-in (site.js adds .mgm-sa + a per-section variant) */
.mgm-sa {
  opacity: 0;
  transition: opacity 0.88s cubic-bezier(0.22, 1, 0.36, 1), transform 0.88s cubic-bezier(0.22, 1, 0.36, 1), filter 0.82s ease;
  will-change: opacity, transform;
}
.mgm-sa.visible {
  opacity: 1;
  transform: none !important;
  filter: none !important;
}
/* —— Per-section entrance (initial state only; .visible resets) —— */
.mgm-sa--slide-l {
  transform: translateX(-56px);
  filter: blur(0.45px);
}
.mgm-sa--slide-r {
  transform: translateX(52px);
  filter: blur(0.45px);
}
.mgm-sa--lift {
  transform: translateY(48px);
  filter: blur(0.35px);
}
.mgm-sa--pop {
  transform: translateY(28px) scale(0.9);
  filter: blur(0.5px);
}
.mgm-sa--tilt {
  transform: perspective(960px) rotateX(8deg) translateY(40px);
  transform-origin: 50% 0;
  filter: blur(0.55px);
}
.mgm-sa--unblur {
  transform: translateY(32px);
  filter: blur(11px);
}
.mgm-sa--skew {
  transform: skewX(-3.5deg) translateX(-32px) translateY(16px);
  filter: blur(0.4px);
}
.mgm-sa--spring {
  transform: translateY(72px) scale(0.96);
  filter: blur(0.35px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 1.05s cubic-bezier(0.28, 1.35, 0.42, 1), filter 0.75s ease;
}
.mgm-sa--drift {
  transform: translateY(40px) translateX(-18px) rotate(-0.8deg);
  filter: blur(0.4px);
}
.mgm-sa--from-l {
  transform: translateX(-64px) translateY(12px);
  filter: blur(0.45px);
}
.mgm-sa--from-r {
  transform: translateX(64px) translateY(12px);
  filter: blur(0.45px);
}
.mgm-sa--zoomin {
  transform: scale(0.91) translateY(24px);
  filter: blur(0.55px);
}
.mgm-sa--foot-fade {
  transform: translateY(20px);
  filter: blur(5px);
  transition: opacity 1s ease, transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
}
.mgm-sa--foot-rise {
  transform: translateY(28px);
  filter: blur(0.35px);
  transition: opacity 0.75s ease, transform 0.8s cubic-bezier(0.34, 1.2, 0.64, 1), filter 0.65s ease;
}
@media (prefers-reduced-motion: reduce) {
  .mgm-sa,
  .mgm-sa[class*="mgm-sa--"] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    filter: none !important;
  }
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(10,22,40,0.98);
    border-radius: 20px;
    padding: 1rem;
    margin-top: 1rem;
  }
  .navbar-nav .nav-link { text-align: center; }
}