.dd-resource-search-articles-wrapper {
  margin: 0 auto;
}

/*===================== Search Inputs ===================*/
.dd-resource-search {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 55px;
} 
/* .dd-resource-search-footer {
color: #5E5E5E;
font-size: 16px;
font-weight: 300;
line-height: 22.40px;
word-wrap: break-word;
margin: 18px 0 50px;
position: relative;
display: flex;
justify-content: space-between;
transition: 0.25s ease-in;
height: 22px;
} */
.dd-resource-search-left,
.dd-resource-search-right {
  display: flex;
  gap: 20px;
}

.dd-resource-search_input-wrapper,
.dd-resource-search_topic-select-wrapper,
.dd-resource-search_type-select-wrapper {
  width: 100%;
  position: relative;
  padding: 0px;
  border-radius: 30px;
  border: 1.213px solid #88B8FC;
}
.dd-resource-search_topic-select-wrapper,
.dd-resource-search_type-select-wrapper {
  padding: 0;
  display: flex;
}

.dd-resource-search_input-wrapper {
  padding: 0;
  border-radius: unset;
  border: none;
  border-bottom: 1.213px solid #88B8FC;
  padding-left: 20px;
}
.dd-resource-search_input-wrapper:before {
  content: '';
  height: 18px;
  width: 18px;
  background-image: url('https://www.directdevelopment.com/hubfs/DD%20Group/Icons/glass.svg');
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
}

.dd-resource-search_topic-select-wrapper label,
.dd-resource-search_type-select-wrapper label {
  color: #151515;
  font-size: 16px;
  font-weight: 700;
  line-height: 19.20px;
  margin-right: 24px;
  word-wrap: break-word;
}
.dd-resource-search_input,
.dd-resource-search_topic-select,
.dd-resource-search_type-select,
.dd-resource-search_sort-select {
  height: auto;
  background: unset;
  border: none;
  color: #151515;
  font-size: 16px;
  font-weight: 300;
  line-height: 22.40px;
  word-wrap: break-word
}
.dd-resource-search_input {
  width: calc(100% - 10px);
  height: 40px;
}
.dd-resource-search_topic-select,
.dd-resource-search_type-select {
  width: 180px;
  /* Hide default browser arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

/* For Internet Explorer 10 and 11 to hide its default arrow */
.dd-resource-search_type-select select::-ms-expand,
.dd-resource-search_topic-select select::-ms-expand {
  display: none;
}

/* Create the custom orange arrow using ::after */
.dd-resource-search_type-select-wrapper::after,
.dd-resource-search_topic-select-wrapper::after {
  content: ''; 
  position: absolute;
  right: 15px; 
  top: 50%;
  transform: translateY(-50%); /

  /* Create the triangle shape with borders */
  width: 0;
  height: 0;
  border-left: 6px solid transparent; /* Half the arrow's desired width */
  border-right: 6px solid transparent; /* Half the arrow's desired width */
  border-top: 6px solid #FF8C00; /* This creates the orange down arrow. Use your specific orange color code. */

  pointer-events: none; /* Crucial: allows clicks to pass through to the select */
}

/* Optional: Style the arrow on hover/focus */
.dd-resource-search_type-select-wrapper:hover::after,
.dd-resource-search_topic-select-wrapper:hover::after {
  border-top-color: #EA6115; /* Lighter orange on hover */
}

.dd-resource-search_type-select-wrapper::before,
.dd-resource-search_topic-select-wrapper::before {
  content: '';
  height: 24px;
  width: 24px;
  background-image: url('https://www.directdevelopment.com/hubfs/DD%20Group/Icons/glass.svg');
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.dd-resource-search_topic-select-wrapper::before{
  background-image: url('https://www.directdevelopment.com/hubfs/DD%20Group/Icons/fi_2040523.svg');
}

.dd-resource-search_type-select-wrapper::before{
  background-image: url('https://www.directdevelopment.com/hubfs/DD%20Group/Icons/fi_4056814.svg');
}

.dd-resource-search_topic-select {
  width: fit-content;
  text-align: center;
  outline: none;
}
.dd-resource-search_type-select {
  text-align: center;
}
.dd-resource-search_sort-by {
  position: absolute;
  right: 0;
}
.dd-resource-search_sort-select {
  border-bottom: 1px solid #000;
  cursor: pointer;
  font-family: proxima-nova;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
}

.dd-resources-clear-btn {
  border-radius: 41px;
  background: #FFF;
  padding: 6px 12px;
  white-space: nowrap;
}
/* ========================= Main listing ====================== */
.dd-resource-article__main-listing {
  width: 100%;
  max-width: 1056px;
  display: block;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 80px;
}
.dd-resource__main-listing-top {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.dd-resource__main-listing-title-icon-wrapper {
  display: flex;
  gap: 8px;
}
h2.dd-resource__main-listing-title {
  margin-bottom: 8px !important;
  text-align: left;
}
p.dd-resource__main-listing-title-subtitle {
  margin: 0;
}

.dd-resource__main-listing-top {
  margin-bottom: 60px;
}
.dd-resource__main-listing-posts {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.dd-resource__main-listing-post {
  flex-basis: 100%; 
}
.dd-resource__main-listing-hover-text {
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: 0.25s ease-in;
  bottom: 40px;
}
.dd-resource__main-listing-post:hover .dd-resource__main-listing-hover-text {
  display: flex;
  opacity: 1;
  bottom: 0;
}
.dd-resource__main-listing-post:hover .dd-resource__main-listing-post-eyebrow {
  background-color: #0062EB;
}
.dd-resource__main-listing-post:hover .dd-resource__main-listing-post-title {
  color: #0062EB !important;
}

@media screen and (min-width: 768px) {
  .dd-resource__main-listing-top,
  .dd-resource__main-listing-posts {
    display: flex;
    gap: 40px;
    flex-wrap: unset;
  }

  .dd-resource__main-listing-top {
    margin-bottom: 20px;
  }
  .dd-resource__main-listing-post {
    flex-basis: 100%; 
  }
}

/*======================== Articles =====================*/
.dd-resource-article__article-inner-wrapper {
  background-color: unset !important;
  text-decoration: none !important;

}
.dd-resource-article__list-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  gap: 40px;
  padding-bottom: 48px;
}

.dd-resource-article__article-image-wrapper {
  position: relative;
}
.dd-resource-article__article-image-wrapper .featured-tag {
  display: block;
  left: -10px;
  margin: 0 auto;
  max-width: 800px;
  position: absolute;
  bottom: 0;
  height: 47px;
}

.dd-resource-articles .img {
  border-radius: 20px;
  display: block;
  height: 196px;
  width: 100%;
}
.dd-resource-articles .resources-eyebrow,
.dd-resource__main-listing-post-eyebrow {
  border-radius: 5px;
  background: #031E45;
  bottom: 20px;
  left: 20px;
  color: #FFF !important;
  font-family: "proxima-nova";
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 15.6px */
  text-transform: uppercase;
  position: absolute;
  padding: 4px 6px;
  margin-bottom: 0;
}
.dd-resource__main-listing-post-eyebrow {
  position: relative;
  bottom: unset;
  left: unset;
  max-width: fit-content;
  margin-bottom: 12px;
} 
.dd-resource-article__article-inner {
  height: 100%;
}
.dd-resource-article__content {
  padding: 0 18px;
  transition: 0.25s ease-in;
}


.dd-resource-article__content-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 18.2px;
  text-align: left;
}

.dd-resource-article__content-text date {
  display: block;
  color: #5E5E5E;
}
.dd-resource-article__article {
  flex: 0 0 100%;
  margin-bottom: 8px;
}
.dd-resource-article__article a {
  text-decoration: none;
  color: #292929;
  display: block;
  height: 100%;
}
.dd-resource-article__article:hover {
  cursor: pointer;
}

/* .dd-resource-article__article:hover .dd-resource-article__content {
background-color: #8a1f03;
}
.dd-resource-article__article:hover .dd-resource-article__content * {
color: #fff;
border-color: #fff;
} */

.dd-resource-article__list-inner__load-more-button {
  border: 1px #000 solid !important;
  border-radius: 32px;
  padding: 16px 0;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  background-color: unset;
  transition: 0.25s ease-in;
}
.dd-resource-article__list-inner__load-more-button:hover {
  background-color: #D5242F;
  color: #fff;
  border-color: #fff !important;
}

.dd-resource-articles-pagination,
.dd-resource-articles-pagination-footer {
  display: flex;
  justify-content: center; 
}
.dd-resource-articles-pagination {
  gap: 20px;
  flex-wrap: wrap;
}

.dd-resource-articles-pagination button {
  border:none;
  border-style: none;
  background-color: unset;
}
.dd-resource-articles-pagination button.active-number {
  font-weight: 700;
  text-decoration: underline;
}
.dd-resource-articles-pagination svg {
  fill:#EA6115;
  stroke: #EA6115;
}

@media screen and (min-width: 477px) {
  .dd-resource-article__article {
    flex: 1 1 29%;
  }
}
@media screen and (min-width: 768px) {
  .dd-resource-article__article {
    overflow: hidden;
    border-radius: 0px 0px 20px 20px;
  }
  .dd-resource-article__article {
    max-width: 290px;
  }
  .dd-resource-article__content {
    height: 100%;
    padding-top: 20px;
  }
  .dd-resource-search_input-wrapper,
  .dd-resource-search_topic-select-wrapper,
  .dd-resource-search_type-select-wrapper {
    max-width: 290px;
  }
  .dd-resource-search_topic-select-wrapper {
    max-width: fit-content;
  }
  .dd-resource-articles-pagination {
    flex-wrap: none;
  }
}
@media screen and (min-width: 1000px) {
  .dd-resource-article__article {
    flex: 1 1 22%;
  }
  .dd-resource-article__main-listing {
    margin-bottom: 120px;
  }
}
