/* ==========================================================================
   THEME-RIBBON-TITLE
   ========================================================================== */

.theme-ribbon-title {
  padding: 0 0 var(--section-pad-y);
  position: relative;
}

.theme-ribbon-title .container {
  max-width: var(--container);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- Section background variants ---- */
.ribbon--bg-white   { background: #FFFFFF; }
.ribbon--bg-gray    { background: #F6F6F6; }
.ribbon--bg-green   {background: #CDE7CA;}
.ribbon--bg-blue    { background: #CCE1F4; }
.ribbon--bg-peach   { background: #FFEBDC; }
.ribbon--bg-yellow  { background: #F4F3B8; }

/* ---- Center text modifier ---- */
.ribbon--text-center .container { text-align: center; }

/* ---- Center CTA button ---- */
.ribbon-cta-wrap--center { text-align: center; }

/* ---- Ribbon title bar ---- */
.ribbon-title {
  position: relative;
  display: inline-block;
  font-family: var(--sans-condensed);
  font-size: var(--h3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.68px;
  color: #fff;
  padding: 12px 0;
  margin: 0 0 120px;
  width: 100%;
  max-width: 50%;
}
.ribbon-title:before {
  content: '';
  display: block;
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  right: 100%;
  left: -100%;
  opacity: 1;
}
.ribbon-title::after{
	content: "";
	position: absolute;
	top: 0;
    bottom: 0;
  	left: calc(100% - 1px);
	width: 64px;
    clip-path: polygon(0 0, 100% 0, 10% 100%, 0% 100%);
	transition: all .3s ease;
}

.ribbon-title--dark-green,
.ribbon-title--dark-green:after,
.ribbon-title--dark-green:before {background-color: #004F42;}
.ribbon-title--blue,
.ribbon-title--blue:after,
.ribbon-title--blue:before { background: #037ABF; }
.ribbon-title--yellow,
.ribbon-title--yellow:after,
.ribbon-title--yellow:before { background: #EAE856; color: var(--brand); }
.ribbon-title--green,
.ribbon-title--green:after,
.ribbon-title--green:before { background: #408257; }
.ribbon-title--orange,
.ribbon-title--orange:after,
.ribbon-title--orange:before { background: #F26836; }

/* ---- Text layout: headings + floated image ---- */
.ribbon-text__heading {
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 20px;
  padding: 120px 0 0;
  line-height: 1.2;
}
.ribbon-text__subheading {
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 500;
  color: var(--brand);
  margin: 0 0 30px;
  line-height: 1.3;
}
.ribbon-text__image {
  max-width: 45%;
  margin: 0 0 16px;
}
.ribbon-text__image img {
  display: block;
  width: 100%;
  height: auto;
}
.ribbon-text__image--left {
  float: left;
  margin-right: 28px;
}
.ribbon-text__image--right {
  float: right;
  margin-left: 28px;
}
.ribbon-text__clear {
  clear: both;
}

/* ---- Body text ---- */
.ribbon-body {
  font-family: var(--sans);
  /* font-size: var(--body-lg); */
  font-weight: 500;
  margin-bottom: 60px;
}
.ribbon-body p {margin: 0 0 30px;font-weight: 400;}
.ribbon-body p:last-child { margin-bottom: 0; }

/* ---- Layout: Grid ---- */
.ribbon-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}
.ribbon-grid--cols-1 { grid-template-columns: 1fr; }
.ribbon-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ribbon-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

.ribbon-grid__item {
  font-family: var(--sans);
  font-size: var(--body-lg);
  line-height: 1.5;
  color: var(--brand);
}

/* ---- Layout: List ---- */
.ribbon-list {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.ribbon-list__item {
  display: grid;
  grid-template-columns: 405px 1fr;
  gap: 36px;
  align-items: start;
  font-size: 23px;
  font-weight: 550;
}

.ribbon-list__media img {
  aspect-ratio: 4 / 4;
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: cover;
}

.ribbon-list__content h2 {
  font-size: var(--h1);
  margin: 0;
}

.ribbon-list__content h5 {
	margin: 0 0 4px;
}

.ribbon-list__content h6 {
  margin: 0 0 20px;
}

.ribbon-list__content ul {
	margin: 20px 0
}
.ribbon-list__content ul li { margin: 0; }

.ribbon-list__link {
  display: inline-block;
  font-family: var(--sans);
  color: var(--brand);
  margin: 0;
  font-weight: 400;
}

.ribbon-list__desc {
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.5;
  color: var(--brand);
  margin-top: 12px;
  font-weight: 400;
}
.ribbon-list__desc p { margin: 0 0 12px; }
.ribbon-list__desc p:last-child { margin-bottom: 0; }

/* ---- Layout: Numbered List ---- */
.ribbon-numbered__heading {
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 20px;
}
.ribbon-numbered__intro {
  position: relative;
  font-family: var(--sans);
  font-size: var(--body-lg);
  line-height: 1.5;
  color: var(--brand);
  margin: 0 0 32px;
}
.ribbon-numbered__intro:before {
  content: '';
  width: 222px;
  height: 241px;
  position: absolute;
  right: 100%;
  margin: -40px -20px 0 0;
  top: 100%;
  background-image: url(../../../assets/img/renewal-line.svg);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
  padding-bottom: 5px;
}
.ribbon-numbered__list {
  list-style: none;
  counter-reset: ribbon-num;
  padding: 0;
  margin: 60px 0 0;
  display: flex;
  flex-direction: column;
  gap: 62px;
}
.ribbon-numbered__item {
  counter-increment: ribbon-num;
  background: #FEE4D1;
  position: relative;
  padding: 45px;
  padding-left: 168px;
  clip-path: polygon(100% 0, 100% 75%, 96% 100%, 0 100%, 0 0);
}
.ribbon-numbered__item::before {
  content: counter(ribbon-num);
  position: absolute;
  left: 0;
  top: 0;
  width: 123px;
  height: 100%;
  background: #F26836;
  color: #fff;
  font-family: var(--sans-condensed);
  display: flex;
  align-items: start;
  justify-content: center;
  font-size: 100px;
  font-style: normal;
  font-weight: 700;
  line-height: 1em; /* 26.4% */
  text-transform: uppercase;
  padding-top: 53px;
}
.ribbon-numbered__item-heading {
  font-family: var(--sans);
  font-size: var(--h3);
  color: var(--brand);
  margin: 0 0 30px;
  line-height: 1.2;
}
.ribbon-numbered__sub {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
  color: #282828;
}
.ribbon-numbered__sub a {
	font-weight: 550;
	text-decoration: underline;
	text-decoration-thickness: 2px;
}
.ribbon-numbered__sub a:hover {
	color: var(--brand);
}
.ribbon-numbered__sub li { margin: 0 0 6px; }
.ribbon-numbered__sub li:last-child { margin-bottom: 0; }

/* ---- Layout: Values List ---- */
.ribbon-values__heading {
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 600;
  color: var(--brand);
  padding: 120px 0 20px;
}
.ribbon-values__list {
  list-style: none;
  counter-reset: ribbon-val;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.ribbon-values__item {
  counter-increment: ribbon-val;
  position: relative;
  padding-left: 110px;
  min-height: 100px;
}
.ribbon-values__item::before {
  content: counter(ribbon-val);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 83px;
  height: 83px;
  font-family: var(--sans);
  color: var(--MSSF-New-Site-White, #FFF);
  text-align: right;
  font-size: 64px;
  font-style: normal;
  font-weight: var(--font-weight-600, 600);
  line-height: 1; /* 85.938% */
  background: #408257;
  border-radius: 50%;
}
.ribbon-values__item-heading {
  font-size: var(--h2);
  color: var(--brand);
  margin: 13px 0 4px;
  line-height: 1.2;
}
.ribbon-values__item-text {
  font-family: var(--sans);
  font-size: var(--body-lg);
  line-height: 1.5;
  color: var(--brand);
  margin: 0;
}

/* ---- Layout: Video ---- */
.ribbon-video__heading {
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 20px;
}
.ribbon-video__intro {
  font-family: var(--sans);
  font-size: var(--body-lg);
  line-height: 1.5;
  color: var(--brand);
  margin: 0 0 32px;
}
.ribbon-video__player {
  position: relative;
  width: 100%;
  margin: 60px 0 120px;
  background: #000;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 7px 11px rgb(0 0 0 / 37%);
}
.ribbon-video__player video {
  display: block;
  width: 100%;
  height: auto;
}
.ribbon-video__player--embed {
  aspect-ratio: 16 / 9;
}
.ribbon-video__player--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Layout: Image Right ---- */
.ribbon-image-right {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.ribbon-image-right__heading {
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 20px;
}
.ribbon-image-right__text {
  font-family: var(--sans);
  font-size: var(--body-lg);
  line-height: 1.5;
  color: var(--brand);
}
.ribbon-image-right__text p { margin: 0 0 16px; }
.ribbon-image-right__text p:last-child { margin-bottom: 0; }
.ribbon-image-right__media {
	position: absolute;
	top: 195px;
	right: 4vw;
	bottom: 120px;
	width: 35%;
}
.ribbon-image-right__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
}

/* ---- Responsive ---- */
@media (max-width: 1400px) {
	.theme-resources__arrow { width: 20px }
	.ribbon-text__subheading {
		font-size: 36px
	}
	.ribbon-body {
		font-size: 25px;
		line-height: 1.3em
	}
	.ribbon-list__item {
	  grid-template-columns: 205px 1fr;
	  font-size: 20px;
	}
	.ribbon-numbered__sub,
	.theme-key-terms__card ul {
		font-size: 20px;
		line-height: 150%
	}
	.ribbon-values__item {
		padding-left: 80px
	}
	.ribbon-values__item::before {
		width: 60px;
		height: 60px;
		font-size: 30px
	}
	.ribbon-image-right__media {
		position: absolute;
		top: 95px;
		right: 4vw;
		bottom: 40px;
		width: 35%;
	}
}
@media (max-width: 991px) {
  .ribbon-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
	.ribbon-numbered__item { padding-left: 70px }
}

@media (max-width: 768px) {
	.ribbon-values__list {
		gap: 0;
	}
	.ribbon-values__item::before {
		width: 40px;
		height: 40px;
		font-size: 20px
	}
	.ribbon-values__item-heading {
		margin: 0 0 4px;
	}
	.ribbon-numbered__sub {
		font-size: 18px
	}
	.ribbon-title {
        max-width: 100%;
        margin-bottom: 24px;
        font-size: 22px;
    }
  .theme-ribbon-title {padding: 0 0 48px;}
	.ribbon-text__subheading {
		font-size: 28px
	}
	.ribbon-body {
		font-size: 18px;
		line-height: 1.3em
	}
  .ribbon-grid--cols-2,
  .ribbon-grid--cols-3 { grid-template-columns: 1fr; }
  .ribbon-list__item {
    grid-template-columns: 140px 1fr;
    gap: 20px;
  }
  .ribbon-image-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ribbon-numbered__item::before {
    width: 40px;
    height: 100%;
    font-size: 25px;
  }
  .ribbon-values__item {
    padding-left: 60px;
  }
  .ribbon-list__item {
    grid-template-columns: 1fr;
  }
	.ribbon-list__media img {
		max-width: 200px
	}
	.ribbon-image-right__media {
		position: static;
		padding: 30px 6vw 0;
		width: 100%
	}
}

@media (max-width: 520px) {
  .theme-ribbon-title {padding: 0 0 36px;}
  
  .ribbon-text__image {
    /* float: none; */
    max-width: 40%;
    margin: 0 0 16px;
  }
}
