/**
* @file Styles Boxes with colored background
*/
.paragraph--type--boxes-with-colored-background {
  margin-bottom: 50px;
}

.paragraph--type--boxes-with-colored-background .field--name-field-boxes {
  display: flex;
  gap: 20px;
  position: relative;
  flex-direction: column;
}

.paragraph--type--boxes-with-colored-background .field--name-field-boxes > .field__item {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.paragraph--type--boxes-with-colored-background .field--name-field-section-content,
.paragraph--type--boxes-with-colored-background .field--name-field-section-content-extra {
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.paragraph--type--boxes-with-colored-background .field--name-field-section-content {
  margin-bottom:.5rem;
}

.field--name-field-boxes > .field__item.card-animate::before {
  content: '';
  width: calc(100% * 1.5);
  height: calc(100% * 2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: 100% 100%;
  transition: 0.75s 0.5s ease-in-out;
  border-radius: 50%;
}

.paragraph--type--boxes-with-colored-background .field--name-field-boxes > .field__item.is-active::before {
  transform: translate(-50%, -50%) scale(1); /* fully covering */
}

.paragraph--type--boxes-with-colored-background .field--name-field-boxes > .field__item .field--name-field-boxes > .field__item__label {
  padding: 10px 0;
  color: var(--mit-white);
  text-align: center;
  font-family: var(--mit-default-font);
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  position: relative;
  z-index: 2;
}

#page-content .paragraph--type--boxes-with-colored-background > .field--name-field-boxes > .field__item .paragraph--type--header-and-content {
  padding: 30px 30px 40px 30px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top:0;
}

.paragraph--type--boxes-with-colored-background .field--name-field-boxes .field--name-field-section-header {
  font-weight: 700;
  font-size:2.2rem;
  margin-bottom:1.5rem;
  line-height:3rem;
}
.paragraph--type--boxes-with-colored-background .field--name-field-boxes .field--name-field-section-header h2,
.paragraph--type--boxes-with-colored-background .field--name-field-boxes .field--name-field-section-header h3,
.paragraph--type--boxes-with-colored-background .field--name-field-boxes .field--name-field-section-header h4,
.paragraph--type--boxes-with-colored-background .field--name-field-boxes .field--name-field-section-header h5,
.paragraph--type--boxes-with-colored-background .field--name-field-boxes .field--name-field-section-header h6 {
  font-weight: inherit;
  font-size:inherit;
  margin:0;
  line-height:inherit;
}
.paragraph--type--boxes-with-colored-background .field--name-field-boxes .field--name-field-section-content,
.paragraph--type--boxes-with-colored-background .field--name-field-boxes .field--name-field-section-content p {
  font-family: var(--mit-default-font);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

@media (min-width: 992px) {
  .paragraph--type--boxes-with-colored-background .field--name-field-boxes {
    flex-direction: row;
  }
}