/**
 * Knowledge cards, filters and single-page components.
 */

/* Knowledge */
/* Custom Terms common style */
.term-chips-knowledge {
  gap: 4px !important;
  display:flex;
}

.term-chips.term-chips-knowledge.term-chips-topic a, 
.term-chips.term-chips-knowledge.term-chips-hashtag a,
.term-chips.term-chips-network.term-chips-topic a
{
    border-radius: 4px;
    background: #53B1AA;
		color:#fff!important;
    padding: 7px 10px 5px 10px;
    color: #fff;
		text-transform: capitalize!important;
}

/* Loop item - Magazine */
.e-loop-item.knowledge-type-magazine .knowledge-item-type,
.e-loop-item.knowledge-type-magazine .knowledge-item-type a {
	color: #53B1AA;
	text-transform: lowercase;
}

.e-loop-item.knowledge-type-magazine .knowledge-item-title .elementor-heading-title,
.e-loop-item.knowledge-type-magazine .knowledge-item-title a {
	color: #53B1AA !important;
}

.e-loop-item.knowledge-type-magazine .hashtag-container a, 
.e-loop-item.knowledge-type-magazine .term-chips.term-chips-knowledge.term-chips-topic a, 
.e-loop-item.knowledge-type-magazine .term-chips.term-chips-knowledge.term-chips-hashtag a {
	background-color: #53B1AA;
}


/* Loop item - Publication */
.e-loop-item.knowledge-type-publication .knowledge-item-type,
.e-loop-item.knowledge-type-publication .knowledge-item-type a {
	color: #D95228;
	text-transform: lowercase;
}

.e-loop-item.knowledge-type-publication .knowledge-item-title .elementor-heading-title,
.e-loop-item.knowledge-type-publication .knowledge-item-title a {
	color: #D95228 !important;
}

.e-loop-item.knowledge-type-publication .hashtag-container a,
.e-loop-item.knowledge-type-publication .term-chips.term-chips-knowledge.term-chips-topic a, 
.e-loop-item.knowledge-type-publication .term-chips.term-chips-knowledge.term-chips-hashtag a{
	background-color: #D95228;
}


/* Loop item - Event */
.e-loop-item.knowledge-type-event .knowledge-item-type,
.e-loop-item.knowledge-type-event .knowledge-item-type a {
	color: #EEB632;
	text-transform: lowercase;
}

.e-loop-item.knowledge-type-event .knowledge-item-title .elementor-heading-title,
.e-loop-item.knowledge-type-event .knowledge-item-title a {
	color: #EEB632 !important;
}

.e-loop-item.knowledge-type-event .hashtag-container a,
.e-loop-item.knowledge-type-event .term-chips.term-chips-knowledge.term-chips-topic a, 
.e-loop-item.knowledge-type-event .term-chips.term-chips-knowledge.term-chips-hashtag a{
	background-color: #EEB632;
}

/* Knowledge cards follow the same 30 px content inset as Project cards. */
.elementor-loop-container .knowledge-item {
  overflow: hidden;
  border-radius: 10px;
}

.elementor-loop-container > .e-loop-item:has(.knowledge-item) {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.elementor-loop-container .knowledge-item
  > .e-con-inner
  > .e-con:last-child {
  gap: 20px;
  padding: 30px;
}

.elementor-loop-container .knowledge-item
  .knowledge-item-type {
  padding-top: 0;
}

/*
 * Topic and hashtag shortcodes are separate Elementor widgets. Flatten their
 * wrappers so every Knowledge badge participates in one continuous flex row.
 */
.elementor-loop-container .knowledge-item
  .e-con:has(> .elementor-widget-shortcode .term-chips-knowledge) {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.elementor-loop-container .knowledge-item
  .e-con:has(> .elementor-widget-shortcode .term-chips-knowledge)
  .term-chips-knowledge a {
  margin: 0 !important;
}

/* Keep the topic–hashtag widget boundary identical to the badge-to-badge gap. */
.elementor-loop-container .knowledge-item
  .e-con:has(> .elementor-widget-shortcode .term-chips-topic):has(> .elementor-widget-shortcode .term-chips-hashtag) {
  column-gap: 4px !important;
  row-gap: 4px !important;
}

@media (min-width: 768px) {
  body.single-knowledge .elementor .knowledge-single-page aside.e-con {
    padding-right: 32px;
  }
}
/* Publication single page */
.knowledge-single-page .hashtag-container a,
.knowledge-single-page .term-chips.term-chips-knowledge.term-chips-topic a, 
.knowledge-single-page .term-chips.term-chips-knowledge.term-chips-hashtag a {
		border-radius: 4px;
    background: #D95228;
		color:#fff!important;
    padding: 5px 10px;
    color: #fff;
		text-transform: capitalize;
}

/* Related Project/Network names are text links in the Figma sidebar, not badges. */
.knowledge-single-page .knowledge-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.knowledge-single-page .knowledge-related-chip {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.knowledge-single-page:not(.event):not(.magazine) .knowledge-related-chip {
  color: #D95228 !important;
  font-weight: 700;
  font-size: 19px;
}

.knowledge-single-page.event .knowledge-related-chip {
  color: #EEB632 !important;
}

.knowledge-single-page.magazine .knowledge-related-chip {
  color: #53B1AA !important;
}

.knowledge-documents-list {
  margin: 0;
  padding-left: 1.2em;
}

.knowledge-documents-list li {
  margin-bottom: 0.7em;
}

.knowledge-documents-list a,
.knowledge-document-accordion-title a {
  color: #df4b25;
  text-decoration: none;
  font-weight: 700;
	font-size:20px;
}

.knowledge-documents-list a:hover,
.knowledge-document-accordion-title a:hover {
  text-decoration: underline;
}

.knowledge-documents-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top:24px;
}

.knowledge-document-accordion-item {
  background: #f5f5f5;
  padding: 26px 32px;
	border-radius:10px;
}

.knowledge-document-accordion-item[hidden] {
  display: none !important;
}

.knowledge-document-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.knowledge-document-accordion-title {
  font-size: 20px;
  line-height: 1.25;
}

.knowledge-document-accordion-toggle {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #df4b25;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
}

.knowledge-document-accordion-toggle::before {
  content: "";
background:url("/wp-content/uploads/2026/05/arrow-down-white.svg");
	background-position: center 11px;
	background-repeat:no-repeat;
	width:32px;
	height:32px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
	transition: transform 0.25s ease;
  justify-content: center;
}

.knowledge-document-accordion-item.is-open .knowledge-document-accordion-toggle::before {
  content: "";
background:url("/wp-content/uploads/2026/05/arrow-down-white.svg");
	background-position:center;
	background-repeat:no-repeat;
	
	  transform: rotate(180deg);
}

.knowledge-document-accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  font-size: 20px;
  line-height: 1.45;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.knowledge-document-accordion-item.is-open .knowledge-document-accordion-content {
  max-height: 800px;
  opacity: 1;
  margin-top: 20px;
}

.knowledge-document-accordion-content p {
  margin: 0 0 10px;
}

.knowledge-document-authors ul {
  margin-top: 8px;
}

@media (max-width:767px) {
	.knowledge-documents-list *,
	.knowledge-documents-list a,
	.knowledge-document-accordion-title a, .knowledge-document-accordion-title,
	.knowledge-document-accordion-content{
		font-size:16px;
	}
	
	.knowledge-document-accordion-item {
  padding: 10px;
}
}

/* Publication document navigation */

.publication-document-navigation-title {
  margin: 0 0 28px;
}

.publication-document-navigation-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.publication-document-navigation-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e6512d;
  font: inherit;
  min-height: 32px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.publication-document-navigation-item:hover {
  opacity: 0.75;
}

.publication-document-navigation-item.is-active {
  transform: translateX(4px);
}

.publication-document-navigation-bullet {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0;
  border-radius: 50%;
  background: currentColor;
}

.publication-document-navigation-label {
  overflow-wrap: anywhere;
}


/* Publication flipbook viewer */

.publication-document-viewer {
  position: relative;
  width: 100%;
  min-width: 0;
}

.publication-document-viewer-panel {
  display: none;
  width: 100%;
  opacity: 0;
}

.publication-document-viewer-panel.is-active {
  display: block;
  animation: publicationViewerFadeIn 0.35s ease forwards;
}

.publication-document-viewer-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 40px;
  background: #f5f5f5;
  text-align: center;
}

@keyframes publicationViewerFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile */

@media (max-width: 767px) {
  .publication-document-navigation-items {
    gap: 8px;
  }

  .publication-document-navigation-item {
    gap: 10px;
    font-size: 18px;
  }

  .publication-document-navigation-bullet {
    width: 8px;
    height: 8px;
    margin-top: 0;
  }

  .publication-document-viewer-empty {
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  .elementor-loop-container .knowledge-item
    > .e-con-inner
    > .e-con:last-child {
    gap: 16px;
    padding: 20px;
  }
}

/* Event single page */
.knowledge-single-page.event  .hashtag-container a,
.knowledge-single-page.event .term-chips.term-chips-knowledge.term-chips-topic a, 
.knowledge-single-page.event .term-chips.term-chips-knowledge.term-chips-hashtag a{
    background: #EEB632;

}

.knowledge-event-resources-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.knowledge-event-resource-item {
  background: #f5f5f5;
  padding: 26px 32px;
	border-radius:10px;
}

.knowledge-event-resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.knowledge-event-resource-title {
  font-size: 24px;
  line-height: 1.25;
  color: #333;
}

.knowledge-event-resource-title span {
  color: #333;
  font-weight: 700;
	font-size: 20px;
}

.knowledge-event-resource-title a {
  color: #EEB632;
  text-decoration: none;
	font-weight: 700;
	font-size: 20px;
}

.knowledge-event-resource-title a:hover {
  text-decoration: underline;
}

.knowledge-event-resource-toggle {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #EEB632;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
}

.knowledge-event-resource-toggle::before {
content: "";
background:url("/wp-content/uploads/2026/05/arrow-down-white.svg");
	background-position: center 11px;
	background-repeat:no-repeat;
	width:32px;
	height:32px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
	transition: transform 0.25s ease;
  justify-content: center;
}

.knowledge-event-resource-item.is-open .knowledge-event-resource-toggle::before {
  transform: rotate(180deg);
}

.knowledge-event-resource-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  font-size: 20px;
  line-height: 1.45;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.knowledge-event-resource-item.is-open .knowledge-event-resource-content {
  max-height: 800px;
  opacity: 1;
  margin-top: 20px;
	border-radius:10px;
}

.knowledge-event-resource-content p {
  margin: 0 0 10px;
}

.knowledge-event-resource-authors ul {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .knowledge-event-resource-item {
    padding: 22px 20px;
  }

  .knowledge-event-resource-title {
    font-size: 18px;
  }

  .knowledge-event-resource-content {
    font-size: 18px;
  }

  .knowledge-event-resource-toggle {
    width: 36px;
    height: 36px;
  }
}


/* Magazine single page */
.knowledge-single-page.magazine .hashtag-container a,
.knowledge-single-page.magazine .term-chips.term-chips-knowledge.term-chips-topic a, 
.knowledge-single-page.magazine .term-chips.term-chips-knowledge.term-chips-hashtag a {
		border-radius: 4px;
    background: #53B1AA;
		color:#fff!important;
    padding: 7px 10px 5px 10px;
    color: #fff;
		text-transform: capitalize;
}

.knowledge-single-page.magazine .post-content a {
	color:#53B1AA;
}

/* Knowledge filter */
.knowledge-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.knowledge-type-filter-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 6px;
  background: #dff3f0;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.knowledge-type-filter-item:hover,
.knowledge-type-filter-item.is-active {
  background: #57bcb3;
  color: #fff;
}

@media (max-width: 767px) {
  .knowledge-type-filter {
    gap: 10px;
  }

  .knowledge-type-filter-item {
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }
}

/* Knowledge */
.knowledge-filter-form {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  flex-wrap: nowrap;
}

.knowledge-filter-form select,
.knowledge-search-field {
  flex: 1 1 0;
  min-width: 0;
}

.knowledge-filter-form select {
  flex: 1 1 45%;
  min-width: 320px;
  height: 72px;
  border: 1px solid #999;
  border-radius: 10px;
  padding: 0 64px 0 24px;
  font-size: 20px;
  background-color: #fff;
  color: #333;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L9 9.5L17 1.5' stroke='%236B6F76' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 28px center;
  background-size: 18px 11px;
}

.knowledge-search-field {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.knowledge-filter-form input {
  width: 100%;
  height: 72px;
  border: 1px solid #999;
  border-radius: 10px;
  padding: 0 24px 0 70px;
  font-size: 20px;
  background: #fff;
  color: #333;
}

.knowledge-search-field::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background-image: url("/wp-content/uploads/2026/05/search.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}

.knowledge-search-field button {
  display: none;
}

.knowledge-filter-reset {
  flex: 0 0 auto;
  height: 72px;
  padding: 0 28px;
  border-radius: 10px;
  border: 1px solid #df4b25;
  color: #df4b25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: 0.2s ease;
  white-space: nowrap;
}


.knowledge-filter-reset:hover {
  background: #df4b25;
  color: #fff;
}

@media (max-width: 1024px) {
  .knowledge-filter-form {
    flex-wrap: wrap;
  }

  .knowledge-filter-form select {
    flex: 1 1 calc(50% - 9px);
  }

  .knowledge-search-field {
    flex: 1 1 calc(100% - 130px);
  }
}

@media (max-width: 767px) {
  .knowledge-filter-form {
    gap: 16px;
  }

  .knowledge-filter-form select,
  .knowledge-search-field,
  .knowledge-filter-reset {
    flex: 1 1 100%;
    width: 100%;
  }

  .knowledge-filter-form select,
  .knowledge-filter-form input,
  .knowledge-filter-reset {
    height: 60px;
    font-size: 16px;
  }

  .knowledge-search-field::before {
    left: 22px;
    width: 22px;
    height: 22px;
  }

  .knowledge-filter-form input {
    padding-left: 58px;
  }
}

/* Event video navigation and viewer */
.event-video-navigation-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.event-video-navigation-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eeb632;
  text-align: left;
  font: inherit;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.event-video-navigation-item:hover {
  background: transparent;
  color: #eeb632;
  opacity: 0.75;
}

.event-video-navigation-item.is-active {
  background: transparent;
  color: #eeb632;
  transform: translateX(4px);
}

.event-video-navigation-bullet {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.event-video-navigation-label {
  overflow-wrap: anywhere;
}

.event-video-panel {
  display: none;
}

.event-video-panel.is-active {
  display: block;
  animation: eventVideoFade 0.3s ease;
}

.event-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.event-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.event-video-info {
  margin-top: 24px;
}

.event-video-info h3 {
  margin: 0 0 8px;
}

.event-video-speaker {
  margin: 0 0 12px;
  font-weight: 600;
}

@keyframes eventVideoFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
