/* Saudi Mais — editorial portfolio and newsroom. Scoped to the new layouts. */
.mge-wide, .mge-wide * { box-sizing: border-box; }
.mge-wide {
    --mge-ink: #12233a; --mge-blue: #0b3768; --mge-navy: #082847;
    --mge-gold: #bc904b; --mge-slate: #53677d; --mge-line: #e1e7ef;
    --mge-soft: #f3f6f9;
    position: relative; left: 50%; transform: translateX(-50%);
    width: min(1440px, calc(100vw - 64px)); max-width: none; margin: 0;
    color: var(--mge-ink); font-family: inherit;
}
.mge-wide a { text-decoration: none !important; }
.mge-wide a:focus-visible, .mge-wide button:focus-visible, .mge-wide select:focus-visible, .mge-wide input:focus-visible { outline: 3px solid var(--mge-gold); outline-offset: 4px; }
.mge-wide p, .mge-wide h1, .mge-wide h2, .mge-wide h3 { margin-top: 0; }
.mge-wide img { display: block; }
.mge-portfolio, .mge-news-hub { padding: clamp(52px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.mge-kicker { display: inline-flex; align-items: center; gap: 10px; color: #9b742e; font-size: 12px; font-weight: 800; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.mge-kicker::before { content: ''; width: 25px; height: 2px; flex: none; background: var(--mge-gold); }
.mge-section-heading { padding-bottom: 30px; margin-bottom: 28px; border-bottom: 1px solid var(--mge-line); }
.mge-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 12px 0 13px; }
.mge-heading-row h1, .mge-heading-row h2 { margin: 0; color: var(--mge-ink); font-size: clamp(35px, 4.3vw, 62px); font-weight: 800; letter-spacing: -.049em; line-height: 1.06; }
.mge-heading-count { flex: none; display: inline-flex; gap: 9px; align-items: baseline; color: var(--mge-blue); font-size: clamp(20px, 2.6vw, 38px); font-weight: 750; line-height: 1; letter-spacing: -.05em; }
.mge-heading-count small { font-size: 12px; letter-spacing: .06em; font-weight: 600; text-transform: uppercase; color: var(--mge-slate); }
.mge-section-heading > p { max-width: 780px; margin: 0; color: var(--mge-slate); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; }
.mge-company-list { display: grid; gap: 26px; }
.mge-company-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); min-height: 315px; background: #fff; border: 1px solid var(--mge-line); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 34px rgba(11, 55, 104, .06); transition: box-shadow .25s, border-color .25s; }
.mge-company-row:hover { border-color: #b8c5d2; box-shadow: 0 18px 44px rgba(8, 40, 71, .12); }
.mge-visual-link { display: block; min-width: 0; height: 100%; overflow: hidden; }
.mge-company-visual { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 315px; overflow: hidden; background: linear-gradient(135deg, #f4f7fa 0%, #e4ebf3 100%); }
.mge-visual-pattern { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 14% 93%, rgba(11,55,104,.12), transparent 52%), repeating-linear-gradient(125deg, transparent 0 33px, rgba(11,55,104,.035) 33px 34px, transparent 34px 67px); }
.mge-visual-pattern::after { content: ''; position: absolute; width: 490px; height: 490px; border-radius: 50%; border: 1px solid rgba(11,55,104,.09); right: -215px; top: -225px; box-shadow: 0 0 0 44px rgba(11,55,104,.024), 0 0 0 88px rgba(11,55,104,.016); }
.mge-company-photo { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.mge-has-photo::after { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(180deg, rgba(8,40,71,.53), transparent 34%, transparent 55%, rgba(8,40,71,.36)); }
.mge-company-row:hover .mge-company-photo { transform: scale(1.036); }
.mge-visual-label { position: absolute; top: 23px; left: 25px; right: 25px; display: flex; justify-content: space-between; gap: 10px; color: #46617c; font-size: 10px; font-weight: 800; letter-spacing: .15em; line-height: 1.3; }
.mge-visual-bottom { position: absolute; bottom: 22px; left: 25px; color: #526c86; font-size: 11px; font-weight: 600; letter-spacing: .035em; }
.mge-has-photo .mge-visual-label, .mge-has-photo .mge-visual-bottom { color: #fff; }
.mge-logo-badge { width: min(280px, 70%); min-height: 140px; display: flex; align-items: center; justify-content: center; padding: 25px 30px; background: #fff; border-radius: 15px; box-shadow: 0 15px 45px rgba(8,40,71,.11); border: 1px solid rgba(11,55,104,.08); }
.mge-logo { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100px; object-fit: contain; }
.mge-logo-text { text-align: center; font-size: 20px; font-weight: 750; color: var(--mge-blue); line-height: 1.2; }
.mge-has-photo .mge-logo-badge { position: absolute; bottom: 43px; left: 25px; width: min(170px, 48%); min-height: 75px; padding: 13px 18px; border-radius: 10px; }
.mge-has-photo .mge-logo { max-height: 62px; }
/* Plain white, seamless logo panels when no facility image is selected. */
.mge-company-visual:not(.mge-has-photo) { background: #fff !important; }
.mge-company-visual:not(.mge-has-photo) .mge-visual-pattern,
.mge-company-visual:not(.mge-has-photo) .mge-visual-label,
.mge-company-visual:not(.mge-has-photo) .mge-visual-bottom { display: none; }
.mge-company-visual:not(.mge-has-photo) .mge-logo-badge { width: min(340px, 78%); min-height: 0; padding: 20px; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.mge-company-visual:not(.mge-has-photo) .mge-logo { max-height: 155px; box-shadow: none !important; }
.mge-company-row:not(.mge-reverse) .mge-visual-link { border-right: 1px solid var(--mge-line); }
.mge-company-row.mge-reverse .mge-visual-link { border-left: 1px solid var(--mge-line); }
.mge-company-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3.5vw, 56px); }
.mge-row-top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 12px; font-weight: 750; color: var(--mge-slate); text-transform: uppercase; letter-spacing: .075em; line-height: 1.45; }
.mge-index { color: #9b742e; font-size: 15px; font-weight: 800; flex: none; }
.mge-company-copy h3 { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.16; letter-spacing: -.034em; margin: 0 0 13px; font-weight: 750; color: var(--mge-ink); }
.mge-company-copy h3 a { color: inherit; }
.mge-company-copy p { color: var(--mge-slate); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.7; margin: 0 0 18px; }
.mge-fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.mge-fact-chips span { background: #f1f5f8; color: #3b526b; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 5px; }
.mge-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 23px; }
.mge-text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 750; color: var(--mge-blue) !important; line-height: 1.3; }
.mge-text-link span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; border: 1px solid #c6d2de; color: var(--mge-blue); font-size: 18px; transition: background .2s, color .2s, transform .2s; }
.mge-text-link:hover span { background: var(--mge-blue); color: #fff; transform: translate(2px,-2px); }
.mge-secondary-link { color: var(--mge-slate) !important; font-size: 14px; font-weight: 650; border-bottom: 1px solid #c7d0d9; padding-bottom: 3px; }
.mge-secondary-link:hover { color: var(--mge-blue) !important; }
.mge-reverse .mge-visual-link { order: 2; }
.mge-reverse .mge-company-copy { order: 1; }

/* Single company and article: full width while maintaining Astra's header/footer. */
body.single-mg_subsidiary #content, body.single-smmp_news #content, body.post-type-archive-smmp_news #content { background: #fff; }
body.single-mg_subsidiary #content > .ast-container, body.single-smmp_news #content > .ast-container, body.post-type-archive-smmp_news #content > .ast-container { display: block; width: 100%; max-width: none; padding: 0; }
.mge-sub-profile, .mge-news-single { padding: 34px 0 75px; }
.mge-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0 0 26px; font-size: 13px; color: var(--mge-slate); }
.mge-breadcrumb a { color: var(--mge-blue); font-weight: 650; }
.mge-profile-hero { display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 23px; min-height: 370px; background: var(--mge-navy); }
.mge-profile-intro { padding: clamp(34px, 4.4vw, 68px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.mge-profile-intro .mge-kicker { color: #edcd8c; }
.mge-profile-intro h1 { color: #fff; font-size: clamp(34px, 4vw, 57px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; margin: 15px 0 17px; overflow-wrap: anywhere; }
.mge-profile-intro p { max-width: 600px; color: #d7e3ee; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; margin: 0 0 25px; }
.mge-profile-cta { display: inline-flex; gap: 20px; align-items: center; background: #fff; color: var(--mge-navy) !important; font-size: 14px; font-weight: 750; border-radius: 7px; padding: 14px 17px; transition: background .2s; }
.mge-profile-cta:hover { background: #e6c986; }
.mge-profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 20px; border: 1px solid var(--mge-line); border-radius: 13px; overflow: hidden; background: #f8fafc; }
.mge-profile-facts > div { padding: 22px 25px; border-inline-end: 1px solid var(--mge-line); }
.mge-profile-facts > div:last-child { border-inline-end: 0; }
.mge-profile-facts span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; color: var(--mge-slate); }
.mge-profile-facts strong { display: block; font-size: 19px; color: var(--mge-ink); margin-top: 5px; }
.mge-profile-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .37fr); align-items: start; gap: clamp(35px, 6vw, 100px); padding: clamp(42px, 5.8vw, 84px) clamp(0px, 2.6vw, 35px); }
.mge-profile-about h2, .mge-capabilities h2 { color: var(--mge-ink); font-size: clamp(27px, 3vw, 43px); letter-spacing: -.035em; line-height: 1.2; margin: 10px 0 18px; font-weight: 800; }
.mge-article-copy { color: #45586e; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.85; min-width: 0; overflow-wrap: anywhere; }
.mge-article-copy > *:last-child { margin-bottom: 0; }
.mge-article-copy a { text-decoration: underline !important; color: var(--mge-blue); }
.mge-article-copy img { max-width: 100%; height: auto; border-radius: 9px; }
.mge-article-copy h2, .mge-article-copy h3 { color: var(--mge-ink); line-height: 1.3; }
.mge-profile-aside, .mge-article-aside { padding: 26px; border: 1px solid var(--mge-line); border-radius: 14px; background: #f8fafc; }
.mge-aside-logo { background: #fff; display: flex; align-items: center; justify-content: center; min-height: 105px; padding: 19px; border: 1px solid var(--mge-line); border-radius: 10px; margin: 18px 0; }
.mge-profile-aside p { color: var(--mge-slate); font-size: 15px; line-height: 1.6; }
.mge-profile-aside .mge-text-link { font-size: 13px; }
.mge-capabilities { padding: 34px; border-radius: 18px; background: #f4f7fa; border: 1px solid var(--mge-line); margin-bottom: 45px; }
.mge-capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 13px; }
.mge-capability-grid > div { padding: 19px; border: 1px solid var(--mge-line); border-radius: 9px; background: #fff; }
.mge-capability-grid span { color: #9b742e; font-size: 12px; font-weight: 800; }
.mge-capability-grid h3 { color: var(--mge-ink); font-size: 18px; line-height: 1.35; margin: 7px 0 0; }
.mge-bottom-back { display: flex; justify-content: flex-start; padding-top: 28px; border-top: 1px solid var(--mge-line); }
.mge-bottom-back a { color: var(--mge-blue); font-size: 14px; font-weight: 750; }

/* Company detail pages: the theme's #primary rules must not override the
 * content width, alignment or white background. Keep all changes scoped. */
body.single-mg_subsidiary,
body.single-mg_subsidiary #page,
body.single-mg_subsidiary #content,
body.single-mg_subsidiary #content > .ast-container { background: #fff !important; }
body.single-mg_subsidiary #content { margin: 0 !important; padding: 0 !important; }
body.single-mg_subsidiary #content > .ast-container { display: block !important; width: 100% !important; max-width: none !important; margin: 0 auto !important; padding: 0 !important; }
body.single-mg_subsidiary #primary.mge-sub-profile { display: block; float: none; position: relative; left: auto; right: auto; transform: none; width: min(1440px, calc(100% - 64px)) !important; max-width: 1440px !important; margin: 0 auto !important; padding: 28px 0 48px !important; }
body.single-mg_subsidiary .mge-profile { margin: 0 !important; padding: 0 !important; background: #fff !important; }
body.single-mg_subsidiary .mge-profile-hero { min-height: 360px; border: 1px solid var(--mge-line); }
body.single-mg_subsidiary .mge-profile-intro { background: var(--mge-navy); }
body.single-mg_subsidiary .mge-profile-intro h1 { font-size: clamp(32px, 3.2vw, 48px); }
body.single-mg_subsidiary .mge-profile-body { padding: 46px 0 34px; gap: clamp(26px, 5vw, 72px); }
body.single-mg_subsidiary .mge-profile-body.mge-no-portfolio { grid-template-columns: minmax(0, 1fr); }
body.single-mg_subsidiary .mge-profile-aside { background: #fff; }
body.single-mg_subsidiary .mge-aside-logo { border: 0; box-shadow: none; }
body.single-mg_subsidiary .mge-aside-logo .mge-logo { box-shadow: none !important; }
body.single-mg_subsidiary .mge-subsidiary-back { padding-top: 22px; border-top: 1px solid var(--mge-line); }
body.single-mg_subsidiary .mge-subsidiary-back a { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 12px 19px; border: 1px solid var(--mge-blue); border-radius: 8px; background: #fff; color: var(--mge-blue) !important; line-height: 1.3; transition: background .2s, color .2s; }
body.single-mg_subsidiary .mge-subsidiary-back a:hover { background: var(--mge-blue); color: #fff !important; }
body.single-mg_subsidiary .smgroup-site-footer { margin-top: 0 !important; box-shadow: none; }

/* News hub */
.mge-archive-main { width: 100%; }
/* News now lives on an ordinary page: respect the page builder's container. */
.mge-news-hub.mge-wide { left: auto; transform: none; width: 100%; max-width: 1440px; margin: 0 auto; padding: 26px 0 44px; }
.mge-news-hub.mge-news-no-heading { padding-top: 0; }
.mge-news-feature { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 405px; overflow: hidden; border-radius: 20px; background: var(--mge-navy); box-shadow: 0 18px 45px rgba(8,40,71,.11); }
.mge-news-feature-image { display: block; position: relative; overflow: hidden; min-height: 100%; background: #e4eaf0; }
.mge-news-cover-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; transition: transform .45s ease; }
.mge-news-feature-image:hover .mge-news-cover-img, .mge-news-card:hover .mge-news-cover-img { transform: scale(1.035); }
.mge-news-cover-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 11%; gap: 10px; color: #fff; background: radial-gradient(circle at 84% 18%, #496985, transparent 46%), linear-gradient(130deg, #103d6d, #0a2948); overflow: hidden; }
.mge-news-cover-placeholder > span:first-child { font-size: 11px; letter-spacing: .15em; font-weight: 700; }
.mge-news-cover-placeholder strong { font-size: clamp(25px, 3vw, 49px); line-height: 1.04; letter-spacing: -.04em; }
.mge-news-cover-placeholder > span:last-child { position: absolute; right: 14px; bottom: 14px; color: #e9c786; font-size: 35px; }
.mge-feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 4.3vw, 60px); }
.mge-feature-label { color: #ebcb8d; font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.mge-feature-copy h3 { color: #fff; font-size: clamp(28px, 3vw, 46px); line-height: 1.13; letter-spacing: -.036em; font-weight: 800; margin: 13px 0 12px; }
.mge-feature-copy h3 a { color: inherit; }
.mge-feature-copy p { color: #d4e1ec; font-size: 16px; line-height: 1.65; margin: 0 0 19px; }
.mge-feature-meta { margin-top: 10px; color: #c2d2e0; font-size: 13px; font-weight: 550; }
.mge-feature-link { display: inline-flex; gap: 13px; align-items: center; color: #fff !important; font-size: 14px; font-weight: 750; margin-top: 25px; }
.mge-feature-link span { border: 1px solid #8598a9; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; }
.mge-feature-link:hover span { background: #e9c786; color: #102b46; border-color: #e9c786; }
.mge-news-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 44px 0 22px; }
.mge-news-toolbar h3 { font-size: clamp(23px, 2vw, 30px); line-height: 1.2; color: var(--mge-ink); margin: 0; font-weight: 750; letter-spacing: -.025em; }
.mge-news-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.mge-news-filters select, .mge-news-filters input { box-sizing: border-box; width: 100%; min-height: 44px; max-width: 230px; padding: 9px 13px; border: 1px solid #dce3eb; border-radius: 7px; background-color: #fff; color: var(--mge-ink); font-size: 14px; line-height: 1.2; }
.mge-news-filters label { margin: 0; }
.mge-news-filters button { border: 1px solid var(--mge-blue); border-radius: 7px; color: #fff; background: var(--mge-blue); padding: 11px 17px; min-height: 44px; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
.mge-reset { color: var(--mge-blue); font-size: 14px; font-weight: 650; padding: 8px; }
.mge-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mge-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mge-news-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--mge-line); border-radius: 13px; background: #fff; transition: box-shadow .22s ease, border-color .22s ease; }
.mge-news-card:hover { border-color: #b8c9d9; box-shadow: 0 14px 30px rgba(8,40,71,.09); }
.mge-news-image { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e4eaf0; }
.mge-topic-pill { position: absolute; top: 14px; left: 14px; max-width: calc(100% - 28px); border-radius: 5px; padding: 6px 10px; background: #fff; color: var(--mge-blue); font-size: 11px; line-height: 1.35; font-weight: 750; box-shadow: 0 2px 10px rgba(8,40,71,.1); }
.mge-news-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.mge-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--mge-slate); font-size: 12px; line-height: 1.4; margin-bottom: 11px; }
.mge-news-meta > span { color: #946d29; font-weight: 700; }
.mge-news-meta time { white-space: nowrap; }
.mge-news-card h3 { font-size: clamp(19px, 1.55vw, 24px); line-height: 1.3; letter-spacing: -.025em; font-weight: 750; color: var(--mge-ink); margin: 0 0 10px; }
.mge-news-card h3 a { color: inherit; }
.mge-news-card p { color: var(--mge-slate); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.mge-news-card .mge-text-link { margin-top: auto; }
.mge-news-empty { padding: 54px 20px; text-align: center; background: #f7f9fb; border: 1px solid var(--mge-line); border-radius: 15px; }
.mge-empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e7edf3; color: var(--mge-blue); font-size: 28px; }
.mge-news-empty h3 { font-size: 25px; margin: 15px 0 7px; color: var(--mge-ink); }
.mge-news-empty p { color: var(--mge-slate); margin: 0; }
.mge-pagination { display: flex; gap: 15px; justify-content: center; align-items: center; padding-top: 30px; font-size: 14px; color: var(--mge-slate); }
.mge-pagination a { font-weight: 700; padding: 10px 15px; background: #f4f7fa; border-radius: 7px; color: var(--mge-blue); border: 1px solid var(--mge-line); }
.mge-related { margin: 38px 0; }
.mge-related-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.mge-related-heading h2 { font-size: clamp(25px, 2.7vw, 37px); margin: 8px 0 0; letter-spacing: -.025em; color: var(--mge-ink); line-height: 1.2; }

/* Full news article */
.mge-article-header { max-width: 1000px; margin: 15px auto 34px; text-align: center; }
.mge-article-header h1 { font-size: clamp(34px, 4.8vw, 65px); line-height: 1.08; letter-spacing: -.045em; color: var(--mge-ink); margin: 15px 0 18px; font-weight: 800; }
.mge-article-header > p { color: var(--mge-slate); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; margin: 0 0 20px; }
.mge-article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; color: var(--mge-slate); font-size: 14px; }
.mge-article-meta > span:first-child { color: var(--mge-blue); font-weight: 750; }
.mge-article-cover { position: relative; aspect-ratio: 2.55/1; min-height: 230px; overflow: hidden; border-radius: 17px; }
.mge-article-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr); align-items: start; gap: clamp(35px, 6vw, 90px); max-width: 1170px; margin: 0 auto; padding: 48px 0; }
.mge-article-aside a { display: block; color: var(--mge-blue); font-weight: 650; font-size: 14px; margin: 15px 0 0; }
.mge-article-aside hr { border: 0; border-top: 1px solid var(--mge-line); margin: 20px 0; }

/* News images: never upscale a small logo or crop certificates and portraits. */
.mge-news-feature { min-height: 330px; border: 1px solid var(--mge-line); }
.mge-news-feature-image, .mge-news-image { background: #fff; }
.mge-news-cover-img.mge-news-fit { inset: 0; margin: auto; width: auto !important; height: auto !important; max-width: calc(100% - 36px) !important; max-height: calc(100% - 36px) !important; object-fit: contain; transform: none !important; }
.mge-news-card:hover .mge-news-cover-img.mge-news-fit, .mge-news-feature-image:hover .mge-news-cover-img.mge-news-fit { transform: none !important; }

/* News article: a centered, clean reading layout with a natural-size image. */
body.single-smmp_news,
body.single-smmp_news #page,
body.single-smmp_news #content,
body.single-smmp_news #content > .ast-container { background: #fff !important; }
body.single-smmp_news #content { margin: 0 !important; padding: 0 !important; }
body.single-smmp_news #content > .ast-container { display: block !important; width: 100% !important; max-width: none !important; margin: 0 auto !important; padding: 0 !important; }
body.single-smmp_news #primary.mge-news-single { display: block; float: none; position: relative; left: auto; right: auto; transform: none; width: min(1180px, calc(100% - 64px)) !important; max-width: 1180px !important; margin: 0 auto !important; padding: 32px 0 48px !important; }
body.single-smmp_news .mge-article { margin: 0 !important; padding: 0 !important; background: #fff !important; }
body.single-smmp_news .mge-article-header { max-width: 960px; margin: 0 auto 28px; padding: 25px 0 0; }
body.single-smmp_news .mge-article-header h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.13; }
body.single-smmp_news .mge-article-cover { display: flex; align-items: center; justify-content: center; position: relative; max-width: 100%; margin: 0 auto 32px; padding: 22px; aspect-ratio: auto; min-height: 0; overflow: hidden; background: #fff; border: 1px solid var(--mge-line); border-radius: 15px; }
body.single-smmp_news .mge-article-cover .mge-news-natural { position: static; inset: auto; margin: 0 auto; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 520px !important; object-fit: contain; transform: none !important; box-shadow: none !important; }
body.single-smmp_news .mge-article-content { display: block; max-width: 860px; margin: 0 auto; padding: 0 0 32px; }
.mge-share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--mge-line); border-radius: 10px; background: #fff; margin: 0 0 28px; }
.mge-share-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mge-share-links a, .mge-related-company-link { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--mge-line); border-radius: 6px; color: var(--mge-blue) !important; font-size: 13px; font-weight: 700; }
.mge-share-links a:hover, .mge-related-company-link:hover { border-color: var(--mge-blue); }
.mge-related-company-link { margin-left: auto; }
body.single-smmp_news .mge-news-back { padding-top: 22px; border-top: 1px solid var(--mge-line); }
body.single-smmp_news .mge-news-back a { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 12px 19px; border: 1px solid var(--mge-blue); border-radius: 8px; background: #fff; color: var(--mge-blue) !important; line-height: 1.3; }
body.single-smmp_news .mge-news-back a:hover { background: var(--mge-blue); color: #fff !important; }
body.single-smmp_news .smgroup-site-footer { margin-top: 0 !important; box-shadow: none; }

@media (max-width: 1024px) {
    .mge-wide { width: calc(100vw - 48px); }
    .mge-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mge-company-copy { padding: 29px; }
    .mge-profile-hero { grid-template-columns: 1fr 1fr; }
    .mge-news-feature { grid-template-columns: 1fr .95fr; }
    .mge-feature-copy { padding: 28px; }
}
@media (max-width: 700px) {
    .mge-wide { width: calc(100vw - 32px); }
    .mge-portfolio, .mge-news-hub { padding: 42px 0 55px; }
    .mge-section-heading { padding-bottom: 23px; margin-bottom: 20px; }
    .mge-heading-row { align-items: flex-start; flex-direction: column; gap: 10px; }
    .mge-heading-count { font-size: 19px; }
    .mge-company-row, .mge-profile-hero, .mge-news-feature { grid-template-columns: 1fr; border-radius: 15px; }
    .mge-company-visual { min-height: 235px; }
    .mge-company-copy { padding: 26px 22px; }
    .mge-reverse .mge-visual-link, .mge-reverse .mge-company-copy { order: initial; }
    .mge-company-row:not(.mge-reverse) .mge-visual-link, .mge-company-row.mge-reverse .mge-visual-link { border-left: 0; border-right: 0; border-bottom: 1px solid var(--mge-line); }
    .mge-company-visual:not(.mge-has-photo) .mge-logo-badge { width: min(260px, 78%); padding: 18px; }
    .mge-company-visual:not(.mge-has-photo) .mge-logo { max-height: 115px; }
    body.single-mg_subsidiary #primary.mge-sub-profile { width: calc(100% - 32px) !important; padding: 18px 0 35px !important; }
    body.single-mg_subsidiary .mge-profile-body { padding: 30px 0 26px; gap: 22px; }
    .mge-logo-badge { min-height: 112px; width: min(220px, 72%); padding: 18px 25px; }
    .mge-logo { max-height: 80px; }
    .mge-visual-label { top: 15px; left: 16px; right: 16px; }
    .mge-visual-bottom { bottom: 13px; left: 16px; }
    .mge-has-photo .mge-logo-badge { left: 16px; bottom: 35px; width: 140px; min-height: 62px; }
    .mge-profile-intro { padding: 30px 23px; }
    .mge-profile-body, .mge-article-content { grid-template-columns: 1fr; padding: 32px 0; gap: 24px; }
    .mge-profile-facts { grid-template-columns: 1fr; }
    .mge-profile-facts > div { border-inline-end: 0; border-bottom: 1px solid var(--mge-line); padding: 17px 20px; }
    .mge-profile-facts > div:last-child { border-bottom: 0; }
    .mge-capabilities { padding: 23px; }
    .mge-news-feature-image { min-height: 220px; aspect-ratio: 16/9; }
    .mge-feature-copy { padding: 27px 23px; }
    .mge-news-toolbar { margin-top: 30px; }
    .mge-news-filters { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .mge-news-filters select, .mge-news-filters input { max-width: none; }
    .mge-news-grid { grid-template-columns: 1fr; gap: 17px; }
    .mge-article-header { margin: 12px 0 25px; text-align: left; }
    .mge-article-meta { justify-content: flex-start; }
    .mge-article-cover { min-height: 190px; aspect-ratio: 16/10; border-radius: 13px; }
    body.single-smmp_news #primary.mge-news-single { width: calc(100% - 32px) !important; padding: 18px 0 35px !important; }
    body.single-smmp_news .mge-article-header { text-align: left; padding: 12px 0 0; margin-bottom: 22px; }
    body.single-smmp_news .mge-article-cover { min-height: 0; aspect-ratio: auto; padding: 15px; margin-bottom: 22px; }
    body.single-smmp_news .mge-article-cover .mge-news-natural { max-height: 380px !important; }
    .mge-share-bar { padding: 15px; gap: 10px; }
    .mge-related-company-link { margin-left: 0; }
    .mge-related-heading { align-items: flex-start; }
    .mge-pagination { gap: 8px; flex-wrap: wrap; }
    .mge-sub-profile, .mge-news-single { padding: 24px 0 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .mge-wide *, .mge-wide *::before, .mge-wide *::after { transition: none !important; animation: none !important; }
}

/* Unified Saudi Mais editorial identity — portfolio and news only. */
.mge-wide {
    --mge-blue: #0b3768;
    --mge-ink: #12233a;
    --mge-navy: #082a5d;
    --mge-brand-gradient: linear-gradient(118deg, #04142f 0%, #082a5d 56%, #0b4f9f 100%);
}
.mge-portfolio { padding: clamp(36px, 4.5vw, 64px) 0 54px; }
.mge-section-heading { margin-bottom: 26px; padding-bottom: 0; border-bottom: 0; }
.mge-heading-row { margin: 10px 0 12px; }
.mge-heading-row h1, .mge-heading-row h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 750; line-height: 1.16; letter-spacing: -.035em; }
.mge-section-heading > p { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.65; }
.mge-heading-count { font-size: clamp(20px, 2vw, 30px); }
.mge-company-list { gap: 20px; }
.mge-company-row { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); min-height: 268px; border-radius: 15px; box-shadow: 0 9px 25px rgba(11,55,104,.055); }
.mge-company-row.mge-reverse { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.mge-company-row:not(.mge-reverse) .mge-visual-link,
.mge-company-row.mge-reverse .mge-visual-link { border: 0; }
.mge-company-visual { min-height: 268px; }
.mge-company-copy { padding: clamp(28px, 3.1vw, 44px); }
.mge-company-copy h3 { font-size: clamp(23px, 2.25vw, 32px); font-weight: 750; line-height: 1.22; letter-spacing: -.026em; margin-bottom: 10px; }
.mge-company-copy p { font-size: clamp(15px, 1.15vw, 16px); line-height: 1.65; margin-bottom: 19px; }
.mge-row-top { margin-bottom: 10px; }
.mge-link-row { gap: 10px; }
.mge-link-row .mge-text-link, .mge-link-row .mge-secondary-link,
.mge-news-card .mge-text-link, .mge-profile-aside .mge-text-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 10px 16px; border: 1px solid var(--mge-blue);
    border-radius: 8px; background: var(--mge-blue); color: #fff !important;
    font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap;
    box-shadow: none; transition: background .2s, color .2s, border-color .2s;
}
.mge-link-row .mge-secondary-link { background: #fff; color: var(--mge-blue) !important; }
.mge-link-row .mge-text-link span, .mge-news-card .mge-text-link span, .mge-profile-aside .mge-text-link span {
    display: inline; width: auto; height: auto; flex: none; border: 0; border-radius: 0;
    color: inherit; font-size: 15px; background: transparent; transform: none;
}
.mge-link-row .mge-text-link:hover, .mge-news-card .mge-text-link:hover, .mge-profile-aside .mge-text-link:hover { background: #082a5d; color: #fff !important; border-color: #082a5d; }
.mge-link-row .mge-secondary-link:hover { background: var(--mge-blue); color: #fff !important; }

/* Match the visible logo artwork, not the arbitrary white canvas in its file. */
.mge-company-visual:not(.mge-has-photo) .mge-logo-badge { width: 100%; padding: 28px; }
.mge-logo-frame { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 280px); height: 145px; flex: none; overflow: hidden; background: #fff; }
.mge-logo-frame .mge-logo { display: block; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: none !important; margin: 0 !important; object-fit: contain; box-shadow: none !important; }
.mge-logo-frame.mge-logo-normalized .mge-logo { position: absolute; left: var(--mge-logo-x); top: var(--mge-logo-y); width: var(--mge-logo-w) !important; height: var(--mge-logo-h) !important; max-width: none !important; max-height: none !important; object-fit: fill; }
.mge-company-visual:not(.mge-has-photo) .mge-logo-frame .mge-logo { max-height: none !important; }
.mge-profile-hero .mge-company-visual:not(.mge-has-photo) .mge-logo-frame { width: min(100%, 320px); height: 165px; }
.mge-aside-logo .mge-logo-frame { width: min(100%, 230px); height: 110px; }
.mge-has-photo .mge-logo-frame { width: 100%; height: 54px; }

/* Company detail and highlighted news use the same blue as the existing footer. */
body.single-mg_subsidiary .mge-profile-hero { min-height: 320px; border-radius: 16px; background: #fff; }
body.single-mg_subsidiary .mge-profile-intro { padding: clamp(30px, 3.5vw, 52px); background: var(--mge-brand-gradient); }
body.single-mg_subsidiary .mge-profile-intro h1 { font-size: clamp(27px, 2.8vw, 40px); font-weight: 750; line-height: 1.2; }
body.single-mg_subsidiary .mge-profile-intro p { font-size: 16px; line-height: 1.65; }
.mge-profile-about h2, .mge-capabilities h2 { font-size: clamp(24px, 2.6vw, 34px); }
body.single-mg_subsidiary .mge-subsidiary-back, body.single-smmp_news .mge-news-back { border-top: 0; padding-top: 14px; }
.mge-profile-cta { min-height: 44px; padding: 11px 16px; border: 1px solid #fff; border-radius: 8px; }

.mge-news-hub.mge-wide { padding: 24px 0 44px; }
.mge-news-hub.mge-news-no-heading { padding-top: 0; }
.mge-news-feature { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); min-height: 288px; background: #fff; border: 1px solid var(--mge-line); border-radius: 16px; box-shadow: 0 12px 30px rgba(11,55,104,.08); }
.mge-news-feature-image { background: #fff; }
.mge-feature-copy { padding: clamp(26px, 3.1vw, 44px); background: var(--mge-brand-gradient); }
.mge-feature-copy h3 { font-size: clamp(24px, 2.45vw, 34px); font-weight: 750; line-height: 1.22; margin: 12px 0 12px; letter-spacing: -.024em; }
.mge-feature-copy p { font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.mge-feature-meta { margin-top: 8px; }
.mge-feature-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 19px; padding: 10px 16px; border: 1px solid #fff; border-radius: 8px; background: #fff; color: var(--mge-blue) !important; font-weight: 700; }
.mge-feature-link span, .mge-feature-link:hover span { display: inline; width: auto; height: auto; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: 15px; }
.mge-feature-link:hover { background: #e7eef6; color: var(--mge-blue) !important; }
.mge-news-toolbar { margin: 32px 0 19px; }
.mge-news-toolbar h3 { font-size: clamp(21px, 2vw, 27px); }
.mge-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mge-news-card h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 750; line-height: 1.3; }
.mge-news-card .mge-news-image { aspect-ratio: 16/10; }
.mge-news-grid > .mge-news-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr); }
.mge-news-grid > .mge-news-card:only-child .mge-news-image { min-height: 190px; aspect-ratio: auto; }
.mge-news-grid > .mge-news-card:only-child .mge-news-card-body { justify-content: center; }
.mge-news-grid > .mge-news-card:only-child .mge-text-link { margin-top: 0; }
body.single-smmp_news .mge-article-header h1 { font-size: clamp(28px, 3vw, 42px); font-weight: 750; line-height: 1.2; letter-spacing: -.028em; }
body.single-smmp_news .mge-article-cover { box-shadow: none; padding: 18px; }
body.single-smmp_news .mge-article-content { max-width: 900px; }

@media (max-width: 1024px) {
    .mge-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mge-company-row, .mge-company-row.mge-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .mge-portfolio { padding: 36px 0 44px; }
    .mge-company-row, .mge-company-row.mge-reverse, .mge-news-feature { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .mge-company-visual { min-height: 182px; }
    .mge-company-visual.mge-has-photo { min-height: 235px; }
    .mge-company-copy { padding: 22px 22px 25px; }
    .mge-company-visual:not(.mge-has-photo) .mge-logo-badge { padding: 18px; }
    .mge-logo-frame, .mge-profile-hero .mge-company-visual:not(.mge-has-photo) .mge-logo-frame { width: min(100%, 240px); height: 122px; }
    .mge-has-photo .mge-logo-frame { width: 100%; height: 50px; }
    .mge-news-feature-image { min-height: 190px; aspect-ratio: 16/10; }
    .mge-feature-copy { padding: 24px; }
    .mge-news-grid { grid-template-columns: 1fr; }
    .mge-news-grid > .mge-news-card:only-child { grid-template-columns: 1fr; }
    .mge-news-grid > .mge-news-card:only-child .mge-news-image { aspect-ratio: 16/10; min-height: 0; }
    .mge-link-row .mge-text-link, .mge-link-row .mge-secondary-link { padding: 10px 12px; font-size: 13px; }
    .mge-news-hub.mge-wide { padding: 18px 0 34px; }
}

/* 2.5.1 — connected company portfolio, inspired by the Our Journey route.
   This is a portfolio map, not a dated timeline. The older rows remain available. */
.mge-portfolio-network {
    --mge-network-gap: clamp(76px, 8vw, 112px);
    --mge-network-rail: 12px;
    padding: clamp(44px, 5vw, 72px) clamp(24px, 5vw, 68px) 42px;
    margin: 20px 0 40px;
    border: 1px solid var(--mge-line);
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0%, #fff 0%, #f8fafc 45%, #edf3f9 100%);
}
.mge-portfolio-network .mge-section-heading { max-width: 820px; margin: 0 auto 36px; padding: 0; text-align: center; }
.mge-portfolio-network .mge-kicker { justify-content: center; }
.mge-portfolio-network .mge-kicker::after { content: ''; width: 25px; height: 2px; background: var(--mge-gold); }
.mge-portfolio-network .mge-heading-row { flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 15px; row-gap: 10px; }
.mge-portfolio-network .mge-heading-row h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 750; }
.mge-portfolio-network .mge-heading-count { gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid #e3d6bc; background: #fbf7ef; color: #94681e; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.mge-portfolio-network .mge-heading-count small { font-size: 10px; color: #84652f; }
.mge-portfolio-network .mge-section-heading > p { max-width: 720px; margin: 0 auto; }
.mge-network-origin { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; margin: 0 auto; padding: 14px 22px; border: 1px solid #274b72; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #071f3c, #10457b); box-shadow: 0 12px 25px #0b37682b; }
.mge-network-origin-symbol { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #ffffff0e; color: #e8c27f; }
.mge-network-origin-symbol svg { display: block; width: 30px; height: 30px; }
.mge-network-origin strong, .mge-network-origin div > span { display: block; }
.mge-network-origin strong { font-size: 17px; letter-spacing: .075em; line-height: 1.3; font-weight: 750; }
.mge-network-origin div > span { margin-top: 3px; color: #d5e2f0; font-size: 12px; line-height: 1.3; }

.mge-network-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--mge-network-gap); row-gap: 26px; padding: 32px 0; align-items: stretch; isolation: isolate; }
.mge-network-grid::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: var(--mge-network-rail); border: 2px solid #d1dceb; border-radius: 12px; background: repeating-linear-gradient(to bottom, transparent 0 7px, #e7c27a 7px 10px, transparent 10px 17px) center / 1.5px 100% no-repeat, #143b66; box-sizing: content-box; }
.mge-network-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; background: #fff; border: 1px solid #dce5ee; border-radius: 16px; box-shadow: 0 12px 28px #0b37680d; transition: border-color .2s, box-shadow .2s; }
.mge-network-card:hover, .mge-network-card:focus-within { border-color: #c79a45; box-shadow: 0 15px 34px #0b376816; }
.mge-network-card::before { content: ''; position: absolute; top: 50%; height: 2px; width: calc(var(--mge-network-gap) / 2); background: #bf9a59; z-index: -1; }
.mge-network-card:nth-child(odd)::before { left: 100%; }
.mge-network-card:nth-child(even)::before { right: 100%; }
.mge-network-node { position: absolute; z-index: 2; top: 50%; transform: translate(-50%, -50%); width: 25px; height: 25px; border: 3px solid #c79a45; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #f4f7fa; pointer-events: none; }
.mge-network-card:nth-child(odd) .mge-network-node { left: calc(100% + var(--mge-network-gap) / 2); }
.mge-network-card:nth-child(even) .mge-network-node { left: calc(var(--mge-network-gap) / -2); display: none; }
.mge-network-node::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--mge-blue); }

.mge-network-card .mge-visual-link { flex: none; display: block; width: 100%; height: auto; min-height: 0; border-radius: 15px 15px 0 0; }
.mge-network-card .mge-company-visual { height: 135px; min-height: 0; background-color: #fff; }
.mge-network-card .mge-company-visual:not(.mge-has-photo) .mge-logo-badge { width: 100%; min-height: 0; padding: 20px; }
.mge-network-card .mge-company-visual:not(.mge-has-photo) .mge-logo-frame { width: min(100%, 210px); height: 86px; }
.mge-network-card .mge-company-visual.mge-has-photo { height: 190px; min-height: 0; }
.mge-network-card .mge-has-photo .mge-logo-badge { bottom: 15px; left: 15px; width: min(148px, 53%); min-height: 0; padding: 9px 12px; }
.mge-network-card .mge-has-photo .mge-logo-frame { height: 50px; }
.mge-network-card .mge-visual-label, .mge-network-card .mge-visual-bottom { display: none; }
.mge-network-card .mge-company-copy { flex: 1; justify-content: flex-start; padding: 8px clamp(20px, 2.4vw, 34px) 27px; }
.mge-network-card:has(.mge-has-photo) .mge-company-copy { padding-top: 24px; }
.mge-network-card .mge-row-top { gap: 8px; margin-bottom: 10px; font-size: 10px; letter-spacing: .08em; }
.mge-network-card .mge-index { padding: 4px 8px; border-radius: 5px; background: #f6efdf; color: #94681e; font-size: 12px; line-height: 1.25; }
.mge-network-card .mge-company-copy h3 { margin: 0 0 9px; color: var(--mge-ink); font-size: clamp(19px, 1.8vw, 25px); line-height: 1.28; font-weight: 720; letter-spacing: -.015em; overflow-wrap: anywhere; }
.mge-network-card .mge-company-copy p { font-size: 15px; line-height: 1.65; margin: 0 0 19px; overflow-wrap: anywhere; }
.mge-network-card .mge-fact-chips { margin-bottom: 17px; }
.mge-network-card .mge-link-row { margin-top: auto; gap: 8px; }
.mge-network-card .mge-link-row .mge-text-link, .mge-network-card .mge-link-row .mge-secondary-link { font-size: 13px; min-height: 42px; padding: 10px 13px; white-space: normal; text-align: center; }
.mge-network-end { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 8px auto 0; color: var(--mge-blue); font-size: 12px; font-weight: 700; }
.mge-network-end > span { width: 12px; height: 12px; border: 3px solid #c79a45; background: #fff; border-radius: 50%; }

@media (max-width: 850px) {
    .mge-portfolio-network { --mge-network-gap: 62px; padding-right: 20px; padding-left: 20px; }
    .mge-network-card .mge-company-copy { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 700px) {
    .mge-portfolio-network { --mge-network-rail: 8px; --mge-network-mobile-rail: 19px; --mge-network-mobile-offset: 39px; width: calc(100vw - 24px); padding: 38px 13px 30px; border-radius: 16px; margin: 14px 0 28px; }
    .mge-portfolio-network .mge-section-heading { margin-bottom: 26px; }
    .mge-portfolio-network .mge-heading-row { flex-direction: column; }
    .mge-network-origin { margin-left: 0; padding: 11px 14px; gap: 9px; }
    .mge-network-origin-symbol { width: 30px; height: 30px; }
    .mge-network-origin-symbol svg { width: 24px; height: 24px; }
    .mge-network-origin strong { font-size: 14px; }
    .mge-network-grid { grid-template-columns: minmax(0, 1fr); padding-left: var(--mge-network-mobile-offset); row-gap: 18px; padding-top: 22px; padding-bottom: 20px; }
    .mge-network-grid::before { left: var(--mge-network-mobile-rail); }
    .mge-network-card:nth-child(n)::before { right: 100%; left: auto; width: calc(var(--mge-network-mobile-offset) - var(--mge-network-mobile-rail)); }
    .mge-network-card:nth-child(n) .mge-network-node { display: block; left: calc(var(--mge-network-mobile-rail) - var(--mge-network-mobile-offset)); width: 18px; height: 18px; border-width: 2px; box-shadow: 0 0 0 3px #f4f7fa; }
    .mge-network-node::after { inset: 3px; }
    .mge-network-card .mge-company-visual { height: 110px; }
    .mge-network-card .mge-company-visual:not(.mge-has-photo) .mge-logo-frame { width: min(100%, 172px); height: 72px; }
    .mge-network-card .mge-company-visual.mge-has-photo { height: 155px; }
    .mge-network-card .mge-company-copy { padding: 8px 15px 19px; }
    .mge-network-card .mge-company-copy p { font-size: 14px; }
    .mge-network-card .mge-link-row a { max-width: 100%; }
    .mge-network-end { justify-content: flex-start; padding-left: 13px; }
}
@media (prefers-reduced-motion: reduce) { .mge-network-card { transition: none; } }

/* 2.5.2 — a clean, open corporate portfolio without the shaded container. */
.mge-portfolio-network {
    --mge-network-gap: clamp(48px, 5vw, 78px);
    --mge-network-rail: 2px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 52px 0 48px;
    margin: 0;
}
.mge-portfolio-network .mge-section-heading { margin-bottom: 28px; }
.mge-network-origin { padding: 11px 24px; gap: 12px; background: #fff; color: var(--mge-blue); border: 1px solid #e2d3b6; border-radius: 12px; box-shadow: 0 5px 18px #0b37680a; }
.mge-network-origin-symbol { color: #a87b30; background: #faf5ec; }
.mge-network-origin div > span { color: var(--mge-slate); }
.mge-network-grid { row-gap: 24px; padding-top: 28px; padding-bottom: 24px; }
.mge-network-grid::before { width: var(--mge-network-rail); border: 0; border-radius: 4px; background: linear-gradient(#c9a665, #e7d9be); box-sizing: border-box; }
.mge-network-card { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); align-items: center; min-height: 232px; border-radius: 14px; border-color: #e0e6ed; box-shadow: 0 6px 24px #0b376808; }
.mge-network-card::before { height: 1px; background: #d1b479; }
.mge-network-node { width: 16px; height: 16px; border: 2px solid #c79a45; background: #fff; box-shadow: 0 0 0 4px #fff; }
.mge-network-node::after { inset: 3px; background: #c79a45; }
.mge-network-card .mge-visual-link { height: auto; border-radius: 14px 0 0 14px; }
.mge-network-card .mge-company-visual { height: 142px; }
.mge-network-card .mge-company-visual:not(.mge-has-photo) .mge-logo-badge { padding: 12px; }
.mge-network-card .mge-company-visual:not(.mge-has-photo) .mge-logo-frame { width: min(100%, 175px); height: 84px; }
.mge-network-card .mge-company-copy { height: 100%; padding: 24px 24px 22px 6px; justify-content: center; }
.mge-network-card .mge-company-copy h3 { font-size: clamp(19px, 1.55vw, 23px); font-weight: 700; }
.mge-network-card .mge-company-copy p { font-size: 14px; line-height: 1.65; margin-bottom: 15px; }
.mge-network-card .mge-row-top { margin-bottom: 8px; }
.mge-network-card .mge-index { background: transparent; padding: 0; }
.mge-network-card .mge-link-row { margin-top: 0; }
.mge-network-card .mge-link-row .mge-text-link, .mge-network-card .mge-link-row .mge-secondary-link { min-height: 39px; padding: 8px 11px; font-size: 12px; }
.mge-network-card:has(.mge-has-photo) { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.mge-network-card:has(.mge-has-photo) .mge-visual-link { border-radius: 14px 14px 0 0; }
.mge-network-card:has(.mge-has-photo) .mge-company-copy { padding: 20px 24px 24px; }
.mge-network-end { color: var(--mge-slate); font-weight: 600; }
@media (max-width: 1100px) {
    .mge-network-card { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
    .mge-network-card .mge-visual-link { border-radius: 14px 14px 0 0; }
    .mge-network-card .mge-company-visual { height: 114px; }
    .mge-network-card .mge-company-copy { padding: 9px 22px 23px; justify-content: flex-start; }
    .mge-network-card .mge-link-row { margin-top: auto; }
    .mge-network-card .mge-company-visual:not(.mge-has-photo) .mge-logo-frame { width: min(100%, 190px); height: 78px; }
}
@media (max-width: 700px) {
    .mge-portfolio-network { --mge-network-rail: 2px; --mge-network-mobile-rail: 15px; --mge-network-mobile-offset: 32px; padding: 36px 0 28px; }
    .mge-network-origin { padding: 9px 14px; }
    .mge-network-grid { row-gap: 16px; }
    .mge-network-card:nth-child(n) .mge-network-node { width: 14px; height: 14px; border-width: 2px; box-shadow: 0 0 0 3px #fff; }
    .mge-network-card .mge-company-copy { padding: 6px 15px 20px; }
    .mge-network-card .mge-company-visual { height: 106px; }
    .mge-network-card .mge-company-visual:not(.mge-has-photo) .mge-logo-frame { width: min(100%, 170px); height: 74px; }
    .mge-network-end { padding-left: 9px; }
}

/* 2.5.4 — winding road portfolio. Each row has a real connected route segment,
   with one independent branch per company and a graceful odd final row. */
.mge-portfolio-road { --mge-road-width: clamp(104px, 10vw, 142px); }
.mge-portfolio-road .mge-network-origin { border-color: #d9be87; }
.mge-road-grid { display: block; padding: 0; }
.mge-road-grid::before { content: none; }
.mge-road-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--mge-road-width) minmax(0, 1fr); align-items: stretch; min-width: 0; isolation: isolate; }
.mge-road-track { position: relative; grid-column: 2; grid-row: 1; align-self: stretch; min-height: 100%; pointer-events: none; }
.mge-road-track svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.mge-road-track path { fill: none; vector-effect: non-scaling-stroke; }
.mge-road-branch { stroke: #c79a45; stroke-width: 1.4; }
.mge-road-edge { stroke: #d9bc7b; stroke-width: 21; }
.mge-road-base { stroke: #143b66; stroke-width: 16; }
.mge-road-dash { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 6 8; opacity: .92; }
.mge-road-pin { position: absolute; z-index: 2; width: 28px; height: 28px; border: 3px solid #c79a45; border-radius: 50%; background: white; box-shadow: 0 0 0 3px #fff, 0 4px 10px #0b37681a; transform: translate(-50%, -50%); }
.mge-road-pin::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #143b66; }
.mge-road-pin-left { top: 32%; left: 24%; }
.mge-road-pin-right { top: 68%; left: 76%; }
.mge-road-track-single .mge-road-pin-left { top: 50%; }
.mge-road-row > .mge-network-card { min-width: 0; min-height: 212px; grid-row: 1; align-self: stretch; }
.mge-road-row > .mge-road-company-left { grid-column: 1; margin: 12px 0 36px; }
.mge-road-row > .mge-road-company-right { grid-column: 3; margin: 36px 0 12px; }
.mge-road-row-single > .mge-road-company-left { margin: 12px 0; }
.mge-road-row > .mge-network-card::before, .mge-road-row > .mge-network-card .mge-network-node { display: none; }
.mge-road-grid .mge-network-card .mge-company-copy h3 { font-size: clamp(18px, 1.65vw, 23px); }
.mge-portfolio-road .mge-network-end { margin-top: 9px; }
.mge-portfolio-road .mge-network-end > span { background: #143b66; border-color: #d9bc7b; width: 15px; height: 15px; }
@media (max-width: 1100px) and (min-width: 701px) {
    .mge-portfolio-road { --mge-road-width: 90px; }
    .mge-road-edge { stroke-width: 18; }
    .mge-road-base { stroke-width: 14; }
    .mge-road-pin { width: 24px; height: 24px; }
    .mge-road-pin::after { inset: 5px; }
}
@media (max-width: 700px) {
    .mge-portfolio-road { --mge-network-mobile-rail: 16px; --mge-network-mobile-offset: 38px; }
    .mge-road-grid { padding: 16px 0 10px var(--mge-network-mobile-offset); }
    .mge-road-grid::before { content: ''; left: var(--mge-network-mobile-rail); top: 0; bottom: 0; width: 12px; border: 1.5px solid #d9bc7b; background: repeating-linear-gradient(to bottom, transparent 0 6px, #fff 6px 9px, transparent 9px 15px) center / 1px 100% no-repeat, #143b66; }
    .mge-road-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
    .mge-road-row:last-child { margin-bottom: 0; }
    .mge-road-track { display: none; }
    .mge-road-row > .mge-road-company-left, .mge-road-row > .mge-road-company-right, .mge-road-row-single > .mge-road-company-left { grid-column: 1; grid-row: auto; margin: 0; min-height: 0; }
    .mge-road-row > .mge-network-card::before { display: block; left: auto; right: 100%; top: 50%; height: 1px; width: calc(var(--mge-network-mobile-offset) - var(--mge-network-mobile-rail)); }
    .mge-road-row > .mge-network-card .mge-network-node { display: block; left: calc(var(--mge-network-mobile-rail) - var(--mge-network-mobile-offset)); width: 17px; height: 17px; border: 2px solid #c79a45; box-shadow: 0 0 0 2px #fff; }
    .mge-road-row > .mge-network-card .mge-network-node::after { background: #143b66; inset: 3px; }
    .mge-portfolio-road .mge-network-end { padding-left: 8px; }
}

/* 2.5.5 — newsroom: editorial spotlight, compact discovery controls and clean story cards. */
.mge-news-hub.mge-wide { width: 100%; max-width: 1280px; padding: clamp(24px, 4vw, 48px) 0 52px; }
.mge-news-hub.mge-news-no-heading { padding-top: 0; }
.mge-news-hub .mge-news-heading { padding: 0 0 20px; margin: 0 0 24px; border-bottom: 1px solid var(--mge-line); }
.mge-news-hub .mge-news-heading .mge-heading-row { margin: 10px 0 10px; }
.mge-news-hub .mge-news-heading h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 760; line-height: 1.16; letter-spacing: -.035em; }
.mge-news-hub .mge-news-heading > p { max-width: 760px; font-size: 16px; line-height: 1.65; }
.mge-news-hub .mge-news-feature { position: relative; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: stretch; gap: clamp(15px, 2.5vw, 34px); min-height: 0; padding: clamp(20px, 2.65vw, 36px); background: #fff; border: 1px solid #dce4ed; border-top: 3px solid var(--mge-gold); border-radius: 16px; box-shadow: 0 10px 34px rgba(8,40,71,.055); }
.mge-news-hub .mge-feature-copy { min-width: 0; background: transparent; padding: 2px 0 2px 4px; justify-content: center; }
.mge-news-hub .mge-feature-label { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 5px; color: #815d23; background: #f7f0e3; font-size: 11px; line-height: 1.25; font-weight: 750; letter-spacing: .09em; }
.mge-feature-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mge-gold); }
.mge-news-hub .mge-feature-meta { margin-top: 0; color: #596c80; font-size: 13px; font-weight: 500; }
.mge-news-hub .mge-feature-category { margin-top: 16px; color: var(--mge-blue); font-weight: 650; }
.mge-news-hub .mge-feature-copy h3 { color: var(--mge-ink); font-size: clamp(25px, 2.6vw, 37px); font-weight: 760; line-height: 1.22; margin: 9px 0 12px; letter-spacing: -.032em; overflow-wrap: anywhere; }
.mge-news-hub .mge-feature-copy h3 a { color: inherit !important; }
.mge-news-hub .mge-feature-copy h3 a:hover { color: var(--mge-blue) !important; }
.mge-news-hub .mge-feature-copy p { color: var(--mge-slate); font-size: 15px; line-height: 1.7; margin: 0 0 20px; }
.mge-feature-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; width: 100%; margin-top: 2px; }
.mge-news-hub .mge-feature-link { min-height: 44px; padding: 11px 17px; margin: 0; background: var(--mge-blue); border: 1px solid var(--mge-blue); color: #fff !important; border-radius: 7px; font-size: 14px; line-height: 1.35; }
.mge-news-hub .mge-feature-link:hover { background: #082847; border-color: #082847; color: #fff !important; }
.mge-news-hub .mge-news-feature-image { min-width: 0; min-height: 240px; height: 100%; aspect-ratio: auto; background: #fff; border: 1px solid var(--mge-line); border-radius: 12px; overflow: hidden; }
.mge-news-hub .mge-news-feature-image .mge-news-fit { max-width: calc(100% - 42px) !important; max-height: calc(100% - 42px) !important; }
.mge-news-hub .mge-news-toolbar { display: grid; gap: 14px; margin: 36px 0 20px; }
.mge-news-toolbar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mge-news-hub .mge-news-toolbar-heading h3 { font-size: clamp(22px, 2.1vw, 29px); color: var(--mge-ink); font-weight: 740; letter-spacing: -.025em; }
.mge-news-result-count { flex: none; color: var(--mge-slate); font-size: 13px; font-weight: 550; }
.mge-news-hub .mge-news-filters { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid #e2e8ef; background: #f7f9fc; border-radius: 10px; }
.mge-news-hub .mge-news-filters > label { display: grid; gap: 5px; min-width: 0; }
.mge-filter-label { color: var(--mge-slate); font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.mge-news-hub .mge-news-filters select, .mge-news-hub .mge-news-filters input { margin: 0; min-width: 0; max-width: none; width: 100%; min-height: 42px; padding: 8px 12px; font-size: 14px; border-radius: 6px; border-color: #d6dfe9; text-overflow: ellipsis; }
.mge-news-hub .mge-news-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 17px; font-size: 14px; line-height: 1.3; border-radius: 6px; }
.mge-news-hub .mge-reset { justify-self: start; grid-column: 1 / -1; padding: 0 2px; text-decoration: underline !important; font-size: 12px; }
.mge-news-grid { gap: 18px; }
.mge-news-hub .mge-news-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mge-news-card { padding: 12px; border-radius: 13px; }
.mge-news-card .mge-news-image { background: #fff; aspect-ratio: 16/10; border: 1px solid #e9edf2; border-radius: 8px; }
.mge-news-card .mge-news-image .mge-news-fit { max-width: calc(100% - 30px) !important; max-height: calc(100% - 30px) !important; }
.mge-news-card .mge-news-card-body { min-width: 0; padding: 17px 9px 7px; }
.mge-news-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; width: 100%; margin-bottom: 12px; color: var(--mge-slate); font-size: 12px; }
.mge-news-category { padding: 4px 8px; background: #f6efe2; color: #815d23; border-radius: 4px; line-height: 1.4; font-size: 11px; font-weight: 700; }
.mge-news-card h3 { margin-bottom: 9px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 720; line-height: 1.3; overflow-wrap: anywhere; }
.mge-news-card p { color: var(--mge-slate); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.mge-news-card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding-top: 13px; width: 100%; border-top: 1px solid var(--mge-line); }
.mge-news-card-company { min-width: 0; color: var(--mge-slate); font-size: 12px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.mge-news-card .mge-news-card-bottom .mge-text-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; border: 1px solid #d3dfec; border-radius: 6px; margin: 0; padding: 8px 10px; background: #fff; color: var(--mge-blue) !important; font-weight: 700; font-size: 12px; line-height: 1.25; white-space: nowrap; }
.mge-news-card .mge-news-card-bottom .mge-text-link span { display: inline; width: auto; height: auto; border: 0; background: none; color: inherit; }
.mge-news-card .mge-news-card-bottom .mge-text-link:hover { background: var(--mge-blue); border-color: var(--mge-blue); color: #fff !important; }
.mge-news-grid > .mge-news-card:only-child { grid-template-columns: minmax(0, .48fr) minmax(0, 1fr); gap: 15px; }
.mge-news-grid > .mge-news-card:only-child .mge-news-image { min-height: 176px; }
.mge-news-grid > .mge-news-card:only-child .mge-news-card-body { padding: 8px 14px 8px 4px; }
.mge-news-hub .mge-news-empty-compact { padding: 23px; text-align: left; }
.mge-news-hub .mge-news-empty-compact h3 { font-size: 18px; margin: 0 0 5px; }
@media (max-width: 900px) {
    .mge-news-hub .mge-feature-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
    .mge-news-hub .mge-news-feature { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
    .mge-news-hub .mge-news-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .mge-news-hub.mge-wide { padding: 22px 0 36px; }
    .mge-news-hub.mge-news-no-heading { padding-top: 0; }
    .mge-news-hub .mge-news-heading { margin-bottom: 18px; padding-bottom: 16px; }
    .mge-news-hub .mge-news-feature { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 17px; }
    .mge-news-hub .mge-news-feature-image { grid-row: 1; aspect-ratio: 16/10; min-height: 0; height: auto; }
    .mge-news-hub .mge-feature-copy { padding: 2px 0 4px; }
    .mge-news-hub .mge-feature-category { margin-top: 12px; }
    .mge-news-hub .mge-feature-copy h3 { font-size: 25px; }
    .mge-news-hub .mge-news-toolbar { margin-top: 26px; }
    .mge-news-hub .mge-news-filters { padding: 11px; gap: 9px; }
    .mge-news-hub .mge-news-grid-two, .mge-news-hub .mge-news-grid, .mge-news-grid > .mge-news-card:only-child { grid-template-columns: minmax(0, 1fr); }
    .mge-news-grid > .mge-news-card:only-child .mge-news-image { min-height: 0; aspect-ratio: 16/10; }
    .mge-news-grid > .mge-news-card:only-child .mge-news-card-body { padding: 15px 9px 7px; }
}
