.mrp-articles,
.mrp-articles * {
  box-sizing: border-box;
}

.mrp-articles {
  --mrp-articles-navy: #071747;
  --mrp-articles-blue: #1456f0;
  --mrp-articles-muted: #405577;
  --mrp-articles-border: #dfe8f6;
  --mrp-articles-shadow: 0 11px 28px rgba(8, 31, 79, 0.075);
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--mrp-articles-navy);
  font-family: inherit;
}

.mrp-articles::before,
.mrp-articles::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.mrp-articles::before {
  left: -115px;
  bottom: 82px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 233, 249, .90) 0%, rgba(222, 233, 249, .46) 54%, rgba(222, 233, 249, 0) 72%);
}

.mrp-articles::after {
  right: -58px;
  bottom: 20px;
  width: 340px;
  height: 315px;
  opacity: .48;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(199, 216, 238, .68) 2px, transparent 2.5px),
    linear-gradient(60deg, transparent 48%, rgba(199, 216, 238, .30) 49%, rgba(199, 216, 238, .30) 51%, transparent 52%);
  background-size: 38px 38px, 76px 66px;
}

.mrp-articles__container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.mrp-articles__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  margin: 0 0 38px;
  text-align: left;
}

.mrp-articles__header-copy {
  min-width: 0;
  max-width: 880px;
}

.mrp-articles__badge-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  margin: 0 0 28px;
  padding: 10px 24px;
  color: var(--mrp-articles-blue);
  background: linear-gradient(180deg, #eef6ff 0%, #e6f0ff 100%);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .075em;
  line-height: 1.15;
  box-shadow: 0 5px 15px rgba(20, 86, 240, .06);
}

.mrp-articles__badge-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 20px;
  line-height: 1;
  color: currentColor;
}

.mrp-articles__badge-top-text {
  display: inline-block;
}

.mrp-articles__heading {
  margin: 0;
  color: var(--mrp-articles-navy);
  font-size: clamp(44px, 4vw, 66px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.mrp-articles__description {
  max-width: 760px;
  margin: 18px 0 0;
  color: #2e4369;
  font-size: clamp(18px, 1.25vw, 23px);
  line-height: 1.45;
  font-weight: 400;
}

.mrp-articles__header-action {
  flex: 0 0 auto;
  padding-bottom: 18px;
}

.mrp-articles__view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mrp-articles-blue);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none !important;
  transition: color .22s ease, gap .22s ease, transform .22s ease;
  box-shadow: none;
}

.mrp-articles__view-all:hover,
.mrp-articles__view-all:focus {
  gap: 18px;
  color: #0049d8;
  background: transparent;
  transform: translateY(-1px);
  box-shadow: none;
}

.mrp-articles__view-all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: currentColor;
  font-size: 20px;
  line-height: 1;
}

.mrp-articles__view-all-icon i,
.mrp-articles__view-all-icon svg {
  width: 1em;
  height: 1em;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.mrp-articles__tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}

.mrp-articles__tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid #dfe8f6;
  border-radius: 999px;
  background: #fff;
  color: var(--mrp-articles-navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: all .22s ease;
  box-shadow: 0 5px 14px rgba(15, 34, 70, .04);
}

.mrp-articles__tab:hover {
  transform: translateY(-1px);
  color: var(--mrp-articles-blue);
  background: #eef6ff;
}

.mrp-articles__tab.is-active {
  background: var(--mrp-articles-blue);
  color: #fff;
  border-color: var(--mrp-articles-blue);
  box-shadow: 0 9px 20px rgba(20, 86, 240, .20);
}

.mrp-articles__grid-wrap {
  position: relative;
}

.mrp-articles__grid {
  display: grid;
  grid-template-columns: repeat(var(--mrp-articles-columns, 3), minmax(0, 1fr));
  gap: 26px;
  transition: opacity .2s ease;
}

.mrp-articles.is-loading .mrp-articles__grid {
  opacity: .36;
  pointer-events: none;
}

.mrp-articles__loader {
  position: absolute;
  top: 42px;
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid rgba(20, 86, 240, .22);
  border-top-color: var(--mrp-articles-blue);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  animation: mrpArticlesSpin .8s linear infinite;
}

.mrp-articles.is-loading .mrp-articles__loader {
  opacity: 1;
  visibility: visible;
}

@keyframes mrpArticlesSpin {
  to { transform: rotate(360deg); }
}

.mrp-articles__card {
  min-width: 0;
  display: grid;
  grid-template-columns: 162px minmax(0, 1fr);
  gap: 20px;
  min-height: 260px;
  overflow: hidden;
  padding: 16px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--mrp-articles-border);
  border-radius: 22px;
  box-shadow: var(--mrp-articles-shadow);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.mrp-articles__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(8, 31, 79, .105);
  border-color: #cfdcf0;
}

.mrp-articles__image {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 228px;
  overflow: hidden;
  background: #edf4ff;
  border-radius: 14px;
}

.mrp-articles__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .34s ease, filter .34s ease;
}

.mrp-articles__card:hover .mrp-articles__image img {
  transform: scale(1.035);
}

.mrp-articles__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 228px;
  padding: 18px;
  background: linear-gradient(135deg, #eaf3ff, #f8fbff);
  color: var(--mrp-articles-navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  border-radius: 14px;
}

.mrp-articles__placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 76px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.mrp-articles__body {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 4px 8px 0;
  overflow: visible;
}

.mrp-articles__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 18px;
}

.mrp-articles__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--mrp-articles-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mrp-articles__badge-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mrp-articles__badge .mrp-articles__tab-icon-wrap,
.mrp-articles__tab-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  color: currentColor;
  background: transparent;
  overflow: hidden;
}

.mrp-articles__badge .mrp-articles__tab-icon-wrap i,
.mrp-articles__tab-icon-wrap i,
.mrp-articles__tab-icon-wrap .fa,
.mrp-articles__tab-icon-wrap .fas,
.mrp-articles__tab-icon-wrap .far,
.mrp-articles__tab-icon-wrap .fab,
.mrp-articles__tab-icon-wrap .eicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  color: currentColor;
  font-size: 1em;
  line-height: 1;
}

.mrp-articles__tab-icon-wrap svg {
  display: block;
  width: 1em;
  height: 1em;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.mrp-articles__tab-icon-wrap svg path,
.mrp-articles__tab-icon-wrap svg g,
.mrp-articles__tab-icon-wrap svg use,
.mrp-articles__tab-icon-wrap svg circle,
.mrp-articles__tab-icon-wrap svg rect,
.mrp-articles__tab-icon-wrap svg line,
.mrp-articles__tab-icon-wrap svg polyline,
.mrp-articles__tab-icon-wrap svg polygon,
.mrp-articles__tab-icon-wrap svg ellipse {
  fill: currentColor;
  stroke: currentColor;
}

.mrp-articles__tab-icon-img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.mrp-articles__badge--mounjaro-news,
.mrp-articles__badge--weight-management,
.mrp-articles__badge--reviews,
.mrp-articles__badge--safety-news,
.mrp-articles__badge--patient-stories {
  background: #f1eaff;
  color: #6b35d8;
}

.mrp-articles__badge--fda-regulation,
.mrp-articles__badge--fda-update,
.mrp-articles__badge--fda-updates,
.mrp-articles__badge--dosage-guide,
.mrp-articles__badge--cost-insurance {
  background: #eaf2ff;
  color: #1456f0;
}

.mrp-articles__badge--diabetes,
.mrp-articles__badge--research-studies,
.mrp-articles__badge--research-news,
.mrp-articles__badge--alternatives,
.mrp-articles__badge--faqs {
  background: #e7f7ef;
  color: #10864d;
}

.mrp-articles__badge--side-effects-safety,
.mrp-articles__badge--side-effects,
.mrp-articles__badge--safety-alerts {
  background: #fff0e5;
  color: #d35a12;
}

.mrp-articles__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.45vw, 25px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.mrp-articles__title a {
  color: var(--mrp-articles-navy);
  text-decoration: none;
  transition: color .2s ease;
}

.mrp-articles__title a:hover,
.mrp-articles__card:hover .mrp-articles__title a {
  color: var(--mrp-articles-blue);
}

.mrp-articles__excerpt {
  margin: 0 0 14px;
  color: var(--mrp-articles-muted);
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1.58;
  font-weight: 400;
}

.mrp-articles__date-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  line-height: 1;
}

.mrp-articles__card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
  clear: both;
}

.mrp-articles__date {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #67779b;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 500;
  white-space: nowrap;
}

.mrp-articles__date::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 2v4M17 2v4M4 9h16M6 5h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 2v4M17 2v4M4 9h16M6 5h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mrp-articles__read-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--mrp-articles-blue);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: gap .22s ease, color .22s ease;
}

.mrp-articles__read-more:hover {
  gap: 13px;
  color: #0046c9;
}

.mrp-articles__read-more-icon {
  font-size: 22px;
  line-height: .8;
}


.mrp-articles__date-row + .mrp-articles__card-footer {
  margin-top: auto;
}

.mrp-articles__body > .mrp-articles__card-footer:last-child {
  align-self: stretch;
}

.mrp-articles__read-more {
  margin-left: auto;
}

.mrp-articles__empty {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  border: 1px dashed #cbd9ee;
  border-radius: 16px;
  color: #596884;
  background: #f8fbff;
}

.mrp-articles__footer {
  display: none;
}

.mrp-articles__panel[hidden] {
  display: none !important;
}

.mrp-articles__panel {
  width: 100%;
}

.mrp-articles__panel.is-active {
  display: block;
}

@media (max-width: 1280px) {
  .mrp-articles__card {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
  }

  .mrp-articles__image,
  .mrp-articles__placeholder {
    min-height: 220px;
  }

  .mrp-articles__body {
    padding-top: 12px;
  }

  .mrp-articles__card-footer {
    flex-wrap: nowrap;
  }
}

@media (max-width: 1024px) {
  .mrp-articles__header {
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .mrp-articles__grid {
    grid-template-columns: repeat(var(--mrp-articles-columns, 2), minmax(0, 1fr));
  }


  .mrp-articles__date-row {
    margin-bottom: 14px;
  }

  .mrp-articles__card-footer {
    padding-top: 12px;
    justify-content: flex-start;
  }

  .mrp-articles__read-more {
    margin-left: 0;
  }

  .mrp-articles__tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 10px;
    margin-left: -4px;
    margin-right: -4px;
    scrollbar-width: thin;
  }

  .mrp-articles__tab {
    flex: 0 0 auto;
  }

  .mrp-articles__card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .mrp-articles::before {
    left: -92px;
    bottom: 160px;
    width: 180px;
    height: 180px;
  }

  .mrp-articles::after {
    opacity: .22;
    right: -170px;
    bottom: -40px;
  }

  .mrp-articles__header {
    display: block;
    margin-bottom: 26px;
  }

  .mrp-articles__badge-top {
    min-height: 40px;
    padding: 9px 18px;
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: .06em;
  }

  .mrp-articles__badge-top-icon {
    width: 16px;
    height: 16px;
    font-size: 18px;
  }

  .mrp-articles__heading {
    font-size: clamp(32px, 10vw, 44px);
  }

  .mrp-articles__description {
    margin-top: 12px;
    font-size: 16px;
  }

  .mrp-articles__header-action {
    padding: 18px 0 0;
  }

  .mrp-articles__view-all {
    font-size: 16px;
    justify-content: flex-start;
  }

  .mrp-articles__grid {
    grid-template-columns: repeat(var(--mrp-articles-columns, 1), minmax(0, 1fr));
    gap: 18px;
  }

  .mrp-articles__card {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding: 14px;
    border-radius: 20px;
  }

  .mrp-articles__image,
  .mrp-articles__placeholder {
    height: 210px;
    min-height: 210px;
    border-radius: 14px;
  }

  .mrp-articles__body {
    padding: 18px 4px 6px;
  }

  .mrp-articles__meta {
    margin-bottom: 14px;
  }

  .mrp-articles__badge {
    min-height: 32px;
    font-size: 11px;
    max-width: 100%;
  }

  .mrp-articles__title {
    font-size: 22px;
  }

  .mrp-articles__excerpt {
    font-size: 15px;
  }

  .mrp-articles__card-footer {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 12px;
  }

  .mrp-articles__tab {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 12px;
  }
}
