/* MCM Academy custom header */
:root { --mcmch-navy:#102d46; --mcmch-gold:#c69a43; --mcmch-ink:#172b3d; --mcmch-muted:#667582; }
.mcmch-header { position:relative; z-index:9999; width:100%; background:#fff; color:var(--mcmch-ink); box-shadow:0 2px 14px rgba(16,45,70,.06); font-family:inherit; }
.mcmch-header * { box-sizing:border-box; }
.mcmch-inner { max-width:1280px; min-height:88px; margin:0 auto; padding:14px 28px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.mcmch-brand { display:flex; align-items:center; text-decoration:none; flex:0 0 auto; }
.mcmch-brand img,.mcmch-mobile-logo img { display:block; max-width:190px; max-height:58px; width:auto; height:auto; }
.mcmch-brand-text { color:var(--mcmch-navy); font-size:22px; letter-spacing:.04em; font-weight:400; white-space:nowrap; }
.mcmch-brand-text b { font-weight:750; }
.mcmch-desktop-nav { display:flex; align-items:center; gap:27px; margin-left:auto; }
.mcmch-nav-item { position:relative; }
.mcmch-nav-trigger,.mcmch-nav-link { border:0; background:transparent; padding:14px 0; color:var(--mcmch-ink); font-family:inherit; font-size:14px; font-weight:500; line-height:1.3; text-decoration:none; cursor:pointer; white-space:nowrap; }
.mcmch-nav-trigger:hover,.mcmch-nav-trigger:focus,.mcmch-nav-link:hover,.mcmch-nav-link:focus { color:var(--mcmch-ink); }
.mcmch-chevron { display:inline-block; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); margin-left:7px; }
.mcmch-panel { display:none; position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%); width:640px; max-width:calc(100vw - 32px); padding:26px 34px 22px; background:#fff; border:1px solid rgba(16,45,70,.08); border-radius:13px; box-shadow:0 16px 42px rgba(16,45,70,.14); }
.mcmch-nav-item.is-open > .mcmch-panel,.mcmch-nav-item:hover > .mcmch-panel,.mcmch-nav-item:focus-within > .mcmch-panel { display:block; }
.mcmch-panel-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.mcmch-course-simple-grid { gap:30px; }
.mcmch-courses-panel .mcmch-panel-column h3 { font-family:Georgia,serif; font-size:28px; font-weight:700; margin-bottom:10px; }
.mcmch-courses-panel .mcmch-course-link { font-size:20px; padding:7px 0; color:#142b40; }
.mcmch-course-simple-grid .mcmch-panel-column { padding:0 4px; }
.mcmch-course-simple-grid .mcmch-panel-column + .mcmch-panel-column { border-left:1px solid #e7e2d9; padding-left:30px; }
.mcmch-course-tabs-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 24px; }
.mcmch-course-group { min-width:0; }
.mcmch-course-group-wide { grid-column:1 / -1; }
.mcmch-course-group-wide .mcmch-panel-column { max-width:100%; }
.mcmch-panel-column h3 { margin:0 0 8px; color:var(--mcmch-navy); font-size:17px; font-weight:650; }
.mcmch-gold-rule { display:block; width:32px; height:2px; margin-bottom:10px; background:var(--mcmch-gold); }
.mcmch-course-link { display:block; padding:5px 0; color:#34495a; font-size:14px; text-decoration:none; transition:color .15s ease, transform .15s ease; }
.mcmch-course-link:hover { color:var(--mcmch-gold); transform:translateX(3px); }
.mcmch-view-all { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding-top:11px; border-top:1px solid #e9edf0; color:var(--mcmch-gold); font-size:14px; font-weight:650; text-decoration:none; }
.mcmch-universities-panel { width:660px; left:50%; transform:translateX(-50%); padding:20px 22px 14px; }
.mcmch-universities-panel .mcmch-panel-grid { gap:22px; }
.mcmch-universities-panel .mcmch-panel-column + .mcmch-panel-column { border-left:1px solid #e7e2d9; padding-left:22px; }
.mcmch-universities-panel .mcmch-course-link { font-size:13px; padding:4px 0; }
.mcmch-counselling { display:inline-flex; align-items:center; justify-content:center; padding:13px 19px; background:var(--mcmch-navy); border:1px solid var(--mcmch-navy); border-radius:5px; color:#fff; font-size:13px; font-weight:650; text-decoration:none; white-space:nowrap; }
.mcmch-counselling:hover { background:#1a4262; color:#fff; }
.mcmch-mobile-toggle,.mcmch-mobile-overlay,.mcmch-mobile-drawer { display:none; }

@media (max-width:1100px) {
 .mcmch-panel { width:580px; }
 .mcmch-universities-panel { width:600px; }
 .mcmch-inner { gap:18px; padding-left:20px; padding-right:20px; }
 .mcmch-desktop-nav { gap:16px; }
 .mcmch-nav-trigger,.mcmch-nav-link { font-size:13px; }
 .mcmch-counselling { padding:12px 13px; font-size:12px; }
}
@media (max-width:900px) {
 .mcmch-inner { min-height:76px; padding:12px 20px; }
 .mcmch-desktop-nav { display:none; }
 .mcmch-counselling { margin-left:auto; }
 .mcmch-mobile-toggle { display:flex; width:42px; height:42px; padding:10px 8px; flex-direction:column; justify-content:center; gap:5px; border:0; background:transparent; cursor:pointer; }
 .mcmch-mobile-toggle span { display:block; width:25px; height:2px; background:var(--mcmch-navy); }
 .mcmch-mobile-overlay { display:block; position:fixed; inset:0; z-index:100000; background:rgba(9,25,39,.48); opacity:0; visibility:hidden; transition:.25s ease; }
 .mcmch-mobile-drawer { display:flex; position:fixed; top:0; right:0; z-index:100001; width:min(430px,92vw); height:100dvh; padding:22px 24px 26px; flex-direction:column; background:#fff; box-shadow:-12px 0 40px rgba(0,0,0,.12); overflow-y:auto; transform:translateX(105%); transition:transform .28s ease; }
 .mcmch-header.mobile-open .mcmch-mobile-overlay { opacity:1; visibility:visible; }
 .mcmch-header.mobile-open .mcmch-mobile-drawer { transform:translateX(0); }
 .mcmch-mobile-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:27px; }
 .mcmch-mobile-logo { text-decoration:none; }
 .mcmch-mobile-close { width:38px; height:38px; border:0; background:transparent; color:var(--mcmch-navy); font-size:32px; line-height:1; cursor:pointer; }
 .mcmch-mobile-search { display:flex; align-items:center; margin-bottom:23px; border:1px solid #dce3e8; border-radius:6px; overflow:hidden; }
 .mcmch-mobile-search input { width:100%; min-width:0; height:46px; padding:0 13px; border:0; outline:0; box-shadow:none; font-size:14px; }
 .mcmch-mobile-search button { width:48px; height:46px; border:0; background:#f5f7f8; color:var(--mcmch-navy); font-size:24px; cursor:pointer; }
 .mcmch-mobile-menu { flex:1; }
 .mcmch-mobile-accordion { border-bottom:1px solid #e8edf0; }
 .mcmch-accordion-trigger,.mcmch-mobile-direct { display:flex; width:100%; align-items:center; justify-content:space-between; padding:17px 0; border:0; background:transparent; color:var(--mcmch-navy); font-size:16px; font-weight:600; text-align:left; text-decoration:none; cursor:pointer; }
 .mcmch-accordion-trigger span { color:var(--mcmch-gold); font-size:22px; font-weight:400; }
 .mcmch-accordion-content { display:none; padding:0 0 16px 12px; }
 .mcmch-mobile-accordion.is-open .mcmch-accordion-content { display:block; }
 .mcmch-accordion-content strong { display:block; margin:10px 0 5px; color:var(--mcmch-navy); font-size:13px; }
 .mcmch-accordion-content a { display:block; padding:7px 0; color:#52616d; font-size:14px; text-decoration:none; }
 .mcmch-accordion-content .mcmch-mobile-all { color:var(--mcmch-gold); font-weight:650; }
 .mcmch-whatsapp { display:flex; align-items:center; justify-content:center; min-height:49px; margin-top:24px; padding:12px 16px; border-radius:5px; background:#1f8d58; color:#fff; font-size:14px; font-weight:650; text-decoration:none; }
}
@media (max-width:480px) {
 .mcmch-inner { min-height:70px; padding:10px 14px; gap:8px; }
 .mcmch-brand img { max-width:145px; max-height:48px; }
 .mcmch-brand-text { font-size:18px; }
 .mcmch-counselling { padding:10px 11px; font-size:11px; }
 .mcmch-mobile-toggle { width:36px; padding-left:5px; padding-right:5px; }
}

body.mcmch-no-scroll { overflow:hidden; }


/* v1.2.1: neutralise Astra/Elementor theme button hover styling on header navigation */
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-trigger,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-link,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-trigger:hover,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-trigger:focus,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-trigger:focus-visible,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-trigger:active,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-link:hover,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-link:focus,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item > .mcmch-nav-link:active,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-item.is-open > .mcmch-nav-trigger {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--mcmch-ink) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  outline-offset: 3px;
}
.mcmch-header .mcmch-desktop-nav .mcmch-nav-trigger:hover .mcmch-chevron,
.mcmch-header .mcmch-desktop-nav .mcmch-nav-trigger:focus .mcmch-chevron {
  border-color: currentColor !important;
}
/* Course labels: one pixel smaller than the previous release */
.mcmch-header .mcmch-courses-panel .mcmch-course-link {
  font-size: 13px !important;
}


/* v1.2.2: mobile viewport containment and WhatsApp CTA */
@media (max-width:900px) {
  html, body { max-width:100%; overflow-x:hidden !important; }
  .mcmch-header { width:100%; max-width:100%; overflow:clip; }
  .mcmch-inner { width:100%; max-width:100%; min-width:0; gap:10px; padding-left:clamp(12px, 4vw, 20px); padding-right:clamp(12px, 4vw, 20px); }
  .mcmch-brand { min-width:0; flex:0 1 auto; }
  .mcmch-brand img { width:auto; max-width:min(42vw, 160px); max-height:48px; object-fit:contain; }
  .mcmch-counselling { display:none !important; }
  .mcmch-mobile-toggle { flex:0 0 42px; margin-left:auto; }
  .mcmch-mobile-drawer { max-width:100vw; }
}
@media (max-width:480px) {
  .mcmch-inner { min-height:68px; gap:6px; padding-left:12px; padding-right:12px; }
  .mcmch-brand img { max-width: min(48vw, 145px); max-height:44px; }
  .mcmch-mobile-toggle { flex-basis:38px; width:38px; }
}
.mcmch-whatsapp { gap:10px; }
.mcmch-whatsapp-icon { display:block; width:21px; height:21px; flex:0 0 21px; }
.mcmch-whatsapp:hover,.mcmch-whatsapp:focus { color:#fff; background:#187b4c; }


/* v1.2.3: keep counselling CTA visible in mobile header and preserve white label */
.mcmch-header .mcmch-counselling,
.mcmch-header .mcmch-counselling:visited,
.mcmch-header .mcmch-counselling:hover,
.mcmch-header .mcmch-counselling:focus,
.mcmch-header .mcmch-counselling:focus-visible,
.mcmch-header .mcmch-counselling:active {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.mcmch-header .mcmch-counselling:hover,
.mcmch-header .mcmch-counselling:focus {
  background: #1a4262 !important;
  border-color: #1a4262 !important;
}
@media (max-width:900px) {
  .mcmch-header .mcmch-counselling {
    display: inline-flex !important;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    padding: 9px 11px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .mcmch-header .mcmch-mobile-toggle {
    flex: 0 0 40px;
    margin-left: 2px;
  }
}
@media (max-width:480px) {
  .mcmch-header .mcmch-brand img {
    max-width: 32vw;
  }
  .mcmch-header .mcmch-counselling {
    padding: 8px 9px;
    font-size: 10px;
  }
  .mcmch-header .mcmch-mobile-toggle {
    flex-basis: 36px;
    width: 36px;
  }
}
