/* filter header title */
.filter-header {
  color: white;
  font-size: 20px;
  padding-left: 15px;
}

.filter-top-section {
  background: linear-gradient(to bottom, #143d5e, #142540);
  padding-bottom: 15px;
  margin-bottom: 8px;
  border-radius: 10px;
}
  
h5.filter-button {
  padding: 5px;
  background: linear-gradient(to bottom, #143d5e, #142540);
  color: white;
  border-radius: 20px;
  margin-left: 5px;
  margin-right: 10px;
}

u {
  color: white;
  text-decoration: none;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: bold;
  padding-left: 10px;
  vertical-align: super;
}


.hs-search-field {
  margin-right: 15px;
  margin-left: 15px;
}

.srch-wrap input.hs-search-field__input {
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
}

.filter-style-clear {
  background-color: transparent;
  border: 1px solid #3295d9;
  width: fit-content;
  margin: 10px;
  border-radius: 7px;
  padding: 5px;
}

.filter-categories {
  padding: 30px;
}

/* Keep the filters closed at initial page load - this hides the ul elements of each category */
.filter-col .filter-style ul {
  display: none; /* Initially hide all filter options */
}
.filter-style {
  margin-bottom: 10px;
  padding-bottom: 15px;
  padding-top: 10px;
}
.filter-col .filter-style h6 {
  position: relative;
  cursor: pointer;
  color: #142540;
}
@keyframes rotateChevronDown {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}
@keyframes rotateChevronUp {
  from { transform: rotate(180deg); }
  to { transform: 0deg; }
}
.filter-col .filter-style h6::after {
  content: "";
  right: 0;
  position: absolute;
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 8px solid;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  top: 6px;
}
.filter-col .filter-style h6:hover,
.filter-col .filter-style h6:focus {
  color: #888;
}
.filter-col .filter-style h6.active::after {
  transition: all 0.25s ease-in-out;
}
.filter-col .filter-style h6.active::after {
  animation: rotateChevronDown 0.25s ease-in-out forwards;
}
.filter-col .filter-style h6:not(.active::after) {
  animation: rotateChevronUp 0.25s ease-in-out forwards;
}
.filter-style input+span:before {
  border-radius: 40rem;
  height: 22px;
  width: 22px;
}

/* The below section is the clickable function of the h5 elements without the chevron element attached */
.filter-col .filter-style h5 {
  position: relative;
  cursor: pointer;
  margin: 15px 10px 15px 10px;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0em;
  
}
.filter-col .filter-style h5:hover,
.filter-col .filter-style h5:focus {
  color: #2596be;
}
.filter-style input+span:before {
  border-radius: 40rem;
  height: 22px;
  width: 22px;
}

/* Remove the chevron animation */
.filter-col .filter-style h5.active::after,
.filter-col .filter-style h5:not(.active)::after {
  display: none;
}

/* Grid layout for resource items */
.resourceItem-row {
  display: flow-root;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.resourceItem {
  flex: 0 1 calc(33.33% - 16px); /* Default: three items per row */
  box-sizing: border-box;
}

.resourceImg {
  width: 100%;
  height: auto;
}

.resource-description h6 {
  font-family: 'Trebuchet MS', sans-serif;
  color: #4a4a4a;
  text-transform: capitalize;
  padding-top: 5px;
}  


.filter-col h6 {
  font-family: 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
  font-weight: 600;
  color: #4a4a4a;
  
}

.filter-col h5 {
  font-family: 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

/* .resource-desc {
  text-transform: math-auto;
  padding-top: 5px;
} */
  
.resource-description {
  width: 100%;
}
/* Ensure equal height columns */
.equal-height {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.current-page {
  font-weight: 1000;
  color: #a7d662 !important;
}

.new-filter h5 {
  font-size: 1rem; /* Adjust the font size as needed */
  margin: 0; /* Remove any default margin */
  padding: 5px 0; /* Adjust the padding as needed */
}


.resource-description img.type-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 2px !important;
}

a {
  color: #3295d9 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: smaller;
}

.feature-link-filter.filter-style {
  border: none;
  padding: 0px !important;
  margin: 0px !important;
}

.last-feature-link-filter.filter-style {
  padding: 0px !important;
  margin: 0px !important;
}

.topic-filter hr.gray-line {
  margin-top: 2px !important; /* Adjust this value as needed */
  margin-bottom: 2px !important;
}

.resource-list-section {
  padding-top: 40px !important;
  background-color: #fcf8f8 !important;
}

.filter-style {
  padding-top: 5px !important;
  padding-bottom: 10px !important;
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

.resources-hero-section {
  min-height: 250px !important;
}

.inner-pagi {
    min-height: 50px;
}

.isotope-pager {
  min-height: 50px;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}

.isotope-pager .pager {
  cursor: pointer;
  display: none;
}

.isotope-pager .pager.current-page {
  font-weight: bold;
  cursor: pointer;
  color: #a1d55d;
}

.resourceItem .pad {
  /*box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px; */
  border-radius: 5px !important;
  border-top: 4px solid #e6dede !important;
  background-color: white !important;
}


.filter-col {
  /*box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px; */
  border-radius: 5px !important;
  background-color: white !important;
  padding: 0px !important;
}

.filter-style-clear {
  padding-top: 5px;
  padding-left: 15px;
  padding-right: 15px;
}


  /* gray background color for top portion of the pad-equal-height resource boxes */
.pad.equal-height {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 156.181px;
  background-color: white;
}

.pad.equal-height .resourceImg,
.pad.equal-height .resource-type {
 /* background-color: #f2f2f2;
  padding: 10px; /* Add padding if needed 
} */
}

span.type-name {
  color: #0f99d6 !important;
}




/* Media Queries for responsive layout */
@media (max-width: 1050px) {
  .resourceItem {
    flex: 0 1 calc(50% - 16px); /* Two items per row */
  }
}

@media (max-width: 800px) {
  .resourceItem {
    flex: 0 1 100%; /* One item per row */
  }

  .filter-col {
    margin: 0 auto;
    padding: 15px !important; /* Add padding for small devices */
  }

  .resourceRow.clearfix {
    margin: 0 auto;
    padding: 10px;
  }

  .resource-main {
    display: block;
    margin-top: 35px; /* Add margin-top for small devices */
  }

  .filter-col .filter-style > h6:after,
  .filter-col .filter-style > h6:before {
    content: "" !important; /* Hides the content */
    position: absolute;
    top: 30%;
  }
}
