.m2s-reports-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) 70px !important;
  padding: 0 clamp(18px, 6vw, 84px);
  color: #050505;
  font-family: Inter, Arial, sans-serif;
}

.m2s-reports-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(18, 15, 13, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 15, 13, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 75% 22%, rgba(255, 196, 0, 0.22), transparent 25%),
    linear-gradient(180deg, #fffdf4 0%, #f5f3ec 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.m2s-hero-panel {
  position: relative;
  width: min(1400px, 100%) !important;
  max-width: none !important;
  margin: 28px auto 0 !important;
  min-height: 244px;
  padding: 42px !important;
  overflow: hidden;
  border: 1px solid rgba(18, 15, 13, 0.08);
  border-top: 5px solid #120f0d;
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 223, 0.82)),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 24px 70px rgba(18, 15, 13, 0.12);
  backdrop-filter: blur(22px);
}

.m2s-hero-panel::after {
  content: "";
  position: absolute;
  right: 72px;
  top: 58px;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(18, 15, 13, 0.12);
  border-radius: 50%;
  background:
    url("https://miles2smile.org/wp-content/uploads/2026/07/M2S-.svg") center / 62px 62px no-repeat,
    #ffc400;
  box-shadow:
    0 16px 30px rgba(217, 161, 0, 0.28),
    inset 0 0 0 13px rgba(255, 196, 0, 1),
    inset 0 0 0 15px rgba(18, 15, 13, 0.16);
  transform: rotate(-10deg);
}

.m2s-kicker {
  margin: 0 0 12px !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.m2s-hero-panel h1 {
  max-width: calc(100% - 190px);
  margin: 0 !important;
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  white-space: nowrap;
}

.m2s-hero-panel p:not(.m2s-kicker) {
  max-width: 680px;
  margin-top: 18px !important;
  color: #202020;
  font-size: 16px;
  line-height: 1.7;
}

.m2s-report-grid {
  display: block !important;
  width: min(1400px, 100%) !important;
  max-width: none !important;
  margin: 28px auto 0 !important;
  padding: 24px;
  border: 1px solid rgba(18, 15, 13, 0.08);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 90px rgba(18, 15, 13, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
}

.m2s-featured-row {
  display: block !important;
  width: min(1400px, 100%) !important;
  max-width: none !important;
  margin: 28px auto 0 !important;
}

.m2s-featured-row > .wp-block-column {
  width: 100% !important;
  flex-basis: 100% !important;
}

.m2s-report-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px !important;
  margin: 0 0 28px !important;
}

.m2s-report-row:last-child {
  margin-bottom: 0 !important;
}

.m2s-report-card {
  flex-basis: auto !important;
  display: grid;
  gap: 12px;
  padding-bottom: 6px;
  text-align: center;
  transition: transform 0.28s ease;
}

.m2s-report-card:hover {
  transform: translateY(-8px);
}

.m2s-featured-report {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 22px;
  border: 1px solid rgba(0, 117, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 111, 234, 0.18), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(13, 135, 146, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 255, 0.76)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 30px 80px rgba(0, 117, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  text-align: left;
}

.m2s-featured-report .m2s-report-cover {
  width: 100%;
  max-width: 360px;
}

.m2s-featured-copy {
  display: grid;
  gap: 12px;
}

.m2s-featured-label {
  width: fit-content;
  margin: 0 !important;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6fea, #0d8792);
  color: #fff !important;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.m2s-featured-copy h2 {
  max-width: 520px;
  margin: 0 !important;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -1px;
  overflow-wrap: normal;
  word-break: normal;
}

.m2s-featured-copy p:not(.m2s-featured-label) {
  max-width: 480px;
  margin: 0 !important;
  color: #364152;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.m2s-report-card:not(.m2s-featured-report) .m2s-featured-copy {
  display: none;
}

.m2s-report-cover {
  position: relative;
  aspect-ratio: 725 / 1024;
  overflow: hidden;
  margin: 0 !important;
  border-radius: 5px;
  background: #f1f1f1;
  box-shadow:
    0 26px 42px rgba(18, 15, 13, 0.22),
    0 8px 0 rgba(255, 196, 0, 0.06);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.m2s-report-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.26), transparent 24%, transparent 68%, rgba(255, 255, 255, 0.12)),
    linear-gradient(to bottom, transparent 68%, rgba(0, 0, 0, 0.2) 100%);
}

.m2s-report-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.m2s-report-card:hover .m2s-report-cover {
  transform: perspective(900px) rotateX(2deg);
  box-shadow:
    0 34px 60px rgba(18, 15, 13, 0.28),
    0 12px 0 rgba(255, 196, 0, 0.08);
}

.m2s-report-card:hover .m2s-report-cover img {
  filter: contrast(1.04) saturate(1.04);
  transform: scale(1.05);
}

.m2s-read-button .wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 28px;
  overflow: hidden;
  padding: 0 10px !important;
  border: 1px solid rgba(0, 117, 255, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 255, 0.86)),
    rgba(255, 255, 255, 0.72) !important;
  color: #0075ff !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  text-decoration: none !important;
  box-shadow:
    0 10px 22px rgba(0, 117, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.m2s-read-button .wp-block-button__link::after {
  content: "→";
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  place-items: center;
  border-radius: 50%;
  background: #0075ff;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 15px;
  transition: transform 0.22s ease, background 0.22s ease;
}

.editor-styles-wrapper .m2s-report-grid {
  display: block !important;
}

.editor-styles-wrapper .m2s-featured-report {
  grid-template-columns: 120px minmax(260px, 1fr) auto !important;
  gap: 20px !important;
  padding: 16px !important;
}

.editor-styles-wrapper .m2s-featured-report .m2s-report-cover {
  max-width: 120px !important;
}

.editor-styles-wrapper .m2s-featured-copy h2 {
  font-size: 28px !important;
}

.editor-styles-wrapper .m2s-featured-copy p:not(.m2s-featured-label) {
  font-size: 13px !important;
}

.editor-styles-wrapper .m2s-report-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

.editor-styles-wrapper .m2s-report-card {
  min-width: 0;
}

.editor-styles-wrapper .m2s-read-button .wp-block-button__link {
  width: auto !important;
  white-space: nowrap !important;
}

.m2s-report-card:hover .m2s-read-button .wp-block-button__link {
  border-color: rgba(0, 117, 255, 0.42);
  box-shadow:
    0 18px 34px rgba(0, 117, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.m2s-report-card:hover .m2s-read-button .wp-block-button__link::after {
  background: #004fb7;
  transform: translateX(3px);
}

@media (max-width: 1280px) {
  .m2s-report-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .m2s-report-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m2s-featured-report {
    grid-template-columns: minmax(220px, 300px) minmax(260px, 1fr);
  }

  .m2s-featured-report .wp-block-buttons {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .m2s-hero-panel {
    padding: 30px 24px !important;
  }

  .m2s-hero-panel::after {
    display: none;
  }

  .m2s-hero-panel h1 {
    letter-spacing: -1px;
    white-space: normal;
  }

  .m2s-report-row {
    display: block !important;
  }

  .m2s-report-card {
    margin-bottom: 16px;
  }

  .m2s-featured-report {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .m2s-featured-report .m2s-report-cover,
  .m2s-featured-label {
    justify-self: center;
  }

  .m2s-featured-report .wp-block-buttons {
    grid-column: auto;
    justify-content: center;
  }
}
