.gray-bar {
  background-color: #f7f7f7;
}
.primary-bar {
  background-color: var(--primary-color);
  color: white;
  h1, h2, h3, h4, h5, h6 { color: white; }
}
.accent-bar {
  background-color: var(--accent-color);
  color: #0d4c98;
  h1, h2, h3, h4, h5, h6 { color: var(--primary-color); }
}

.inner-section {
  padding: 40px;
  margin: 40px auto;
  text-align: center;
  max-width: 900px;
  &.primary {
    color: white;
    background-color: var(--primary-color);
    & h2, h3, h4 { color: white; }
  }
}
.read-more {
  display: flex;
  align-items: center;
  font-weight: 700;
  gap: 4px;
  transition: all .33s cubic-bezier(.12, .75, .4, 1);
  & .arrow {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    &::before {
      font-family: icomoon;
      font-weight: 400;
      font-style: normal;
      text-decoration: inherit;
      backface-visibility: hidden;
      -webkit-font-smoothing: antialiased;
      content: "\e607";
      color: var(--primary-color);
      line-height: 30px;
      font-size: 16px;
      font-weight: 700;
      position: absolute;
      right: 0;
      width: 26px;
      text-align: center;
      height: 30px;
      top: 50%;
      margin-top: -16px;
      transition: all .33s cubic-bezier(.12, .75, .4, 1);
    }
  }
  &:hover {
    color: var(--primary-color);
    gap: 8px;
  }
}
/* Button */
.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #dce2eb;
  border-radius: 6px;
  background: #fff;
  color: #071c34;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.ssmr-load-more-wrap {
  padding-top: var(--content-box-gap);
}


.outline-button:hover {
  background: #f7f9fc;
}
.media-resources-grid {
  display: flex;
  gap: var(--content-box-gap);
  width: 100%;
  flex-wrap: wrap;
  min-height: 250px;
}
.media-resources-card {
  transition: opacity .3s cubic-bezier(.3, .58, .55, 1), transform .3s cubic-bezier(.3, .58, .55, 1);
  opacity: 1;
  transform: translateY(0);
  background: var(--background-color-lighter);
  flex: 0 0 calc((100% - (2 * var(--content-box-gap))) / 3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .14);
  border-radius: 5px;
  &:hover {
    & .media-resources-card-image img {
      transform: scale(1.2);
    }
  }
  & .media-resources-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 2.25;
    overflow: hidden;
    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
  }

  & .media-resources-card-link {
    text-decoration: none;
    display: block;
  }
}
.media-resources-card-content {
  padding: 20px 30px;
  & .ssc-upcoming-card-type {
    color: var(--text-color-body);
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    padding: 0 4px;
    border-radius: 3px;
  }
  & .media-resources-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    padding: 0 0 20px 0;
    font-family: "PT Sans", Helvetica, sans-serif;
    transition: color 0.2s ease;
  }
  & .media-resources-card-date {
    font-size: 14px;
    color: var(--text-color-accent);
    font-weight: 400;
  }
}
.media-contact-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe3e9;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(9, 30, 66, 0.1);
  & .media-contact-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 100px;
    padding: 20px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, rgb(10, 46, 96), rgb(18, 84, 165))
  }
}
.media-contact-card-avatar {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 18px;
  font-weight: 700;
}
.media-contact-card-name {
  margin: 0 0 1px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
.media-contact-card-title-value {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.25;
}
.media-contact-card-body {
  padding: 5px 20px 5px;
}
.media-contact-card-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 10px;
  border-bottom: 1px solid #e4e7ec;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  &:last-of-type {
    border-bottom: none;
  }
}
.media-contact-card-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary-color);
  background: #f0f3fc;
  font-size: 14px;
}
.media-contact-card-item-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.media-contact-card-label {
  margin-bottom: 2px;
  color: #53627b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.media-contact-card-value {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.tags-card {
  width: 100%;
  padding: 20px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
}

.tags-card-title {
  margin: 0 0 16px;
  color: #52657c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tags-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
}

.tags-card-item {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #e1e3e8;
  border-radius: 999px;
  color: #3659c9;
  background: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
@keyframes flip-in {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(90deg) translateY(30px);
  }

  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(-120px);
  }
}
.scroll-animation.is-visible {
  animation: flip-in 0.7s cubic-bezier(.22, 1, .36, 1) forwards;
}

.media-resources-section-shape-divider {
  height: 50px;
  rotate: 180deg;
  transform: translateY(-50px);
  position: relative;
  & svg {
    position: absolute;
    top: -30px;
    right: 0;
    left: 0;
  }
}
[data-ssmr-loadmore-item][hidden] {
  display: none;
}
@media (max-width: 999px) {
  .media-resources-grid {
    flex-direction: column;
    gap: 20px;
  }
  .media-resources-section-shape-divider {
    transform: translateY(-32px);
  }
}
@media (max-width: 768px) {
  .media-resources-card-title {
    font-size: 18px;
  }
  .media-resources-section-shape-divider {
    transform: translateY(-25px);
  }
}
@media (max-width: 560px) {
  .media-contact-card-header {
    padding: 18px;
  }
  .media-contact-card-body {
    padding-right: 16px;
    padding-left: 16px;
  }
  .media-contact-card-avatar {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }
  .media-contact-card-name {
    font-size: 17px;
  }
  .media-contact-card-item {
    min-height: 68px;
  }
  .media-contact-card-value {
    font-size: 14px;
  }
  .media-resources-section-shape-divider {
    display: none;
  }
}
