/*
Theme Name: SMA Plus Muthahhari V5 for LandingPress
Description: Child theme customization for LandingPress 3.5.1.1. Gutenberg/Block Editor friendly, with a dedicated Muthahhari V5 homepage template.
Author: SMA Plus Muthahhari
Version: 5.5.5
Template: landingpress-wp
Text Domain: mth-v5
*/

:root{
  --mth-blue:#25208F;
  --mth-navy:#111638;
  --mth-cyan:#19B5D8;
  --mth-gold:#D9A441;
  --mth-light:#F5F7FB;
  --mth-text:#171A2B;
  --mth-muted:#697386;
  --mth-border:#E4E8F1;
  --mth-container:1800px;
  --mth-radius:20px;
  --mth-shadow:0 16px 40px rgba(17,22,56,.10);
}
.mth-v5{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--mth-text);background:#fff;overflow:hidden}
.mth-v5 *{box-sizing:border-box}
.mth-v5 img{max-width:100%;height:auto}
.mth-v5 a{text-underline-offset:3px}
.mth-wrap{width:min(var(--mth-container),calc(100% - 40px));margin-inline:auto}
.mth-sec{padding:clamp(58px,8vw,100px) 0}
.mth-kicker{margin:0 0 12px;color:var(--mth-blue);font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.mth-title{margin:0;max-width:800px;font-size:clamp(2rem,4.2vw,3.5rem);line-height:1.05;letter-spacing:-.04em}
.mth-lead{font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.75;color:var(--mth-muted)}
.mth-v5 .mth-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:999px;font-weight:800;text-decoration:none}
.mth-btn--gold{background:var(--mth-gold);color:var(--mth-navy)}
.mth-btn--blue{background:var(--mth-blue);color:#fff}
.mth-btn--ghost{border:1px solid rgba(255,255,255,.65);color:#fff;background:transparent}
.mth-v5-header{position:relative;z-index:10;background:rgba(255,255,255,.97);border-bottom:1px solid var(--mth-border)}
.mth-v5-header .mth-wrap{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.mth-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--mth-navy)}
.mth-brand img{width:52px;height:52px;object-fit:contain}
.mth-brand strong{font-size:15px;line-height:1.05;display:block}
.mth-brand small{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:var(--mth-muted)}
.mth-nav{display:flex;align-items:center;gap:18px}
.mth-nav a{color:var(--mth-navy);font-size:13px;font-weight:700;text-decoration:none}
.mth-nav a:hover{color:var(--mth-blue)}
.mth-nav .mth-nav-cta{background:var(--mth-blue);color:#fff;padding:11px 16px;border-radius:999px}
.mth-mobile-nav{display:none}
.mth-hero{position:relative;min-height:640px;border-radius:28px;overflow:hidden;background:#dfe7f2}
.mth-hero__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mth-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,22,56,.84),rgba(17,22,56,.28) 62%,rgba(17,22,56,.05))}
.mth-hero__inner{position:relative;z-index:2;min-height:640px;display:flex;align-items:center}
.mth-hero__copy{max-width:720px;padding:55px 0;color:#fff}
.mth-hero__copy .mth-kicker{color:var(--mth-cyan)}
.mth-hero__copy h1{margin:0 0 14px;font-size:clamp(3rem,6vw,5.8rem);line-height:.91;letter-spacing:-.055em}
.mth-hero__copy h2{margin:0 0 18px;font-size:clamp(1.35rem,2.5vw,2.25rem);line-height:1.08;color:#fff}
.mth-hero__copy p{color:rgba(255,255,255,.88)}
.mth-hero__buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.mth-pixels{position:absolute;right:38px;top:36px;z-index:3;display:grid;grid-template-columns:repeat(4,11px);gap:7px}
.mth-pixels span{width:11px;height:11px;background:var(--mth-cyan)}
.mth-pixels span:nth-child(2n){background:var(--mth-gold)}
.mth-trust{border-top:1px solid var(--mth-border);border-bottom:1px solid var(--mth-border)}
.mth-trust .mth-wrap{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:18px 0}
.mth-trust a{font-size:12px;font-weight:800;letter-spacing:.05em;color:var(--mth-muted);text-decoration:none;transition:color .2s ease,transform .2s ease}
.mth-trust a:hover,.mth-trust a:focus{color:var(--mth-blue);transform:translateY(-1px)}
.mth-trust a:first-child{color:var(--mth-blue)}
.mth-two{display:grid;grid-template-columns:1fr 1fr;gap:clamp(35px,6vw,75px);align-items:center}
.mth-photo{border-radius:var(--mth-radius);overflow:hidden;box-shadow:var(--mth-shadow)}
.mth-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.mth-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.mth-fact{padding:18px;border:1px solid var(--mth-border);border-radius:14px;background:#fff}
.mth-fact strong{display:block;color:var(--mth-blue);font-size:1.4rem}
.mth-fact span{color:var(--mth-muted);font-size:12px}
.mth-bg-light{background:var(--mth-light)}
.mth-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px}
.mth-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:32px}
.mth-card{height:100%;padding:26px;border:1px solid var(--mth-border);border-radius:var(--mth-radius);background:#fff;box-shadow:var(--mth-shadow)}
.mth-card__num{color:var(--mth-cyan);font-weight:900;font-size:13px}
.mth-card h3{margin:10px 0 8px;font-size:1.35rem}
.mth-card p{margin:0;color:var(--mth-muted);line-height:1.65}
.mth-program{height:100%;padding:25px;border:1px solid var(--mth-border);border-radius:16px;background:#fff;transition:transform .2s,box-shadow .2s}
.mth-program:hover{transform:translateY(-4px);box-shadow:var(--mth-shadow)}
.mth-program__tag{font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--mth-blue)}
.mth-program h3{margin:10px 0 7px}
.mth-program p{margin:0;color:var(--mth-muted);font-size:.92rem;line-height:1.6}
.mth-digital{position:relative;background:var(--mth-navy);color:#fff;overflow:hidden}
.mth-digital .mth-title{color:#fff}
.mth-digital .mth-lead{color:rgba(255,255,255,.8)}
.mth-digital__panel{padding:30px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.07)}
.mth-digital__panel h3{margin:0 0 10px;color:#fff}
.mth-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-top:32px}
.mth-gallery figure{margin:0;border-radius:14px;overflow:hidden;background:#ddd}
.mth-gallery figure:first-child{grid-row:span 2}
.mth-gallery img{width:100%;height:100%;min-height:180px;object-fit:cover;display:block}
.mth-achievement{padding:25px;border-radius:16px;background:#fff;border:1px solid var(--mth-border)}
.mth-achievement strong{font-size:1.9rem;color:var(--mth-blue)}
.mth-achievement h3{margin:7px 0}
.mth-achievement p{margin:0;color:var(--mth-muted)}
.mth-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px}
.mth-news{overflow:hidden;border:1px solid var(--mth-border);border-radius:16px;background:#fff;box-shadow:var(--mth-shadow)}
.mth-news img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.mth-news-body{padding:20px}
.mth-news-date{font-size:11px;color:var(--mth-muted)}
.mth-news h3{font-size:1.08rem;line-height:1.35;margin:8px 0}
.mth-news h3 a{text-decoration:none;color:var(--mth-navy)}
.mth-logos{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:25px}
.mth-logos img{max-height:46px;width:auto;object-fit:contain}
.mth-ppdb{margin:0 auto;max-width:1800px;border-radius:24px;background:linear-gradient(120deg,var(--mth-blue),#173b9d);padding:65px 30px;text-align:center;color:#fff}
.mth-ppdb h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.02;margin:0 0 15px;color:#fff}
.mth-ppdb p{max-width:700px;margin:0 auto 24px;color:rgba(255,255,255,.82)}
.mth-footer{background:var(--mth-navy);color:rgba(255,255,255,.78);padding:65px 0 25px}
.mth-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px}
.mth-footer h3{color:#fff;font-size:1rem;margin:0 0 13px}
.mth-footer p,.mth-footer a{font-size:.9rem;line-height:1.7}
.mth-footer a{color:#fff;text-decoration:none}
.mth-footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:38px;padding-top:20px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:12px}
.mth-v5 .site-main,.mth-v5 .content-area{margin:0!important;padding:0!important}
@media(max-width:1000px){
 .mth-nav{display:none}
 .mth-mobile-nav{display:block;font-size:22px;color:var(--mth-navy)}
 .mth-grid-4{grid-template-columns:repeat(2,1fr)}
 .mth-footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:781px){
 .mth-wrap{width:min(100% - 28px,var(--mth-container))}
 .mth-hero{min-height:620px;border-radius:18px}
 .mth-hero__inner{min-height:620px;align-items:flex-end}
 .mth-hero:after{background:linear-gradient(180deg,rgba(17,22,56,.15),rgba(17,22,56,.92))}
 .mth-hero__copy{padding:28px 0 34px}
 .mth-hero__copy h1{font-size:clamp(2.7rem,14vw,4rem)}
 .mth-pixels{right:20px;top:20px}
 .mth-two{grid-template-columns:1fr}
 .mth-grid-3,.mth-news-grid{grid-template-columns:1fr}
 .mth-grid-4{grid-template-columns:1fr}
 .mth-gallery{grid-template-columns:1fr 1fr}
 .mth-gallery figure:first-child{grid-column:span 2;grid-row:auto}
 .mth-gallery img{min-height:150px}
 .mth-footer-grid{grid-template-columns:1fr}
 .mth-trust a{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.mth-program{transition:none}}

/* V5.1 — LandingPress full-bleed correction */
.mth-v5{
  width:100vw;
  max-width:none;
  position:relative;
  left:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}
.mth-v5 .mth-hero__copy h1,
.mth-v5 .mth-hero__copy h2,
.mth-v5 .mth-hero__copy .mth-lead{
  color:#fff !important;
}
.mth-v5 .mth-hero__copy h1{
  text-shadow:0 2px 12px rgba(0,0,0,.35);
}
.mth-v5 .mth-hero__copy h2{
  text-shadow:0 2px 8px rgba(0,0,0,.3);
}
.mth-v5 .mth-hero__copy p{color:rgba(255,255,255,.9)}
.mth-v5 .mth-hero__buttons a{white-space:nowrap}
@media(max-width:781px){
  .mth-v5 .mth-wrap{width:min(calc(100% - 28px),1800px)}
  .mth-v5 .mth-sec{padding:52px 0}
  .mth-v5 .mth-hero{width:100%;}
}

/* V5.2 — functional one-page navigation */
.mth-v5 section[id]{scroll-margin-top:96px}
.mth-mobile-nav{border:0;background:transparent;cursor:pointer;padding:6px}
.mth-mobile-menu{display:none}
@media(max-width:1000px){
  .mth-mobile-menu[hidden]{display:none}
  .mth-mobile-menu:not([hidden]){display:grid;position:absolute;left:14px;right:14px;top:76px;background:#fff;border:1px solid var(--mth-border);border-radius:16px;box-shadow:0 14px 40px rgba(0,0,0,.12);padding:10px;z-index:30}
  .mth-mobile-menu a{padding:13px 14px;color:var(--mth-navy);text-decoration:none;font-weight:700;border-radius:10px}
  .mth-mobile-menu a:hover{background:var(--mth-light);color:var(--mth-blue)}
}
@media(min-width:1001px){.mth-mobile-menu{display:none!important}}


/* V5.3 — Internal pages */
.mth-v53 .mth-nav a.is-active{color:var(--mth-blue)}
.mth-page-hero{padding:105px 0 78px;background:linear-gradient(135deg,#f5f8ff 0%,#fff 65%);border-bottom:1px solid var(--mth-border)}
.mth-page-hero .mth-title{max-width:900px}
.mth-page-hero .mth-lead{max-width:760px;margin-top:18px}
.mth-page-hero--blue{background:linear-gradient(135deg,#162f91,#2f55c8);color:#fff}
.mth-page-hero--blue .mth-kicker{color:#8fe8ff}
.mth-page-hero--blue .mth-title{color:#fff}
.mth-page-hero--blue .mth-lead{color:rgba(255,255,255,.82)}
.mth-internal .mth-program img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px;margin:15px 0}
.mth-internal .mth-digital__panel img{max-width:210px;max-height:65px;width:auto;height:auto;display:block;margin:0 0 18px;object-fit:contain}
.mth-gallery--full{grid-template-columns:repeat(3,1fr)}
.mth-gallery--full figure:first-child{grid-row:auto}
.mth-gallery--full img{aspect-ratio:4/3;min-height:0}
.mth-internal .mth-achievement{height:100%}
@media(max-width:1000px){
 .mth-page-hero{padding:82px 0 58px}
}
@media(max-width:781px){
 .mth-gallery--full{grid-template-columns:1fr 1fr}
 .mth-gallery--full figure:first-child{grid-column:auto}
}


/* V5.3 Social Feed */
.mth-section-head{display:flex;align-items:end;justify-content:space-between;gap:25px}
.mth-section-head .mth-title{max-width:760px}
.mth-news-top{padding-top:62px;padding-bottom:62px}
.mth-news-top .mth-news-grid{margin-top:28px}
.mth-news-placeholder{aspect-ratio:16/9;display:grid;place-items:center;text-align:center;background:linear-gradient(135deg,var(--mth-navy),var(--mth-blue));color:#fff;font-weight:900;letter-spacing:.08em;font-size:14px}
.mth-news-body p{margin:8px 0 12px;color:var(--mth-muted);font-size:.9rem;line-height:1.55}
.mth-news-link{font-size:12px;font-weight:800;color:var(--mth-blue);text-decoration:none}
.mth-news-empty{grid-column:1/-1;padding:30px;border:1px dashed var(--mth-border);border-radius:16px;background:#fff;display:flex;flex-direction:column;gap:5px;color:var(--mth-muted)}
.mth-news-empty strong{color:var(--mth-navy);font-size:1.1rem}
.mth-social-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:32px;align-items:start}
.mth-social-card{background:#fff;border:1px solid var(--mth-border);border-radius:20px;padding:20px;box-shadow:var(--mth-shadow);overflow:hidden}
.mth-social-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:15px}
.mth-social-card__head h3{margin:7px 0 0;font-size:1.2rem;color:var(--mth-navy)}
.mth-social-card__head>a{font-size:12px;font-weight:800;color:var(--mth-blue);text-decoration:none;white-space:nowrap}
.mth-social-badge{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.mth-social-badge--ig{background:#f3e9f7;color:#8a2d91}
.mth-social-badge--tt{background:#e8edf2;color:#111638}
.mth-instagram-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;align-items:start}
.mth-instagram-item{min-width:0;overflow:hidden;border-radius:12px;background:#fff}
.mth-instagram-item .instagram-media{min-width:0!important;width:100%!important;margin:0!important}
.mth-tiktok-embed-wrap{min-height:300px;display:flex;align-items:flex-start;justify-content:center;overflow:hidden}
.mth-tiktok-embed-wrap .tiktok-embed{margin:0 auto!important;min-width:288px!important;max-width:720px!important;width:100%!important}
.mth-social-empty{min-height:260px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;border:1px dashed var(--mth-border);border-radius:14px;background:#fafbfe;color:var(--mth-muted)}
.mth-social-empty strong{color:var(--mth-navy);font-size:1.05rem}
.mth-social-empty p{max-width:480px;line-height:1.65;font-size:.9rem}
@media(max-width:1000px){.mth-social-grid{grid-template-columns:1fr}.mth-instagram-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:781px){.mth-section-head{align-items:flex-start;flex-direction:column}.mth-section-head .mth-btn{width:100%}.mth-instagram-grid{grid-template-columns:1fr}.mth-instagram-item .instagram-media{max-width:540px!important}.mth-social-card{padding:14px}.mth-news-top{padding-top:48px;padding-bottom:48px}}

.mth-instagram-profile{min-height:420px;display:flex;justify-content:center;align-items:flex-start;overflow:hidden}.mth-instagram-profile .instagram-media{margin:0 auto!important}


/* V5.3.3 — Social Hub visual refinement */
.mth-social-feed{background:linear-gradient(180deg,#f6f8fc 0%,#eef2f8 100%)}
.mth-social-intro{display:flex;justify-content:space-between;align-items:end;gap:35px;margin-bottom:30px}
.mth-social-intro .mth-title{max-width:820px;font-size:clamp(2.15rem,4vw,3.65rem)}
.mth-social-intro__lead{max-width:720px;margin:16px 0 0;color:var(--mth-muted);line-height:1.7;font-size:1rem}
.mth-social-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.mth-social-follow{display:inline-flex;align-items:center;justify-content:center;padding:12px 17px;border-radius:999px;text-decoration:none;font-size:12px;font-weight:850;white-space:nowrap;border:1px solid var(--mth-border);background:#fff;color:var(--mth-navy);box-shadow:0 6px 18px rgba(17,22,56,.06)}
.mth-social-follow--ig:hover{border-color:#b86bc0;color:#7d287f}
.mth-social-follow--tt:hover{border-color:#111638;color:#111638}
.mth-social-grid--v2{gap:24px;margin-top:0}
.mth-social-card--v2{padding:24px;border-radius:24px;min-width:0;box-shadow:0 18px 42px rgba(17,22,56,.08)}
.mth-social-card--v2 .mth-social-card__head{min-height:64px;margin-bottom:18px}
.mth-social-card--v2 .mth-social-card__head h3{margin:8px 0 3px;font-size:1.35rem;letter-spacing:-.02em}
.mth-social-card--v2 .mth-social-card__head p{margin:0;color:var(--mth-muted);font-size:.82rem}
.mth-social-card--v2 .mth-social-card__head>a{padding-top:5px}
.mth-social-embed-frame{border:1px solid #e8ebf2;border-radius:17px;background:#fbfcfe;overflow:hidden;display:flex;justify-content:center;align-items:flex-start}
.mth-social-embed-frame--instagram{height:520px;padding:12px 10px}
.mth-social-embed-frame--tiktok{height:520px;padding:12px 10px}
.mth-instagram-profile--v2{width:100%;height:100%;min-height:0;display:flex;justify-content:center;align-items:flex-start;overflow:hidden}
.mth-instagram-profile--v2 .instagram-media{width:100%!important;max-width:540px!important;margin:0 auto!important}
.mth-instagram-grid--v2{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;align-items:start}
.mth-instagram-grid--v2 .instagram-media{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
.mth-social-embed-frame--tiktok .tiktok-embed{width:100%!important;max-width:620px!important;min-width:288px!important;margin:0 auto!important}
@media(max-width:1000px){
 .mth-social-intro{align-items:flex-start;flex-direction:column}
 .mth-social-links{justify-content:flex-start}
}
@media(max-width:781px){
 .mth-social-intro .mth-title{font-size:2.25rem}
 .mth-social-card--v2{padding:16px;border-radius:20px}
 .mth-social-card--v2 .mth-social-card__head{min-height:0}
 .mth-social-embed-frame--instagram,.mth-social-embed-frame--tiktok{height:500px}
 .mth-instagram-grid--v2{grid-template-columns:1fr}
}
.mth-program__link{display:inline-block;margin-top:18px;color:var(--mth-blue);font-weight:700;text-decoration:none;font-size:.9rem}.mth-program__link:hover{text-decoration:underline}.mth-logos{display:flex;gap:10px;align-items:center;margin-top:18px}.mth-logos img{width:auto!important;height:42px!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important;border-radius:0!important}

/* V5.3.6 — Editable Gallery UI */
.mth-gallery-filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}
.mth-gallery-filter{border:1px solid var(--mth-border);background:#fff;color:var(--mth-navy);border-radius:999px;padding:9px 15px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:.2s ease}
.mth-gallery-filter:hover,.mth-gallery-filter.is-active{background:var(--mth-blue);border-color:var(--mth-blue);color:#fff}
.mth-gallery-editable figure{position:relative;min-height:0}
.mth-gallery-editable figure[hidden]{display:none}
.mth-gallery-open{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer;position:relative;text-align:left;overflow:hidden}
.mth-gallery-open img{transition:transform .35s ease,filter .35s ease}
.mth-gallery-open:hover img,.mth-gallery-open:focus img{transform:scale(1.035);filter:brightness(.82)}
.mth-gallery-caption{position:absolute;left:12px;right:12px;bottom:12px;padding:9px 11px;border-radius:9px;background:rgba(17,22,56,.78);color:#fff;font-size:12px;line-height:1.35;opacity:0;transform:translateY(5px);transition:.2s ease}
.mth-gallery-open:hover .mth-gallery-caption,.mth-gallery-open:focus .mth-gallery-caption{opacity:1;transform:none}
.mth-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(10,13,30,.9);display:grid;place-items:center;padding:30px}
.mth-lightbox[hidden]{display:none}
.mth-lightbox-inner{max-width:min(1100px,94vw);max-height:90vh;text-align:center}
.mth-lightbox-inner img{display:block;max-width:100%;max-height:78vh;width:auto;height:auto;margin:auto;border-radius:12px;box-shadow:0 20px 70px rgba(0,0,0,.4)}
.mth-lightbox-inner p{color:#fff;margin:12px auto 0;font-size:14px}
.mth-lightbox-close{position:absolute;right:24px;top:18px;border:0;background:rgba(255,255,255,.14);color:#fff;width:42px;height:42px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}
body.mth-lightbox-open{overflow:hidden}
@media(max-width:781px){.mth-gallery-caption{opacity:1;transform:none}.mth-lightbox{padding:18px}.mth-lightbox-close{right:12px;top:10px}}

/* V5.3.7 — Homepage editable/mobile polish */
.mth-hero-section{padding-top:36px}
.mth-hero__copy h1{letter-spacing:-.035em}
.mth-hero__copy h2{max-width:720px}
.mth-hero__copy .mth-lead{max-width:720px}
.mth-news-top .mth-section-head{margin-bottom:26px}
.mth-v537-admin-note{border-left:4px solid var(--mth-blue);padding:12px 15px;background:#f5f8ff}
@media(max-width:781px){
  .mth-hero-section{padding-top:24px;padding-bottom:24px}
  .mth-v5 .mth-hero{min-height:0;height:auto;aspect-ratio:auto;overflow:hidden}
  .mth-v5 .mth-hero__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .mth-v5 .mth-hero__inner{min-height:0;display:flex;align-items:flex-end;padding:0}
  .mth-v5 .mth-hero__copy{padding:150px 0 28px;max-width:100%}
  .mth-v5 .mth-hero__copy h1{font-size:clamp(2.55rem,13vw,4.1rem);line-height:.93;margin-bottom:12px}
  .mth-v5 .mth-hero__copy h2{font-size:clamp(1.45rem,6vw,2rem);line-height:1.12;margin-bottom:12px}
  .mth-v5 .mth-hero__copy .mth-lead{font-size:.98rem;line-height:1.55;margin-bottom:18px}
  .mth-v5 .mth-hero__buttons{display:flex;flex-wrap:wrap;gap:10px}
  .mth-v5 .mth-hero__buttons .mth-btn{width:auto;min-width:0;padding:13px 18px;font-size:.88rem}
  .mth-v5 .mth-pixels{right:16px;top:16px;transform:scale(.82);transform-origin:top right}
  .mth-news-top .mth-section-head{margin-bottom:22px}
  .mth-news-top .mth-section-head .mth-title{font-size:2rem}
}

/* V5.3.8 — PPDB Integration */
.mth-ppdb-integrated .mth-wrap{max-width:1100px}
.mth-ppdb-integrated .mth-ppdb-wrap{margin:0 auto}

/* V5.4.4 — render the real WordPress menu, including nested submenus */
.mth-v5-header .mth-nav{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:18px}
.mth-v5-header .mth-nav > li{position:relative;list-style:none;margin:0;padding:0}
.mth-v5-header .mth-nav li a{display:block;color:var(--mth-navy);font-size:13px;font-weight:700;text-decoration:none;padding:10px 0}
.mth-v5-header .mth-nav li.current-menu-item > a,
.mth-v5-header .mth-nav li.current-menu-ancestor > a{color:var(--mth-blue)}
.mth-v5-header .mth-nav .sub-menu{position:absolute;left:0;top:100%;min-width:220px;margin:0;padding:8px 0;background:#fff;border:1px solid var(--mth-border);border-radius:12px;box-shadow:0 14px 35px rgba(0,0,0,.12);opacity:0;visibility:hidden;transform:translateY(5px);transition:.16s ease;z-index:50;list-style:none}
.mth-v5-header .mth-nav li:hover > .sub-menu,
.mth-v5-header .mth-nav li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.mth-v5-header .mth-nav .sub-menu li{list-style:none;margin:0;padding:0}
.mth-v5-header .mth-nav .sub-menu a{padding:10px 15px;white-space:normal}
.mth-v5-header .mth-nav .sub-menu a:hover{background:var(--mth-light);color:var(--mth-blue)}
.mth-mobile-nav-list{list-style:none;margin:0;padding:0}
.mth-mobile-nav-list li{list-style:none;margin:0;padding:0}
.mth-mobile-nav-list a{display:block;padding:11px 12px;color:var(--mth-navy);text-decoration:none;font-weight:700}
.mth-mobile-nav-list .sub-menu{list-style:none;margin:0 0 5px;padding-left:14px;border-left:2px solid var(--mth-border)}
@media(max-width:1000px){
 .mth-v5-header .mth-nav{display:none}
}

/* V5.4.6 — existing WordPress pages inside the new child-theme shell */
.mth-page-hero--internal{padding:56px 0 34px}
.mth-existing-page{padding-top:34px;padding-bottom:72px}
.mth-existing-page .mth-content{max-width:1250px;margin:0 auto;font-size:18px;line-height:1.8}
.mth-existing-page .mth-content img{max-width:100%;height:auto}
.mth-existing-page .mth-content iframe{max-width:100%}
.mth-existing-page .mth-content .elementor{max-width:100%}
.mth-existing-page .mth-content h1,.mth-existing-page .mth-content h2,.mth-existing-page .mth-content h3,.mth-existing-page .mth-content h4{line-height:1.25}


/* V5.4.7 — Existing WordPress page content inside the new child-theme shell */
.mth-existing-page{background:#fff}
.mth-existing-page .mth-content{max-width:1250px;margin:0 auto;color:var(--mth-text,#26324a);font-size:1.02rem;line-height:1.85}
.mth-existing-page .mth-content h1,.mth-existing-page .mth-content h2,.mth-existing-page .mth-content h3,.mth-existing-page .mth-content h4{color:var(--mth-navy);line-height:1.25;margin:1.6em 0 .65em}
.mth-existing-page .mth-content h1{font-size:clamp(2rem,4vw,3rem)}
.mth-existing-page .mth-content h2{font-size:clamp(1.6rem,3vw,2.2rem)}
.mth-existing-page .mth-content p{margin:0 0 1.1em}
.mth-existing-page .mth-content a{color:var(--mth-blue);text-decoration:underline;text-underline-offset:2px}
.mth-existing-page .mth-content img{display:block;max-width:100%;height:auto;margin:22px auto;border-radius:12px}
.mth-existing-page .mth-content figure{max-width:100%;margin:24px auto}
.mth-existing-page .mth-content iframe,.mth-existing-page .mth-content video,.mth-existing-page .mth-content embed{display:block;max-width:100%;margin:24px auto}
.mth-existing-page .mth-content table{width:100%;border-collapse:collapse;margin:24px 0;background:#fff}
.mth-existing-page .mth-content th,.mth-existing-page .mth-content td{border:1px solid var(--mth-border);padding:10px 12px;text-align:left}
.mth-existing-page .mth-content ul,.mth-existing-page .mth-content ol{padding-left:1.5rem;margin:0 0 1.1em}
.mth-existing-page .mth-content blockquote{margin:24px 0;padding:18px 22px;border-left:4px solid var(--mth-blue);background:#f5f8ff}
.mth-existing-page .mth-content .elementor{max-width:none}
@media(max-width:781px){.mth-existing-page .mth-content{font-size:.98rem}.mth-existing-page .mth-content img{margin:16px auto}.mth-existing-page .mth-content table{display:block;overflow-x:auto;white-space:nowrap}}

/* V5.4.7 — prevent parent theme page wrappers from constraining the child shell */
body:has(.mth-v5){overflow-x:hidden}
body:has(.mth-v5) .site-content,body:has(.mth-v5) .site-main,body:has(.mth-v5) .content-area{max-width:none!important;width:auto!important}

/* V5.4.9 — isolated footer navigation */
.mth-footer .mth-footer-nav{display:block;margin:0;padding:0}
.mth-footer .mth-footer-nav p{margin:0 0 3px}
.mth-footer .mth-footer-nav a{display:inline-block}

/* Mini map in the right side of the footer */
.mth-footer-grid .mth-footer-map{min-width:0}
.mth-map-frame{width:100%;height:150px;border-radius:10px;overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.18)}
.mth-map-frame iframe{display:block;width:100%;height:100%;border:0}
.mth-footer .mth-map-link{margin:7px 0 0}
.mth-footer .mth-map-link a{font-size:.78rem;opacity:.9}
@media (max-width:900px){.mth-footer-grid{grid-template-columns:repeat(2,1fr)}.mth-map-frame{height:170px}}
@media (max-width:600px){.mth-footer-grid{grid-template-columns:1fr}.mth-map-frame{height:190px}}

/* V5.5.2 — editable contact block */
.mth-footer-contact .mth-contact-address{margin:0 0 13px;line-height:1.65}
.mth-footer-contact p{margin:0 0 13px}
.mth-footer-contact .mth-contact-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;opacity:.65}
.mth-footer-contact a{font-weight:600}
@media (min-width:901px){.mth-footer-grid{grid-template-columns:1.25fr 1fr 1.35fr 1.25fr}}
/* V5.5.4 — unified page editor */
.mth-main-page-content .mth-content{max-width:100%;font-size:1.02rem;line-height:1.85}
.mth-content-divider{border:0;border-top:1px solid var(--mth-border,#e4e8f1);margin:34px 0}
.mth-main-page-content .mth-content img{max-width:100%;height:auto;border-radius:14px}
.mth-main-page-content .mth-content h2,.mth-main-page-content .mth-content h3{margin-top:1.8em}

/* V5.5.5 — native WordPress editor is the single source of page body content. */
.mth-v5-editor-note{border-left:4px solid var(--mth-blue);background:#f7f8fc}
