/* MEVI PREMIUM DESIGN SYSTEM — authentic navy, yellow, magenta, purple & cyan.
   The existing Bootstrap markup, links, forms and Django dynamic content remain intact. */
:root {
  --deep-navy: #01083f;
  --mevi-primary: #007fa2;
  --mevi-accent: #7848ac;
  --brand-yellow: #ffcc00;
  --accent-pink: #f00480;
  --accent-purple: #7848ac;
  --mevi-cyan: #01a0c7;
  --mevi-blue: #515ebe;
  --mevi-ink: #111b43;
  --mevi-muted: #53627e;
  --mevi-paper: #f6f7fc;
  --mevi-line: #e5e8f1;
  --mevi-shadow: 0 12px 34px rgba(1, 8, 63, .065);
  --mevi-radius: 20px;
  --muted: var(--mevi-muted);
}
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: var(--mevi-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.brand, h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -.033em;
}
h1, h2, h3 { font-weight: 800; }
p { line-height: 1.77; }
.container { max-width: 1220px; }
.text-muted { color: #596783 !important; }
.text-primary { color: #006f96 !important; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--mevi-cyan);
  outline-offset: 3px;
}
::selection { color: #01083f; background: #ffe17b; }

/* NAV: same full set of links, same Bootstrap collapse and same Enquire action. */
.navbar {
  position: relative;
  z-index: 1020;
  background: linear-gradient(100deg, #01083f 0%, #090f4b 64%, #15174e 100%) !important;
  box-shadow: 0 6px 24px rgba(1, 8, 63, .16);
  border-bottom: 2px solid rgba(255, 204, 0, .88);
  padding: 11px 0;
}
.navbar .navbar-brand { min-width: 0; }
.navbar .logo-img {
  width: 46px; height: 46px; object-fit: contain;
  background: white; border-radius: 50%; padding: 2px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}
.navbar .brand {
  color: white !important;
  font-size: clamp(.89rem, 1.19vw, 1.13rem);
  letter-spacing: -.038em;
  font-weight: 800;
  white-space: nowrap;
}
.navbar .nav-link {
  color: #dfe4ff !important;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: -.01em;
  padding: 10px 8px !important;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.navbar .nav-link i { font-size: .92rem; }
.navbar .nav-link:hover, .navbar .nav-link.active {
  background: rgba(255,255,255,.09);
  color: #ffdc4d !important;
}
.navbar .btn-yellow {
  border: 0; padding: 10px 17px; border-radius: 10px;
  background: #ffcc00; color: #01083f;
  box-shadow: 0 5px 14px rgba(255, 204, 0, .17);
  font-weight: 800;
}
.navbar .btn-yellow:hover { background: #ffe073; color: #01083f; }
.navbar-toggler { border: 1px solid rgba(255,255,255,.48); padding: 7px 10px; }
.navbar-toggler-icon { filter: invert(1); }
.site-scroll-update {
  background: #0a1246; color: #f7d34a;
  font-size: .76rem; padding-block: 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ELEVATED HERO — original 8-photo carousel kept, actual class/MoU photography. */
#hero.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(65px, 8vw, 110px) 0 clamp(70px, 7vw, 100px);
  background:
    radial-gradient(circle at 95% 12%, rgba(1,160,199,.19), transparent 37%),
    radial-gradient(circle at 72% 100%, rgba(120,72,172,.20), transparent 40%),
    radial-gradient(circle at -8% 10%, rgba(240,4,128,.085), transparent 37%),
    linear-gradient(125deg, #01083f 0%, #0e154f 54%, #17195a 100%);
}
#hero.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(90deg, transparent, #000 80%);
}
#hero .card-hero {
  max-width: 695px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 12px 0 0;
}
.mevi-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid rgba(255,204,0,.24);
  background: rgba(255,204,0,.09);
  color: #ffe285; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 22px;
}
.mevi-hero-eyebrow i { color: #ffcc00; }
#hero h1 {
  color: #ffffff; font-size: clamp(2.5rem, 4.45vw, 4.7rem);
  font-weight: 800; letter-spacing: -.063em; line-height: 1.11;
  max-width: 760px;
  text-wrap: balance;
}
#hero h1 span { color: #ffcc00 !important; }
#hero .lead { color: #cbd5f0; font-size: clamp(.95rem, 1.1vw, 1.07rem); line-height: 1.95; }
.mevi-hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 11px 20px;
  margin-top: 29px; color: #e4e8ff; font-size: .78rem; font-weight: 650;
}
.mevi-hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.mevi-hero-proof i { color: #ffcc00; }
#hero .btn { border-radius: 12px; padding: 12px 21px; font-weight: 800; font-size: .91rem; }
#hero .btn-mevi {
  background: #ffcc00; color: #01083f; border: 1px solid #ffcc00;
  box-shadow: 0 12px 28px rgba(255,204,0,.15);
}
#hero .btn-mevi:hover { background: #ffe17a; border-color: #ffe17a; color: #01083f; }
#hero .btn-outline-secondary {
  color: white; border-color: rgba(226,234,255,.37);
  background: rgba(255,255,255,.075);
}
#hero .btn-outline-secondary:hover { color: #01083f; background: #fff; }
.mevi-photo-wrap { position: relative; padding: 8px 6px 22px 9px; }
.mevi-photo-wrap::before {
  content: ''; position: absolute; inset: -10px 28px 9px -7px;
  border: 2px solid rgba(255,204,0,.38); border-radius: 30px;
  transform: rotate(-3deg); pointer-events: none;
}
#hero .hero-carousel {
  position: relative; border-radius: 24px;
  background: #fff; padding: 8px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 35px 70px rgba(0,0,0,.32);
  overflow: hidden;
}
#hero .hero-carousel .carousel-inner { border-radius: 17px; background: #0e154f; }
#hero .hero-carousel img {
  width: 100%; height: clamp(300px, 37vw, 455px);
  object-fit: contain; object-position: center;
  background: #151736;
}
#hero .carousel-control-prev, #hero .carousel-control-next {
  width: 40px; height: 40px; top: 50%; transform: translateY(-50%);
  border-radius: 100%; background: rgba(1,8,63,.72);
  backdrop-filter: blur(6px);
}
#hero .carousel-control-prev { left: 15px; }
#hero .carousel-control-next { right: 15px; }
.mevi-photo-caption {
  position: absolute; z-index: 3; bottom: 0; right: 0;
  padding: 10px 15px; border-radius: 12px;
  background: #fff; color: #01083f;
  box-shadow: 0 12px 28px rgba(0,0,0,.17);
  font-size: .74rem; font-weight: 800;
}
.mevi-photo-caption i { color: #c01991; }

/* PARTNER BRANDS — show genuine full-color college logos. */
.trusted-section { background: #fff; padding: 38px 0 36px; border-bottom: 1px solid #e8eaf1; }
.trusted-title { color: #01083f; font-size: 1rem; font-weight: 800; }
.trusted-title .text-success { color: #a68000 !important; }
.trusted-track { gap: 18px; }
.trusted-logo {
  background: white; filter: none !important; opacity: 1 !important;
  border-radius: 13px; width: 148px; height: 84px; object-fit: contain;
  border: 1px solid #e9ecf3; padding: 12px 16px;
  box-shadow: none; transition: transform .2s ease, box-shadow .2s ease;
}
.trusted-logo:hover { transform: translateY(-2px) !important; box-shadow: var(--mevi-shadow); }

/* GENUINE MEVI PHOTOGRAPHY — workshop / classroom / partnership collage. */
.mevi-stories {
  padding: clamp(65px, 7vw, 98px) 0;
  background: #f7f8fd;
  border-top: 1px solid #eaedf5;
  border-bottom: 1px solid #eaedf5;
}
.mevi-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  color: #a50c67; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800; font-size: .72rem; margin-bottom: 13px;
}
.mevi-kicker::before { content: ''; display: block; width: 22px; height: 3px; background: #f00480; border-radius: 3px; }
.mevi-stories-heading {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 30px;
}
.mevi-stories h2 { color: #01083f; font-weight: 800; font-size: clamp(1.9rem, 3.3vw, 2.85rem); letter-spacing: -.045em; line-height: 1.23; }
.mevi-stories-heading p { max-width: 640px; color: #5b6680; margin: 13px 0 0; font-size: .96rem; }
.mevi-stories-action {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid #cbd0e0; color: #01083f; background: white;
  border-radius: 12px; padding: 12px 17px; font-size: .84rem;
  font-weight: 800; white-space: nowrap;
}
.mevi-stories-action:hover { background: #01083f; border-color: #01083f; color: #fff; }
.mevi-stories-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-rows: 205px; gap: 16px; }
.mevi-story {
  position: relative; grid-column: span 5;
  display: block; min-width: 0; isolation: isolate;
  overflow: hidden; border-radius: 18px;
  background: #171e4c; color: #fff;
  box-shadow: 0 7px 25px rgba(1,8,63,.085);
}
.mevi-story:first-child { grid-column: span 7; grid-row: span 2; }
.mevi-story:nth-child(4), .mevi-story:nth-child(5) { grid-column: span 6; }
.mevi-story img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.mevi-story.is-mou img { object-fit: contain; background: #e9ebf3; }
.mevi-story::after {
  content: ''; position: absolute; z-index: 1; inset: 0;
  background: linear-gradient(180deg, rgba(1,8,63,0) 28%, rgba(1,8,63,.88) 100%);
}
.mevi-story-copy { position: absolute; z-index: 2; inset: auto 0 0; padding: 23px 26px; }
.mevi-story-copy small {
  display: inline-block; font-size: .67rem; font-weight: 800;
  letter-spacing: .125em; text-transform: uppercase; color: #ffdf68;
  margin-bottom: 5px;
}
.mevi-story-copy h3 { margin: 0; color: #fff; font-size: 1.02rem; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; }
.mevi-story:first-child .mevi-story-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); }
@media (hover:hover) { .mevi-story:hover img { transform: scale(1.035); } }
.mevi-story:focus-visible { outline: 4px solid #ffcc00; outline-offset: 4px; }
.mevi-stories-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 23px; color: #68728b; font-size: .86rem; }
.mevi-stories-footer a { color: #01083f; font-weight: 800; }
.mevi-stories-footer a:hover { color: #ba0f7b; }

/* Shared layout: typography, tactile cards, spacing. */
.section-padding, .service-section, .train-section { padding: 75px 0; }
.section-header h2, .section-title, .section-heading h3 { color: #01083f; font-weight: 800; letter-spacing: -.045em; }
#events, #about, #our-team, #stats, #highlights { scroll-margin-top: 84px; }
#events { background: #fff; padding-block: 82px !important; }
#about { background: #f7f8fc; padding-block: 84px !important; }
#stats { background: #01083f; padding-block: 54px !important; }
#highlights { background: #f6f7fc !important; padding-block: 80px !important; }
.card-soft, .cert-card, .event-card, .service-card, .course-card,
.card-about, .about-feature, .team-profile, .testimonial-card,
.note-card, .mou-card, .gallery-card, .contact-card, .sidebar-card, .stat-card,
.highlight-card, .team-cta-panel {
  background: white; border: 1px solid #e7e9f1;
  border-radius: 19px; box-shadow: var(--mevi-shadow);
}
.about-feature, .service-card, .course-card, .event-card, .mou-card,
.gallery-card, .team-profile, .testimonial-card, .note-card, .highlight-card, .stat-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
@media (hover:hover) {
  .about-feature:hover, .service-card:hover, .course-card:hover,
  .event-card:hover, .mou-card:hover, .gallery-card:hover,
  .team-profile:hover, .testimonial-card:hover, .note-card:hover,
  .highlight-card:hover {
    transform: translateY(-5px);
    border-color: #d5d8e5;
    box-shadow: 0 23px 49px rgba(1,8,63,.13);
  }
}
.btn-mevi, .btn-register, .service-cta, .team-preview-button {
  background: #01083f; border-color: #01083f; color: #fff; border-radius: 11px;
  font-weight: 750;
}
.btn-mevi:hover, .btn-register:hover, .service-cta:hover, .team-preview-button:hover {
  background: #222a76; color: #fff; border-color: #222a76;
}
.btn-outline-secondary, .btn-view { border-radius: 10px; font-weight: 700; }
.btn-outline-secondary:hover { background: #01083f; border-color: #01083f; color: #fff; }
.btn-yellow { background: #ffcc00; border: none; color: #01083f; border-radius: 10px; font-weight: 750; }
.btn-yellow:hover { background: #ffe17a; color: #01083f; }

/* recognitions */
.cert-card { border-radius: 17px; background: #fff; min-height: 170px; padding: 22px 12px; }
.cert-logo { max-width: 145px !important; max-height: 77px !important; filter: none; }
.cert-card div { font-size: .82rem; color: #293154; font-weight: 800; }
/* upcoming events */
.upcoming-scroll { gap: 20px; padding: 7px 2px 20px; }
.upcoming-scroll .event-col { flex-basis: 350px; }
.event-card { overflow: hidden; border-radius: 18px; }
.event-card .event-image { height: 215px; border-radius: 0; object-fit: contain; background: #f1f3f9; }
.event-card .card-body { padding: 22px; }
.event-card .card-title { color: #01083f; font-size: 1.07rem; }
.event-card .event-actions .btn { min-height: 39px; border-radius: 9px; font-size: .81rem; }
.event-meta { flex-wrap: wrap; color: #61708a; }
.btn-view { background: #f1f3ff; border-color: #e1e5ff; color: #18204c; }
.btn-view:hover { background: #dfe3ff; color: #01083f; }

/* About: create a composed, editorial explanation. */
.card-about { border-left: 4px solid #ffcc00; padding: clamp(24px,3.5vw,38px); background: #fff; }
.about-feature { padding: 19px; background: #fff; border-radius: 16px; height: 100%; }
.about-icon, .service-icon, .course-icon { background: linear-gradient(135deg, #101a59, #515ebe) !important; color: #fff; box-shadow: none; }
.about-feature:nth-child(3n) .about-icon { background: linear-gradient(135deg, #ca0b83, #7848ac) !important; }
.about-feature h6 { font-size: .94rem; font-weight: 800; }
.about-feature p { color: #5c6780; font-size: .85rem; }

/* Team — stronger identities but photos remain uncropped around faces. */
body #our-team.team-preview-section { padding-block: 88px !important; background: #fff; }
body #our-team .team-preview-heading { margin-bottom: 35px; }
body #our-team .team-preview-kicker {
  background: #fff3d0; border: 1px solid #ffe397; color: #6e4e00;
  border-radius: 30px; font-size: .72rem; letter-spacing: .1em;
}
body #our-team .team-preview-card {
  border: 1px solid #e9eaf3; background: linear-gradient(180deg, #fff, #fafbff);
  border-radius: 20px; padding: 30px 22px;
  box-shadow: 0 10px 29px rgba(1,8,63,.055);
}
body #our-team .team-preview-photo-ring,
.team-photo-ring {
  background: conic-gradient(from 30deg,#ffcc00,#f00480,#7848ac,#01a0c7,#ffcc00);
  box-shadow: 0 8px 24px rgba(1,8,63,.12);
}
body #our-team .team-preview-role { color: #7139a0; }
body #our-team .team-preview-button { border-radius: 11px; padding: 13px 20px; }
.team-skill { background: #f0eeff; border-color: #ddd7ff; color: #493680; }

/* Stats: high-end navy panel */
#stats .stat-card {
  background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.18);
  box-shadow: none; padding: 29px 24px; color: #fff;
}
#stats .stat-card i { color: #ffcc00 !important; }
#stats .stat-number { color: #ffcc00; font-size: clamp(2.3rem, 4vw, 3.4rem); }
#stats .stat-card .text-muted { color: #d6daf0 !important; font-weight: 600; }
/* Event videos + deeper supporting pages */
#highlights .card { border: 1px solid #e7e9f1 !important; border-radius: 18px; overflow: hidden; box-shadow: var(--mevi-shadow) !important; }
.event-video-preview { height: 230px; object-fit: contain; background: #0c1445; border-radius: 12px; }
.services-hero,.team-hero,.contact-hero,.mou-hero,.testimonials-hero,.hero-section {
  background: radial-gradient(circle at 90% 5%, rgba(120,72,172,.11), transparent 37%),
              radial-gradient(circle at 0% 90%, rgba(255,204,0,.13), transparent 36%),
              linear-gradient(135deg,#fbfbff,#f3f5ff);
}
.gallery-hero, .notes-hero {
  background: radial-gradient(circle at 85% 0%, rgba(240,4,128,.20), transparent 38%),
              linear-gradient(125deg, #01083f, #17195a 68%, #553284);
  color: white;
}
.gallery-hero::after { display:none; }
.gallery-hero h1,.notes-hero h1 { color: white; }
.gallery-card .img-container { aspect-ratio: 4/3; }
.filter-group { border-radius: 16px; flex-wrap:wrap; justify-content:center; }
.filter-btn.active { background: #01083f; color: #fff; }
.note-card { overflow:hidden; }
.note-image,.default-banner { height: 210px; }
.default-banner { background:linear-gradient(135deg,#01083f,#7848ac); }
.notes-hero .stat-card { background:rgba(255,255,255,.12); color:white; border-color:rgba(255,255,255,.22); }
.notes-hero .stat-card h3,.notes-hero .stat-card span { color:white; }
.search-box:focus-within { outline: 3px solid rgba(1,160,199,.25); }
.mou-group-photo { background:#f1f2f8; object-fit: contain; height: 225px; }
.mou-badge { background: #eff9f5 !important; color: #087856 !important; }
.contact-card { padding: 30px; }
.form-control { min-height: 48px; border-radius: 10px; border:1px solid #d8ddeb; padding: 12px 14px; }
.form-control:focus { box-shadow: 0 0 0 4px rgba(1,160,199,.10); border-color:#01a0c7; }
.testimonial-card { border-left: 4px solid #7848ac; }

/* Footer + existing site tools untouched functionally. */
footer { background: linear-gradient(115deg,#01083f,#161953); border-top: 3px solid #ffcc00; padding: 46px 0 32px; }
.footer-title { font-size: 1.04rem; color:white; }
.footer-text,.footer-contact a { color:#c5cde7; }
.footer-social a:hover { background:#ffcc00; color:#01083f; }
#chatbot-toggle { background:linear-gradient(135deg,#7848ac,#01083f); box-shadow:0 10px 27px rgba(1,8,63,.21); }
.chat-header { background:linear-gradient(100deg,#01083f,#242a7c); }
#site-update-badge { background:#ffcc00; }
.whatsapp-float { box-shadow:0 10px 22px rgba(1,8,63,.19); }

@media (min-width: 1200px) and (max-width: 1420px) {
 .navbar .nav-link { font-size:.76rem; padding:9px 6px !important; }
 .navbar .nav-link i { font-size:.82rem; }
}
@media (max-width: 1199.98px) {
 .navbar-collapse { padding-top: 13px; }
 .navbar .nav-link { padding: 11px 13px !important; }
 .navbar-nav { align-items: stretch !important; }
}
@media (max-width: 991.98px) {
 #hero.hero { padding: 60px 0 80px; }
 #hero .card-hero { max-width: 740px; }
 .mevi-photo-wrap { max-width: 700px; margin: 0 auto; }
 .mevi-stories-grid { grid-auto-rows: 190px; }
}
@media (max-width: 767.98px) {
 #hero.hero { padding: 51px 0 66px; }
 #hero h1 { font-size: clamp(2.35rem, 8vw, 3.2rem); }
 #hero .hero-carousel img { height: 290px; }
 .mevi-photo-wrap { padding: 6px 4px 23px; }
 .mevi-photo-wrap::before { inset: -7px 18px 14px -5px; }
 .mevi-stories { padding: 56px 0; }
 .mevi-stories-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 210px; gap: 12px; }
 .mevi-story, .mevi-story:nth-child(4), .mevi-story:nth-child(5) { grid-column: span 1; }
 .mevi-story:first-child { grid-column: span 2; grid-row: span 2; }
 .mevi-story-copy { padding: 15px; }
 .mevi-story-copy h3 { font-size: .85rem; }
 .mevi-stories-heading { align-items:start; }
 .trusted-logo { width:130px;height:74px;padding:10px; }
 #events, #about, body #our-team.team-preview-section, #highlights { padding-block: 61px !important; }
 .upcoming-scroll .event-col { flex-basis: min(330px,86vw); }
 #stats { padding-block:36px !important; }
}
@media (max-width: 520px) {
 .navbar .logo-img { width: 41px; height: 41px; }
 .navbar .brand { font-size: .92rem; }
 .mevi-stories-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
 .mevi-story, .mevi-story:first-child, .mevi-story:nth-child(4), .mevi-story:nth-child(5) {
   grid-column: auto; grid-row: auto; min-height: 250px;
 }
 #hero .hero-carousel img { height: 260px; }
 .mevi-photo-caption { font-size:.65rem; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
 .reveal { opacity: 1 !important; transform:none !important; }
}
