/**
 * MGIH public pages and account assistance bar.
 * Version 2.3.0
 */

.mgh-public-page{width:100%;max-width:100%;min-width:0;background:#fff;color:#1d2939}
.mgh-public-page .container{width:min(1180px,calc(100% - 40px));margin-inline:auto}

.mgh-page-hero{padding:clamp(5rem,9vw,8rem) 0;background:linear-gradient(125deg,#063d2d,#087443);color:#fff}
.mgh-page-eyebrow,.mgh-section-kicker{display:inline-block;margin-bottom:.85rem;color:#7edca0;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.mgh-page-hero h1{max-width:900px;margin:0 0 1.25rem;color:#fff;font-size:clamp(2.5rem,6vw,5rem);font-weight:800;line-height:1.04;letter-spacing:-.035em}
.mgh-page-hero p{max-width:760px;margin:0;color:rgba(255,255,255,.84);font-size:1.05rem;line-height:1.8}

.mgh-content-section{padding:clamp(4rem,7vw,7rem) 0}.mgh-section-soft{background:#f4f8f5}
.mgh-section-heading{max-width:800px;margin:0 auto 3rem;text-align:center}.mgh-section-heading h2{font-size:clamp(2rem,4vw,3.4rem);line-height:1.12}.mgh-section-heading p{color:#617268}
.mgh-about-intro,.mgh-contact-layout,.mgh-corporate-service-cta__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,5rem);align-items:start}
.mgh-about-intro h2,.mgh-contact-information h2,.mgh-contact-form-panel h2{font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.15}

.mgh-two-card-grid,.mgh-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.mgh-service-page-card,.mgh-feature-card,.mgh-contact-card,.mgh-course-public-card{padding:2rem;border:1px solid #dce7df;border-radius:20px;background:#fff;box-shadow:0 12px 35px rgba(10,65,43,.06)}
.mgh-service-page-card,.mgh-course-public-card{display:flex;flex-direction:column;min-height:100%}
.mgh-service-number,.mgh-feature-number{display:block;margin-bottom:1rem;color:#087443;font-size:.8rem;font-weight:800}.mgh-service-page-card h2,.mgh-course-public-card h2{font-size:1.35rem;line-height:1.25}.mgh-service-page-card p,.mgh-course-public-card p{color:#5d6f65;line-height:1.75}
.mgh-card-link{display:inline-flex;align-items:center;gap:.45rem;margin-top:auto;padding-top:1rem;color:#087443;font-weight:800;text-decoration:none}.mgh-card-link:hover{color:#053b2a}

.mgh-process-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.8rem}.mgh-process-card{padding:1.4rem;border:1px solid #e0ebe4;border-radius:16px;background:#f2f8f4}.mgh-process-card span{color:#087443;font-weight:800}.mgh-process-card h3{margin:.7rem 0 0;font-size:.95rem;line-height:1.35}

.mgh-about-principle,.mgh-corporate-service-cta,.mgh-course-pathway{padding:clamp(4rem,8vw,7rem) 0;background:#063d2d;color:#fff}.mgh-about-principle h2,.mgh-corporate-service-cta h2,.mgh-course-pathway h2{max-width:900px;color:#fff;font-size:clamp(2rem,4vw,3.5rem);line-height:1.12}.mgh-corporate-service-cta p{color:rgba(255,255,255,.8)}
.mgh-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.8rem 1.4rem;border-radius:999px;font-weight:800;text-decoration:none}.mgh-btn-light{margin-top:1rem;background:#fff;color:#063d2d}.mgh-btn-light:hover{background:#e8f4ec;color:#063d2d}

.mgh-contact-card{margin-top:1rem;padding:1.2rem}.mgh-contact-card strong,.mgh-contact-card a{display:block}.mgh-contact-card a{margin-top:.3rem;color:#087443;font-weight:700}.mgh-contact-form-panel{padding:clamp(1.5rem,4vw,2.5rem);border:1px solid #dce7df;border-radius:24px;background:#fff;box-shadow:0 18px 50px rgba(10,65,43,.07)}
.mgh-contact-form label{display:block;margin-bottom:.4rem;font-weight:700}.mgh-contact-form input,.mgh-contact-form select,.mgh-contact-form textarea{width:100%;padding:.75rem .85rem;border:1px solid #cddbd2;border-radius:8px;background:#fff}.mgh-contact-form button{width:100%;min-height:48px;border:0;border-radius:999px;background:#087443;color:#fff;font-weight:800}.mgh-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}

.mgh-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.mgh-news-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce7df;border-radius:20px;background:#fff;box-shadow:0 12px 35px rgba(10,65,43,.06)}.mgh-news-card__image{display:block;aspect-ratio:16/10;overflow:hidden;background:#edf4ef}.mgh-news-card__image img{width:100%;height:100%;object-fit:cover}.mgh-news-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:linear-gradient(135deg,#075d3e,#0b8a59);color:#fff;font-weight:800}.mgh-news-card__content{display:flex;flex:1;flex-direction:column;padding:1.5rem}.mgh-news-meta{display:flex;flex-wrap:wrap;gap:.7rem;margin-bottom:.8rem;color:#728078;font-size:.77rem;font-weight:700}.mgh-news-card h2{margin:.2rem 0 .8rem;font-size:1.25rem}.mgh-news-card h2 a{color:#14231d;text-decoration:none}.mgh-news-card p{color:#5d6f65}
.mgh-pagination{display:flex;justify-content:center;flex-wrap:wrap;margin-top:3rem}.mgh-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;margin:.2rem;padding:.5rem .8rem;border:1px solid #dce7df;border-radius:8px;text-decoration:none}.mgh-pagination .current,.mgh-pagination a:hover{background:#087443;color:#fff;border-color:#087443}.mgh-empty-state{padding:3rem;border:1px dashed #cddbd2;border-radius:20px;background:#f8fbf9;text-align:center}

.mgh-courses-public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.mgh-course-level{display:inline-flex;align-self:flex-start;margin-bottom:1rem;padding:.35rem .65rem;border-radius:999px;background:#edf7f0;color:#087443;font-size:.75rem;font-weight:800}

/* Login helper row: password recovery left, new-account registration right. */
.woocommerce-account .woocommerce-LostPassword.lost_password{display:none!important}
.mgih-login-assistance{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;width:100%;margin:1.1rem 0 0;padding-top:1rem;border-top:1px solid #dce7df}
.mgih-login-assistance a{display:inline-flex;align-items:center;gap:.4rem;color:#087443!important;font-size:.92rem;font-weight:750;text-decoration:none!important}.mgih-login-assistance a:hover{color:#053b2a!important}.mgih-login-assistance__register{margin-left:auto;text-align:right}
#customer_register{position:relative;top:-120px;visibility:hidden}

@media (max-width:900px){.mgh-about-intro,.mgh-contact-layout,.mgh-corporate-service-cta__grid{grid-template-columns:1fr}.mgh-process-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mgh-news-grid,.mgh-courses-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.mgh-public-page .container{width:min(92%,1180px)}.mgh-two-card-grid,.mgh-services-grid,.mgh-news-grid,.mgh-process-grid,.mgh-courses-public-grid{grid-template-columns:1fr}.mgih-login-assistance{align-items:flex-start;flex-direction:column}.mgih-login-assistance__register{margin-left:0;text-align:left}}


/* ========================================================================== */
/* SERVICES PAGE — production additions                                       */
/* ========================================================================== */
.mgh-page-hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.75rem}.mgh-btn-ghost{margin-top:1rem;border:1px solid rgba(255,255,255,.55);background:transparent;color:#fff}.mgh-btn-ghost:hover{background:#fff;color:#063d2d}.mgh-services-priority-strip{background:#052f23;color:#fff}.mgh-services-priority-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.12)}.mgh-services-priority-grid>div{padding:1.4rem 1.25rem;background:#052f23}.mgh-services-priority-grid strong,.mgh-services-priority-grid span{display:block}.mgh-services-priority-grid strong{font-size:.95rem}.mgh-services-priority-grid span{margin-top:.3rem;color:rgba(255,255,255,.72);font-size:.82rem;line-height:1.45}.mgh-services-process .mgh-process-card p{margin:.7rem 0 0;color:#5d6f65;font-size:.86rem;line-height:1.6}

/* Registration link now opens a dedicated registration-focused My Account view. */
body.mgih-registration-mode .woocommerce-account .woocommerce .u-columns{display:block!important;width:100%!important;max-width:980px!important;margin-inline:auto!important}body.mgih-registration-mode .woocommerce-account .woocommerce .u-column1.col-1{display:none!important}body.mgih-registration-mode .woocommerce-account .woocommerce .u-column2.col-2{display:block!important;float:none!important;width:100%!important;max-width:900px!important;margin:0 auto!important;padding:clamp(1.4rem,3vw,2.5rem)!important;border:1px solid #dce7df!important;border-radius:24px!important;background:#fff!important;box-shadow:0 18px 50px rgba(10,65,43,.08)!important}body.mgih-registration-mode .woocommerce-account .woocommerce .u-column2.col-2>h2{margin-top:0!important;color:#102d22!important;font-family:inherit!important}.mgih-registration-anchor{display:block;position:relative;top:-110px;visibility:hidden}.mgih-registration-intro{margin-bottom:1.4rem;padding:1.2rem 1.25rem;border-radius:16px;background:#f0f8f3}.mgih-registration-eyebrow{display:block;margin-bottom:.4rem;color:#087443;font-size:.75rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.mgih-registration-intro h3{margin:.2rem 0 .55rem;color:#102d22;font-size:1.35rem}.mgih-registration-intro p{margin:.3rem 0;color:#5d6f65}.mgih-registration-login-back a{font-weight:750;color:#087443}.mgih-registration-security-note{padding:1rem;border-left:4px solid #d6a31f;border-radius:8px;background:#fff9e8;color:#514617;font-size:.85rem;line-height:1.6}

@media(max-width:900px){.mgh-services-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mgh-services-process{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.mgh-page-hero-actions{flex-direction:column;align-items:stretch}.mgh-page-hero-actions .mgh-btn{width:100%;margin-top:0}.mgh-services-priority-grid,.mgh-services-process{grid-template-columns:1fr}}


/* ========================================================================== */
/* MANAGED SERVICES / PROJECTS / PARTNERS — v2.4                              */
/* ========================================================================== */
.mgh-managed-card__media{display:block;margin:-2rem -2rem 1.35rem;aspect-ratio:16/9;overflow:hidden;background:#edf4ef}.mgh-managed-card__media img{width:100%;height:100%;object-fit:cover}.mgh-managed-card__tag{display:inline-flex;align-self:flex-start;margin:0 0 .7rem;padding:.35rem .65rem;border-radius:999px;background:#edf7f0;color:#087443;font-size:.72rem;font-weight:800}.mgh-service-page-card h2 a,.mgh-partner-directory-card h2 a{color:#14231d;text-decoration:none}.mgh-service-page-card h2 a:hover,.mgh-partner-directory-card h2 a:hover{color:#087443}
.mgh-partners-directory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}.mgh-partner-directory-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #dce7df;border-radius:20px;background:#fff;box-shadow:0 12px 35px rgba(10,65,43,.06)}.mgh-partner-directory-card__logo{display:flex;align-items:center;justify-content:center;min-height:180px;padding:1.5rem;background:#f8fbf9}.mgh-partner-directory-card__logo img{width:auto;max-width:180px;max-height:110px;object-fit:contain}.mgh-partner-directory-card__logo span{color:#087443;font-weight:800;text-align:center}.mgh-partner-directory-card__body{display:flex;flex:1;flex-direction:column;padding:1.35rem}.mgh-partner-directory-card__body h2{font-size:1.15rem}.mgh-partner-directory-card__body p{color:#5d6f65;line-height:1.7}
.mgh-managed-single__layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:clamp(2rem,5vw,4rem);align-items:start}.mgh-managed-single__article{min-width:0}.mgh-managed-single__image{margin:0 0 2rem;overflow:hidden;border-radius:24px}.mgh-managed-single__image img{width:100%;height:auto}.mgh-managed-single__content{font-size:1.02rem;line-height:1.8;color:#34443b}.mgh-managed-single__content>*:first-child{margin-top:0}.mgh-managed-single__aside{position:sticky;top:120px}.mgh-managed-single__cta{padding:1.6rem;border-radius:20px;background:#063d2d;color:#fff}.mgh-managed-single__cta h2{color:#fff;font-size:1.4rem}.mgh-managed-single__cta p{color:rgba(255,255,255,.8)}
@media(max-width:1000px){.mgh-partners-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mgh-managed-single__layout{grid-template-columns:1fr}.mgh-managed-single__aside{position:static}}
@media(max-width:760px){.mgh-partners-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.mgh-partners-directory-grid{grid-template-columns:1fr}}
