.block-resource-cards {
  --card-thumbnail-width: 360px;
  --vertical-spacing: 1.5rem;
}

@media (max-width: 992px) {
  .block-resource-cards {
    --vertical-spacing: var(--horizontal-spacing)
  }
}

.block-resource-cards .boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--card-thumbnail-width, 360px));
  gap: var(--vertical-spacing) var(--horizontal-spacing);
  justify-content: center;
}

.project-cards .block-resource-cards .boxes-grid {
  --card-thumbnail-width: 345px;
  gap: 3rem;
}

.block-resource-cards .boxes-grid .container {
  padding: 0;
}

.block-resource-cards .boxes-slider {
  max-width: 1280px;
}

.block-resource-cards .boxes-slider .swiper {
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: -1rem;
  margin-bottom: -1rem;
}

.block-resource-cards .boxes-slider .swiper .swiper-wrapper {
  align-items: stretch;
}

.block-resource-cards .boxes-slider .swiper .swiper-nav-button {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  height: 100%;
  width: 3rem;
  background-color: transparent;
}

.block-resource-cards .boxes-slider .swiper .swiper-nav-button:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
  .block-resource-cards .boxes-slider .swiper .swiper-nav-button {
    width: 2rem;
    background-color: rgba(255, 255, 255, 0.35)
  }
}

.block-resource-cards .boxes-slider .swiper .swiper-nav-button.swiper-button-prev {
  right: unset;
}

.block-resource-cards .boxes-slider .swiper .swiper-nav-button.swiper-button-next {
  left: unset;
}

.block-resource-cards .boxes-slider .boxes-card {
  height: unset;
  width: var(--card-thumbnail-width, 360px);
}

@media only screen and (max-width: 480px) {
  .block-resource-cards .boxes-slider .swiper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .block-resource-cards .boxes-slider .boxes-card {
    width: 100%;
  }
}

.block-resource-cards .thumbnail-wrapper {
  position: relative;
  max-width: var(--card-thumbnail-width, 360px);
}

.block-resource-cards .thumbnail-wrapper .type {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.625rem;
  text-align: center;
  text-transform: uppercase;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 0.25rem;
}

.block-resource-cards .event-details .type {
  left: 1.5rem;
  right: unset;
}

.block-resource-cards .card-header {
  line-height: normal;
  font-weight: 600;
  color: var(--iufro-green-1);
}

.block-resource-cards .card-header .category {
  position: relative;
  display: flex;
  align-items: center;
}

.block-resource-cards .card-header .category > a {
  white-space: nowrap;
  display: block;
  overflow: hidden;
  max-width: 200px;
}

.block-resource-cards .card-header .category .iufro--caret-right {
  margin-left: 0.5rem;
  transition: transform 0.2s ease-in-out;
}

.block-resource-cards .card-header .category nav {
  position: absolute;
  top: 0;
  background-color: #fff;
  width: calc(var(--card-thumbnail-width, 360px) - 2 * var(--horizontal-spacing));
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 1;
  max-height: 120px;
  overflow-y: auto;
}

.block-resource-cards .card-header .category nav a {
  display: block;
  white-space: nowrap;
  margin-top: 0.75rem;
}

.block-resource-cards .card-header .category nav a:first-child {
  margin-top: 0;
}

.block-resource-cards .card-header .category:hover nav {
  opacity: 1;
  visibility: visible;
}

.block-resource-cards .card-header .category:hover .iufro--caret-right {
  transform: rotate(90deg);
}

.block-resource-cards .card-body {
  flex: 1;
}

.block-resource-cards .card-body .description {
  color: var(--iufro-gray-4);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-left: 0;
  padding-top: 4px;
  position: relative;
  word-break: break-word;
}

.block-resource-cards .project-title,
	.block-resource-cards .card-body .title {
  margin-bottom: 1rem;
  color: var(--iufro-gray-1);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: normal;
}

.block-resource-cards .project-details .title {
  display: none;
}

.block-resource-cards .boxes-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  background-color: white;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.block-resource-cards .boxes-card .thumbnail-wrapper img {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.block-resource-cards .boxes-card .thumbnail-wrapper .type {
  background-color: var(--iufro-blue-1);
  color: #fff;
}

.block-resource-cards .boxes-card .content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  padding: var(--vertical-spacing) var(--horizontal-spacing);
}

.block-resource-cards .boxes-card .content-wrapper .card-header {
  align-items: center;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.block-resource-cards .boxes-card .content-wrapper .card-header .date {
  flex: 1;
  text-align: right;
  white-space: nowrap;
}

.block-resource-cards .boxes-card.podcast-boxes .btn.btn-small {
  min-width: 0.25rem;
  gap: 0.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.block-resource-cards .boxes-card.workshop-boxes .card-footer .btn,
		.block-resource-cards .boxes-card.activity-boxes .card-footer .btn {
  background-color: transparent;
  color: var(--iufro-green-1);
  border: 1px solid var(--iufro-green-1);
  padding: 10px 20px;
  font-size: 1rem;
  min-width: auto;
  align-items: center;
}

.block-resource-cards .project-boxes {
  box-shadow: none;
}

.block-resource-cards .project-boxes .content-wrapper {
  padding-left: 0;
  padding-right: 0;
}

.block-resource-cards .details-grid {
  display: grid;
}

.block-resource-cards .details-card {
  display: grid;
  grid-template-columns: var(--card-thumbnail-width) 1fr;
  gap: 3rem;
}

.block-resource-cards .details-card:not(:last-child) {
  margin-bottom: 3rem;
}

.block-resource-cards .details-card .thumbnail-wrapper .calendar {
  position: absolute;
  max-width: 82px;
  top: 1.5rem;
  right: 1.5rem;
  background-color: white;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
}

.block-resource-cards .details-card .thumbnail-wrapper .calendar .year {
  background-color: var(--iufro-green-1);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
}

.block-resource-cards .details-card .thumbnail-wrapper .calendar .date {
  display: flex;
  padding: 0 2.5rem;
  width: 82px;
  height: 68px;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 1.125rem;
}

.block-resource-cards .details-card .content-wrapper {
  display: flex;
  flex-direction: column;
}

.block-resource-cards .details-card img {
  border-radius: 1rem;
}

.block-resource-cards .details-card .type {
  background-color: var(--iufro-blue-5);
}

.block-resource-cards .details-card .card-header {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.block-resource-cards .details-card .card-header .icon-text {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.block-resource-cards .details-card .card-header .icon-text i {
  font-size: 28px;
  margin-right: 10px;
}

.block-resource-cards .details-card .card-header .share-news {
  flex: 1;
  justify-content: flex-end;
}

.block-resource-cards .details-card.resource-details .type, .block-resource-cards .details-card.podcast-details .type {
  background-color: var(--iufro-blue-1);
  color: #fff;
}

.block-resource-cards .details-card.podcast-details {
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
  padding-right: 2.5rem;
}

.block-resource-cards .details-card.podcast-details .content-wrapper {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.block-resource-cards .details-card.podcast-details .title {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.875rem;
  font-weight: 500;
  color: #000;
}

.block-resource-cards .details-card.podcast-details .share-news {
  gap: 2rem;
}

.block-resource-cards .details-card.podcast-details .pop-up-icon {
  font-size: 1.25rem;
}

.block-resource-cards .card-footer {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.block-resource-cards .resource-boxes .thumbnail-wrapper.thumbnail-wrapper, .block-resource-cards .resource-details .thumbnail-wrapper.thumbnail-wrapper, .block-resource-cards .podcast-details .thumbnail-wrapper.thumbnail-wrapper, .block-resource-cards .podcast-boxes .thumbnail-wrapper.thumbnail-wrapper {
  height: var(--card-thumbnail-width, 360px);
}

.block-resource-cards .resource-boxes .thumbnail-wrapper.thumbnail-wrapper picture, .block-resource-cards .resource-details .thumbnail-wrapper.thumbnail-wrapper picture, .block-resource-cards .podcast-details .thumbnail-wrapper.thumbnail-wrapper picture, .block-resource-cards .podcast-boxes .thumbnail-wrapper.thumbnail-wrapper picture {
  height: 100%;
  display: flex;
  background-color: var(--iufro-blue-5);
  justify-content: center;
  align-items: center;
}

.block-resource-cards .resource-boxes .thumbnail-wrapper.thumbnail-wrapper img, .block-resource-cards .resource-details .thumbnail-wrapper.thumbnail-wrapper img, .block-resource-cards .podcast-details .thumbnail-wrapper.thumbnail-wrapper img, .block-resource-cards .podcast-boxes .thumbnail-wrapper.thumbnail-wrapper img {
  border-radius: 0;
}
