* {
  font-family: "Work Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Work Sans", sans-serif;
}

/* Navbar header styles */

.navigation-header li::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: black;
  left: 0;
  bottom: 4px;
  transition: 0.3s;
}

@media screen and (min-width: 768px) {
  ul.menu-main__submenu {
    display: none;
  }
  /* #main {
    padding-inline: 48px;
  } */
}

@media (min-width: 1536px) {
  .container {
    max-width: 1366px !important;
  }
}

.navigation-header .menu-main__item--expanded:hover::after {
  width: 0;
}

.navigation-header .menu-main__item--active-trail::after {
  width: 100%;
}

.navigation-header li:hover::after {
  width: 100%;
}

/* New ccs clases for cenie by darwin */

@media screen and (min-width: 768px) {
  .menu-main__item:hover > ul {
    display: flex;
  }

  .menu-main__item:nth-child(4) {
    font-weight: 400;
  }

  .menu-main__submenu a:hover {
    font-weight: 400;
  }
  .menu-main__item:last-child {
    font-weight: normal;
  }

  .action-button:nth-child(1) .dynamic-colored-bar {
    background-color: #5ec7d1;
  }
  .action-button:nth-child(2) .dynamic-colored-bar {
    background-color: #cdde00;
  }
  .action-button:nth-child(3) .dynamic-colored-bar {
    background-color: #a38ddd;
  }
  .action-button:nth-child(4) .dynamic-colored-bar {
    background-color: transparent;
  }
}

.cabecera-image > div {
  height: 100%;
  width: 100%;
}
.noticias-image img,
.image-container img,
.cabecera-image img,
.view-concursos .imagen img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.navbar-container nav {
  height: 100%;
}

.article-body p {
  margin-bottom: 1rem;
}

.grid-noticias,
.grid-invstigaciones,
.view-taxonomy-form,
.grid-content-4 {
  display: flex;
  flex-direction: column;
}

.view-concursos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.view-concursos .views-row {
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
}
.view-concursos .views-row .item-categoria h2 a {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: none;
  opacity: 0;
}
.view-concursos .views-row .item-categoria:hover h2 a {
  display: flex;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 100;
  z-index: 10;
  transition: all 0.15s ease;
  background-color: rgba(0, 0, 0, 0.4);
}

.view-taxonomy-form header {
  margin-bottom: 2rem;
  padding: 2.5rem;
  padding-top: 0;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 300;
}

.view-taxonomy-form header div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1rem;
}

.view-taxonomy-form header h1 {
  font-size: 1.875rem;
  line-height: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.view-taxonomy-form header h1::after {
  content: "";
  width: 70%;
  height: 0.5rem;
  background-color: black;
}

.view-taxonomy-form form {
  display: flex;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  flex-wrap: wrap;
  padding: 2.5rem;
  font-size: 0.75rem /* 12px */;
  line-height: 1rem /* 16px */;
}

.view-taxonomy-form form select {
  outline: none;
  padding: 0.25rem 0.5rem;
  padding-left: 0px;
  border: 1 solid rgb(182, 182, 182);
  text-transform: uppercase;
  background-color: transparent;
}

.view-taxonomy-form form > div input[type="text"] {
  border: 1px solid var(--color-brown);
  outline: none;
  padding: 0.5rem 1rem;
}

.view-taxonomy-form form input[type="submit"] {
  border: 1px solid var(--color-brown);
  outline: none;
  padding: 0.5rem 1rem;
  background-color: var(--color-brown);
  color: white;
}

.view-taxonomy-form form > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-bottom: 1rem;
  gap: 0.25rem;
}
.view-taxonomy-form form > div:nth-child(2) {
  width: 50%;
}
.view-taxonomy-form form > div:nth-child(3) {
  width: 50%;
}

.view-taxonomy-form form > div:nth-child(4) {
  align-items: center;
  justify-content: end;
  order: 3;
}
.view-taxonomy-form form > div:nth-child(1) {
  order: 2;
  gap: 0.5rem;
  grid-column: span 8;
}

.view-taxonomy-form nav,
.grid-content-4 nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.view-taxonomy-form nav ul,
.grid-content-4 nav ul {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.grid-content-4 header {
  grid-column: span 4;
}

@media screen and (min-width: 768px) {
  .grid-noticias,
  .view-taxonomy-form,
  .grid-content-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid-invstigaciones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-noticias.block-noticias-2 > .views-row:nth-child(3) {
    grid-column: 3 / span 4;
    grid-row: 1 / span 2;
  }

  .grid-noticias.block-noticias-2 > .views-row:nth-child(3) .noticias-image {
    aspect-ratio: none;
    flex-grow: 1;
  }
  .view-concursos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0;
  }

  .view-taxonomy-form form,
  .view-taxonomy-form header,
  .view-taxonomy-form nav,
  .grid-content-4 nav {
    grid-column: span 4;
  }

  .view-taxonomy-form header {
    max-width: 65%;
    padding: 0;
  }

  .view-taxonomy-form form {
    max-width: 40%;
    padding: 0;
    font-size: 0.875rem /* 14px */;
    line-height: 1.25rem /* 20px */;
  }

  .view-taxonomy-form nav {
    justify-content: start;
    align-items: start;
  }
}
.details-fotografia > div {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.details-fotografia > div div:nth-child(1)::after {
  content: ":";
}
.body-noticia .body p {
  margin-bottom: 1.5rem;
}

.body-noticia .body p img,
.body-dialogo img {
  margin: 4rem 0 4rem 0;
}
.body-noticia .body p strong,
.body-dialogo strong {
  margin-bottom: 1rem;
  font-weight: 700;
}
.body-dialogo p {
  margin-bottom: 1rem;
}

.body-dialogo p a {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.body-dialogo .abstracto p {
  margin-bottom: 0;
}
.pregunta-body div > div:nth-child(1) {
  font-weight: 300;
  font-size: 1.25rem /* 20px */;
  line-height: 1.75rem /* 28px */;
  margin-bottom: 1rem;
}

/* Slider */
.carrusel-home button {
  position: absolute;
  opacity: 0;
}

/* Home slider button */

/* Only works on screen with 768px and better of width */
@media screen and (min-width: 768px) {
  .carrusel-home {
    display: flex;
    align-items: center;
    position: relative;

    & button {
      bottom: -50px;
      display: block;
      font-size: 0px;
      height: 40px;
      left: 50%;
      margin-left: -45px;
      opacity: 100%;
      position: absolute;
      transition: all 0.3s ease-in;
      width: 40px;
      z-index: 10;
    }

    & button:hover {
      opacity: 100%;
    }

    & button.slick-next {
      left: inherit;
      margin-right: -45px;
      right: 50%;
    }

    & button.slick-next::after {
      content: url("/themes/cenie_tailwindcss/images/arrow-right.svg");
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    & button.slick-prev::after {
      content: url("/themes/cenie_tailwindcss/images/arrow-left.svg");
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}

.social-media-container ul {
  display: flex;
  position: static;
  padding: 0;
  font-weight: 600;
  gap: 0px;
  text-transform: uppercase;
}

#block-cenie-tailwindcss-nextpreviouslink {
  & a {
    position: absolute;
    opacity: 0;
  }
}

/* Next and Previus button for Concurso fotografico page and social links customization*/
@media screen and (min-width: 768px) {
  .social-media-container ul {
    font-weight: normal;
  }

  #block-cenie-tailwindcss-nextpreviouslink {
    z-index: 100;
    display: flex;
    align-items: center;
    width: 100%;
    position: absolute;
    height: 500px;
    justify-content: space-between;
    justify-items: end;
    margin-top: 100px;
    & a {
      display: block;
      width: 200px;
      height: 100%;
      font-size: 0px;
      opacity: 0;
      transition: all 0.3s ease-in;
      z-index: 100;
    }
    & a:last-child {
      order: 1;
    }
    & a::after {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    & > a::after {
      content: url("/themes/cenie_tailwindcss/images/arrow-left.svg");
    }
    & > a:last-child::after {
      content: url("/themes/cenie_tailwindcss/images/arrow-right.svg");
    }
    & a:hover {
      opacity: 100%;
    }
  }
}

/* Css handler for pagewith tables */

.sub-header-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.container-table {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: start;
}

.article-table {
  letter-spacing: 0em;
  flex: 1;
  & th,
  & td {
    border-bottom: 1px solid rgb(156, 163, 175);
    padding: 0.35rem;
  }

  & th {
    font-size: 0.85rem;
    line-height: 1.25rem;
    text-align: start;
  }
  & td {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

@media screen and (min-width: 768px) {
  .article-table {
    & th {
      font-size: 1rem;
      line-height: 1.5rem;
    }
    & td {
      font-size: 1.25rem;
      line-height: 1.75rem;
    }
  }
}

/* Participar form */

#block-cenie-tailwindcss-webform form,
.page-node-type-webform form,
.path-diccionario form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;

  & #edit-subtitulo {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 300;
  }

  & #edit-titulo {
    font-weight: 300;
    font-size: 1.25rem /* 20px */;
    line-height: 1.75rem /* 28px */;
    max-width: 335px;
  }

  & > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  & .webform-flexbox {
    flex-direction: column-reverse;
  }
  & .js-form-type-checkbox {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 300;
    position: relative;

    & .description {
      margin-top: 0.5rem;
    }
  }

  & input[type="text"],
  & input[type="email"],
  & input[type="textarea"],
  & textarea {
    width: 100%;
    border: 1px solid var(--color-brown);
    padding: 0.5rem 0.75rem;
    outline: none;
  }
  & input[type="submit"] {
    border: 1px solid var(--color-brown);
    background-color: var(--color-brown);
    color: white;
    padding: 0.5rem 2rem;
    width: fit-content;
    margin-inline: auto;
  }

  & input[type="checkbox"] {
    height: 14px;
    width: 14px;
    border-radius: 0px;
    border: 1px solid var(--color-brown);
  }
  select#edit-motivo2 {
    background: transparent;
    width: 100%;
    border: 1px solid var(--color-brown);
    padding: 0.5rem 0.75rem;
    outline: none;
  }
}
.path-diccionario form {
  padding-left: 0;
  & input[type="submit"] {
    margin-inline: inherit !important;
  }
}
@media screen and (min-width: 768px) {
  #block-cenie-tailwindcss-webform {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    & form {
      grid-column: 3 / span 3;
      padding: 2rem 0px;

      & .webform-flexbox {
        flex-direction: row;
      }

      & input[type="checkbox"] {
        position: absolute;
        height: 20px;
        width: 20px;
        left: -30px;
        border-radius: 0px;
        border: 1px solid var(--color-brown);
      }
    }
  }
}
@media (max-width: 768px) {
  .video-act.video-act2 .playbutton {
    background-size: 90% !important;
  }
}

.video-act {
  position: relative;
}

.video-act .playbutton {
  position: absolute;
  z-index: 2;
  top: 36%;
  left: 43%;
  width: 12%;
  height: 30%;
  overflow: hidden;
  background: transparent url(../images/playbutton.png);
  background-repeat: no-repeat;
  background-position: left top;
  cursor: pointer;
}
.video-act button#play_button:hover {
  opacity: 0.6;
}
.video-act.video-act2 .playbutton {
  position: absolute;
  z-index: 2;
  top: 44%;
  left: 48%;
  width: 12%;
  height: 30%;
  overflow: hidden;
  background: transparent url(../images/playbutton.png);
  background-repeat: no-repeat;
  background-position: left top;
  cursor: pointer;
}

#lienzo {
  height: 380px;
  margin-top: 1.5em;
  overflow: hidden;
}
#block-cenie-tailwindcss-bloquecustomdeobservatorio {
  max-width: 930px;
  width: 100%;
}

/*Diccionario*/
#views-exposed-form-diccionario-diccionariopage li a {
  background: #d0dc2f;
  background-repeat: repeat;
  color: black;
  text-transform: uppercase;
  background-repeat: no-repeat;
  width: 60px;
  height: 60px;
  align-items: center;
  text-align: center;
  display: table-cell;
  position: relative;
  vertical-align: middle;
  font-size: 21px;
  border-radius: 7px;
}
#views-exposed-form-diccionario-diccionariopage li {
  display: inline-block;
  margin-right: 15px;
}
#views-exposed-form-diccionario-diccionariopage #edit-field-letra-value-all a {
  display: none;
}
#views-exposed-form-diccionario-diccionariopage li:first-child {
  display: none;
}
#views-exposed-form-diccionario-diccionariopage li a:hover,
#views-exposed-form-diccionario-diccionariopage li a.bef-link--selected {
  color: white;
  background: #b7b6a5;
}
.views-row .diccionario h2:hover {
  font-weight: 700;
}

/*Prev Next nodo diccionario*/
div#prevnext-previous {
  text-indent: -9999px;
  background: transparent url(../images/prev.png) no-repeat;
  display: inline-block;
  height: 40px;
  width: 40px;
}
div#prevnext-next {
  text-indent: -9999px;
  background: transparent url(../images/next.png) no-repeat;
  display: inline-block;
  height: 40px;
  width: 40px;
}
div#prevnext-next a,
div#prevnext-previous a {
  display: block;
}

/* Anchors con estilo flecha */

.bodybutton {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}
.bodybutton::before {
  content: " ";
  background-image: url(../images/legacy-arrow-right.svg);
  background-repeat: no-repeat;
  background-color: var(--color-brown);
  background-position: center;
  background-size: 70%;
  display: flex;
  margin-right: 0.5rem;
  height: 30px;
  width: 30px;
}

@media screen and (min-width: 768px) {
  .bodybutton {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  .bodybutton::before {
    height: 35px;
    width: 35px;
  }
}
.elipse {
  clip-path: ellipse(45% 50% at 50% 50%);
}

.views-field.views-field-ganador{
  background: #5ec7d1;
    text-align: center;
    color: whitesmoke;
    text-transform: uppercase;
}
.grid-content-5 {
  display: flex;
  flex-direction: column;
}
.grid-content-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-content-5 nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.grid-content-5 nav ul {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}



@media screen and (max-width: 768px) {

  .grid-content-5 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

 
  .grid-content-5 nav {
    grid-column: span 5;
  }


}