.rf-filter {
  border-bottom: 1px solid #a6a9aa;
}

section.resource-library .rf-post img.resource {
  width: 100%;
  object-fit: contain;
}

section.resource-library .side-bar,
section.resource-library .outer-top {
  position: sticky;
  top: 0;
  height: auto;
}

section.resource-library button.clearallfilters,
section.resource-library .left-boundary,
section.resource-library .right-boundary {
  display: none;
}

section.resource-library .right-boundary, 
section.resource-library .left-boundary {
  background-color: #EFEFEF;
}


section.resource-library .for-mobile .open-btn {
  min-width: 32px;
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
}

section.resource-library .for-mobile svg.closeicon {
  display: none;
}

section.resource-library .for-mobile svg.openicon {
  display: block;
}

section.resource-library .side-bar.isOpen .for-mobile svg.closeicon {
  display: block;
}

section.resource-library .side-bar.isOpen .for-mobile svg.openicon {
  display: none;
}

section.resource-library .side-bar .filter-field,
section.resource-library .side-bar .mob-buttons {
  display: none;
}

section.resource-library .side-bar.isOpen .mob-buttons {
  display: flex;
  position: sticky;
  bottom: 0;
}

section.resource-library .side-bar.isOpen {
  height: 100vh;
  position:fixed;
  width: 100%;
}

section.resource-library .side-bar.isOpen .mobile-overflow {
  overflow-y: scroll;
  scrollbar-width: none;
  height: 100vh;
}

section.resource-library .results-container {
  padding-top: 2px;
}

section.resource-library .filter-field {
  padding: 42px 54px;
}

section.resource-library .side-bar.isOpen .filter-field {
  display: block;
  min-height: 440px;
}

section.resource-library .filter-field .heading {
  padding-bottom: 16px;
  padding-left: 0px;
}

/* CHECKBOX START */
section.resource-library .filter-field label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding-left: 12px;
}

section.resource-library .filter-field ul li {
  display: flex;
  position: relative;
  margin-bottom: 12px;
}

section.resource-library .filter-field ul li span.metavalue {
  padding-left: 12px;
}

section.resource-library .filter-field ul li input:before {
  content: "";
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #ffffff;
  border: 1px solid #a6a9aa;
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

section.resource-library .filter-field ul li input {
  width: 24px;
  height: 24px;
  position: relative;
}

section.resource-library .filter-field ul li input:disabled,
section.resource-library .filter-field ul li input:disabled+span {
  opacity: 0.3;
}

section.resource-library .filter-field ul li input:checked:after,
section.resource-library .filter-field ul li input:hover:after {
  content: "";
  position: absolute;
  background: #ff0000;
  width: 12px;
  height: 12px;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100px;
}

section.resource-library .filter-field ul li input:checked:hover:after,
section.resource-library .filter-field.no-hover-on-touch ul li input:checked:hover:after {
  background: #ff0000;
}
section.resource-library .filter-field ul li input:hover:after {
  background: rgba(255, 0, 0, 0.25);
}
section.resource-library .filter-field.no-hover-on-touch ul li input:hover:after {
  background: transparent;
}
@media (pointer: coarse) {
  section.resource-library .filter-field.no-hover-on-touch ul li input:hover:after {
    background: transparent;
  }
  }
  @media (hover: none) {
  section.resource-library .filter-field.no-hover-on-touch ul li input:hover:after {
    background: transparent;
  }
}
section.resource-library .filter-field ul {
  display: none;
}

section.resource-library .filter-field ul.active {
  display: block;
}
/*CHECKBOX END */

/* MOBILE CLEAR AND VIEW START */
section.resource-library .mob-buttons {
  padding: 16px 20px;
  width: 100%;
  border-top: 1px solid #a6a9aa;
  background: #efefef;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  display: flex;
}

section.resource-library .mob-buttons button {
  text-align: center;
  font-family: "Gotham-Medium", Arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.14px;
  text-transform: uppercase;
  padding: 16px 20px;
  flex: 1;
}

section.resource-library .mob-buttons button[disabled] {
  border: 1px solid #a6a9aa;
  background: #fff;
  color: #a6a9aa;
}

section.resource-library button[disabled].view-results {
  background-color: #a6a9aa;
  color: #ffffff;
}

section.resource-library .mob-buttons button.clearbtn {
  border: 1px solid #a6a9aa;
  background: #fff;
}

section.resource-library button.view-results {
  background: #f00;
  color: #fff;
}
/* MOBILE CLEAR AND VIEW END */

@media (min-width: 768px) {
  section.resource-library {
    display: block;
  }

  section.resource-library .filter-top {
    border-top: none;
    border-bottom: 1px solid #a6a9aa;
    padding-bottom: 10px;
  }

  section.resource-library .outer-outer {
    display: flex;
    flex-direction: row;
  }

  section.resource-library .side-bar,
  section.resource-library .side-bar.isOpen {
    width: 40%;
  }

  section.resource-library .rf-posts {
    width: 60%;
  }

  section.resource-library .outer-top {
    width: 100%;
    margin-left: auto;
    padding: 64px 64px 0px 32px;
  }

  section.resource-library .side-bar .filter-field,
  section.resource-library .clear-all-container .rf-clear-all {
    display: block;
  }

  section.resource-library .side-bar .filter-field {
    padding-left: 0px;
    padding-right: 0px;
  }

  section.resource-library .side-bar.isOpen .mob-buttons,
  section.resource-library .box-2 {
    display: none;
  }

  section.resource-library .side-bar.isOpen {
    position: initial;
    height: auto;
  }

  section.resource-library .box-1 {
    width: 100%;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
  }

  section.resource-library .clear-all-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  section.resource-library .clear-all-container .rf-clear-all {
    cursor: pointer;
    border-bottom: 1px solid #A6A9AA;
  }

  section.resource-library .clear-all-container .rf-clear-all:disabled {
    text-decoration: none;
    cursor: default;
    color: #A6A9AA;
  }
}

@media (min-width: 1024px) {
  section.resource-library .left-boundary,
  section.resource-library .right-boundary {
    display: block;
  }

  section.resource-library {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  section.resource-library .outer-outer {
    width: 1024px;
    display: flex;
  }

  section.resource-library .side-bar {
    width: 100%;
    max-width: 338px;
    
  }

  section.resource-library .rf-posts {
    width: 100%;
    max-width: 686px;
    margin-right: auto;
  }
}

@media (min-width: 1280px) {
  section.resource-library .outer-outer {
    width: 1280px;
  }

  section.resource-library .outer-top {
    padding-left: 80px;
  }

  section.resource-library .side-bar {
    max-width: 358px;
  }

  section.resource-library .rf-posts {
    max-width: 922px;
  }

  section.resource-library .resource-card {
    justify-content: space-between;
  }
}

@media (min-width: 1440px) {
  section.resource-library .outer-outer {
    width: 1440px;
  }

  section.resource-library .side-bar {
    max-width: 406px;
  }

  section.resource-library .rf-posts {
    max-width: 1034px;
  }
}

/* Card Styling */
.resource-card {
  flex-basis: 100%;
  border-right: none;
}
.resource-card:nth-child(even) {
  border-right: none;
}
.resource-card .image-container .play-icon {
    max-width:64px;
    max-height:64px;
}
.resource-card .image-container {
  position: relative;
  display: inline-block;
}

.resource-card:nth-last-child(1) {
  border-bottom: none;
}

.resource-card .play-icon {
  max-width:100px;
  max-height:100px;
  width: 26%;
  aspect-ratio: 1/1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.resource-card .locked-icon {
  bottom: 10px;
  left: 10px;
}

.resource-cards {
  border-left: 1px solid #A6A9AA;
}
.resource-cards.locked .locked-icon {
  display: block;
  height: 44px;
  width: 44px;
  z-index: 10;
}

.resource-card .image-container {
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
  display: inline-block;
}

.resource-card .image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.resource-cards.locked .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark transparent overlay */
  z-index: 9;
}

.resource-card-content p {
  max-height: 75px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
.resource-cards-load-more {
  background-color: #EFEFEF;
  padding: 64px 80px
}

.resource-cards-load-more a.resource-cards-load-more-btn  {
  font-size: 14px;
}

section.resource-library .side-bar.header-scroll-filter .outer-top {
  top: 133px;
  transition: top 0.3s ease-in-out;
}
@media (min-width: 1280px) {
  .resource-card:nth-last-child(1),
  .resource-card:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  section.resource-card-wrapper {
    flex-direction: column;
  }
  .resource-card {
    flex-basis: 50%;
    border-right: 1px solid #A6A9AA;
  }
}

@media (min-width: 768px) {
  .resource-card .image-container .play-icon {
    max-width:100px;
    max-height:100px;
}

  .resource-cards-load-more {
    background-color: #EFEFEF;
    padding: 44px 40px;
  }
  
}

@media (max-width: 767px) {
  .resource-cards-load-more a.resource-cards-load-more-btn {
    width: 100%;
  }
  section.resource-library .side-bar.header-scroll-filter {
    top: 89px;
    transition: top 0.3s ease-in-out;
  }
  .resource-card {
    padding: 40px;
    border-right: none;
    border-bottom: 1px solid #A6A9AA;
  }
  section.resource-library .side-bar {
    z-index: 1001;
  }
}