/* Basic Setup */

:target {
    scroll-margin-top: 206px;
}

html {
    font-family: "Inter", sans-serif;
    font-style: normal;
    overflow-x: hidden;
    scroll-behavior: smooth;
    color: black;
    line-height: 130%;
}

body {
    background-color: #F1FCFF;
}

p {
    padding-bottom: 16px;
    line-height: 125%;
  }

i, em{
    font-style: italic;
}

b, strong{
    font-weight: 700;
}

blockquote {
    margin-left: 32px;
    font-style: italic;
    font-size: 14px;
}

ul {
    line-height: 130%;
    list-style-type: disc;
    padding-bottom: 16px;
    margin-left: 32px;
}

ol {
    list-style: decimal;
    margin-left: 32px;
    padding-bottom: 16px;
    line-height: 130%;
}

li {
    padding-bottom: 8px;
  }

sub {
    vertical-align: sub;
}

sup{
    vertical-align: super;
}

pre{
    color: #6759FF;
    font-family: monospace;
    padding-bottom: 16px;
}

code{
    font-family: monospace;
}

figcaption{
    text-align: center;
    color: #6759FF;
    font-style: italic;
    padding-bottom: 14px;
    font-family: "Philibert";
}

a {
    color: #6759FF;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
}

a:visited {
    color: #6759FF;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
}

a:hover {
    color:#AF8FFF;
    cursor: pointer;
}

h2 {
  font-family: "Philibert";
  padding-bottom: 16px;
  color: #6759FF;
}

.fil{
  font-family: "Philibert";
}

/* Font Hack */

.tight-tilde {
    display: inline-block;
    margin-left: -2px;
}

.wide-accent {
    display: inline-block;
    margin-right: 4px;
}

/* Back to top button */

#scroll_to_top {
    display: none;
    background-color: #6759FF;
    height: 42px;
    width: 42px;
    border-radius: 50%;
    padding: 0;
    bottom: 20px;
    right: 20px;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.img_back_to_top {
    width: 14px;
    height: auto;
    position: relative;
    top: 2px;
}

/* Header Menu */

.navigation_header{
    height: 120px;
    position: fixed;
    top: 16px;
    left: 16px;
    width: calc(100vw - 48px);
    background-color: #6759FF;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 8px;
    z-index: 100;
}

.header_left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
img.home{
    height: 48px;
}

.page-header{
    font-family: "Philibert";
    color: white;
}

.page-header a{
    font-family: "Philibert";
    color: white;
}

.page-header a:hover{
  color: #0E0E0E;
}

ul.header_pages {
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.nav-item a {
  color: white;
  text-transform: uppercase;
  font-size: 14px;
}

li.nav-item {
  padding-bottom: 0px;
  display: inline-block;
  padding-right: 16px;
}

li.nav-item a:hover {
  color: #6123E6;
}

.current_page_item a{
    font-family: "Philibert";
}

.trp-language-switcher-container {
  width: fit-content;
  padding-bottom: 0px;
  display: inline-block;
}

.trp-language-switcher-container a {
  color: white;
  text-transform: uppercase;
  font-size: 14px;
}

.trp-language-switcher-container a:hover {
  color: #6123E6;
}

body .trp-flag-image {
    display: none !important;
}

.current-language-menu-item a{
    font-family: "Philibert";
}


/* Header Menu Mobile */

.hamburger{
    display: none;
}

.close-menu{
    display: none;
}

/* Footer */

footer {
  height: 100%;
  padding: 8px;
  margin: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
}

ul.footer-menu{
    margin-left: 0;
    padding-bottom: 0px;
    padding-top: 32px;
}

.footer-menu a{
    color: black;
    font-size: 12px;
}

.footer-menu .nav-item {
  display: block;
}

img.home_footer{
    height: 32px;
}

.logo_footer{
    padding-left: 16px;
}


img.logo_footer{
    height: 56px;
}

/* Main For all Pages*/

main {
  margin-top: 168px;
  min-height: calc(100vh - 168px);
  margin-left: 16px;
  margin-right: 16px;
}

.full-btn {
  width: 100%;
    padding-top: 16px;
  padding-bottom: 16px;
  height: 40px;
}

.primary-btn {
  width: fit-content;
  border-radius: 32px;
  font-family: "Philibert";
  font-size: 16px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.primary-btn span {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 12px;
  padding-top: 12px;
  background-color: #6759FF;
  border-radius: 32px;
}

a.primary-btn span{
  color: white;
}

.first-part{
    font-family: "Inter";
    font-weight: 600;
}

.second-part {
  margin-left: -8px;
}

.arrow-part {
  margin-left: 16px;
  width: 10px;
}

img.arrow {
  height: 16px;
  margin-bottom: -2px;
  margin-left: -3px;
}

.full-btn.center {
  display: flex;
  justify-content: center;
}

.full-btn.right {
  display: flex;
  justify-content: end;
}

.arrow-part.first {
  margin-left: 0px;
  margin-right: 16px;
}

.primary-btn span {
    transition: background-color 0.1s ease;
}

.primary-btn:hover span {
    background-color: #0E0E0E;
}


/* Cursor Animation */

.cursor_follow {
  height: calc(100vh - 256px);
  background-color: #F9F2FF;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.cursor_follow p {
  max-width: 368px;
  font-family: "Philibert";
  padding-bottom: 0px;
  /* Ensure text is above the blob */
  position: relative;
  z-index: 2;
}

.cursor-blob {
  position: absolute;
  width: 1300px; 
  height: 1300px; 
  background: radial-gradient(
    circle,
    #6759FF 0%,
    transparent 90%
  );
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.9; 
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  
  /* KEY CHANGE: Short transition for position (0.15s) and longer transition for opacity (0.5s) */
  transition: opacity 0.5s ease-out, left 0.15s ease-out, top 0.15s ease-out; 
}

/* Page that lists all texts from one type */

header.page-header {
  padding-bottom: 32px;
  padding-top: 8px;
}

.page-title {
  margin: 0;
}

/* Wrapper for the fancy title */
.text-wrapper {
  position: relative;
  display: inline-block;
  white-space: normal;      /* allow wrapping when needed */
  height: auto;             /* grow with content */
}

/* Base styling for both spans */
.text-wrapper span {
  font-size: 20px;
  font-family: "Philibert";
  text-transform: uppercase;
  line-height: 1.3;
  text-align: left;         /* keep left aligned */
}

/* Blurred outline layer */
.text-wrapper .blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;                 /* match wrapper width */
  color: transparent;
  -webkit-text-stroke: 6px #6759FF;
  filter: blur(4px);
  pointer-events: none;
}

/* Main visible text */
.text-wrapper span:not(.blur) {
  position: relative;
}


/* Articles */

.research-text-item {
  padding-bottom: 32px;
}

ul.research-text-list {
  margin-left: 0;
  list-style-type: none;
}

.research-text-card {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 24px;
}

.research-text-info {
  width: 50%;
}

.research-text-thumb {
  width: 50%;          /* 2-column layout */
  aspect-ratio: 3 / 2; /* fixed box */
  overflow: hidden;
}

/* image fills and covers the box, centered */
.research-text-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.research-text-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top_article {
  margin-bottom: 16px;
}

.bottom_article {
  margin-top: 16px;
}

.research-text-topics {
  display: inline-block;
}

.topics-list {
  display: inline-block;
}

.research-text-title a {
  font-family: "Inter";
  color: black;
  font-weight: 500;
}

.research-text-title a:hover {
  color: #6759FF;
}

.research-text-title {
  padding-bottom: 8px;
}

.research-text-type {
  padding-bottom: 8px;
}

.research-text-type a {
  color: black;
  font-family: "Philibert";
  text-transform: uppercase;
  font-size: 14px;
}

.research-text-type a:hover {
  color: #6759FF;
}

.topics-label {
  text-transform: uppercase;
  font-size: 14px;
}

a.topic-pill {
  color: white;
  font-family: "Philibert";
  background-color: #6759FF;
  padding-top: 4px;
  border-radius: 32px;
  padding-bottom: 4px;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 14px;
  display: inline-block;
  margin-top: 8px;
}

a.topic-pill:hover {
  background-color: black;
}

.research-text-author {
  padding-bottom: 4px;
}

.research-text-author a {
  font-size: 14px;
}

.research-text-date {
  font-size: 12px;
}

/* Loading Buttons */

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}

.pagination-left,
.pagination-right {
  flex: 0 0 auto;
}

.pagination-right .primary-btn span,
.pagination-left .primary-btn span {
  font-size: 12px;
}

.pagination-row .arrow-part {
  width: 6px;
    margin-left: 8px;
}

.pagination-right img.arrow,
.pagination-left img.arrow {
  height: 12px;
}

/* Landing recent posts section */

.landing-recent {
  margin-top: 16px;
  margin-bottom: 32px;
}

.landing-recent-header .text-wrapper {
  position: relative;
  display: inline-block;
  height: 40px;
  white-space: nowrap;
}

/* Three columns (Artigos / Escritos / Ensaios) */
.landing-types-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-type-label {
  display: inline-block;
  margin-bottom: 16px;
  color: #6759FF;
  font-family: "Philibert";
  text-transform: uppercase;
  font-size: 14px;
}

/* Column inner layout: vertical stack */
.landing-type-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card wrapper */
.landing-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Featured image */
.landing-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.landing-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card body */
.landing-card-body {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Title container */
.landing-card-title {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 130%;
}

/* Clamp and height applied to the link itself */
.landing-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  line-height: 130%;
  min-height: 2.6em;  /* exactly 2 lines at 1.3 line-height */
  color: black;
  font-weight: 500;
}

.landing-card-title a:hover {
  color: #6759FF;
}

/* Meta row (author + date) */
.landing-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.landing-card-author {
  font-weight: 500;
}

/* Blur on hover in landing cards */
.landing-card-thumb {
  transition: filter 0.15s ease;
}

.landing-card-thumb:hover {
  filter: blur(3px);
}

.landing-card-author a {
  color: black;
  font-weight: 500;
}

.landing-card-author a:hover {
  color: #6759FF;
}

/* Blur on hover in single pages */
.research-text-thumb {
  transition: filter 0.25s ease;
}

.research-text-thumb:hover {
  filter: blur(4px);
}

/* default: show desktop version, hide mobile version */
.landing-recent-desktop {
  display: block;
}

.landing-recent-mobile {
  display: none;
}

/* mobile list grid */
.landing-mobile-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Equipa */

.wrap-two-third{
  width: 70%;
  margin-left: 30%;
}

/* Team blocks */

.equipa-conselhos {
  margin-top: 32px;
  margin-bottom: 32px;
}

/* Label style: CONSELHO EDITORIAL, CONSELHO CONSULTIVO */

.conselho-label,
.autores-label {
  margin: 16px 0 16px 0;
  font-family: "Philibert";
  font-size: 16px;
  text-transform: uppercase;
  color: #6759FF;
}

/* Editorial grid */

.equipa-nome {
  margin-left: 0px;
  font-family: "Philibert";
}

.equipa-grid-editorial {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.equipa-membro-editorial {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.equipa-membro-editorial .equipa-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.equipa-membro-editorial .equipa-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.equipa-membro-editorial .equipa-nome {
  margin: 8px 8px 4px 8px;
  font-family: "Philibert";
  font-size: 14px;
}

.equipa-membro-editorial .equipa-afiliacao {
  margin: 0 8px 8px 0px;
  font-size: 11px;
  text-transform: uppercase;
  color: black;
}

/* Consultivo list */

.equipa-list-consultivo {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Consultivo layout: anchor is the flex container */
.equipa-membro-consultivo .equipa-link {
  display: flex;
  gap: 16px;
  color: inherit;
}

.equipa-membro-consultivo .equipa-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Image block */
.equipa-membro-consultivo .equipa-foto {
  flex: 0 0 140px;
  overflow: hidden;
}

.equipa-membro-consultivo .equipa-foto img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text block */
.equipa-membro-consultivo .equipa-texto {
  flex: 1;
}

.equipa-membro-editorial .equipa-nome,
.equipa-membro-consultivo .equipa-afiliacao {
  margin-top: 8px;
  font-size: 12px;
  margin-bottom: 4px;
  margin-left: 0px;
  text-transform: uppercase;
}


.equipa-bio-curta {
  margin: 0;
  font-size: 14px;
  line-height: 130%;
  max-width: 500px;
}

.equipa-membro-consultivo:hover .equipa-nome,
.equipa-membro-consultivo:hover .equipa-afiliacao{
  color: #6759FF;
}

/* Autores publicados */

.autores-publicados {
  margin-bottom: 48px;
}

.autores-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.autor-item {
  font-family: "Philibert";
  font-size: 18px;
  padding-bottom: 12px;
}

.autor-item a {
  color: black;
}

.autor-item a:hover {
  color: #6759FF;
}

.equipa-membro-editorial:hover .equipa-nome {
  color: black;
}

.equipa-membro-editorial:hover .equipa-afiliacao {
  color: #6759FF;
}

/* Single Text */

.research_text .text-wrapper span {
  text-transform: initial;
  padding-bottom: 0px;
}

h1.wp-block-heading {
  font-size: 24px;
  padding-bottom: 32px;
  font-family: "Philibert";
}

h2.wp-block-heading {
  font-size: 20px;
}

.wrap-two-third.research_text {
  max-width: 1000px;
}

h3.wp-block-heading {
  font-size: 20px;
  padding-bottom: 16px;
  padding-top: 16px;
  color: black;
  font-family: "Philibert";
}

h4.wp-block-heading {
  font-size: 16px;
  padding-bottom: 16px;
  padding-top: 16px;
  color: black;
  font-family: "Philibert";
}

h5.wp-block-heading {
  font-size: 14px;
  font-family: "Philibert";
  padding-top: 8px;
  padding-bottom: 8px;
}

.wp-block-image :where(figcaption) {
  margin-bottom: 1em;
  margin-top: .5em;
}

.wp-block-image.alignnone {
  text-align: center;
}

h6.wp-block-heading {
  padding-top: 16px;
  padding-bottom: 16px;
  font-family: "Philibert";
  width: 100%;
  text-align: center;
  color: #6759FF;
}

/* FORCE VIMEO PLAYER TO FULL WIDTH */
#player,
#player * {
    width: 100% !important;
    max-width: 100% !important;
}

/* Reset absolute wrappers */
#player .vp-video-wrapper,
#player .vp-video,
#player .vp-preview,
#player .vp-video-wrapper video,
#player video {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
}

/* Remove forced height from Vimeo container */
#player .vp-content-area-background,
#player .vp-video-wrapper {
    height: auto !important;
}

/* Thumbnail background image should scale */
#player .vp-preview {
    background-size: cover !important;
    background-position: center !important;
}

/* Remove min-height constraints */
#player,
#player .vp-video-wrapper,
#player .vp-preview {
    min-height: 0 !important;
}

/* Make the Vimeo block span the full content width */
.wp-block-embed-vimeo,
.wp-block-embed-vimeo .wp-block-embed__wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Make the iframe fill that width and keep 16:9 ratio */
.wp-block-embed-vimeo iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Title on Single text */

.research-meta-box {
  display: flex;
  padding-bottom: 32px;
}

.research-meta-box .meta-left {
    width: 30%;
    font-size: 16px;
}

.research-meta-box .meta-right {
  width: 70%;
  font-size: 16px;
  display: flex;
  flex-direction: column;
}

.meta-type {
  font-family: "Philibert";
  padding-bottom: 16px;
}

.meta-date {
  font-size: 12px;
}

.meta-author {
  padding-bottom: 16px;
}

.meta-doi {
  padding-bottom: 16px;
}

.meta-keywords {
  padding-bottom: 16px;
}

.meta-author a {
  font-family: "Philibert";
}