.mep-page,
.mep-page * {
  box-sizing: border-box;
}

.mep-page {
  --mep-navy: #1F295C;
  --mep-ink: #1F295C;
  --mep-muted: rgba(31, 41, 92, 0.70);
  --mep-yellow: #FFD000;
  --mep-yellow-deep: #FFBE0B;
  --mep-shadow: 0 26px 80px rgba(31, 41, 92, 0.14);
  --mep-shadow-soft: 0 14px 46px rgba(31, 41, 92, 0.10);
  --mep-radius: 32px;

  position: relative;
  width: 100%;
  margin: 0;
  padding: 24px 0 40px;
  color: var(--mep-ink);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 208, 0, 0.18), transparent 24%),
    radial-gradient(circle at 12% 10%, rgba(31, 41, 92, 0.16), transparent 26%),
    linear-gradient(135deg, #FFFFFF 0%, #F3F5FF 38%, #FFFFFF 66%, #FFF8CF 100%);
}

.mep-page a { color: inherit; text-decoration: none; }

.mep-container { width: min(1260px, 100%); margin: 0 auto; padding: 0 18px; }

/* Hero */
.mep-hero {
  position: relative;
  min-height: 300px;
  margin: 0 auto 34px;
  padding: 56px 34px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.80);
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  box-shadow: var(--mep-shadow);
  backdrop-filter: blur(18px);
}
.mep-hero-inner { position: relative; z-index: 2; max-width: 980px; }
.mep-hero-kicker,
.mep-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 208, 0, 0.42);
  border-radius: 999px;
  background: rgba(255, 208, 0, 0.18);
  color: var(--mep-navy);
  font-weight: 850;
}
.mep-hero-kicker {
  margin-bottom: 20px;
  padding: 11px 17px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.mep-hero h1 {
  margin: 0;
  color: var(--mep-navy);
  font-family: Poppins, Inter, Arial, sans-serif;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}
.mep-hero h1 span { color: var(--mep-yellow-deep); }
.mep-hero-subtitle {
  max-width: 790px;
  margin: 23px auto 0;
  color: var(--mep-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}
.mep-hero-subtitle strong { color: var(--mep-navy); }
.mep-hero-actions { margin-top: 27px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.mep-btn {
  min-height: 52px;
  padding: 11px 15px 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--mep-navy);
  border-radius: 16px;
  background: var(--mep-navy);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(31, 41, 92, 0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.mep-btn:hover { transform: translateY(-4px); background: var(--mep-yellow); color: var(--mep-navy) !important; }
.mep-btn.is-light {
  border-color: rgba(31, 41, 92, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--mep-navy) !important;
  backdrop-filter: blur(12px);
}
.mep-btn.is-light:hover { border-color: var(--mep-yellow); background: #FFFFFF; }
.mep-btn-icon {
  width: 31px; height: 31px; flex: 0 0 31px;
  display: inline-grid; place-items: center;
  border-radius: 10px; background: var(--mep-yellow); color: var(--mep-navy);
  font-weight: 900;
}
.mep-btn.is-light .mep-btn-icon { background: var(--mep-navy); color: #FFFFFF; }

/* Sections */
.mep-section {
  position: relative;
  margin: 24px auto;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--mep-radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  box-shadow: var(--mep-shadow-soft);
  backdrop-filter: blur(16px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.mep-section:hover { transform: translateY(-3px); box-shadow: 0 30px 80px rgba(31, 41, 92, 0.14); }

.mep-overview { display: grid; grid-template-columns: minmax(90px, 140px) 1fr; gap: 28px; align-items: stretch; }
.mep-overview-rule {
  width: 100%; min-height: 100%; border-radius: 30px;
  background: linear-gradient(180deg, var(--mep-navy), rgba(31, 41, 92, 0.68), rgba(255, 208, 0, 0.48));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 22px 44px rgba(31, 41, 92, 0.12);
}
.mep-overview h2, .mep-section-title h2 {
  margin: 0; color: var(--mep-navy);
  font-family: Poppins, Inter, Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08; letter-spacing: -0.045em; font-weight: 950;
}
.mep-overview p, .mep-section-copy { margin: 0 0 16px; color: var(--mep-muted); font-size: 16.5px; line-height: 1.72; }
.mep-overview .mep-pill { margin: 16px 0 22px; padding: 12px 17px; font-size: 15.5px; }

.mep-section-title { position: relative; margin-bottom: 23px; display: flex; align-items: center; gap: 15px; }
.mep-title-icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center; border-radius: 15px;
  background: var(--mep-navy); color: #FFFFFF; font-size: 20px;
  box-shadow: 0 14px 30px rgba(31, 41, 92, 0.22);
}
.mep-section-intro { max-width: 820px; margin-bottom: 25px; }

/* Breadcrumb */
.mep-breadcrumb { margin: 0 auto 18px; font-size: 13px; font-weight: 700; color: var(--mep-muted); }
.mep-breadcrumb a { color: var(--mep-navy); }
.mep-breadcrumb a:hover { color: var(--mep-yellow-deep); }
.mep-breadcrumb .mep-sep { margin: 0 6px; opacity: 0.5; }
.mep-back-link { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--mep-navy); }

/* Industry grid */
.mep-industry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mep-industry-card {
  position: relative; min-height: 116px; padding: 18px;
  display: grid; grid-template-columns: 54px 1fr 35px; gap: 15px; align-items: center;
  overflow: hidden; border: 1px solid rgba(31, 41, 92, 0.10); border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(31, 41, 92, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.mep-industry-card:hover { transform: translateY(-5px); border-color: rgba(255, 208, 0, 0.62); background: #FFFFFF; box-shadow: 0 20px 45px rgba(31, 41, 92, 0.12); }
.mep-industry-icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px;
  background: var(--mep-navy); color: #FFFFFF; font-weight: 900; font-size: 20px;
  box-shadow: 0 13px 30px rgba(31, 41, 92, 0.19);
}
.mep-industry-card:hover .mep-industry-icon { background: var(--mep-yellow); color: var(--mep-navy); }
.mep-industry-content span {
  display: block; margin-bottom: 5px; color: rgba(31, 41, 92, 0.58);
  font-size: 10px; font-weight: 900; letter-spacing: 0.10em; text-transform: uppercase;
}
.mep-industry-content h3 { margin: 0; color: var(--mep-navy); font-size: 17px; line-height: 1.32; font-weight: 900; }
.mep-arrow {
  width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(31, 41, 92, 0.08); color: var(--mep-navy); font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease;
}
.mep-industry-card:hover .mep-arrow { transform: translate(3px, -3px); background: var(--mep-yellow); }

/* Video / photo showcase */
.mep-video-showcase {
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 208, 0, 0.18), transparent 25%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 255, 0.76));
}
.mep-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.mep-video-card {
  position: relative; min-width: 0; overflow: hidden;
  border: 1px solid rgba(31, 41, 92, 0.12); border-radius: 25px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 16px 42px rgba(31, 41, 92, 0.10);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.mep-video-card:hover { transform: translateY(-6px); border-color: rgba(255, 208, 0, 0.65); box-shadow: 0 25px 60px rgba(31, 41, 92, 0.16); }
.mep-video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--mep-navy), rgba(31, 41, 92, 0.82));
}
.mep-video-card.is-short { width: min(100%, 410px); justify-self: center; }
.mep-video-card.is-short .mep-video-frame { aspect-ratio: 9 / 16; max-height: 680px; }
.mep-video-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.mep-video-info { padding: 18px 19px 19px; }
.mep-video-type {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px;
  color: rgba(31, 41, 92, 0.56); font-size: 10px; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase;
}
.mep-video-type::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--mep-yellow); }
.mep-video-title { margin: 0; color: var(--mep-navy); font-size: 17px; line-height: 1.35; font-weight: 900; }

.mep-video-placeholder {
  min-height: 200px; padding: 24px; display: grid; place-items: center; text-align: center;
  border: 1px dashed rgba(31, 41, 92, 0.26); border-radius: 25px;
  background: radial-gradient(circle at 50% 25%, rgba(255, 208, 0, 0.18), transparent 28%), rgba(255, 255, 255, 0.62);
  grid-column: 1 / -1;
}
.mep-video-placeholder-inner p { margin: 0; color: var(--mep-muted); font-size: 14px; line-height: 1.6; }

.mep-empty {
  padding: 22px; border: 1px dashed rgba(31, 41, 92, 0.26); border-radius: 18px;
  color: var(--mep-muted); text-align: center;
}

/* Reveal-on-scroll */
.mep-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.mep-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .mep-hero { min-height: 270px; padding: 44px 24px; border-radius: 32px; }
  .mep-overview { grid-template-columns: 1fr; }
  .mep-overview-rule {
    min-height: 18px; border-radius: 999px;
    background: linear-gradient(90deg, var(--mep-navy), rgba(31, 41, 92, 0.68), rgba(255, 208, 0, 0.65));
  }
  .mep-industry-grid, .mep-video-grid { grid-template-columns: 1fr; }
  .mep-video-card.is-short { width: min(100%, 430px); }
}

@media (max-width: 640px) {
  .mep-hero { padding: 40px 18px; border-radius: 28px; }
  .mep-hero h1 { font-size: clamp(34px, 12vw, 52px); }
  .mep-hero-actions { flex-direction: column; align-items: stretch; }
  .mep-hero-actions .mep-btn { width: 100%; }
  .mep-section { padding: 24px 18px; border-radius: 26px; }
  .mep-overview h2, .mep-section-title h2 { font-size: 27px; }
  .mep-industry-card { min-height: 104px; grid-template-columns: 48px 1fr 32px; gap: 12px; padding: 15px; }
  .mep-industry-icon { width: 48px; height: 48px; border-radius: 15px; }
  .mep-industry-content h3 { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .mep-page *, .mep-page *::before, .mep-page *::after {
    animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;
  }
  .mep-reveal { opacity: 1; transform: none; }
}
