/* =========================================
   FOOTER
   ========================================= */
.site-footer .widget {
  margin-bottom: 0;
}
.site-footer .footer-widget-area ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.site-footer .footer-widget-area li {
  margin: 0 0 8px;
  padding: 0;
}
.site-footer .footer-widget-area p {
  margin: 0 0 8px;
}
.site-footer .footer-widget-area h2,
.site-footer .footer-widget-area h3,
.site-footer .footer-widget-area h4 {
  margin: 0 0 16px;
}
.site-footer .footer-widget-area .wp-block-image {
  margin: 0 0 16px;
}
.site-footer .site-middle-footer-inner-wrap {
  align-items: start;
}
@media (min-width: 1025px) {
  .site-footer .footer-navigation ul {
    flex-wrap: nowrap;
  }
  .site-footer .footer-navigation li {
    white-space: nowrap;
  }
}

/* =========================================
   CONTACT PAGE: FORM CARD
   ========================================= */
.wp-block-jetpack-contact-form {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 42, 74, 0.10);
  padding: 40px !important;
}
@media (max-width: 767px) {
  .wp-block-jetpack-contact-form {
    padding: 24px !important;
  }
}

/* Every field full width */
.wp-block-jetpack-contact-form [class*="width-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
}

/* Labels */
.wp-block-jetpack-contact-form label {
  color: #0F2A4A;
  font-size: 14px;
  font-weight: 600;
}

/* Text boxes */
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="url"],
.wp-block-jetpack-contact-form input[type="number"],
.wp-block-jetpack-contact-form textarea {
  width: 100% !important;
  background: #F7F9FC !important;
  border: 1px solid #E3E7EE !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.wp-block-jetpack-contact-form input[type="text"]:focus,
.wp-block-jetpack-contact-form input[type="email"]:focus,
.wp-block-jetpack-contact-form input[type="url"]:focus,
.wp-block-jetpack-contact-form input[type="number"]:focus,
.wp-block-jetpack-contact-form textarea:focus {
  background: #FFFFFF !important;
  border-color: #0F2A4A !important;
  box-shadow: 0 0 0 4px #F9E1E6 !important;
  outline: none;
}

/* Dropdowns and phone: one border on the outer box only */
.wp-block-jetpack-contact-form [class*="select-wrapper"],
.wp-block-jetpack-contact-form [class*="phone-wrapper"] {
  background: #F7F9FC !important;
  border: 1px solid #E3E7EE !important;
  border-radius: 8px !important;
}
.wp-block-jetpack-contact-form [class*="select-wrapper"] select,
.wp-block-jetpack-contact-form [class*="phone-wrapper"] input,
.wp-block-jetpack-contact-form [class*="phone-wrapper"] select {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Checkboxes */
.wp-block-jetpack-contact-form input[type="checkbox"] {
  accent-color: #0F2A4A;
  width: auto !important;
}

/* Submit button */
.wp-block-jetpack-contact-form .wp-block-button,
.wp-block-jetpack-contact-form .wp-block-jetpack-button {
  width: 100%;
}
.wp-block-jetpack-contact-form button[type="submit"],
.wp-block-jetpack-contact-form .wp-block-button__link {
  width: 100%;
  background: #F4C7D0 !important;
  color: #0F2A4A !important;
  border-radius: 8px !important;
  padding: 16px !important;
  font-size: 17px !important;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.wp-block-jetpack-contact-form button[type="submit"]:hover,
.wp-block-jetpack-contact-form .wp-block-button__link:hover {
  background: #0F2A4A !important;
  color: #FFFFFF !important;
}

/* =========================================
   CONTACT PAGE: NAVY SIDEBAR
   (needs the "contact-sidebar" nickname on the Section)
   ========================================= */
.contact-sidebar > .kt-inside-inner-col {
  border-radius: 16px;
}
@media (min-width: 1025px) {
  .contact-sidebar {
    position: sticky;
    top: 110px;
    align-self: flex-start;
  }
}
.contact-sidebar a,
.contact-sidebar a:hover {
  color: #FFFFFF;
  text-decoration: none !important;
}

/* Icon list: white text, pink on hover */
.contact-sidebar .kt-svg-icon-list-text,
.contact-sidebar .kt-svg-icon-list-item-wrap,
.contact-sidebar .kt-svg-icon-list-item-wrap a {
  color: #FFFFFF !important;
  font-weight: 400;
}
.contact-sidebar .kt-svg-icon-list-item-wrap a:hover {
  color: #F4C7D0 !important;
}
.contact-sidebar .kt-svg-icon-list-item-wrap {
  margin-bottom: 14px;
}

/* Numbered steps (normal list only) */
.contact-sidebar ul.wp-block-list,
.contact-sidebar ol.wp-block-list {
  list-style: none !important;
  counter-reset: step;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.contact-sidebar .wp-block-list > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
  line-height: 1.5;
  list-style: none !important;
}
.contact-sidebar .wp-block-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F4C7D0;
  color: #0F2A4A;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}/* Consent checkbox: back to a normal tick box */
.wp-block-jetpack-contact-form input[type="checkbox"],
.wp-block-jetpack-contact-form [class*="consent"] input {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  padding: 0 !important;
  margin: 3px 10px 0 0 !important;
}/* =========================================
   THANK YOU PAGE
   ========================================= */
.mg-thanks {
  background: linear-gradient(135deg, #F9E1E6 0%, #FFFFFF 70%);
  padding: 96px 24px;
}
.mg-thanks__inner {
  max-width: 820px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 42, 74, 0.10);
  padding: 56px 48px;
  text-align: center;
}
.mg-thanks__tick {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #0F2A4A;
  color: #F4C7D0;
  font-size: 36px;
  font-weight: 700;
  line-height: 72px;
}
.mg-thanks__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0F2A4A;
  margin: 0 0 8px;
}
.mg-thanks__title {
  font-size: 40px;
  line-height: 1.2;
  color: #0F2A4A;
  margin: 0 0 16px;
}
.mg-thanks__text {
  font-size: 18px;
  color: #33415C;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Steps */
.mg-thanks__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 40px;
}
.mg-thanks__step {
  background: #F7F9FC;
  border-radius: 12px;
  padding: 20px 12px;
}
.mg-thanks__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F4C7D0;
  color: #0F2A4A;
  font-weight: 700;
  margin-bottom: 10px;
}
.mg-thanks__step--done span {
  background: #0F2A4A;
  color: #F4C7D0;
}
.mg-thanks__step p {
  margin: 0;
  font-size: 14px;
  color: #33415C;
  line-height: 1.4;
}

/* Buttons */
.mg-thanks__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.mg-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.mg-btn--primary {
  background: #0F2A4A;
  color: #FFFFFF !important;
  border: 2px solid #0F2A4A;
}
.mg-btn--primary:hover {
  background: #1C3D66;
  border-color: #1C3D66;
}
.mg-btn--outline {
  background: transparent;
  color: #0F2A4A !important;
  border: 2px solid #0F2A4A;
}
.mg-btn--outline:hover {
  background: #0F2A4A;
  color: #FFFFFF !important;
}

/* Contact line */
.mg-thanks__contact {
  font-size: 14px;
  color: #5B6577;
  margin: 0;
}
.mg-thanks__contact a {
  color: #0F2A4A;
  font-weight: 600;
  text-decoration: none;
}
.mg-thanks__contact a:hover {
  color: #1C3D66;
  text-decoration: underline;
}

/* Phones */
@media (max-width: 767px) {
  .mg-thanks { padding: 48px 16px; }
  .mg-thanks__inner { padding: 36px 20px; }
  .mg-thanks__title { font-size: 28px; }
  .mg-thanks__steps { grid-template-columns: 1fr 1fr; }
}/* =========================================
   MORALIS PAGE DESIGN SYSTEM (all pages)
   ========================================= */
.mg-page { color: #33415C; }
.mg-page * { box-sizing: border-box; }
.mg-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mg-label {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #0F2A4A; margin: 0 0 10px;
}
.mg-page h1, .mg-page h2, .mg-page h3 { color: #0F2A4A; }
.mg-page p { line-height: 1.7; }
.mg-page a { text-decoration: none; }

/* Hero */
.mg-hero {
  background: linear-gradient(135deg, #F9E1E6 0%, #FDF3F5 55%, #FFFFFF 100%);
  padding: 80px 0;
}
.mg-hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
}
.mg-hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 18px; }
.mg-hero__lead { font-size: 18px; margin: 0 0 28px; max-width: 560px; }
.mg-hero__img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 42, 74, 0.18);
  display: block;
}
.mg-hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.mg-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.mg-chip {
  background: #FFFFFF; border: 1px solid #F4C7D0; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: #0F2A4A;
}
.mg-chip::before { content: "\2713\FE0E  "; color: #D98A9A; }

/* Buttons (shared) */
.mg-btn {
  display: inline-block; padding: 14px 26px; border-radius: 6px;
  font-weight: 600; font-size: 15px; text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mg-btn--primary { background: #0F2A4A; color: #FFFFFF !important; border: 2px solid #0F2A4A; }
.mg-btn--primary:hover { background: #1C3D66; border-color: #1C3D66; }
.mg-btn--outline { background: transparent; color: #0F2A4A !important; border: 2px solid #0F2A4A; }
.mg-btn--outline:hover { background: #0F2A4A; color: #FFFFFF !important; }
.mg-btn--pink { background: #F4C7D0; color: #0F2A4A !important; border: 2px solid #F4C7D0; }
.mg-btn--pink:hover { background: #FFFFFF; border-color: #FFFFFF; }
.mg-btn--ghost { background: transparent; color: #FFFFFF !important; border: 2px solid #FFFFFF; }
.mg-btn--ghost:hover { background: #FFFFFF; color: #0F2A4A !important; }

/* Sections */
.mg-section { padding: 88px 0; }
.mg-section--tint { background: #EEF3F8; }
.mg-section--pink { background: #F9E1E6; }
.mg-head { max-width: 720px; margin: 0 0 48px; }
.mg-head--center { margin: 0 auto 48px; text-align: center; }
.mg-head h2 { font-size: 36px; line-height: 1.2; margin: 0 0 14px; }
.mg-head p { font-size: 17px; margin: 0; }

/* Split: text + image */
.mg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mg-split h2 { font-size: 34px; line-height: 1.2; margin: 0 0 18px; }
.mg-split img {
  width: 100%; height: 400px; object-fit: cover;
  border-radius: 20px; display: block;
}

/* Cards */
.mg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mg-card {
  background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: 16px;
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.mg-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: #F4C7D0;
}
.mg-card:hover {
  transform: translateY(-4px); border-color: #F4C7D0;
  box-shadow: 0 18px 40px rgba(15, 42, 74, 0.10);
}
.mg-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: #0F2A4A; color: #F4C7D0; font-weight: 700; margin-bottom: 18px;
}
.mg-card h3 { font-size: 19px; margin: 0 0 10px; }
.mg-card p { font-size: 15px; margin: 0; }

/* Process steps */
.mg-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px; counter-reset: mgstep; position: relative;
}
.mg-step { position: relative; text-align: center; padding: 0 6px; }
.mg-step::before {
  counter-increment: mgstep; content: counter(mgstep);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: #0F2A4A; color: #F4C7D0; font-size: 20px; font-weight: 700;
  position: relative; z-index: 1; box-shadow: 0 0 0 8px #EEF3F8;
}
.mg-step h3 { font-size: 17px; margin: 0 0 8px; }
.mg-step p { font-size: 14px; margin: 0; }
@media (min-width: 1025px) {
  .mg-steps::before {
    content: ""; position: absolute; top: 28px; left: 10%; right: 10%;
    height: 2px; background: #F4C7D0;
  }
}

/* Checklist */
.mg-checklist {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px;
}
.mg-checklist li { position: relative; padding-left: 34px; line-height: 1.5; }
.mg-checklist li::before {
  content: "\2713\FE0E "; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #F4C7D0; color: #0F2A4A; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mg-panel {
  background: #FFFFFF; border-radius: 20px; padding: 40px;
  box-shadow: 0 20px 50px rgba(15, 42, 74, 0.08);
}

/* Link tiles */
.mg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mg-tile {
  display: flex; justify-content: space-between; align-items: center;
  background: #FFFFFF; border-radius: 12px; padding: 18px 20px;
  font-weight: 600; color: #0F2A4A !important;
  border: 1px solid transparent; transition: border-color 0.2s, transform 0.2s;
}
.mg-tile::after { content: "\2192 "; color: #D98A9A; }
.mg-tile:hover { border-color: #0F2A4A; transform: translateY(-2px); }

/* FAQ */
.mg-faq { max-width: 860px; margin: 0 auto; }
.mg-faq details {
  background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.mg-faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px;
  font-weight: 600; color: #0F2A4A; position: relative; font-size: 16px;
}
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: #F9E1E6; color: #0F2A4A; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.mg-faq details[open] summary::after { content: "\2013 "; background: #F4C7D0; }
.mg-faq details p { padding: 0 24px 22px; margin: 0; }

/* CTA band */
.mg-cta {
  background: linear-gradient(120deg, #0F2A4A 0%, #1C3D66 60%, #3A4F70 100%);
  padding: 72px 0; color: #E3E7EE;
}
.mg-cta__grid { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.mg-cta h2 { color: #FFFFFF !important; font-size: 32px; margin: 0 0 8px; }
.mg-cta p { margin: 0; max-width: 560px; }
.mg-cta .mg-label { color: #F4C7D0; }
.mg-cta__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 1024px) {
  .mg-hero__grid, .mg-split { grid-template-columns: 1fr; gap: 40px; }
  .mg-cards { grid-template-columns: 1fr 1fr; }
  .mg-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .mg-tiles { grid-template-columns: 1fr 1fr; }
}
/* Phone */
@media (max-width: 767px) {
  .mg-hero { padding: 56px 0; }
  .mg-hero h1 { font-size: 32px; }
  .mg-hero__img, .mg-split img { height: 260px; }
  .mg-section { padding: 60px 0; }
  .mg-head h2, .mg-split h2 { font-size: 27px; }
  .mg-cards, .mg-steps, .mg-checklist, .mg-tiles { grid-template-columns: 1fr; }
  .mg-panel { padding: 28px 22px; }
  .mg-cta h2 { font-size: 26px; }
}/* Brand logo tiles */
.mg-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mg-brand {
  background: #FFFFFF;
  border: 1px solid #E3E7EE;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mg-brand:hover {
  border-color: #F4C7D0;
  box-shadow: 0 14px 32px rgba(15, 42, 74, 0.08);
}
.mg-brand__logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.mg-brand__logo img {
  max-height: 64px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}
.mg-brand:hover .mg-brand__logo img {
  filter: grayscale(0%);
  opacity: 1;
}
.mg-brand span {
  font-size: 14px;
  color: #5B6577;
}
@media (max-width: 1024px) {
  .mg-brands { grid-template-columns: 1fr 1fr; }
}/* Comparison table */
.mg-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 42, 74, 0.08);
}
.mg-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  min-width: 720px;
}
.mg-table th,
.mg-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid #E3E7EE;
  font-size: 15px;
}
.mg-table thead th {
  background: #0F2A4A;
  color: #FFFFFF;
  font-weight: 600;
}
.mg-table thead th:first-child { border-top-left-radius: 16px; }
.mg-table thead th:last-child { border-top-right-radius: 16px; }
.mg-table tbody th {
  color: #0F2A4A;
  font-weight: 600;
  background: #F7F9FC;
}
.mg-table tbody tr:last-child th,
.mg-table tbody tr:last-child td { border-bottom: none; }
.mg-table .yes { color: #0F2A4A; font-weight: 600; }
.mg-table .yes::before { content: "\2713\FE0E  "; color: #D98A9A; }/* Work showcase (drawings) */
.mg-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mg-showcase__item {
  background: #FFFFFF;
  border: 1px solid #E3E7EE;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.mg-showcase__item:hover {
  transform: translateY(-4px);
  border-color: #F4C7D0;
  box-shadow: 0 18px 40px rgba(15, 42, 74, 0.10);
}
.mg-showcase__img {
  background: #F7F9FC;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid #E3E7EE;
}
.mg-showcase__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.mg-showcase__text {
  padding: 22px 24px 26px;
}
.mg-showcase__text h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: #0F2A4A;
}
.mg-showcase__text p {
  font-size: 15px;
  margin: 0 0 12px;
  color: #33415C;
}
.mg-showcase__link {
  font-size: 14px;
  font-weight: 600;
  color: #0F2A4A;
}
@media (max-width: 767px) {
  .mg-showcase { grid-template-columns: 1fr; }
  .mg-showcase__img { height: 240px; }
}/* Domestic: VAT banner */
.mg-banner {
  background: #0F2A4A; color: #FFFFFF; border-radius: 16px;
  padding: 28px 32px; display: flex; gap: 24px; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
}
.mg-banner strong { color: #F4C7D0; font-size: 22px; display: block; margin-bottom: 4px; }
.mg-banner p { margin: 0; color: #E3E7EE; }

/* Domestic: payback calculator */
.mg-calc {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  background: #FFFFFF; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 42, 74, 0.10);
}
.mg-calc__form { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.mg-calc__field label {
  display: block; font-size: 14px; font-weight: 600; color: #0F2A4A; margin-bottom: 8px;
}
.mg-calc__field small { display: block; font-size: 12px; color: #5B6577; margin-top: 6px; }
.mg-calc__field select,
.mg-calc__field input {
  width: 100%; background: #F7F9FC; border: 1px solid #E3E7EE; border-radius: 8px;
  padding: 12px 14px; font-size: 16px; color: #0F2A4A;
}
.mg-calc__field select:focus,
.mg-calc__field input:focus {
  outline: none; border-color: #0F2A4A; background: #FFFFFF; box-shadow: 0 0 0 4px #F9E1E6;
}
.mg-calc__results {
  background: linear-gradient(160deg, #0F2A4A 0%, #1C3D66 100%);
  color: #E3E7EE; padding: 40px; display: flex; flex-direction: column; justify-content: center;
}
.mg-calc__results h3 { color: #FFFFFF !important; font-size: 20px; margin: 0 0 20px; }
.mg-calc__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); gap: 16px;
}
.mg-calc__row span { font-size: 14px; }
.mg-calc__row strong { color: #FFFFFF; font-size: 18px; text-align: right; }
.mg-calc__big { margin-top: 20px; background: rgba(244, 199, 208, 0.15); border-radius: 12px; padding: 18px 20px; }
.mg-calc__big span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #F4C7D0; }
.mg-calc__big strong { display: block; color: #FFFFFF; font-size: 30px; margin-top: 4px; }
.mg-calc__note { font-size: 12px; color: #C9D1DD; margin: 16px 0 0; line-height: 1.5; }
@media (max-width: 1024px) {
  .mg-calc { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .mg-calc__form { grid-template-columns: 1fr; padding: 28px 22px; }
  .mg-calc__results { padding: 28px 22px; }
}/* ===== SECTOR PAGES ===== */
.mg-sx-hero {
  position: relative; min-height: 600px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #FFFFFF;
  padding: 120px 0 160px;
}
.mg-sx-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,42,74,0.95) 0%, rgba(15,42,74,0.80) 45%, rgba(15,42,74,0.25) 100%);
}
.mg-sx-hero .mg-container { position: relative; z-index: 1; }
.mg-sx-hero__content { max-width: 640px; }
.mg-sx-hero h1 { color: #FFFFFF !important; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.1; margin: 0 0 20px; }
.mg-sx-hero p { color: #E3E7EE; font-size: 18px; line-height: 1.6; margin: 0 0 32px; }
.mg-sx-hero .mg-label { color: #F4C7D0; }
.mg-sx-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.mg-sx-stats {
  position: relative; z-index: 2; margin-top: -90px;
  background: #FFFFFF; border-radius: 18px; box-shadow: 0 24px 60px rgba(15,42,74,0.14);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.mg-sx-stat { padding: 30px 28px; border-right: 1px solid #E3E7EE; }
.mg-sx-stat:last-child { border-right: 0; }
.mg-sx-stat strong { display: block; font-size: 28px; color: #0F2A4A; line-height: 1.1; margin-bottom: 6px; }
.mg-sx-stat span { font-size: 14px; color: #5B6577; }

.mg-sx-pairs { display: grid; gap: 18px; margin-top: 40px; }
.mg-sx-pair { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: stretch; }
.mg-sx-pair__problem, .mg-sx-pair__fix { border-radius: 14px; padding: 24px 28px; }
.mg-sx-pair__problem { background: #F9E1E6; }
.mg-sx-pair__fix { background: #0F2A4A; color: #E3E7EE; }
.mg-sx-pair h3 { font-size: 18px; margin: 0 0 6px; }
.mg-sx-pair__problem h3 { color: #0F2A4A !important; }
.mg-sx-pair__fix h3 { color: #FFFFFF !important; }
.mg-sx-pair p { margin: 0; font-size: 15px; line-height: 1.55; }
.mg-sx-pair__problem p { color: #3A4556; }
.mg-sx-pair__arrow { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #0F2A4A; font-weight: 700; }
.mg-sx-pair small { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; font-weight: 700; }
.mg-sx-pair__problem small { color: #B4536A; }
.mg-sx-pair__fix small { color: #F4C7D0; }

.mg-sx-feature { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
.mg-sx-feature__img img { width: 100%; height: 520px; object-fit: cover; border-radius: 20px; display: block; }
.mg-sx-feature__card {
  background: #FFFFFF; border-radius: 20px; padding: 44px; margin-left: -120px;
  box-shadow: 0 24px 60px rgba(15,42,74,0.14); position: relative; z-index: 1;
}
.mg-sx-feature__card h2 { margin-top: 0; }

.mg-sx-project {
  background: linear-gradient(135deg, #0F2A4A 0%, #1C3D66 100%); border-radius: 22px;
  padding: 48px; color: #E3E7EE; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
}
.mg-sx-project h2 { color: #FFFFFF !important; margin-top: 0; }
.mg-sx-project .mg-label { color: #F4C7D0; }
.mg-sx-project__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mg-sx-project__item { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 20px; }
.mg-sx-project__item span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #F4C7D0; }
.mg-sx-project__item strong { display: block; color: #FFFFFF; font-size: 22px; margin-top: 6px; }
.mg-sx-project__note { font-size: 12px; color: #C9D1DD; margin-top: 14px; }

.mg-sx-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.mg-sx-links a {
  background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: 999px; padding: 12px 22px;
  color: #0F2A4A; font-weight: 600; text-decoration: none; transition: all .2s;
}
.mg-sx-links a:hover { background: #0F2A4A; color: #FFFFFF; border-color: #0F2A4A; }

@media (max-width: 1024px) {
  .mg-sx-stats { grid-template-columns: repeat(2, 1fr); }
  .mg-sx-stat:nth-child(2) { border-right: 0; }
  .mg-sx-stat:nth-child(-n+2) { border-bottom: 1px solid #E3E7EE; }
  .mg-sx-feature { grid-template-columns: 1fr; }
  .mg-sx-feature__card { margin: -80px 24px 0; }
  .mg-sx-project { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .mg-sx-hero { min-height: 0; padding: 80px 0 130px; }
  .mg-sx-stat { padding: 22px 18px; }
  .mg-sx-stat strong { font-size: 22px; }
  .mg-sx-pair { grid-template-columns: 1fr; }
  .mg-sx-pair__arrow { transform: rotate(90deg); padding: 6px 0; }
  .mg-sx-feature__img img { height: 320px; }
  .mg-sx-feature__card { padding: 28px 22px; margin: -60px 12px 0; }
  .mg-sx-project { padding: 32px 22px; }
  .mg-sx-project__grid { grid-template-columns: 1fr; }
}/* ===== SECTOR PAGES: alignment fix + interactions ===== */

/* Hero text aligned left with the page */
.mg-sx-hero .mg-container { width: 100%; }
.mg-sx-hero__content { max-width: 720px; margin-left: 0; margin-right: auto; text-align: left; }

/* Stats strip */
.mg-sx-stats { overflow: hidden; }
.mg-sx-stat {
  position: relative; cursor: default;
  transition: background .3s ease, transform .3s ease;
}
.mg-sx-stat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: #F4C7D0; transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.mg-sx-stat strong { transition: color .3s ease; }
.mg-sx-stat:hover { background: #F7F9FC; transform: translateY(-4px); }
.mg-sx-stat:hover::before { transform: scaleX(1); }
.mg-sx-stat:hover strong { color: #B4536A; }

/* Challenge / solution pairs */
.mg-sx-pair { transition: transform .3s ease; cursor: default; }
.mg-sx-pair__problem, .mg-sx-pair__fix {
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.mg-sx-pair__arrow { transition: transform .3s ease, color .3s ease; }
.mg-sx-pair:hover { transform: translateY(-4px); }
.mg-sx-pair:hover .mg-sx-pair__problem { background: #F4D3DA; box-shadow: 0 14px 30px rgba(180,83,106,0.15); }
.mg-sx-pair:hover .mg-sx-pair__fix {
  background: #163659; box-shadow: 0 18px 36px rgba(15,42,74,0.30), inset 4px 0 0 #F4C7D0;
}
.mg-sx-pair:hover .mg-sx-pair__arrow { transform: translateX(8px); color: #B4536A; }

/* Feature image + card */
.mg-sx-feature__img { overflow: hidden; border-radius: 20px; }
.mg-sx-feature__img img { transition: transform .8s ease; }
.mg-sx-feature:hover .mg-sx-feature__img img { transform: scale(1.05); }
.mg-sx-feature__card { transition: transform .4s ease, box-shadow .4s ease; }
.mg-sx-feature:hover .mg-sx-feature__card {
  transform: translateY(-6px); box-shadow: 0 30px 70px rgba(15,42,74,0.20);
}

/* Typical project tiles */
.mg-sx-project__item { transition: background .3s ease, border-color .3s ease, transform .3s ease; cursor: default; }
.mg-sx-project__item:hover {
  background: rgba(244,199,208,0.14); border-color: #F4C7D0; transform: translateY(-4px);
}

/* Service pill links */
.mg-sx-links a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,42,74,0.18); }

/* Mobile: switch off the vertical lift on pairs (feels jumpy on touch) */
@media (max-width: 767px) {
  .mg-sx-pair:hover { transform: none; }
  .mg-sx-pair:hover .mg-sx-pair__arrow { transform: rotate(90deg); }
}/* ===== AREA PAGES ===== */
.mg-ar-hero {
  position: relative; overflow: hidden; background: #0F2A4A; color: #E3E7EE;
  padding: 100px 0 120px;
}
.mg-ar-hero::after {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle, rgba(244,199,208,0.18) 0%, rgba(244,199,208,0) 70%);
  pointer-events: none;
}
.mg-ar-hero__bg {
  position: absolute; left: -10px; bottom: -30px; line-height: 1; white-space: nowrap;
  font-size: clamp(90px, 15vw, 230px); font-weight: 800; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.07); pointer-events: none;
}
.mg-ar-hero .mg-container { position: relative; z-index: 1; width: 100%; }
.mg-ar-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.mg-ar-hero h1 { color: #FFFFFF !important; font-size: clamp(34px, 4.3vw, 52px); line-height: 1.1; margin: 0 0 20px; }
.mg-ar-hero h1 em { font-style: normal; color: #F4C7D0; }
.mg-ar-hero p { font-size: 18px; line-height: 1.6; margin: 0 0 30px; color: #E3E7EE; }
.mg-ar-hero .mg-label { color: #F4C7D0; }
.mg-ar-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.mg-ar-map {
  position: relative; height: 440px; border-radius: 22px; overflow: hidden;
  border: 6px solid rgba(255,255,255,0.08); box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.mg-ar-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) contrast(1.05); transition: filter .6s ease;
}
.mg-ar-map:hover iframe { filter: grayscale(0); }
.mg-ar-map__badge {
  position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: #F4C7D0; color: #0F2A4A; font-weight: 700; font-size: 14px;
  padding: 10px 18px 10px 14px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.mg-ar-map__badge::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #B4536A;
  box-shadow: 0 0 0 0 rgba(180,83,106,0.6); animation: mgPulse 1.8s infinite;
}
@keyframes mgPulse {
  0% { box-shadow: 0 0 0 0 rgba(180,83,106,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(180,83,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(180,83,106,0); }
}

.mg-ar-facts {
  position: relative; z-index: 2; margin-top: -60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.mg-ar-fact {
  background: #FFFFFF; border-radius: 16px; padding: 24px; border-bottom: 4px solid #F4C7D0;
  box-shadow: 0 18px 40px rgba(15,42,74,0.12); transition: transform .3s ease, border-color .3s ease;
}
.mg-ar-fact:hover { transform: translateY(-6px); border-color: #0F2A4A; }
.mg-ar-fact small { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #B4536A; font-weight: 700; margin-bottom: 8px; }
.mg-ar-fact strong { display: block; font-size: 20px; color: #0F2A4A; line-height: 1.25; }
.mg-ar-fact span { display: block; font-size: 14px; color: #5B6577; margin-top: 4px; }

.mg-ar-places { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.mg-ar-place {
  display: inline-flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #E3E7EE;
  border-radius: 999px; padding: 12px 22px 12px 16px; font-weight: 600; color: #0F2A4A;
  transition: all .25s ease; cursor: default;
}
.mg-ar-place::before {
  content: ""; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #F4C7D0; border: 2px solid #B4536A; transition: background .25s ease;
}
.mg-ar-place:hover { background: #0F2A4A; color: #FFFFFF; border-color: #0F2A4A; transform: translateY(-3px); }
.mg-ar-place:hover::before { background: #FFFFFF; }

.mg-ar-story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.mg-ar-story__quote {
  position: relative; padding: 40px 40px 40px 48px; background: #0F2A4A; border-radius: 22px; color: #FFFFFF;
}
.mg-ar-story__quote::before {
  content: ""; position: absolute; left: 0; top: 40px; bottom: 40px; width: 6px; border-radius: 0 6px 6px 0; background: #F4C7D0;
}
.mg-ar-story__quote h2 { color: #FFFFFF !important; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin: 0 0 16px; }
.mg-ar-story__quote p { color: #C9D1DD; margin: 0; }

.mg-ar-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.mg-ar-why__card {
  background: #FFFFFF; border-radius: 18px; padding: 32px; border: 1px solid #E3E7EE;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mg-ar-why__num {
  font-size: 72px; font-weight: 800; line-height: 1; color: transparent;
  -webkit-text-stroke: 2px #F4C7D0; transition: color .3s ease; margin-bottom: 12px;
}
.mg-ar-why__card h3 { margin: 0 0 8px; font-size: 20px; }
.mg-ar-why__card p { margin: 0; color: #5B6577; }
.mg-ar-why__card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15,42,74,0.12); }
.mg-ar-why__card:hover .mg-ar-why__num { color: #F4C7D0; }

.mg-ar-nearby { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 40px; }
.mg-ar-stop {
  display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; border: 1px solid #E3E7EE;
  border-radius: 16px; padding: 22px 24px; text-decoration: none; position: relative; transition: all .3s ease;
}
.mg-ar-stop small { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #B4536A; font-weight: 700; }
.mg-ar-stop strong { font-size: 20px; color: #0F2A4A; }
.mg-ar-stop span { font-size: 14px; color: #5B6577; }
.mg-ar-stop::after {
  content: "\2192 "; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: #0F2A4A; transition: transform .3s ease, color .3s ease;
}
.mg-ar-stop:hover { background: #0F2A4A; border-color: #0F2A4A; transform: translateY(-4px); }
.mg-ar-stop:hover strong { color: #FFFFFF; }
.mg-ar-stop:hover span { color: #C9D1DD; }
.mg-ar-stop:hover small { color: #F4C7D0; }
.mg-ar-stop:hover::after { color: #F4C7D0; transform: translate(6px, -50%); }

@media (max-width: 1024px) {
  .mg-ar-hero__grid, .mg-ar-story { grid-template-columns: 1fr; gap: 36px; }
  .mg-ar-facts { grid-template-columns: repeat(2, 1fr); }
  .mg-ar-why { grid-template-columns: 1fr; }
  .mg-ar-map { height: 340px; }
}
@media (max-width: 767px) {
  .mg-ar-hero { padding: 70px 0 100px; }
  .mg-ar-facts { grid-template-columns: 1fr; margin-top: -40px; }
  .mg-ar-map { height: 280px; }
  .mg-ar-story__quote { padding: 30px 26px 30px 34px; }
}/* Area pages: nearby cards in even rows */
.mg-ar-nearby { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .mg-ar-nearby { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .mg-ar-nearby { grid-template-columns: 1fr; } }/* ===== GUIDE PAGES ===== */
html { scroll-behavior: smooth; }

.mg-gd-hero { background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%); padding: 70px 0 60px; border-bottom: 1px solid #E3E7EE; }
.mg-gd-hero__grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 56px; align-items: center; }
.mg-gd-crumbs { font-size: 14px; color: #5B6577; margin-bottom: 18px; }
.mg-gd-crumbs a { color: #0F2A4A; text-decoration: none; font-weight: 600; }
.mg-gd-crumbs a:hover { color: #B4536A; }
.mg-gd-hero h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; margin: 0 0 18px; }
.mg-gd-hero__intro { font-size: 19px; line-height: 1.6; color: #3A4556; margin: 0 0 24px; }
.mg-gd-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-gd-meta span { background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #0F2A4A; }

.mg-gd-glance { background: #0F2A4A; color: #E3E7EE; border-radius: 22px; padding: 32px; box-shadow: 0 30px 60px rgba(15,42,74,0.18); }
.mg-gd-glance h3 { color: #F4C7D0 !important; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 18px; }
.mg-gd-glance__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mg-gd-glance__row:last-child { border-bottom: 0; }
.mg-gd-glance__row span { font-size: 14px; color: #E3E7EE; }
.mg-gd-glance__row strong { color: #FFFFFF; text-align: right; }

.mg-gd-layout { display: grid; grid-template-columns: 270px 1fr; gap: 64px; padding: 70px 0 40px; align-items: start; }
.mg-gd-aside { position: sticky; top: 120px; }
.mg-gd-toc { background: #F7F9FC; border-radius: 18px; padding: 24px; }
.mg-gd-toc p { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #B4536A; font-weight: 700; margin: 0 0 14px; }
.mg-gd-toc ol { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mg-gd-toc li { margin: 0 !important; padding: 0 !important; }
.mg-gd-toc li::before { display: none !important; }
.mg-gd-toc a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: #0F2A4A; text-decoration: none; border-left: 3px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.mg-gd-toc a:hover { background: #0F2A4A; color: #FFFFFF; border-left-color: #F4C7D0; }
.mg-gd-asidecta { margin-top: 18px; background: #F9E1E6; border-radius: 18px; padding: 22px; }
.mg-gd-asidecta strong { display: block; color: #0F2A4A; font-size: 17px; margin-bottom: 6px; }
.mg-gd-asidecta p { font-size: 14px; color: #3A4556; margin: 0 0 14px; }

.mg-gd-body { max-width: 780px; }
.mg-gd-body section { scroll-margin-top: 120px; margin-bottom: 56px; padding-top: 8px; border-top: 1px solid #E3E7EE; }
.mg-gd-body section:first-of-type { border-top: 0; }
.mg-gd-body h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 32px 0 18px; }
.mg-gd-body h3 { font-size: 20px; margin: 28px 0 10px; }
.mg-gd-body p, .mg-gd-body li { font-size: 17px; line-height: 1.75; color: #3A4556; }
.mg-gd-body a { color: #0F2A4A; font-weight: 600; text-decoration: underline; text-decoration-color: #F4C7D0; text-underline-offset: 3px; }
.mg-gd-body a.mg-btn { text-decoration: none; }
.mg-gd-body ul { list-style: none !important; padding-left: 0 !important; margin: 0 0 20px !important; }
.mg-gd-body ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.mg-gd-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #F4C7D0; border: 2px solid #B4536A; }

.mg-gd-tip, .mg-gd-warn { border-radius: 16px; padding: 22px 26px; margin: 26px 0; }
.mg-gd-tip { background: #F9E1E6; border-left: 5px solid #B4536A; }
.mg-gd-warn { background: #FFF6E5; border-left: 5px solid #E0A526; }
.mg-gd-tip small, .mg-gd-warn small { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.mg-gd-tip small { color: #B4536A; }
.mg-gd-warn small { color: #A16F00; }
.mg-gd-tip p, .mg-gd-warn p { margin: 0; font-size: 16px; }

.mg-gd-key { background: #0F2A4A; border-radius: 20px; padding: 32px; margin: 0 0 40px; }
.mg-gd-key h2 { color: #FFFFFF !important; font-size: 24px; margin: 0 0 16px; }
.mg-gd-key ul { margin: 0 !important; }
.mg-gd-key li { color: #E3E7EE !important; }
.mg-gd-key li::before { background: #F4C7D0 !important; border-color: #F4C7D0 !important; }

.mg-gd-factors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.mg-gd-factor { border: 1px solid #E3E7EE; border-radius: 16px; padding: 22px; background: #FFFFFF; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.mg-gd-factor:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,42,74,0.10); border-color: #F4C7D0; }
.mg-gd-factor h3 { margin: 0 0 6px; font-size: 18px; }
.mg-gd-factor p { margin: 0; font-size: 15px; line-height: 1.6; }

.mg-gd-example { border: 2px dashed #F4C7D0; border-radius: 20px; padding: 28px; margin: 26px 0; }
.mg-gd-example__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #E3E7EE; font-size: 16px; }
.mg-gd-example__row:last-child { border-bottom: 0; }
.mg-gd-example__row strong { color: #0F2A4A; }
.mg-gd-example__total { background: #0F2A4A; color: #FFFFFF; border-radius: 12px; padding: 16px 18px; margin-top: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-weight: 700; }
.mg-gd-example__total span:last-child { color: #F4C7D0; }

.mg-gd-midcta { background: linear-gradient(135deg, #0F2A4A 0%, #1C3D66 100%); border-radius: 20px; padding: 30px 34px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 56px; }
.mg-gd-midcta strong { display: block; color: #FFFFFF; font-size: 22px; margin-bottom: 4px; }
.mg-gd-midcta span { display: block; color: #C9D1DD; font-size: 16px; }

.mg-gd-author { background: #F7F9FC; border-left: 5px solid #F4C7D0; border-radius: 16px; padding: 22px 26px; }
.mg-gd-author p { margin: 0 !important; font-size: 15px !important; }
.mg-gd-author strong { color: #0F2A4A; }

.mg-gd-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.mg-gd-card { display: block; background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: 18px; padding: 26px; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.mg-gd-card small { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: #B4536A; }
.mg-gd-card strong { display: block; font-size: 19px; color: #0F2A4A; margin: 8px 0; line-height: 1.3; }
.mg-gd-card span { font-size: 14px; color: #5B6577; }
.mg-gd-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15,42,74,0.12); }

@media (max-width: 1024px) {
  .mg-gd-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .mg-gd-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .mg-gd-aside { position: static; }
  .mg-gd-related { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .mg-gd-factors { grid-template-columns: 1fr; }
  .mg-gd-glance, .mg-gd-key, .mg-gd-example, .mg-gd-midcta { padding: 24px 20px; }
}/* ===== MORALIS ASSOCIATES ===== */
.mg-as { --navy: #0F2A4A; --navy2: #1C3D66; --pink: #F4C7D0; --rose: #B4536A; --cream: #FBF7F4; --ink: #3A4556; }
.mg-as .mg-serif, .mg-as h1 em, .mg-as h2 em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--pink); }
.mg-as .mg-on-light h2 em, .mg-as-light h2 em { color: var(--rose); }

/* Hero */
.mg-as-hero { position: relative; overflow: hidden; background: var(--navy); color: #E3E7EE; padding: 110px 0 120px; }
.mg-as-hero::before { content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(244,199,208,0.22) 0%, rgba(244,199,208,0) 65%); }
.mg-as-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.mg-as-hero .mg-container { position: relative; z-index: 1; width: 100%; }
.mg-as-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.mg-as-hero .mg-label { color: var(--pink); }
.mg-as-hero h1 { color: #FFFFFF !important; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; margin: 0 0 24px; }
.mg-as-hero__lead { font-size: 19px; line-height: 1.65; color: #D5DCE6; margin: 0 0 34px; max-width: 580px; }
.mg-as-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.mg-as-creds { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-as-cred { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: #FFFFFF; background: rgba(255,255,255,0.04); transition: background .25s ease, border-color .25s ease; }
.mg-as-cred::before { content: "\2713\FE0E "; color: var(--pink); font-weight: 800; }
.mg-as-cred:hover { background: rgba(244,199,208,0.12); border-color: var(--pink); }

.mg-as-stack { position: relative; height: 460px; }
.mg-as-float { position: absolute; border-radius: 22px; padding: 28px; box-shadow: 0 30px 70px rgba(0,0,0,0.35); animation: mgFloat 7s ease-in-out infinite; }
.mg-as-float--main { left: 0; right: 40px; top: 30px; background: #FFFFFF; color: var(--ink); }
.mg-as-float--main small { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--rose); font-weight: 700; margin-bottom: 10px; }
.mg-as-float--main strong { display: block; font-size: 24px; color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.mg-as-float--main p { margin: 0; font-size: 15px; line-height: 1.6; }
.mg-as-float--pink { right: 0; bottom: 70px; width: 240px; background: var(--pink); color: var(--navy); animation-delay: -2.5s; }
.mg-as-float--pink strong { display: block; font-family: inherit; font-weight: 800; font-style: normal; font-size: 44px; line-height: 1; margin-bottom: 6px; }
.mg-as-float--pink span { font-size: 14px; font-weight: 600; }
.mg-as-float--navy { left: 30px; bottom: 0; width: 250px; background: var(--navy2); border: 1px solid rgba(255,255,255,0.12); color: #E3E7EE; animation-delay: -4.5s; }
.mg-as-float--navy span { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--pink); font-weight: 700; margin-bottom: 6px; }
.mg-as-float--navy strong { color: #FFFFFF; font-size: 17px; line-height: 1.35; display: block; }
@keyframes mgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Marquee */
.mg-as-marquee { background: var(--pink); overflow: hidden; padding: 18px 0; border-top: 1px solid rgba(15,42,74,0.1); border-bottom: 1px solid rgba(15,42,74,0.1); }
.mg-as-marquee__track { display: flex; width: max-content; animation: mgMarquee 40s linear infinite; }
.mg-as-marquee:hover .mg-as-marquee__track { animation-play-state: paused; }
.mg-as-marquee span { font-size: 18px; font-weight: 700; color: var(--navy); white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.mg-as-marquee span::after { content: "\2726\FE0E "; color: var(--rose); font-size: 14px; }
@keyframes mgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Philosophy flip cards */
.mg-as-light { background: var(--cream); }
.mg-as-flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.mg-as-flip { perspective: 1200px; height: 300px; cursor: pointer; outline: none; }
.mg-as-flip__inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.mg-as-flip:hover .mg-as-flip__inner, .mg-as-flip:focus .mg-as-flip__inner { transform: rotateY(180deg); }
.mg-as-flip__face { position: absolute; inset: 0; border-radius: 22px; padding: 34px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.mg-as-flip__front { background: #FFFFFF; border: 1px solid #EADFD9; box-shadow: 0 18px 40px rgba(15,42,74,0.06); }
.mg-as-flip__front small { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.mg-as-flip__front strong { font-family: inherit; font-style: normal; font-weight: 800; font-size: 40px; line-height: 1.1; color: var(--navy); }
.mg-as-flip__front span { font-size: 14px; color: #8A93A3; }
.mg-as-flip__back { background: var(--navy); color: #D5DCE6; transform: rotateY(180deg); }
.mg-as-flip__back h3 { color: #FFFFFF !important; margin: 0 0 12px; font-size: 21px; }
.mg-as-flip__back p { margin: 0; font-size: 15px; line-height: 1.65; color: #D5DCE6; }

/* Bento services */
.mg-as-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); gap: 18px; margin-top: 44px; }
.mg-as-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-radius: 22px; padding: 28px; background: #FFFFFF; border: 1px solid #E3E7EE; text-decoration: none; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, background .35s ease; }
.mg-as-tile::after { content: "\2192 "; position: absolute; right: 24px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--navy); font-size: 18px; transition: transform .35s ease, background .35s ease, color .35s ease; }
.mg-as-tile:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(15,42,74,0.14); }
.mg-as-tile:hover::after { background: var(--pink); transform: rotate(-45deg); }
.mg-as-tile__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cream); color: var(--rose); display: flex; align-items: center; justify-content: center; }
.mg-as-tile__icon svg { width: 26px; height: 26px; }
.mg-as-tile h3 { margin: 0 0 8px; font-size: 21px; color: var(--navy); }
.mg-as-tile p { margin: 0; font-size: 15px; line-height: 1.6; color: #5B6577; padding-right: 40px; }
.mg-as-tile--feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 100%); border: 0; }
.mg-as-tile--feature h3 { color: #FFFFFF !important; font-size: 30px; }
.mg-as-tile--feature p { color: #C9D1DD; font-size: 16px; max-width: 440px; }
.mg-as-tile--feature .mg-as-tile__icon { background: rgba(244,199,208,0.15); color: var(--pink); width: 64px; height: 64px; }
.mg-as-tile--feature .mg-as-tile__icon svg { width: 32px; height: 32px; }
.mg-as-tile--feature small { display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--pink); font-weight: 700; margin-bottom: 10px; }
.mg-as-tile--feature::after { background: var(--pink); color: var(--navy); }
.mg-as-tile--wide { grid-column: span 2; }
.mg-as-tile--pink { background: var(--pink); border: 0; }
.mg-as-tile--pink h3 { color: var(--navy) !important; }
.mg-as-tile--pink p { color: #4A3A44; }
.mg-as-tile--pink::after { background: var(--navy); color: #FFFFFF; }

/* Director */
.mg-as-director { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.mg-as-cert { position: relative; background: var(--cream); border-radius: 24px; padding: 48px 42px; border: 1px solid #EADFD9; box-shadow: 0 30px 70px rgba(15,42,74,0.10); }
.mg-as-cert::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid var(--pink); border-radius: 16px; pointer-events: none; }
.mg-as-cert small { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--rose); font-weight: 700; margin-bottom: 8px; }
.mg-as-cert h3 { font-family: inherit; font-style: normal; font-weight: 800; font-size: 38px; color: var(--navy) !important; margin: 0 0 4px; }
.mg-as-cert__role { font-size: 15px; color: #5B6577; margin: 0 0 26px; }
.mg-as-cert ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mg-as-cert li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed #DCCFC8; font-size: 15px; color: var(--navy); font-weight: 600; margin: 0 !important; }
.mg-as-cert li::before { content: "\2726\FE0E "; color: var(--rose); font-size: 12px; }
.mg-as-cert li em { font-style: normal; font-weight: 500; color: #8A93A3; font-size: 13px; margin-left: auto; white-space: nowrap; }
.mg-as-seal { position: absolute; right: -34px; top: -34px; width: 132px; height: 132px; border-radius: 50%; background: var(--navy); box-shadow: 0 16px 36px rgba(15,42,74,0.3); display: flex; align-items: center; justify-content: center; }
.mg-as-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: mgSpin 22s linear infinite; }
.mg-as-seal text { fill: var(--pink); font-size: 10.5px; letter-spacing: 2.6px; font-weight: 700; text-transform: uppercase; }
.mg-as-seal strong { font-family: inherit; font-weight: 800; font-style: normal; font-size: 34px; color: #FFFFFF; position: relative; }
@keyframes mgSpin { to { transform: rotate(360deg); } }
.mg-as-bio p { font-size: 17px; line-height: 1.8; color: var(--ink); }
.mg-as-pull { font-family: inherit; font-weight: 800; font-style: normal; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; color: var(--navy); border-left: 4px solid var(--pink); padding: 4px 0 4px 24px; margin: 28px 0; }

/* Stats band */
.mg-as-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--navy); border-radius: 24px; overflow: hidden; }
.mg-as-stat { padding: 36px 30px; border-right: 1px solid rgba(255,255,255,0.1); transition: background .3s ease; }
.mg-as-stat:last-child { border-right: 0; }
.mg-as-stat:hover { background: var(--navy2); }
.mg-as-stat strong { display: block; font-family: inherit; font-style: normal; font-weight: 800; font-size: 42px; color: var(--pink); line-height: 1; margin-bottom: 10px; }
.mg-as-stat span { font-size: 15px; color: #D5DCE6; line-height: 1.5; }

/* Timeline */
.mg-as-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.mg-as-steps::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--pink) 0 10px, transparent 10px 18px); }
.mg-as-step { position: relative; text-align: center; padding: 0 8px; }
.mg-as-step__dot { position: relative; z-index: 1; width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--pink); display: flex; align-items: center; justify-content: center; font-family: inherit; font-weight: 800; font-style: normal; font-size: 24px; color: var(--navy); transition: background .3s ease, color .3s ease, transform .3s ease; }
.mg-as-step:hover .mg-as-step__dot { background: var(--navy); color: var(--pink); transform: scale(1.08); }
.mg-as-step h3 { margin: 0 0 8px; font-size: 19px; }
.mg-as-step p { margin: 0; font-size: 15px; color: #5B6577; line-height: 1.6; }

/* Who we help chips */
.mg-as-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.mg-as-who span { background: #FFFFFF; border: 1px solid #EADFD9; border-radius: 999px; padding: 12px 22px; font-weight: 600; color: var(--navy); transition: all .25s ease; }
.mg-as-who span:hover { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

/* CTA */
.mg-as-cta { position: relative; overflow: hidden; background: var(--navy); border-radius: 28px; padding: 64px; color: #D5DCE6; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.mg-as-cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(244,199,208,0.25) 0%, rgba(244,199,208,0) 70%); }
.mg-as-cta h2 { color: #FFFFFF !important; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; margin: 0 0 14px; }
.mg-as-cta p { color: #D5DCE6; margin: 0; font-size: 17px; }
.mg-as-cta__buttons { position: relative; display: flex; flex-direction: column; gap: 12px; }
.mg-as-cta__buttons .mg-btn { text-align: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .mg-as-float, .mg-as-marquee__track, .mg-as-seal svg { animation: none; }
}
@media (max-width: 1024px) {
  .mg-as-hero__grid, .mg-as-director, .mg-as-cta { grid-template-columns: 1fr; }
  .mg-as-stack { height: 420px; max-width: 520px; }
  .mg-as-flips { grid-template-columns: 1fr; }
  .mg-as-bento { grid-template-columns: repeat(2, 1fr); }
  .mg-as-tile--feature { grid-row: span 1; }
  .mg-as-stats { grid-template-columns: repeat(2, 1fr); }
  .mg-as-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .mg-as-steps::before { display: none; }
  .mg-as-seal { right: 16px; }
}
@media (max-width: 767px) {
  .mg-as-hero { padding: 80px 0 90px; }
  .mg-as-stack { height: auto; display: grid; gap: 16px; }
  .mg-as-float { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; }
  .mg-as-bento { grid-template-columns: 1fr; }
  .mg-as-tile--feature, .mg-as-tile--wide { grid-column: span 1; }
  .mg-as-stats { grid-template-columns: 1fr; }
  .mg-as-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .mg-as-steps { grid-template-columns: 1fr; }
  .mg-as-cert { padding: 56px 24px 32px; }
  .mg-as-cert li { flex-wrap: wrap; }
  .mg-as-cert li em { margin-left: 22px; }
  .mg-as-seal { width: 104px; height: 104px; right: 12px; top: -40px; }
  .mg-as-cta { padding: 40px 24px; }
}/* ===== ASSOCIATES SERVICE PAGES ===== */
.mg-as-hero--sub { padding: 90px 0 100px; }
.mg-as-crumbs { font-size: 14px; color: #A9B4C4; margin-bottom: 20px; }
.mg-as-crumbs a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.mg-as-crumbs a:hover { color: #F4C7D0; }
.mg-as-glance { position: relative; background: #FFFFFF; border-radius: 22px; padding: 32px; box-shadow: 0 30px 70px rgba(0,0,0,0.35); animation: mgFloat 8s ease-in-out infinite; }
.mg-as-glance::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid #F4C7D0; border-radius: 15px; pointer-events: none; }
.mg-as-glance small { display: block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #B4536A; font-weight: 700; margin-bottom: 14px; }
.mg-as-glance ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mg-as-glance li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #E6DAD4; font-size: 15px; color: #0F2A4A; font-weight: 600; line-height: 1.45; margin: 0 !important; }
.mg-as-glance li:last-child { border-bottom: 0; }
.mg-as-glance li::before { content: "\2726\FE0E "; color: #B4536A; font-size: 12px; padding-top: 3px; }

.mg-as-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
.mg-as-split p { font-size: 17px; line-height: 1.8; color: #3A4556; }
.mg-as-panel { background: #FBF7F4; border: 1px solid #EADFD9; border-radius: 22px; padding: 34px; }
.mg-as-panel h3 { margin: 0 0 16px; font-size: 20px; color: #0F2A4A; }
.mg-as-panel ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mg-as-panel li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid #EADFD9; font-size: 16px; line-height: 1.55; color: #3A4556; margin: 0 !important; transition: padding-left .25s ease, color .25s ease; }
.mg-as-panel li:last-child { border-bottom: 0; }
.mg-as-panel li::before { content: "\2713\FE0E "; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: #0F2A4A; color: #F4C7D0; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mg-as-panel li:hover { padding-left: 40px; color: #0F2A4A; }

.mg-as-law { position: relative; background: #0F2A4A; border-radius: 22px; padding: 40px 44px 40px 110px; color: #D5DCE6; overflow: hidden; }
.mg-as-law::before { content: "\A7 "; position: absolute; left: 34px; top: 22px; font-family: inherit; font-weight: 800; font-style: normal; font-size: 72px; color: #F4C7D0; line-height: 1; }
.mg-as-law small { display: block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #F4C7D0; font-weight: 700; margin-bottom: 10px; }
.mg-as-law p { margin: 0; font-size: 17px; line-height: 1.7; color: #D5DCE6; }
.mg-as-law strong { color: #FFFFFF; }

.mg-as-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.mg-as-more a { display: inline-flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #EADFD9; border-radius: 999px; padding: 12px 22px; font-weight: 600; color: #0F2A4A; text-decoration: none; transition: all .25s ease; }
.mg-as-more a::after { content: "\2192 "; color: #B4536A; transition: transform .25s ease; }
.mg-as-more a:hover { background: #0F2A4A; color: #FFFFFF; border-color: #0F2A4A; }
.mg-as-more a:hover::after { color: #F4C7D0; transform: translateX(4px); }

@media (max-width: 1024px) {
  .mg-as-split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 767px) {
  .mg-as-law { padding: 80px 24px 30px; }
  .mg-as-law::before { left: 24px; top: 14px; }
  .mg-as-panel { padding: 26px 22px; }
}/* Associates: Who We Help chips in even rows */
.mg-as-who { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 14px; }
.mg-as-who span { text-align: center; }
@media (max-width: 1024px) { .mg-as-who { grid-template-columns: repeat(2, minmax(0, 300px)); } }
@media (max-width: 767px) { .mg-as-who { grid-template-columns: 1fr; } }/* ===== ABOUT PAGE ===== */
.mg-ab-divs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.mg-ab-div { position: relative; overflow: hidden; border-radius: 26px; padding: 44px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: transform .35s ease, box-shadow .35s ease; }
.mg-ab-div:hover { transform: translateY(-8px); box-shadow: 0 34px 70px rgba(15,42,74,0.22); }
.mg-ab-div--energy { background: linear-gradient(150deg, #0F2A4A 0%, #1C3D66 100%); color: #D5DCE6; }
.mg-ab-div--assoc { background: #F4C7D0; color: #3A2F36; }
.mg-ab-div::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; top: -90px; border-radius: 50%; background: rgba(255,255,255,0.08); transition: transform .5s ease; }
.mg-ab-div:hover::after { transform: scale(1.3); }
.mg-ab-div small { display: block; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.mg-ab-div--energy small { color: #F4C7D0; }
.mg-ab-div--assoc small { color: #B4536A; }
.mg-ab-div h3 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 14px; line-height: 1.1; }
.mg-ab-div--energy h3 { color: #FFFFFF !important; }
.mg-ab-div--assoc h3 { color: #0F2A4A !important; }
.mg-ab-div p { margin: 0; font-size: 16px; line-height: 1.65; max-width: 420px; }
.mg-ab-div__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 26px; }
.mg-ab-div--energy .mg-ab-div__go { color: #F4C7D0; }
.mg-ab-div--assoc .mg-ab-div__go { color: #0F2A4A; }

.mg-ab-time { position: relative; max-width: 820px; margin: 50px auto 0; padding-left: 40px; }
.mg-ab-time::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #F4C7D0, #0F2A4A); }
.mg-ab-time__item { position: relative; padding: 0 0 34px 28px; }
.mg-ab-time__item::before { content: ""; position: absolute; left: -37px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; border: 3px solid #B4536A; transition: background .3s ease, transform .3s ease; }
.mg-ab-time__item:hover::before { background: #F4C7D0; transform: scale(1.25); }
.mg-ab-time__item span { font-family: inherit; font-weight: 800; font-style: normal; font-size: 26px; color: #B4536A; display: block; line-height: 1; margin-bottom: 8px; }
.mg-ab-time__item h3 { margin: 0 0 6px; font-size: 20px; color: #0F2A4A; }
.mg-ab-time__item p { margin: 0; font-size: 16px; color: #5B6577; line-height: 1.65; }

.mg-ab-team { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }
.mg-ab-team .mg-as-cert { height: 100%; }
.mg-ab-team .mg-as-cert p.mg-ab-bio { font-size: 15px; line-height: 1.7; color: #3A4556; margin: 0 0 20px; }

/* ===== INSIGHTS ===== */
.mg-in-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mg-in-topics span { border: 1px solid #E3E7EE; background: #FFFFFF; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; color: #0F2A4A; transition: all .25s ease; }
.mg-in-topics span:hover { background: #0F2A4A; color: #FFFFFF; border-color: #0F2A4A; }
.mg-in-feature { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; margin-top: 40px; }
.mg-in-big { position: relative; overflow: hidden; border-radius: 26px; padding: 48px; min-height: 380px; background: linear-gradient(150deg, #0F2A4A 0%, #1C3D66 100%); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .35s ease, box-shadow .35s ease; }
.mg-in-big::before { content: ""; }

/* ===== ANIMATED COUNTERS ===== */
.mg-cnt { background: linear-gradient(135deg, #0F2A4A 0%, #1C3D66 100%); border-radius: 24px; padding: 52px 48px; color: #C9D1DD; }
.mg-cnt__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mg-cnt__item { padding: 6px 28px; border-left: 1px solid rgba(255,255,255,0.12); transition: transform .3s ease; }
.mg-cnt__item:first-child { border-left: 0; padding-left: 0; }
.mg-cnt__item:hover { transform: translateY(-4px); }
.mg-cnt__item span { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #F4C7D0; font-weight: 700; margin-bottom: 12px; }
.mg-cnt__num { display: block; font-size: clamp(40px, 4.4vw, 58px); font-weight: 800; color: #FFFFFF; line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.mg-cnt__item p { margin: 0; font-size: 15px; line-height: 1.55; color: #C9D1DD; }
.mg-cnt__wide { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mg-cnt__wide strong { display: block; font-size: clamp(24px, 2.6vw, 32px); color: #FFFFFF; line-height: 1.2; }
.mg-cnt__wide strong em { font-style: normal; color: #F4C7D0; }
.mg-cnt__wide p { margin: 6px 0 0; font-size: 15px; color: #C9D1DD; }
.mg-cnt__note { font-size: 12px; color: #8FA0B8; margin: 18px 0 0; }
@media (max-width: 1024px) {
  .mg-cnt__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .mg-cnt__item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
  .mg-cnt { padding: 36px 24px; }
  .mg-cnt__grid { grid-template-columns: 1fr; }
  .mg-cnt__item { border-left: 0; padding: 0 0 24px; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .mg-cnt__item:last-child { border-bottom: 0; padding-bottom: 0; }
}/* ===== INSIGHTS ===== */
.mg-in-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mg-in-topics span { border: 1px solid #E3E7EE; background: #FFFFFF; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; color: #0F2A4A; transition: all .25s ease; }
.mg-in-topics span:hover { background: #0F2A4A; color: #FFFFFF; border-color: #0F2A4A; }
.mg-in-feature { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; margin-top: 40px; }
.mg-in-big { position: relative; overflow: hidden; border-radius: 26px; padding: 48px; min-height: 380px; background: linear-gradient(150deg, #0F2A4A 0%, #1C3D66 100%); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .35s ease, box-shadow .35s ease; }
.mg-in-big::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 24px 24px; }
.mg-in-big::after { content: "\00A3"; position: absolute; right: 30px; top: -20px; font-size: 260px; font-weight: 800; color: rgba(244,199,208,0.12); line-height: 1; }
.mg-in-big > * { position: relative; z-index: 1; }
.mg-in-big:hover { transform: translateY(-6px); box-shadow: 0 34px 70px rgba(15,42,74,0.25); }
.mg-in-big small { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #F4C7D0; font-weight: 700; margin-bottom: 12px; }
.mg-in-big strong { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; color: #FFFFFF; margin-bottom: 12px; }
.mg-in-big span { color: #C9D1DD; font-size: 16px; }
.mg-in-side { display: grid; gap: 16px; }
.mg-in-side .mg-gd-card { display: flex; flex-direction: column; justify-content: center; }

/* WordPress Latest Posts block, styled */
.wp-block-latest-posts.is-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 !important; margin: 0 auto 60px !important; max-width: 1200px; }
.wp-block-latest-posts.is-grid li { width: auto !important; margin: 0 !important; background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: 20px; overflow: hidden; padding: 0 0 24px !important; transition: transform .3s ease, box-shadow .3s ease; }
.wp-block-latest-posts.is-grid li:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15,42,74,0.12); }
.wp-block-latest-posts__featured-image { margin: 0 0 18px !important; }
.wp-block-latest-posts__featured-image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.wp-block-latest-posts__post-title { display: block; padding: 0 24px; font-size: 20px; font-weight: 700; line-height: 1.3; color: #0F2A4A; text-decoration: none; }
.wp-block-latest-posts__post-title:hover { color: #B4536A; }
.wp-block-latest-posts__post-date { display: block; padding: 8px 24px 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #B4536A; font-weight: 700; }
.wp-block-latest-posts__post-excerpt { padding: 10px 24px 0; font-size: 15px; line-height: 1.6; color: #5B6577; margin: 0; }
@media (max-width: 1024px) {
  .mg-in-feature { grid-template-columns: 1fr; }
  .wp-block-latest-posts.is-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .mg-in-big { padding: 30px 24px; min-height: 280px; }
  .wp-block-latest-posts.is-grid { grid-template-columns: 1fr; }
}/* Insights: Kadence posts grid styled to match the site */
.kb-posts { max-width: 1200px; margin: 0 auto 70px !important; padding: 0 24px !important; }
.kb-posts .loop-entry { background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: 20px; overflow: hidden; box-shadow: none; transition: transform .3s ease, box-shadow .3s ease; }
.kb-posts .loop-entry:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15,42,74,0.12); }
.kb-posts .post-thumbnail img { width: 100%; height: 220px; object-fit: cover; display: block; }
.kb-posts .entry-content-wrap { padding: 24px !important; }
.kb-posts .entry-title { font-size: 21px !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
.kb-posts .entry-title a:hover { color: #B4536A; }
.kb-posts .entry-taxonomies a { color: #B4536A !important; font-size: 11px; letter-spacing: 1.5px; }
.kb-posts .entry-summary p { font-size: 15px; line-height: 1.6; color: #5B6577; }
.kb-posts .post-more-link { color: #0F2A4A; font-size: 13px; letter-spacing: 1px; }/* ===== INSIGHTS CARDS ===== */
.mg-ins-feat { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 24px; overflow: hidden; background: #0F2A4A; text-decoration: none; min-height: 380px; transition: transform .35s ease, box-shadow .35s ease; }
.mg-ins-feat:hover { transform: translateY(-6px); box-shadow: 0 34px 70px rgba(15,42,74,0.25); }
.mg-ins-feat__img { position: relative; overflow: hidden; min-height: 300px; }
.mg-ins-feat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mg-ins-feat:hover .mg-ins-feat__img img { transform: scale(1.05); }
.mg-ins-feat__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.mg-ins-feat__body strong { display: block; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: #FFFFFF; margin: 16px 0 14px; }
.mg-ins-feat__body p { color: #C9D1DD; font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
.mg-ins-meta { font-size: 13px; color: #8FA0B8; }
.mg-ins-read { display: inline-block; margin-top: 18px; font-weight: 700; color: #F4C7D0; }
.mg-ins-chip { display: inline-block; align-self: flex-start; background: #F4C7D0; color: #0F2A4A; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.mg-ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.mg-ins-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: 20px; overflow: hidden; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.mg-ins-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15,42,74,0.12); }
.mg-ins-card__img { position: relative; height: 200px; overflow: hidden; }
.mg-ins-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.mg-ins-card:hover .mg-ins-card__img img { transform: scale(1.06); }
.mg-ins-card__img .mg-ins-chip { position: absolute; left: 16px; top: 16px; }
.mg-ins-card__body { padding: 22px 24px 26px; }
.mg-ins-card__body strong { display: block; font-size: 19px; line-height: 1.35; color: #0F2A4A; margin-bottom: 10px; }
.mg-ins-card--more { background: #F4C7D0; border: 0; padding: 32px; justify-content: center; }
.mg-ins-card--more strong { display: block; font-size: 22px; color: #0F2A4A; margin-bottom: 10px; }
.mg-ins-card--more p { margin: 0 0 16px; color: #4A3A44; font-size: 15px; line-height: 1.6; }
.mg-ins-card--more span { font-weight: 700; color: #0F2A4A; }

/* ===== ARTICLE PAGES ===== */
.mg-art-hero { position: relative; overflow: hidden; background: #0F2A4A; padding: 70px 0 90px; }
.mg-art-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.mg-art-hero .mg-container { position: relative; z-index: 1; width: 100%; }
.mg-art-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.mg-art-crumbs { font-size: 14px; color: #A9B4C4; margin-bottom: 18px; }
.mg-art-crumbs a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.mg-art-hero h1 { color: #FFFFFF !important; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; margin: 16px 0 18px; }
.mg-art-stand { color: #D5DCE6; font-size: 18px; line-height: 1.6; margin: 0 0 24px; }
.mg-art-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-art-meta span { border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: #FFFFFF; }
.mg-art-hero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; box-shadow: 18px 18px 0 #F4C7D0; }
.mg-art-lead { font-size: 19px !important; line-height: 1.75 !important; color: #0F2A4A !important; }
.mg-art-lead::first-letter { float: left; font-size: 68px; line-height: 0.9; font-weight: 800; color: #0F2A4A; margin: 6px 12px 0 0; }
.mg-art-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.mg-art-stat { background: #F7F9FC; border-radius: 16px; padding: 22px; border-bottom: 4px solid #F4C7D0; transition: transform .3s ease; }
.mg-art-stat:hover { transform: translateY(-4px); }
.mg-art-stat strong { display: block; font-size: 32px; color: #0F2A4A; line-height: 1; margin-bottom: 8px; }
.mg-art-stat span { font-size: 14px; color: #5B6577; line-height: 1.5; }
.mg-art-quote { border-left: 4px solid #F4C7D0; padding: 4px 0 4px 24px; margin: 34px 0; font-size: 24px; line-height: 1.4; font-weight: 700; color: #0F2A4A; }

@media (max-width: 1024px) {
  .mg-ins-feat, .mg-art-hero__grid { grid-template-columns: 1fr; }
  .mg-ins-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-art-hero__img { max-width: 560px; }
}
@media (max-width: 767px) {
  .mg-ins-grid, .mg-art-stats { grid-template-columns: 1fr; }
  .mg-ins-feat__body { padding: 28px 22px; }
  .mg-art-hero { padding: 50px 0 70px; }
  .mg-art-hero__img img { box-shadow: 10px 10px 0 #F4C7D0; }
}

/* =========================================
   MORALIS SITE-WIDE FIXES (Oct 2026)
   ========================================= */
/* Stop pages scrolling sideways on phones */
html, body { overflow-x: hidden; overflow-x: clip; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; }
@media (max-width: 767px) {
  .entry-content h1, .entry-content h2, .entry-content h3 { overflow-wrap: break-word; }
  .entry-content table { display: block; overflow-x: auto; }
}
/* Ticks and stars always show as symbols, never as emojis */
.mg-page { font-variant-emoji: text; }
/* Moving strips: only pause on hover where there is a real mouse, so a tap can't freeze them on phones */
@media (hover: none) {
  .mg-as-marquee:hover .mg-as-marquee__track,
  .mg-sv-logos:hover .mg-sv-track,
  .mg-dm-logos:hover .mg-dm-track { animation-play-state: running !important; }
}

/* Guides: keep the article inside the screen on phones; wide tables scroll on their own */
.mg-gd-layout > * { min-width: 0; }
.mg-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* About "In-House" boxes: 2 across on tablets, 1 on phones */
@media (max-width: 1024px) { .mg-gd-factors[style*="repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 767px) { .mg-gd-factors[style*="repeat(3"] { grid-template-columns: 1fr !important; } }

/* Never split a word in the middle (the theme allows it by default) */
.mg-page { word-break: normal; }

/* Homepage area buttons: room for long place names on phones */
.mg-page .mg-hp-areas > *, .mg-page .mg-hp-areas__list > * { min-width: 0; }
@media (max-width: 767px) {
  .mg-page .mg-hp-areas { padding: 26px 14px; }
  .mg-page .mg-hp-areas__list { gap: 6px; }
  .mg-page .mg-hp-areas__list a { padding: 12px 10px; gap: 6px; font-size: 13.5px; }
}
@media (max-width: 480px) { .mg-page .mg-hp-areas__list svg { display: none; } }
@media (max-width: 379px) { .mg-page .mg-hp-areas__list { grid-template-columns: 1fr; } }


/* Case study titles: long place names fit on narrow phones */
@media (max-width: 767px) { .mg-cx-hero h1 { font-size: clamp(25px, 7.4vw, 44px); } }

/* Sector stat strip: columns always stay inside the strip on phones */
.mg-sx-stats > * { min-width: 0; }
@media (max-width: 767px) { .mg-sx-stat { padding: 18px 14px; } .mg-sx-stat strong { font-size: clamp(17px, 5vw, 22px); } }

/* Case study photo gallery headings fit long place names on narrow phones */
@media (max-width: 767px) { .mg-page .mg-gx__side h3 { font-size: clamp(18px, 5.6vw, 26px); } }

/* About track record figures: smaller on narrow phones */
@media (max-width: 400px) { .mg-sx-project__item strong[style] { font-size: 30px !important; white-space: nowrap; } }

/* Guide and FAQ headers: long emails wrap instead of pushing the page wider */
.mg-gd-hero__grid > * { min-width: 0; }
.mg-gd-glance strong { overflow-wrap: anywhere; }

/* Associates closing box: long email button wraps on very narrow phones */
.mg-as-cta > * { min-width: 0; }
@media (max-width: 400px) { .mg-as-cta__buttons .mg-btn { white-space: normal; overflow-wrap: anywhere; } }

/* Case study "Next project" panels and North West quote: long names fit on phones */
@media (max-width: 767px) {
  .mg-page .mg-cx-next strong { font-size: clamp(22px, 7vw, 36px); }
  .mg-page .mg-nw-quote strong { font-size: clamp(19px, 6vw, 28px); }
}


/* Guides, FAQs and Insights: keep the normal side margin on the article area */
.mg-gd-layout { padding-left: 24px; padding-right: 24px; }

/* Mobile menu: brand navy instead of black */
body #mobile-drawer .drawer-inner { background: #0F2A4A !important; }
body #mobile-drawer .drawer-header .drawer-toggle,
body #mobile-drawer .drawer-header .drawer-toggle:hover { color: #FFFFFF !important; }
body #mobile-drawer .mobile-navigation ul li > a,
body #mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a { color: #FFFFFF !important; font-weight: 600; font-size: 16px; }
body #mobile-drawer .mobile-navigation ul ul li > a { color: #C9D1DD !important; font-weight: 500; font-size: 15px; }
body #mobile-drawer .mobile-navigation ul li > a:hover,
body #mobile-drawer .mobile-navigation ul li.current-menu-item > a { color: #F4C7D0 !important; }
body #mobile-drawer .mobile-navigation .drawer-sub-toggle { color: #F4C7D0 !important; border-left-color: rgba(255,255,255,0.14) !important; }
body #mobile-drawer .mobile-navigation ul li.menu-item-has-children .drawer-nav-drop-wrap,
body #mobile-drawer .mobile-navigation ul li:not(.menu-item-has-children) a { border-bottom-color: rgba(255,255,255,0.14) !important; }
body #mobile-drawer .mobile-navigation ul ul { background: rgba(255,255,255,0.04); }

/* Domestic Solar: keep the hero photo sharp on phones (show it at the top only, fade into navy) */
@media (max-width: 767px) {
  .mg-page .mg-dm-hero__bg { bottom: auto; height: 460px; animation: none; background-position: center 35%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
}


/* Footer social icons under logo (far left) */
.site-footer-middle-section-1{flex-direction:column;align-items:flex-start;}
.site-footer-middle-section-1 .footer-social-wrap{width:100%;}
.site-footer-middle-section-1 > .footer-widget-area{margin-left:0 !important;margin-right:0 !important;}
.site-footer-middle-section-1 .footer-social-inner-wrap{flex-direction:row;flex-wrap:nowrap;gap:0.6em;justify-content:flex-start;margin-left:0 !important;padding-left:0 !important;}
.site-footer-middle-section-1 .footer-social-wrap .social-button:first-child{margin-left:0 !important;}


/* Page hero labels: match homepage eyebrow (size + line) */
p.mg-label:has(+ h1),
p.mg-thanks__label,
p.wp-block-kadence-advancedheading:has(+ h1){display:inline-flex !important;align-items:center;gap:12px;font-size:12px !important;letter-spacing:2.5px !important;text-transform:uppercase;font-weight:700 !important;line-height:1.4;margin:0 0 32px !important;}
p.mg-label:has(+ h1)::before,
p.mg-thanks__label::before,
p.wp-block-kadence-advancedheading:has(+ h1)::before{content:"";display:block;width:28px;height:2px;background:currentColor;flex:0 0 28px;}
p.mg-label:has(+ h1) + h1,
p.mg-thanks__label + h1,
p.wp-block-kadence-advancedheading:has(+ h1) + h1{margin-top:0 !important;}

/* Moralis forms START */
.wp-block-jetpack-contact-form.mg-form{background:#fff;border:1px solid #E3E8EF;border-radius:16px;padding:36px 36px 32px;box-shadow:0 12px 32px rgba(15,42,74,.07);gap:20px 20px !important;align-items:flex-start}
.mg-form > *{margin:0 !important}
.mg-form .grunion-field-wrap{flex:1 1 100% !important;max-width:100%;min-width:0}
.mg-form .grunion-field-width-50-wrap{flex:1 1 calc(50% - 10px) !important;max-width:calc(50% - 10px)}
.mg-form .mg-form-step,.mg-form .wp-block-button{flex:1 1 100% !important;max-width:100%}
.mg-form .mg-form-step{display:flex;gap:14px;align-items:flex-start;padding-top:24px;border-top:1px solid #E3E8EF;font-size:14px;line-height:1.5;color:#5B6577}
.mg-form .mg-form-step:first-child{border-top:0;padding-top:0}
.mg-form .mg-form-step__num{flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#0F2A4A;color:#fff;font:700 15px/34px Montserrat,sans-serif;text-align:center}
.mg-form .mg-form-step strong{display:inline-block;margin-bottom:2px;color:#0F2A4A;font:700 18px/1.3 Montserrat,sans-serif}
.mg-form .grunion-field-label{font-size:13px;font-weight:600;color:#0F2A4A;margin-bottom:6px}
.mg-form .grunion-label-required{font-size:0 !important;margin-left:3px}
.mg-form .grunion-label-required::after{content:"*";font-size:14px;color:#B4536A;font-weight:700}
.mg-form input[type=text],.mg-form input[type=email],.mg-form input[type=tel],.mg-form select,.mg-form textarea,.mg-form .jetpack-field__input-phone-wrapper,.mg-form .contact-form__select-wrapper select{border:1px solid #D5DCE6 !important;border-radius:10px !important;background:#F8FAFC !important;font-size:15px !important;transition:border-color .15s,box-shadow .15s}
.mg-form input:focus,.mg-form select:focus,.mg-form textarea:focus{border-color:#0F2A4A !important;box-shadow:0 0 0 3px rgba(244,199,208,.65) !important;background:#fff !important;outline:none}
.mg-form textarea{min-height:120px}
.mg-form .grunion-checkbox-multiple-options,.mg-form .grunion-field-checkbox-multiple-wrap .grunion-field-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.mg-form .grunion-field-checkbox-wrap{padding:16px 18px;background:#F9E1E6;border-radius:10px;font-size:13px;color:#0F2A4A}
.mg-form .wp-block-button,.mg-form .wp-block-button__link{width:100%}
.mg-form button[type=submit]{width:100%;background:#0F2A4A !important;color:#fff !important;border-radius:10px !important;padding:17px 24px !important;font:700 16px Montserrat,sans-serif !important;letter-spacing:.2px;border:0 !important;transition:background .15s,color .15s}
.mg-form button[type=submit]:hover{background:#F4C7D0 !important;color:#0F2A4A !important}
@media (max-width:700px){.wp-block-jetpack-contact-form.mg-form{padding:24px 18px}.mg-form .grunion-field-width-50-wrap{flex-basis:100% !important;max-width:100%}.mg-form .grunion-checkbox-multiple-options,.mg-form .grunion-field-checkbox-multiple-wrap .grunion-field-options{grid-template-columns:1fr}}
.mg-form .jetpack-field__input-phone-wrapper{height:50px;align-items:center}
.mg-form .jetpack-field__input-phone-wrapper input.jetpack-field__input-element{border:0 !important;background:transparent !important;box-shadow:none !important;height:46px}
.mg-form select{height:50px !important;padding:0 14px !important}
.mg-form .grunion-checkbox-multiple-options{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.mg-form .grunion-checkbox-multiple-options label.contact-form-field{border:1px solid #D5DCE6;border-radius:10px;background:#F8FAFC;padding:12px 14px;margin:0 !important;align-items:center;gap:10px;font-size:14px;color:#0F2A4A;cursor:pointer}
.mg-form .grunion-checkbox-multiple-options label.contact-form-field:has(input:checked){border-color:#0F2A4A;background:#F9E1E6}
@media (max-width:700px){.mg-form .grunion-checkbox-multiple-options{grid-template-columns:1fr}}
.contact-sidebar .mg-contact-crosslink{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.18);color:#fff;font-size:14px;line-height:1.5}
.contact-sidebar .mg-contact-crosslink a{color:#F4C7D0;font-weight:600;text-decoration:none}
.contact-sidebar .mg-contact-crosslink a:hover{text-decoration:underline}
/* Moralis forms END */

/* Moralis contact pages START */
.mg-ct-hero{padding:96px 0 170px}
.mg-ct-hero__grid{display:grid;grid-template-columns:1.25fr .75fr;gap:56px;align-items:center}
.mg-ct-hero .mg-ar-hero__buttons .mg-btn--ghost{white-space:nowrap}
.mg-ct-trust{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:28px 28px 22px;backdrop-filter:blur(4px)}
.mg-ct-trust__title{font:700 13px Inter,sans-serif !important;letter-spacing:2px;text-transform:uppercase;color:#F4C7D0 !important;margin:0 0 16px !important}
.mg-ct-trust ul{list-style:none;margin:0;padding:0}
.mg-ct-trust li{display:flex;gap:12px;align-items:flex-start;color:#fff;font-size:16px;line-height:1.45;padding:10px 0;border-top:1px solid rgba(255,255,255,.1)}
.mg-ct-trust li:first-child{border-top:0}
.mg-ct-tick{flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#F4C7D0;color:#0F2A4A;display:flex;align-items:center;justify-content:center;margin-top:1px}
.mg-ct-tick svg{width:14px;height:14px}
.mg-ct-body{position:relative;z-index:2;max-width:1200px;margin:-110px auto 96px !important;padding:0 24px;scroll-margin-top:100px}
.mg-ct-body > .wp-block-group__inner-container{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:32px;align-items:start}
.mg-ct-body > .wp-block-group__inner-container > *{margin:0 !important}
.mg-ct-main .wp-block-jetpack-contact-form.mg-form{padding:44px 44px 40px;box-shadow:0 24px 60px rgba(15,42,74,.12);border-color:#E3E8EF}
.mg-ct-side{display:flex;flex-direction:column;gap:20px;position:sticky;top:110px}
.mg-ct-card{display:block;background:#fff;border:1px solid #E3E8EF;border-radius:16px;padding:28px;box-shadow:0 12px 32px rgba(15,42,74,.07);text-decoration:none !important}
.mg-ct-card h3{font:700 20px/1.3 Montserrat,sans-serif;color:#0F2A4A;margin:0 0 18px}
.mg-ct-card--navy{background:#0F2A4A;border-color:#0F2A4A}
.mg-ct-card--navy h3{color:#fff}
.mg-ct-line{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-top:1px solid rgba(255,255,255,.12);color:#fff !important;text-decoration:none !important;font-size:15px;line-height:1.45}
.mg-ct-card h3 + .mg-ct-line{border-top:0;padding-top:0}
.mg-ct-line small{display:block;font-size:12px;letter-spacing:.5px;color:#F4C7D0;margin-bottom:2px}
a.mg-ct-line:hover span:last-child{text-decoration:underline}
.mg-ct-ico{flex:0 0 40px;width:40px;height:40px;border-radius:10px;background:rgba(244,199,208,.15);color:#F4C7D0;display:flex;align-items:center;justify-content:center}
.mg-ct-ico svg{width:20px;height:20px}
.mg-ct-steps{list-style:none;margin:0;padding:0;counter-reset:mgstep}
.mg-ct-steps li{position:relative;counter-increment:mgstep;padding:0 0 20px 50px;font-size:14px;line-height:1.5;color:#5B6577}
.mg-ct-steps li:last-child{padding-bottom:0}
.mg-ct-steps li::before{content:counter(mgstep);position:absolute;left:0;top:0;width:34px;height:34px;border-radius:50%;background:#F9E1E6;color:#0F2A4A;font:700 14px/34px Montserrat,sans-serif;text-align:center}
.mg-ct-steps li::after{content:"";position:absolute;left:16px;top:38px;bottom:4px;width:2px;background:#F4C7D0}
.mg-ct-steps li:last-child::after{display:none}
.mg-ct-steps strong{display:block;color:#0F2A4A;font-size:15px;margin-bottom:2px}
.mg-ct-card--pink{background:#F9E1E6;border-color:#F4C7D0;box-shadow:none;transition:transform .2s,box-shadow .2s}
.mg-ct-card--pink:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(15,42,74,.12)}
.mg-ct-cross small{display:block;font-size:13px;color:#5B6577;margin-bottom:4px}
.mg-ct-cross strong{color:#0F2A4A;font-size:16px}
@media (max-width:1024px){.mg-ct-hero__grid{grid-template-columns:1fr;gap:32px}.mg-ct-body > .wp-block-group__inner-container{grid-template-columns:1fr}.mg-ct-side{position:static}}
@media (max-width:700px){.mg-ct-hero{padding:64px 0 130px}.mg-ct-body{margin-top:-90px !important;padding:0 14px;margin-bottom:64px !important}.mg-ct-main .wp-block-jetpack-contact-form.mg-form{padding:26px 18px}.mg-ct-card{padding:22px}}
/* Moralis contact pages END */
