/* MyDietScore — public content pages (about, how-it-works, etc.) */

.mds-content-page {
  background: var(--mds-bg);
}

.mds-page-hero {
  position: relative;
  padding: 56px 0 64px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(30, 119, 173, 0.92) 0%, rgba(46, 142, 196, 0.88) 100%),
    url('/images/latest/blog/Breadcamp-image.jpg') center / cover no-repeat;
}

.mds-page-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.mds-page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.mds-page-hero__breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.mds-page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.mds-page-hero__lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.65;
}

.mds-content-section {
  padding: 72px 0;
}

.mds-content-section--white {
  background: #fff;
}

.mds-content-section--soft {
  background: var(--mds-primary-soft);
}

.mds-content-section__head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.mds-content-section__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--mds-primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mds-content-section__head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.mds-content-section__head p {
  margin: 0;
  color: var(--mds-muted);
  font-size: 17px;
  line-height: 1.75;
}

.mds-about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mds-about-intro__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--mds-shadow);
}

.mds-about-intro__copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
}

.mds-about-intro__copy p {
  margin: 0;
  color: var(--mds-muted);
  font-size: 17px;
  line-height: 1.8;
}

.mds-info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mds-info-card {
  height: 100%;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mds-border);
  box-shadow: var(--mds-shadow-sm);
}

.mds-info-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.mds-info-card p {
  margin: 0;
  color: var(--mds-muted);
  line-height: 1.75;
}

.mds-info-card p + p {
  margin-top: 14px;
}

.mds-steps-intro {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.mds-steps-intro p {
  color: var(--mds-muted);
  font-size: 17px;
  line-height: 1.75;
}

.mds-steps-intro p + p {
  margin-top: 16px;
}

/* Timeline / how-it-works */
.mds-content-page .timeline {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
  background: #fff !important;
}

.mds-content-page .pq-timelines .cntl-content {
  background: #fff !important;
  border: 1px solid var(--mds-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--mds-shadow-sm) !important;
}

.mds-content-page .pq-timelines .cntl-content h4 {
  color: var(--mds-text) !important;
  font-size: 22px !important;
  margin-bottom: 12px !important;
}

.mds-content-page .pq-timelines .cntl-icon {
  background: var(--mds-primary) !important;
  border-color: var(--mds-primary-dark) !important;
  color: #fff !important;
}

.mds-content-page .pq-timelines .cntl-image img {
  border-radius: 14px !important;
  box-shadow: var(--mds-shadow-sm) !important;
}

.mds-content-page .PlContent pre {
  display: inline-block;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--mds-primary-soft);
  color: var(--mds-primary-dark);
  font-size: 14px;
}

/* How it works — clean step list */
.mds-how-steps {
  padding-top: 64px !important;
}

.mds-step-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

.mds-step {
  position: relative;
  padding-left: 56px;
}

.mds-step__number {
  position: absolute;
  left: 0;
  top: 28px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mds-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(46, 142, 196, 0.28);
}

.mds-step__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--mds-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--mds-shadow-sm);
}

.mds-step--reverse .mds-step__grid {
  direction: rtl;
}

.mds-step--reverse .mds-step__content,
.mds-step--reverse .mds-step__media {
  direction: ltr;
}

.mds-step__content h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.mds-step__content p {
  margin: 0;
  color: var(--mds-muted);
  font-size: 16px;
  line-height: 1.7;
}

.mds-step__content p + p {
  margin-top: 12px;
}

.mds-step__action a {
  font-weight: 700;
}

.mds-step__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.mds-how-cta {
  margin-top: 56px;
  padding: 40px 32px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--mds-primary-soft) 100%);
  border: 1px solid var(--mds-border);
  text-align: center;
}

.mds-how-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
}

.mds-how-cta p {
  margin: 0 0 20px;
  color: var(--mds-muted);
}

.mds-how-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--mds-primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(46, 142, 196, 0.24);
}

.mds-how-cta__btn:hover {
  background: var(--mds-primary-dark);
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 991px) {
  .mds-step {
    padding-left: 0;
    padding-top: 0;
  }

  .mds-step__number {
    position: static;
    margin-bottom: 14px;
  }

  .mds-step__grid {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .mds-step--reverse .mds-step__grid {
    direction: ltr;
  }

  .mds-step__media {
    order: -1;
  }
}

@media (max-width: 991px) {
  .mds-about-intro,
  .mds-info-cards {
    grid-template-columns: 1fr;
  }

  .mds-content-section {
    padding: 56px 0;
  }
}
