{# Container #}

.resource-spotlight {
  padding: 0;
}

.resource-spotlight__wrap {
  border-radius: 1rem;
  padding: 2rem 1.5rem;
}

@media(min-width: 64rem) {
  .resource-spotlight__wrap {
    padding: 0 10rem;
  }
}

.resource-spotlight__wrap--gray {
  background-color: #f0f0f0;
}

{# Tabs #}

.resource-spotlight__tabs-wrap {
  padding:2.5rem 0 0;
  overflow-x:auto;
  overflow-y:hidden;
  display:none;
}

.resource-spotlight__tabs {
  list-style:none;
  display:flex;
  justify-content:flex-start;
  align-items:flex-end;
  margin:0;
  padding:0;
}

.resource-spotlight__tab-link {
  display:block;
  position:relative;
  padding:0.5rem 1.5rem;
  border-bottom:1px solid #ccc;
  font-size:1.125rem;
  text-decoration:none;
  transition:border .3s;
}

.resource-spotlight__wrap--primary .resource-spotlight__tab-link{
  color: #fff;
}


.resource-spotlight__tab-link:after {
  content:'';
  display:block;
  position:absolute;
  bottom:-3px;
  left:0;
  width:100%;
  height:3px;
  opacity:0;
  background-color:#ccc;
  transition:opacity .3s;
}

.resource-spotlight__tab-link--active {
  font-weight:bold;  
}

.resource-spotlight__tab-link--active:after {
  content:'';
  display:block;
  position:absolute;
  bottom:-3px;
  left:0;
  width:100%;
  height:.5rem;
  transition:opacity .3s;
  opacity:1;
}

.resource-spotlight__wrap--primary .resource-spotlight__tab-link--active:after {
  background-color: #fff;
}


{# Tabs Panes #}

.resource-spotlight__pane, 
.resource-spotlight__pane.swiper {
  display:none;  
}

.resource-spotlight__pane.resource-spotlight__pane--active {
  display:block;  
}

.resource-spotlight__list{
  list-style:none;
  margin:0;
  padding:0;
}

.resource-spotlight__item-image{
  max-height: 14.25rem;
  min-height: 14.25rem;
  object-fit: cover;
  border-radius: .5rem;
  display: block;
  margin-bottom: 1rem;
}

.resource-spotlight__item-tags{
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.resource-spotlight__item-tag{
  display: inline-block;
  padding: .5rem;
  line-height: 1;
  font-size: 0.875rem;
  border-radius: .5rem;  
}

.resource-spotlight__wrap--primary .resource-spotlight__item-tag{
  border: 1px solid #fff;
}

.resource-spotlight__item-title{
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.resource-spotlight__item-summary{
  margin-bottom: 1rem;
}

.resource-spotlight__item-meta{
  display: flex;
  font-size: 0.875rem;
  font-weight: 300;
  gap: .5rem;
  margin-bottom: 1rem;
}

.resource-spotlight__item-meta-separator{
  color: #BDBDBD;
}

.resource-spotlight__item-meta-duration{
  padding-left: 1.5rem;
  position: relative;
}

.resource-spotlight__item-meta-duration svg{
  position: absolute;
  left: 0; 
  top: 0.125rem;
  width: 1rem;
  height: 1rem;
  display: inline-block;
}

.resource-spotlight__wrap--primary .resource-spotlight__item-meta-duration svg{
  fill: #fff;
}

.resource-spotlight__item-link{
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  align-items: center;
  display: inline-flex;
  gap: .5rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 0;
  position: relative;
  white-space: nowrap;
}

.resource-spotlight__wrap--primary .resource-spotlight__item-link{
  color: #fff;
}

.resource-spotlight__item-link::before{
  background-color: #000;
  bottom: 0;
  content: "";
  height: .125rem;
  left: 0;
  position: absolute;
  transition: all .4s;
  width: calc(100% - 1.5rem);
}

.resource-spotlight__wrap--primary .resource-spotlight__item-link::before{
  background-color: #fff;
}

.resource-spotlight__item-link svg{
  height: 1rem;
  width: 1rem;
  opacity: 0;
  transition: all .4s;
}
.resource-spotlight__item-link:hover::before,
.resource-spotlight__item-link:focus::before{
  background-color: #96c4ff;
  width: 100%;
}

.resource-spotlight__item-link:hover svg,
.resource-spotlight__item-link:focus svg{
  fill: #96c4ff;
  opacity: 1;
}



{# Mobile Swiper Controls #}

.resource-spotlight__controls {
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:center;
  margin-top:3.125rem;
}
@media(min-width: 64rem){
  .resource-spotlight__controls {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}

.resource-spotlight__pagination {
  position:static !important;
  padding:0 1rem;
  width: auto !important;
}

.resource-spotlight .swiper-pagination-bullet {
  background-color:#000 !important;
  transition:width .3s;
}

.resource-spotlight__wrap--primary .swiper-pagination-bullet {
  background-color:#fff !important;
}

.resource-spotlight .swiper-pagination-bullet-active {
  width:25px  !important;
  border-radius:5px !important;
}

.resource-spotlight__control {
  position:relative !important;
  margin-top:0 !important;
  border:0;
  color:#000 !important;
  background-color:transparent;
}

.resource-spotlight__control:after {
  font-size:1rem !important;  
}

.resource-spotlight__wrap--primary .resource-spotlight__control:after {
  color: #fff;
}

.resource-spotlight__footer-button {
  width:100%;
  display: block;
  margin-top: 1rem;
}

@media(min-width:64rem) {
  .resource-spotlight__footer-button {
    margin-top: 0;
    display: inline-block;
    width:auto;
  }
}