/**
 * Platform Finder — layout & components
 */

.platform-finder {
  position: relative;
  background: #fff;
  color: #000;
}

.platform-finder__tabs {
  background: #fff;
}

.platform-finder__tabs-inner {
  display: flex;
  flex-wrap: wrap;
}

.platform-finder__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid #c1d6ef;
  border-bottom: 1px solid #c1d6ef;
  margin-right: -1px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  color: #454545;
  text-decoration: none;
  background: #fff;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.platform-finder__tab:last-child {
  margin-right: 0;
}

.platform-finder__tab:hover {
  color: #000;
}

.platform-finder__tab.is-active {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: #000;
  background: #e9f0f9;
  border-bottom-color: #e9f0f9;
}


.platform-finder__panel.is-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Tab intro */
.platform-finder__intro {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
  border: 1px solid #c1d6ef;
}

.platform-finder__intro-content {
  flex: 0 0 50%;
  width: 50%;
  min-width: 280px;
  background: #e9f0f9;
}

.platform-finder__intro-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px 40px;
}

.platform-finder__intro-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.3;
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
}

.platform-finder__intro-line {
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 8px;
  background: #206ec7;
}

.platform-finder__intro-description {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
}

.platform-finder__intro-description > *:first-child {
  margin-top: 0;
}

.platform-finder__intro-description > *:last-child {
  margin-bottom: 0;
}

.platform-finder__intro-link {
  margin-top: 20px;
}

.platform-finder__intro-media {
  flex: 0 0 50%;
  width: 50%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.platform-finder__intro-media img {
  display: block;
  margin: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Sticky subnav */
.platform-finder__subnav-wrap {
  position: sticky;
  top: 137px;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-top: 0;
  padding-top: 0;
  background: #fff;
  border: 1px solid #c1d6ef;
  border-top: none;
}

.platform-finder__subnav-wrap.is-overflowing {
  padding-left: 12px;
  padding-right: 12px;
}

.platform-finder__subnav.swiper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  background: #fff;
  overflow: hidden;
}

.platform-finder__subnav .swiper-wrapper {
  align-items: stretch;
}

.platform-finder__subnav .swiper-slide {
  width: auto;
  height: auto;
}

.platform-finder__subnav-arrow {
  display: none;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.platform-finder__subnav-arrow::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #206ec7;
  border-bottom: 2px solid #206ec7;
  box-sizing: border-box;
}

.platform-finder__subnav-wrap.is-overflowing .platform-finder__subnav-arrow {
  display: flex;
}

.platform-finder__subnav-arrow.is-disabled {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
}

.platform-finder__subnav-arrow--prev {
  margin-right: 8px;
}

.platform-finder__subnav-arrow--prev::before {
  transform: rotate(135deg);
}

.platform-finder__subnav-arrow--next {
  margin-left: 8px;
}

.platform-finder__subnav-arrow--next::before {
  transform: rotate(-45deg);
}

.platform-finder__subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 25px 30px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  color: #454545;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 4px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
  box-sizing: border-box;
}

.platform-finder__subnav-link:hover {
  color: #000;
  text-shadow: 0 0 0.5px currentColor;
}

.platform-finder__subnav-link.is-active {
  color: #000;
  border-bottom-color: #206ec7;
}

/* Sections */
.platform-finder__sections {
  margin-top: 40px;
}

.platform-finder__section + .platform-finder__section {
  margin-top: 60px;
}

.platform-finder__section {
  scroll-margin-top: var(--pf-section-offset, 241px);
}

.platform-finder__section-header {
  max-width: 680px;
}

.platform-finder__section-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: #000;
}

.platform-finder__section-description {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
}

.platform-finder__section-description > *:first-child {
  margin-top: 0;
}

.platform-finder__section-description > *:last-child {
  margin-bottom: 0;
}

/* Card grid */
.platform-finder__grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-left: -10px;
  margin-right: -10px;
}

.platform-finder__card-wrap {
  width: 25%;
  padding: 10px;
}

/* Cards shared */
.platform-finder__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 280px;
  text-decoration: none;
  color: inherit;
}

.platform-finder__card--featured {
  position: relative;
  overflow: hidden;
  background: #206ec7;
  border: 1px solid #206ec7;
  color: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.platform-finder__card--featured::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: #9acd4f;
  transition: height 0.3s ease;
  pointer-events: none;
}

.platform-finder__card--featured:hover {
  background: #004da5;
  border-color: #004da5;
}

.platform-finder__card--featured:hover::after {
  height: 6px;
}

.platform-finder__card--featured .platform-finder__card-media {
  flex: 0 0 auto;
  height: 180px;
  overflow: hidden;
}

.platform-finder__card--featured .platform-finder__card-media img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.platform-finder__card--featured .platform-finder__card-body {
  padding: 20px;
}

.platform-finder__card--featured .platform-finder__card-title {
  margin: 0;
  color: #fff;
}

.platform-finder__card-more-row {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

.platform-finder__card--featured .platform-finder__card-more {
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}

.platform-finder__card--featured:hover .platform-finder__card-arrow {
  opacity: 1;
}

/* Platform card */
.platform-finder__card--platform {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32, 110, 199, 0.2);
  background: #fff;
  height: 100%;
}

.platform-finder__card--platform::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: #9acd4f;
  transition: height 0.3s ease;
  pointer-events: none;
}

.platform-finder__card--platform:hover::after {
  height: 6px;
}

.platform-finder__card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}

.platform-finder__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.4;
}

.platform-finder__tag--blue {
  background: rgba(32, 110, 199, 0.1);
  color: #206ec7;
}

.platform-finder__tag--teal {
  background: rgba(65, 191, 172, 0.2);
  color: #3a746b;
}

.platform-finder__tag--ats-blue {
  background: rgba(8, 41, 219, 0.1);
  color: #0829db;
}

.platform-finder__tag--purple {
  background: rgba(51, 0, 163, 0.1);
  color: #3300a3;
}

.platform-finder__card-copy {
  align-self: stretch;
  padding: 0 20px 16px;
}

.platform-finder__card-excerpt {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: #454545;
}

.platform-finder__card-name {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #000;
}

.platform-finder__card-name-row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.platform-finder__card-name-row .platform-finder__card-name {
  margin: 0;
}

.platform-finder__card-arrow {
  display: inline-block;
  width: 19px;
  height: 12px;
  margin-left: 10px;
  background-image: url("../../../assets/btn-arrow.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.platform-finder__card--platform:hover .platform-finder__card-arrow {
  opacity: 1;
}

.platform-finder__card--platform .platform-finder__card-media {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 172px;
  padding: 0 16px 16px;
  background: #fff;
}

.platform-finder__card--platform .platform-finder__card-media-inner {
  padding-top: 20px;
  padding-bottom: 0;
  transition: padding 0.35s ease;
}

.platform-finder__card--platform:hover .platform-finder__card-media-inner {
  padding-top: 0;
  padding-bottom: 20px;
}

.platform-finder__card--platform .platform-finder__card-media img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1199px) {
  .platform-finder__card-wrap {
    width: 33.333%;
  }
}

@media (max-width: 991px) {
  .platform-finder__subnav-wrap {
    top: 80px;
  }

  .platform-finder__card-wrap {
    width: 50%;
  }

  .platform-finder__intro-text {
    padding: 32px 24px;
  }

  .platform-finder__intro-title {
    font-size: 28px;
  }

  .platform-finder__intro-content{
    flex: 0 0 100%;
    width: 100%;
    order: 2;
  }

  .platform-finder__intro-media{
    flex: 0 0 100%;
    width: 100%;
    height: 260px;
  }
}

@media (max-width: 767px) {
  .platform-finder__tab {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    font-size: 16px;
    padding: 10px 12px;
  }

  .platform-finder__card-wrap {
    width: 100%;
  }

  .platform-finder__subnav-link {
    padding: 12px;
    border-bottom-width: 2px;
  }
}
