/* =========================================================
   MUGR homepage — layout, hero, discovery carousel, finder, language pills
   Moved out of index.php (inline <style> blocks) on 2026-11-30.
   Load order matters: see the <link> in index.php.
   ========================================================= */

/* ---- block ---- */
.mugr-mobile-main-links .mugr-mobile-sitemap-link{
  color:#c79a16 !important;
  font-weight:600;
}
.mugr-mobile-sitemap-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.mugr-mobile-sitemap-icon{
  width:16px;
  height:16px;
  flex:0 0 16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ---- block ---- */
/* Give the staff subtitle room above the carousel card on shorter notebook screens. */
@media (min-width: 992px) and (max-height: 960px) {
  body.body-index-page .scrollable-home .wrapper-who-r-u {
    position: relative;
    top: -32px;
  }
}
/* Homepage audience menu V2.9: canonical links + guaranteed staff subtitle row. */
.wrapper-who-r-u .mugr-audience-link{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  column-gap:12px !important;
  align-items:start !important;
  width:100% !important;
  min-width:0 !important;
  text-decoration:none !important;
}
.wrapper-who-r-u .mugr-audience-link > img{
  grid-column:1 !important;
  grid-row:1 / span 2 !important;
  flex:none !important;
  /* V2.11: lower the circular arrow to align its visual center with the main text. */
  position:relative !important;
  top:10px !important;
}
.wrapper-who-r-u .faculty-staff-copy{
  grid-column:2 !important;
  display:block !important;
  min-width:0 !important;
  width:100% !important;
}
.wrapper-who-r-u .faculty-staff-title{
  display:block !important;
  width:100% !important;
  line-height:1.2 !important;
}
.wrapper-who-r-u .faculty-staff-subtitle{
  display:block !important;
  width:100% !important;
  margin:5px 0 0 0 !important;
  padding:0 !important;
  clear:both !important;
  font-size:12px !important;
  line-height:1.4 !important;
  font-weight:500 !important;
  white-space:normal !important;
  color:inherit !important;
  text-shadow:0 2px 5px rgba(0,0,0,.95),0 0 12px rgba(0,0,0,.88) !important;
}
.wrapper-who-r-u .mugr-audience-staff .faculty-staff-title + .faculty-staff-subtitle{
  display:block !important;
  position:static !important;
  float:none !important;
}

/* ---- block ---- */
/* Homepage cinematic polish V1 — presentation only; existing links and runtime logic stay unchanged. */
@media (min-width: 992px){
  .scrollable-home .section-bg.shape-bg3{
    animation:mugrHeroDrift 22s ease-in-out infinite alternate;
    transform-origin:center center;
    will-change:transform;
  }
  .scrollable-home .scrollable-content{
    position:relative;
    z-index:2;
  }
  .scrollable-home .intro > .row > .col-lg-6,
  .scrollable-home .wrapper-who-r-u{
    position:relative;
    isolation:isolate;
  }
  .scrollable-home .intro > .row > .col-lg-6::before,
  .scrollable-home .wrapper-who-r-u::before{
    /* Use the full-image overlay instead of overlapping text-panel shadows. */
    content:none;
  }
  body.body-index-page #applyBtn{
    display:inline-flex!important;
    align-items:center;
    gap:8px!important;
    width:auto!important;
    height:40px!important;
    max-height:40px!important;
    margin-top:8px!important;
    min-height:0!important;
    margin-bottom:0!important;
    padding:0 15px!important;
    box-sizing:border-box!important;
    font-size:20px!important;
    line-height:40px!important;
    border:1px solid rgba(255,213,68,.72);
    border-radius:999px;
    color:#ffe46b!important;
    background:linear-gradient(135deg,rgba(246,199,70,.18),rgba(246,199,70,.05));
    box-shadow:0 8px 28px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    text-shadow:0 1px 12px rgba(0,0,0,.55);
    transition:transform .25s ease,background .25s ease,box-shadow .25s ease,color .25s ease;
  }
  body.body-index-page #applyBtn:hover,
  body.body-index-page #applyBtn:focus-visible{
    color:#172449!important;
    background:#f6c746;
    box-shadow:0 10px 32px rgba(246,199,70,.32),0 0 0 4px rgba(246,199,70,.12);
    transform:translateY(-2px);
    outline:none;
  }
  body.body-index-page #applyBtn i{font-size:22px!important;line-height:1!important;transition:transform .25s ease;}
  body.body-index-page #applyBtn:hover i{transform:translateX(4px);}
  #whoAreYouTitle{
    display:inline-block;
    padding-bottom:11px;
    margin-bottom:8px;
  }
  #whoAreYouTitle::after{
    content:"";
    display:block;
    width:72px;
    height:3px;
    margin-top:10px;
    border-radius:99px;
    background:linear-gradient(90deg,#f6c746,rgba(246,199,70,0));
    box-shadow:0 0 18px rgba(246,199,70,.45);
  }
  .wrapper-who-r-u .mugr-audience-link{
    border-radius:14px 0 0 14px;
    padding:5px 10px 7px!important;
    margin-left:-10px;
    max-width:none!important;
    transition:background .22s ease,transform .22s ease,color .22s ease;
  }
  .wrapper-who-r-u ul,
  .wrapper-who-r-u .mugr-audience-item{
    width:100%!important;
  }
  .wrapper-who-r-u .mugr-audience-link:hover,
  .wrapper-who-r-u .mugr-audience-link:focus-visible{
    border-radius:14px 0 0 14px!important;
    background:linear-gradient(90deg,rgba(199,154,22,.96) 0%,rgba(246,199,70,.78) 58%,rgba(246,199,70,0) 100%);
    color:#fff!important;
    opacity:1!important;
    transform:none;
    outline:none;
  }
  .wrapper-who-r-u .mugr-audience-link:hover *,
  .wrapper-who-r-u .mugr-audience-link:focus-visible *{
    color:#fff!important;
    opacity:1!important;
  }
  .wrapper-who-r-u .mugr-audience-link > img{
    transition:transform .25s ease,filter .25s ease;
  }
  .wrapper-who-r-u .mugr-audience-link:hover > img{
    transform:none;
    opacity:1!important;
    filter:brightness(0) invert(1);
  }
}
@keyframes mugrHeroDrift{
  from{transform:scale(1.01);}
  to{transform:scale(1.045);}
}
@media (prefers-reduced-motion:reduce){
  .scrollable-home .section-bg.shape-bg3{animation:none!important;transform:none!important;}
  #applyBtn,.wrapper-who-r-u .mugr-audience-link,.wrapper-who-r-u .mugr-audience-link > img{transition:none!important;}
}

/* ---- block ---- */
/* MUGR homepage discovery carousel; scoped to the first page. */
/* Keep the original homepage media out of view while the first carousel artwork loads. */
body.body-index-page .scrollable-home{background:#111e3b!important}
body.body-index-page .scrollable-home .scroll-wrap > .video-container,body.body-index-page .scrollable-home .scroll-wrap > .section-bg{visibility:hidden!important}
.mugr-discovery-bg{position:absolute;inset:0;z-index:1;background-position:center;background-size:cover;opacity:0;transition:opacity .5s ease;pointer-events:none}
.mugr-discovery-bg.is-visible{opacity:1}
.mugr-discovery-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,19,45,.55),rgba(7,19,45,.12) 55%,rgba(7,19,45,.4))}
@media(min-width:992px){
  body.body-index-page .scrollable-home .mugr-discovery-bg::after{
    background:linear-gradient(90deg,rgba(7,19,45,.55) 0%,rgba(7,19,45,.32) 42%,rgba(7,19,45,.30) 55%,rgba(7,19,45,.48) 80%,rgba(7,19,45,.44) 100%);
  }
}
.mugr-discovery{position:absolute;z-index:12;right:5%;bottom:145px;width:min(420px,34vw);color:white;text-shadow:0 1px 8px #07152f}
.mugr-discovery-card{background:rgba(7,22,49,.76);border:1px solid rgba(255,255,255,.38);border-radius:15px;padding:14px 17px;backdrop-filter:blur(10px)}
.mugr-discovery-kicker{display:block;color:#ffdc78;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.mugr-discovery-title{display:block;font-size:19px;line-height:1.35;margin:3px 0 8px;color:#fff!important;text-decoration:none}.mugr-discovery-title:not([aria-disabled="true"]):hover,.mugr-discovery-title:not([aria-disabled="true"]):focus-visible{text-decoration:underline;text-underline-offset:4px}.mugr-discovery-title[aria-disabled="true"]{pointer-events:none}
.mugr-discovery-link{display:inline-block;color:#fff!important;text-decoration:underline;text-underline-offset:3px;font-size:14px}
.mugr-discovery-card-actions{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}.mugr-discovery-download{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:40px;height:40px;border:1px solid rgba(255,255,255,.55);border-radius:8px;color:#fff!important;text-decoration:none!important;background:rgba(255,255,255,.1)}.mugr-discovery-download:hover,.mugr-discovery-download:focus-visible{background:#293478;outline:2px solid #f6c746;outline-offset:2px}.mugr-discovery-download[hidden]{display:none!important}.mugr-discovery-download svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mugr-discovery-controls{display:flex;gap:7px;align-items:center;justify-content:flex-end;margin-top:9px}
.mugr-discovery-controls button{cursor:pointer;width:39px;height:39px;border:1px solid #ffffffa8;border-radius:50%;color:white;background:#112746c9;font-size:25px;line-height:1}
.mugr-discovery-controls button:hover,.mugr-discovery-controls button:focus-visible{background:#293478;outline:2px solid #f6c746;outline-offset:2px}
.mugr-discovery-count{margin-right:auto;font-size:13px}
@media(min-width:992px){body.body-index-page .wrapper-find-course{width:57%;bottom:6.5rem}body.body-index-page .wrapper-find-course .container{width:100%;padding-left:5%;padding-right:0}body.body-index-page .wrapper-find-course .row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:0}body.body-index-page .wrapper-find-course .row>div{float:none;width:100%;padding:0}body.body-index-page .wrapper-find-course-inner{display:block}body.body-index-page .wrapper-find-course-inner label{display:block;margin:0 0 6px;font-size:21px}body.body-index-page .wrapper-find-course-inner .wrapper-select-find-courses,body.body-index-page .wrapper-find-course-inner select{width:100%!important}body.body-index-page .wrapper-find-course-inner select,body.body-index-page .wrapper-recommendation-system a{height:48px!important;min-height:48px!important}body.body-index-page .wrapper-recommendation-system{padding-top:31px}body.body-index-page .wrapper-recommendation-system a{max-width:none;margin:0;padding:0 10px;line-height:1.2}body.body-index-page .wrapper-recommendation-system span{font-size:16px!important}.mugr-discovery{bottom:139px}}
@media(min-width:992px) and (max-width:1270px){.mugr-discovery{right:3%;width:35vw}body.body-index-page .wrapper-find-course{width:61%}body.body-index-page .wrapper-recommendation-system span{font-size:13px!important}}
@media(max-width:991px){.mugr-discovery{position:relative;right:auto;bottom:auto;width:calc(100% - 28px);margin:20px auto 12px}.mugr-discovery-card{padding:12px 15px}.mugr-discovery-controls{margin-top:8px}body.body-index-page .wrapper-find-course{z-index:12}}
@media(prefers-reduced-motion:reduce){.mugr-discovery-bg{transition:none}}

/* ---- block ---- */
/* Aligned bottom action bar: two cells left, Bing-like information controls right. */
body.body-index-page .scrollable-home .mugr-discovery-finder{position:absolute!important;left:4%!important;bottom:6.3rem!important;width:min(63%,1120px)!important;z-index:13!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
body.body-index-page .mugr-finder-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:center!important;gap:0!important;min-height:84px;padding:11px 15px;background:rgba(7,22,49,.66);border:1px solid rgba(255,255,255,.38);border-radius:14px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body.body-index-page .mugr-finder-cell{min-width:0;padding:0 14px!important}body.body-index-page .mugr-finder-course{border-right:1px solid rgba(255,255,255,.5)}
body.body-index-page .mugr-finder-course .wrapper-find-course-inner{display:block!important}body.body-index-page .mugr-finder-course label{display:block!important;margin:0 0 5px!important;font-size:18px!important;line-height:1.15!important;color:#fff!important}
body.body-index-page .mugr-finder-course .wrapper-select-find-courses,body.body-index-page .mugr-finder-course select{width:100%!important;max-width:none!important}body.body-index-page .mugr-finder-course select{height:43px!important;min-height:43px!important;font-size:16px!important}
body.body-index-page .mugr-finder-suggest .wrapper-recommendation-system{margin:0!important;padding:0!important;text-align:center!important;line-height:1.25!important}body.body-index-page .mugr-finder-suggest .wrapper-recommendation-system a{display:flex!important;width:100%!important;max-width:none!important;min-height:48px!important;height:auto!important;margin:0!important;padding:8px 10px!important;gap:8px!important;border-radius:10px!important}body.body-index-page .mugr-finder-suggest .wrapper-recommendation-system span{font-size:clamp(13px,1vw,18px)!important;line-height:1.25!important}
body.body-index-page .mugr-discovery{position:absolute!important;left:auto!important;right:4%!important;bottom:6.3rem!important;width:min(26%,425px)!important;margin:0!important;z-index:13!important;display:flex!important;flex-direction:column;align-items:flex-end}.mugr-discovery-card[hidden]{display:none!important}.mugr-discovery-card{width:100%;margin-bottom:9px}.mugr-discovery-controls{display:flex;align-items:center;gap:3px!important;margin:0!important;background:rgba(8,19,40,.78);border:1px solid rgba(255,255,255,.55);border-radius:7px;overflow:hidden;backdrop-filter:blur(9px)}
.mugr-discovery-count{padding:0 12px;margin:0!important;font-size:12px;white-space:nowrap}.mugr-discovery-controls button{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:42px!important;height:42px!important;border:0!important;border-left:1px solid #ffffff64!important;border-radius:0!important;background:transparent!important;color:#fff;font-size:25px}.mugr-discovery-controls button:hover,.mugr-discovery-controls button:focus-visible{background:#293478!important;outline:2px solid #f6c746;outline-offset:-2px}.mugr-discovery-controls #mugrDiscoveryInfo{width:76px!important;font-size:13px}.mugr-discovery-controls svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media(min-width:992px) and (max-width:1250px){body.body-index-page .scrollable-home .mugr-discovery-finder{width:62%!important}body.body-index-page .mugr-discovery{width:27%!important}.mugr-discovery-count{padding:0 6px}}
@media(max-width:991px){body.body-index-page .scrollable-home .mugr-discovery-finder,body.body-index-page .mugr-discovery{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;width:calc(100% - 28px)!important;margin:18px auto 0!important}body.body-index-page .mugr-discovery{align-items:flex-end!important;margin-top:10px!important}body.body-index-page .mugr-finder-grid{grid-template-columns:1fr!important;gap:10px!important}body.body-index-page .mugr-finder-course{border-right:0;border-bottom:1px solid #ffffff66;padding-bottom:12px!important}body.body-index-page .mugr-discovery-card{max-width:400px}body.body-index-page .mugr-finder-suggest .wrapper-recommendation-system span{font-size:16px!important}}

/* ---- block ---- */
/* Align the finder with the admission heading and show program context by default. */
@media(min-width:992px){body.body-index-page .scrollable-home .mugr-discovery-finder{left:13.6%!important;width:43%!important}body.body-index-page .mugr-discovery{right:4.4%!important;width:18.5%!important;min-width:300px!important}.mugr-discovery-card{display:block;box-shadow:0 10px 26px rgba(0,0,0,.22)}}
@media(min-width:992px) and (max-width:1350px){body.body-index-page .scrollable-home .mugr-discovery-finder{left:8%!important;width:54%!important}body.body-index-page .mugr-discovery{right:3%!important;width:27%!important;min-width:0!important}}
@media(max-width:991px){body.body-index-page .scrollable-home .mugr-discovery-finder{left:auto!important;width:calc(100% - 28px)!important}body.body-index-page .mugr-discovery{right:auto!important;width:calc(100% - 28px)!important;min-width:0!important}}

/* ---- block ---- */
/* Mobile: information card and controls share the same left edge as the finder. */
@media(max-width:991px){body.body-index-page .mugr-discovery{align-items:stretch!important}body.body-index-page .mugr-discovery-card{width:100%!important;max-width:none!important}body.body-index-page .mugr-discovery-controls{align-self:flex-start!important;margin-top:10px!important;margin-right:0!important}}

/* ---- block ---- */
.mugr-discovery-bg{transition:opacity .45s ease!important}.mugr-discovery-controls button:disabled{opacity:.45;cursor:default}
/* Align both finder columns by giving their headings the same space. */
body.body-index-page .mugr-finder-grid{align-items:stretch!important}
body.body-index-page .mugr-finder-cell{display:flex;flex-direction:column;justify-content:center}
body.body-index-page .mugr-finder-course .wrapper-find-course-inner{width:100%}
body.body-index-page .mugr-finder-suggest .wrapper-recommendation-system{width:100%;display:flex;flex-direction:column;justify-content:center;gap:0}
body.body-index-page .mugr-finder-suggest .wrapper-recommendation-system > .mugr-recommend-title{display:block!important;width:100%!important;height:auto!important;min-height:0!important;padding:0!important;margin:0 0 5px!important;color:#fff!important;font-size:22px!important;font-weight:700!important;line-height:1.15!important;text-align:left!important;text-decoration:none!important;cursor:default}

body.body-index-page .mugr-finder-suggest .wrapper-recommendation-system #recommendBtn{width:100%!important;height:43px!important;min-height:43px!important}
body.body-index-page .mugr-finder-suggest #recommendBtn{justify-content:flex-start!important;text-align:left!important}
body.body-index-page .mugr-finder-suggest #recommendBtn > img{flex:0 0 auto!important}
body.body-index-page .mugr-finder-suggest #recommendBtn > span{flex:1 1 auto!important;text-align:left!important}
/* The legacy stylesheet forces a 52px text line into a 43px select; restore native vertical centering. */
body.body-index-page .mugr-finder-course #jumpMenu2{height:43px!important;min-height:43px!important;line-height:normal!important;padding-top:0!important;padding-bottom:0!important;box-sizing:border-box!important}
@media(max-width:991px){body.body-index-page .mugr-finder-cell{display:block}body.body-index-page .mugr-finder-suggest .wrapper-recommendation-system > .mugr-recommend-title{font-size:16px!important}}

/* ---- block ---- */
/* Mobile hero: readable text with a hint of the program artwork behind it. */
@media (max-width: 767px) {
  body.body-index-page .scrollable-home .mugr-discovery-bg::after {
    background: rgba(7, 19, 45, .18);
  }
  body.body-index-page .scrollable-home .scrollable-content {
    position: relative;
    z-index: 2;
  }
  body.body-index-page .scrollable-home .intro > .row > .col-lg-6,
  body.body-index-page .scrollable-home .wrapper-who-r-u {
    background: rgba(7, 22, 49, .66);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }
  body.body-index-page .scrollable-home .intro > .row > .col-lg-6 {
    padding: 18px 16px 16px;
    margin-bottom: 14px;
  }
  body.body-index-page .scrollable-home .wrapper-who-r-u {
    padding: 16px;
    width: calc(100% + 30px) !important;
    max-width: none !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    box-sizing: border-box;
  }
  body.body-index-page .scrollable-home .mugr-discovery-finder,
  body.body-index-page .scrollable-home .mugr-discovery {
    width: calc(100% - 14px) !important;
  }
  body.body-index-page .scrollable-home .mugr-finder-grid {
    background: rgba(7, 22, 49, .58) !important;
  }
  body.body-index-page .scrollable-home .mugr-discovery-card {
    background: rgba(7, 22, 49, .66) !important;
  }
}

/* ---- mugr-home-mobile-language-style ---- */
.mugr-home-mobile-language{display:none!important}
@media(max-width:991px){
body.body-index-page .navbar-main-custom .navbar-header{position:relative!important;min-height:52px}
body.body-index-page .navbar-main-custom .navbar-header>.navbar-brand-main{display:inline-block!important;max-width:calc(100% - 210px)!important}
body.body-index-page .navbar-main-custom .navbar-header>.navbar-brand-main img{max-width:100%!important;height:auto!important;max-height:40px;object-fit:contain}
body.body-index-page .navbar-main-custom .mugr-home-mobile-language{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;position:absolute;right:68px;top:50%;transform:translateY(-50%);padding:7px 10px;min-height:36px;box-sizing:border-box;border:1px solid rgba(255,255,255,.32);border-radius:20px;background:rgba(255,255,255,.12);color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:600;line-height:1.2;z-index:2}
body.body-index-page .mugr-home-mobile-language img{width:22px;height:15px;object-fit:cover;border-radius:2px}
body.body-index-page .mugr-home-mobile-language:focus-visible{outline:3px solid #ffdf64;outline-offset:3px}
body.body-index-page .mugr-home-mobile-language:hover{background:rgba(255,255,255,.22)}
}

/* ---- mugr-home-mobile-hero-gradient-v2 ---- */
@media(max-width:991px){
body.body-index-page .navbar-main-custom .mugr-home-mobile-language{right:55px!important;padding:4px 7px!important;min-height:28px!important;height:28px!important;gap:4px!important;font-size:12px!important;border-radius:15px!important}
body.body-index-page .mugr-home-mobile-language img{width:19px!important;height:13px!important}
}
@media(max-width:767px){
/* Only the admission introduction loses its card; audience cards stay intact. */
body.body-index-page .scrollable-home .intro>.row>.col-lg-6{position:relative!important;isolation:isolate;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:18px 16px 38px!important;margin-bottom:0!important;overflow:visible!important}
body.body-index-page .scrollable-home .intro>.row>.col-lg-6::before{content:"";position:absolute;z-index:-1;pointer-events:none;top:-80px;bottom:0;left:calc(50% - 50vw);width:100vw;background:linear-gradient(180deg,rgba(7,22,49,.78) 0%,rgba(7,22,49,.70) 45%,rgba(7,22,49,.48) 75%,rgba(7,22,49,.16) 92%,rgba(7,22,49,0) 100%);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,#000 72%,transparent 100%);border:0;border-radius:0}
}

/* ---- mugr-home-mobile-title-v4 ---- */
@media(max-width:991px){
body.body-index-page .navbar-main-custom .mugr-home-mobile-language{top:calc(50% - 5px)!important}
}
@media(max-width:767px){
body.body-index-page .scrollable-home .intro>.row>.col-lg-6>h1.title-intro-page{line-height:1.12!important;margin-top:0!important;margin-bottom:10px!important}
body.body-index-page .scrollable-home .intro>.row>.col-lg-6>h1 .mugr-admission-year-mobile{display:block!important;white-space:nowrap!important;line-height:1.12!important;margin:0!important;padding:0!important}
body.body-index-page .scrollable-home .intro>.row>.col-lg-6>h1 .sub-title-intro-page{display:block!important;line-height:1.12!important;margin:4px 0 0!important;padding:0!important}
body.body-index-page .scrollable-home .intro>.row>.col-lg-6>h1 .mugr-admission-year-mobile+br{display:none!important}
}

/* ---- mugr-mobile-quick-svg-style ---- */
.mugr-mobile-quick-grid .mugr-quick-icon{display:flex;align-items:center;justify-content:center;height:34px;line-height:1;color:#2874b9}
.mugr-mobile-quick-grid .mugr-quick-svg{display:block;width:30px;height:30px;flex-shrink:0}

/* ---- mugr-home-language-capsule-v6 ---- */
/* Desktop language selector: one capsule, with the current language highlighted. */
@media(min-width:992px){
body.body-index-page .navbar-main-custom li.homepage-language-pills{display:inline-flex!important;align-items:center!important;gap:3px!important;padding:4px!important;margin-left:18px!important;background:#f3f6fc!important;border:1px solid #d7e1f3!important;border-radius:999px!important;box-shadow:0 2px 5px rgba(17,36,81,.06)!important;vertical-align:middle;box-sizing:border-box}
body.body-index-page .navbar-main-custom li.homepage-language-pills>a.homepage-language-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:74px!important;height:36px!important;padding:0 13px!important;margin:0!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#42506a!important;font-size:15px!important;font-weight:500!important;line-height:1!important;text-decoration:none!important;box-shadow:none!important;transition:background-color .18s,color .18s}
body.body-index-page .navbar-main-custom li.homepage-language-pills>a.homepage-language-pill.is-active{background:#293f7e!important;color:#fff!important;font-weight:700!important;box-shadow:0 2px 5px rgba(29,49,102,.16)!important}
body.body-index-page .navbar-main-custom li.homepage-language-pills>a.homepage-language-pill:not(.is-active):hover{background:#e5ecfa!important;color:#293f7e!important}
body.body-index-page .navbar-main-custom li.homepage-language-pills>a.homepage-language-pill:focus-visible{outline:3px solid #e7b82f!important;outline-offset:2px}
body.body-index-page .navbar-main-custom li.homepage-language-pills>a.homepage-language-pill img{display:block!important;width:23px!important;height:16px!important;object-fit:cover!important;border-radius:0!important;margin:0!important}
body.body-index-page .navbar-main-custom li.homepage-language-pills>a.homepage-language-pill:before,body.body-index-page .navbar-main-custom li.homepage-language-pills>a.homepage-language-pill:after{display:none!important;content:none!important}
}

/* ---- mugr-home-mobile-drawer-language-v8 ---- */
body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages{display:inline-flex!important;align-items:center!important;gap:3px!important;padding:4px!important;background:#f3f6fc!important;border:1px solid #d7e1f3!important;border-radius:999px!important;box-shadow:0 2px 5px rgba(17,36,81,.06)!important;flex-shrink:0!important}
body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:62px!important;height:32px!important;padding:0 10px!important;margin:0!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#42506a!important;font-size:13px!important;font-weight:500!important;line-height:1!important;text-decoration:none!important;box-shadow:none!important}
body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a.is-active{background:#293f7e!important;color:#fff!important;font-weight:700!important;box-shadow:0 2px 5px rgba(29,49,102,.16)!important}
body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a:not(.is-active):hover{background:#e5ecfa!important;color:#293f7e!important}
body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a:focus-visible{outline:3px solid #e7b82f!important;outline-offset:2px}
body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a img{width:22px!important;height:15px!important;object-fit:cover!important;border-radius:0!important;margin:0!important}
@media(max-width:360px){body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a{min-width:54px!important;padding:0 7px!important;gap:4px!important}}
body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a:not(.is-active){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:#42506a!important}
body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a:before,body.body-index-page #navbar-collapse-custom.mugr-home-mobile-drawer .mugr-mobile-brand-row .mugr-mobile-languages>a:after{content:none!important;display:none!important}

/* ---- mugr-admissions-align-v4 ---- */
/* Desktop: align admissions logo, title and Apply button with the slide switch. */
@media(min-width:992px){body.body-index-page .scrollable-home .mugr-admissions-hero{position:relative;left:var(--mugr-admissions-offset,0px)!important}body.body-index-page .scrollable-home .mugr-discovery-finder{left:calc(4% + var(--mugr-finder-offset,0px))!important}}

/* ---- mugr-english-notebook-fit ---- */
/* English copy needs less vertical space above the fixed course finder. */
@media (min-width:992px) and (max-height:900px) {
  /* Keep Thai and English logo positions aligned when switching language. */
  body.body-index-page .scrollable-home .mugr-admissions-hero {
    top:-40px!important;
  }
  body.body-index-page .scrollable-home .mugr-admissions-english > h1.title-intro-page {
    font-size:var(--mugr-english-heading-size,36px)!important;
    line-height:1.12!important;
    margin-top:0!important;
    margin-bottom:12px!important;
  }
  body.body-index-page .scrollable-home .mugr-admissions-english > h1 .sub-title-intro-page {
    font-size:var(--mugr-english-heading-size,36px)!important;
    line-height:1.12!important;
  }
  body.body-index-page .scrollable-home .mugr-admissions-english > h1 + br {display:none!important;}
  body.body-index-page .scrollable-home .mugr-admissions-english > p.line-h-30px {
    line-height:24px!important;
    margin-bottom:0!important;
  }
  body.body-index-page .scrollable-home .mugr-admissions-english > .navbar-brand-main .brand-img-white {
    margin-bottom:12px!important;
  }
}

/* ---- mugr-img-sized ---- */
img.mugr-sized{height:auto}

/* ---- mugr-notebook-short-kicker ---- */
@media(min-width:992px) and (max-width:1599px){
  #mugrDiscoveryKicker{white-space:nowrap;overflow-wrap:normal;font-size:12px;line-height:1.35;}
}

/* ---- cookie bar, homepage only ---- */
/* The shared cookie CSS (assets61/css/mugr-cookie.css) uses 11px top/bottom padding on notebooks;
   the homepage keeps the slimmer 6px bar. The extra body.body-index-page makes this win even
   though the shared file loads later. */
@media (min-width:768px) and (max-width:1599px){
  body.body-index-page #mugrCookieBar .mugr-cookie-mu__inner{padding:6px 14px!important;gap:12px!important}
}

/* ---- SVG icons (replace Font Awesome; markup keeps the old <i> wrapper so existing i-rules still size/colour it) ---- */
.mugr-i{display:inline-block;font-style:normal;line-height:1}
.mugr-ico{display:inline-block;width:1em;height:1em;vertical-align:-.125em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}

/* ---- small styles that used to be inline style="" attributes ---- */
body.body-index-page .navbar-header>.navbar-brand-main{margin-left:70px}  /* mobile (<=991px) resets this to 0 in mugr-home-mobile-header.css */
body.body-index-page .navbar-main-custom a.mugr-nav-sitemap{color:#FFE400}
body.body-index-page #applyBtn{color:gold}                                  /* desktop overrides with #ffe46b!important */
body.body-index-page .copy-bottom a.mugr-privacy-link{color:#fff}

/* ---- Mahidol CI typeface for the remaining homepage widgets (contact tooltips, accessibility panel) ---- */
body.body-index-page [tooltip]:before,
body.body-index-page .sdgs-accessibility-widget{font-family:'DB Helvethaica X',sans-serif!important}
/* DB Helvethaica X runs small next to Sarabun: lift the small UI text that switched over. */
@media (min-width:768px){
  body.body-index-page #mugrCookieBar .mugr-cookie-mu__text{font-size:15px!important}
  body.body-index-page #mugrCookieBar .mugr-cookie-linkbtn,
  body.body-index-page #mugrCookieBar .mugr-cookie-accept{font-size:15px!important}
}
body.body-index-page .copy-bottom{font-size:15px!important}
