/* =========================================================
   RGGM NEMT — Scoped foundation
   Every selector and custom property belongs to this component.
   ========================================================= */
#rggm-nemt {
  --rggm-purple: #391563;
  --rggm-purple-dark: #2d104e;
  --rggm-gold: #d5a820;
  --rggm-lilac: #f6f0fb;
  --rggm-border: #e9ddf4;
  --rggm-text: #51495a;
  width: 100%;
  color: var(--rggm-text);
  background: #fff;
  font: 400 16px/1.65 Georgia, 'Times New Roman', serif;
  text-align: left;
  isolation: isolate;
  -webkit-text-size-adjust: 100%;
}
#rggm-nemt, #rggm-nemt *, #rggm-nemt *::before, #rggm-nemt *::after { box-sizing: border-box; }
#rggm-nemt .rggm-nemt__container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
#rggm-nemt h1, #rggm-nemt h2, #rggm-nemt h3, #rggm-nemt p, #rggm-nemt figure { margin: 0; padding: 0; }
#rggm-nemt h1, #rggm-nemt h2, #rggm-nemt h3 { color: var(--rggm-purple); font-family: Arial, Helvetica, sans-serif; font-style: normal; font-weight: 700; text-transform: none; }
#rggm-nemt img { display: block; max-width: 100%; }
#rggm-nemt .rggm-nemt__eyebrow { display: inline-block; border-radius: 999px; background: #eee1f8; padding: 6px 12px; color: var(--rggm-purple); font: 700 11px/1.4 Arial, Helvetica, sans-serif; letter-spacing: .55px; text-transform: uppercase; }

/* =========================================================
   Hero — Large integrated transportation image
   ========================================================= */
#rggm-nemt .rggm-nemt__hero { padding-block: 60px; background: linear-gradient(110deg, #fffbf3 0%, #fffdfb 45%, #f8f3fc 100%); }
#rggm-nemt .rggm-nemt__hero-layout { width: min(1320px, calc(100% - 64px)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: center; gap: 40px; }
#rggm-nemt .rggm-nemt__hero-copy { min-width: 0; }
#rggm-nemt .rggm-nemt__hero h1 { font-size: clamp(34px, 3.5vw, 50px); letter-spacing: -1.8px; line-height: 1.08; margin-block: 18px 22px; overflow-wrap: normal; }
#rggm-nemt .rggm-nemt__hero-description { max-width: 590px; font-size: 16px; line-height: 1.75; }
#rggm-nemt .rggm-nemt__slogan { margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--rggm-gold); color: var(--rggm-purple); font: 700 19px/1.5 Arial, Helvetica, sans-serif; }
#rggm-nemt .rggm-nemt__slogan span { display: block; }
#rggm-nemt .rggm-nemt__hero-visual { min-width: 0; width: 100%; align-self: stretch; display: flex; align-items: center; }
#rggm-nemt .rggm-nemt__photo { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: contain; object-position: center; border-radius: 0; mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 100%); }

/* =========================================================
   Program statement — Purple divider
   ========================================================= */
#rggm-nemt .rggm-nemt__statement { padding-block: 16px; background: var(--rggm-purple); color: #fff; text-align: center; }
#rggm-nemt .rggm-nemt__statement p { color: inherit; font: 700 14px/1.6 Arial, Helvetica, sans-serif; letter-spacing: .2px; }

/* =========================================================
   Services — Section heading and support cards
   ========================================================= */
#rggm-nemt .rggm-nemt__services { padding-block: 76px 88px; background: #fff; }
#rggm-nemt .rggm-nemt__section-heading { max-width: 820px; margin: 0 auto 36px; text-align: center; }
#rggm-nemt .rggm-nemt__section-heading h2 { margin-bottom: 16px; font-size: clamp(27px, 2.9vw, 38px); line-height: 1.2; letter-spacing: -.65px; }
#rggm-nemt .rggm-nemt__intro { max-width: 730px; margin-inline: auto; color: #746a7c; font-size: 16px; line-height: 1.7; }
#rggm-nemt .rggm-nemt__cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
#rggm-nemt .rggm-nemt__card { grid-column: span 2; min-width: 0; padding: 26px; border: 1px solid var(--rggm-border); border-top: 3px solid var(--rggm-gold); border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgb(48 20 77 / 5%); }
#rggm-nemt .rggm-nemt__card:nth-child(4) { grid-column: 2 / span 2; }
#rggm-nemt .rggm-nemt__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 12px; background: var(--rggm-lilac); font: 24px/1 Arial, Helvetica, sans-serif; }
#rggm-nemt .rggm-nemt__card h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.35; }
#rggm-nemt .rggm-nemt__card p { font-size: 15px; line-height: 1.75; }

/* =========================================================
   Responsive — Tablet (up to 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  #rggm-nemt .rggm-nemt__hero { padding-block: 56px; }
  #rggm-nemt .rggm-nemt__hero-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  #rggm-nemt .rggm-nemt__hero h1 { font-size: clamp(32px, 4.3vw, 44px); letter-spacing: -1.2px; }
  #rggm-nemt .rggm-nemt__cards { gap: 18px; }
  #rggm-nemt .rggm-nemt__card { padding: 22px; }
}

/* =========================================================
   Responsive — Stacked hero and two-column services
   ========================================================= */
@media (max-width: 900px) {
  #rggm-nemt .rggm-nemt__container { width: calc(100% - 40px); }
  #rggm-nemt .rggm-nemt__hero { padding-block: 42px; }
  #rggm-nemt .rggm-nemt__hero-layout { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr); gap: 30px; }
  #rggm-nemt .rggm-nemt__hero h1 { max-width: 580px; font-size: clamp(32px, 6.3vw, 44px); }
  #rggm-nemt .rggm-nemt__hero-visual { width: 100%; max-width: none; margin-inline: 0; }
  #rggm-nemt .rggm-nemt__photo { height: auto; min-height: 0; max-height: none; aspect-ratio: 1.48; object-fit: contain; mask-image: none; }
  #rggm-nemt .rggm-nemt__services { padding-block: 48px 56px; }
  #rggm-nemt .rggm-nemt__section-heading { margin-bottom: 28px; }
  #rggm-nemt .rggm-nemt__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #rggm-nemt .rggm-nemt__card, #rggm-nemt .rggm-nemt__card:nth-child(4) { grid-column: auto; }
  #rggm-nemt .rggm-nemt__card:last-child { grid-column: 1 / -1; }
}

/* =========================================================
   Responsive — Small phones
   ========================================================= */
@media (max-width: 480px) {
  #rggm-nemt .rggm-nemt__hero-layout { width: calc(100% - 32px); }
  #rggm-nemt .rggm-nemt__container { width: calc(100% - 32px); }
  #rggm-nemt .rggm-nemt__hero h1 { font-size: clamp(28px, 7.6vw, 36px); letter-spacing: -.9px; }
  #rggm-nemt .rggm-nemt__hero-description { font-size: 15px; }
  #rggm-nemt .rggm-nemt__hero-visual { padding: 0; border-radius: 0; }
  #rggm-nemt .rggm-nemt__statement p { font-size: 12px; }
  #rggm-nemt .rggm-nemt__cards { grid-template-columns: minmax(0, 1fr); }
  #rggm-nemt .rggm-nemt__card { padding: 24px; }
  #rggm-nemt .rggm-nemt__section-heading h2 { font-size: 28px; }
}