/* Theme style */

@media (max-width: 670px) {
    :root {
        --wp--custom--header-height--top: 64px;
    }
}

/* ==========================================================================
Base styles
========================================================================== */

body {
    background-color: var(--wp--preset--color--neutral-3);
}

main {
    margin-top: var(--wp--custom--header-height--total);
}

/* Headings
========================================================================== */

.has-heading-display-font-family {
    line-height: 1.25;
    margin-bottom: 0.5em;
}
/* Paragraphs
========================================================================== */

.is-style-tag {
    background-color: var(--wp--preset--color--neutral-1);
    border-radius: 8px;
    max-width: fit-content;
    font-size: var(--wp--preset--font-size--xs);
    padding: var(--wp--preset--spacing--tiny) var(--wp--preset--spacing--s);
    margin-bottom: var(--wp--preset--spacing--m);
    color: var(--wp--preset--color--dark-green);
    font-weight: 500;
}

.is-style-tag a {
    text-decoration: none;
}

strong {
    font-weight: 700;
}

.is-style-eyebrow {
    font-size: var(--wp--preset--font-size--m);
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: var(--wp--preset--spacing--tiny);
    border-bottom: 1px solid var(--wp--preset--color--white);
    width: fit-content;
    margin: auto;
}

.is-style-eyebrow + .wp-block-heading {
    margin-top: var(--wp--preset--spacing--s);
}

/* Typography spacing
========================================================================== */

/* Links
========================================================================== */

:root :where(a:where(:not(.wp-element-button))) {
    text-decoration-color: var(--wp--preset--color--dark-green);
}

/* Lists
========================================================================== */

/* Buttons
========================================================================== */

.is-style-button-secondary .wp-block-button__link {
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--dark-green);
    color: var(--wp--preset--color--dark-green);
}

/* Inputs
========================================================================== */

/* Label */

/* Input fields */

/* Select */

/* Checkbox & radio button */

/* Focus and active statements */

/* Acceptance */

/* Submit */

/* Accordions
========================================================================== */

.qt-accordion .qt-section__inner {
	grid-gap: var(--wp--preset--spacing--s);
}

.accordion-item {
	border-radius: 8px;
    overflow: hidden;
	border: 1px solid var(--wp--preset--color--dark-green);
}

.qt-accordion button[data-accordion="accordion-trigger"] {
	color: var(--wp--preset--color--dark-green);
}

/* Contact form 7
========================================================================== */

/* Media
========================================================================== */

/* Images */

.wp-block-image .aligncenter,
.wp-block-image .alignleft,
.wp-block-image .alignright,
.wp-block-image.aligncenter,
.wp-block-image.alignleft,
.wp-block-image.alignright {
    display: block;
}

/* Video */

/* Iframe & embedded */

/* Files */

/* ==========================================================================
Layout
========================================================================== */

/* Paddings and margins
========================================================================== */

.qt-section__inner.has-background,
.qt-container.has-background {
    padding: var(--wp--preset--spacing--m);
    border-radius: 20px;
}

/* Max widths
========================================================================== */

/* Grids
========================================================================== */

.grid-col-1 {
    grid-gap: calc(3 * var(--wp--style--block-gap));
}

.grid-col-2:not(.has-background) {
    grid-gap: calc(2 * var(--wp--style--block-gap));
}

.qt-section__inner:has(.qt-container.is-horizontally-stretched) {
    row-gap: var(--wp--preset--spacing--l);
}

.qt-section__inner:has(.is-style-arrow-link) {
    grid-gap: var(--wp--preset--spacing--s);
}

@media (max-width: 768px) {
    .grid-col-1 {
        grid-gap: calc(2 * var(--wp--style--block-gap));
    }

    .grid-col-2 {
        grid-gap: var(--wp--style--block-gap);
    }
}

/* ==========================================================================
Announcement bar
========================================================================== */

/* ==========================================================================
Top bar
========================================================================== */

/* ==========================================================================
Header
========================================================================== */

.is-style-header-top {
    background-color: var(--wp--preset--color--dark-green);
    border-bottom: 0;
}

.is-style-header-top .grid {
    gap: var(--wp--preset--spacing--m);
}

header .menu {
    grid-gap: var(--wp--preset--spacing--xxs);
}

header .menu .menu-item a,
header .menu .menu-item span {
    font-weight: 500;
    font-size: var(--wp--preset--font-size--s);
    padding: 5px 15px;
    color: var(--wp--preset--color--white);
}

.chevron {
    filter: brightness(0) invert(1);
}

header
    .is-style-header-top
    .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
    justify-content: flex-end;
}

header .menu > .menu-item.menu-item-has-children > :is(a, span) {
    padding: 5px 5px 5px 15px;
}

header .menu > .menu-item > a:hover,
header .menu > .menu-item > span:hover,
header .menu > .menu-item.is-open > :is(a, span) {
    color: var(--wp--preset--color--peach);
    opacity: 1;
}

header .qt-container:has(.mega-menu-mobile) {
    display: flex;
    justify-content: flex-end;
}

.mega-menu-mobile .mega-menu-header-m,
.mega-menu-mobile .mega-menu-back {
    border-bottom: 0.5px solid var(--wp--preset--color--white);
}

.mega-menu-header-m span {
    display: none;
}

.mega-menu-mobile,
.mega-menu-mobile .mega-menu-item .sub-menu {
    background-color: var(--wp--preset--color--dark-green);
}

.mega-menu-mobile .mega-menu-header-m img:not(.custom-logo),
.mega-menu-mobile .mega-menu-back button img {
    filter: brightness(0) invert(1);
}

.mega-menu-mobile .mega-menu-header-m img {
    max-width: 160px;
}

@media (min-width: 1201px) {
    header .menu .menu-item > :is(a, span) + .sub-menu {
        top: 100%;
        box-shadow: none;
    }

    header .menu > .menu-item > :is(a, span) {
        display: inline-block;
        height: auto;
    }

    header .menu > .menu-item > :is(a, span) img {
        vertical-align: middle;
    }

    .mega-menu .mega-menu-item-parent .chevron {
        margin-left: var(--wp--preset--spacing--xxs);
    }

    header .sub-menu .menu-item a,
    header .sub-menu .menu-item span {
        color: var(--wp--preset--color--dark-green);
        transition: all 0s ease;
    }
}

@media (max-width: 670px) {
    .is-style-header-top .grid {
        grid-template-columns: auto auto;
    }

    header .wp-block-site-logo img {
        max-width: 220px;
    }
}

/* Desktop menu
========================================================================== */

@media (min-width: 1101px) {
    header .menu .menu-item:not(.mega-menu-item) > :is(a, span) + .sub-menu {
        margin: 0 -0.75rem;
    }

    .sub-menu .menu-item a:hover {
        text-decoration-color: var(--wp--preset--color--peach);
        opacity: 1;
    }
}

/* Site logo */

/* Header button */

/* Language switcher */

header .wpml-language-switcher-block {
    margin-left: auto;
}

header .wpml-language-switcher-block::before {
    filter: brightness(0) saturate(100%) invert(13%) sepia(62%) saturate(514%)
        hue-rotate(141deg) brightness(90%) contrast(103%);
}

/* Hamburger icon
========================================================================== */

.hamburger button {
    filter: brightness(0) invert(1);
}

#toggle-hamburger {
    height: 32px;
    width: 32px;
}

.hamburger-icon::before,
.hamburger-icon::after,
.hamburger-icon {
    height: 1px;
}

.hamburger-icon::before {
    top: 8px;
}

.hamburger-icon::after {
    bottom: 8px;
}

/* User toolbar
========================================================================== */

@media (max-width: 1200px) {
    .qt-container:has(.hamburger) .wp-block-buttons {
        margin-right: var(--wp--preset--spacing--s);
    }
}

/* Search bar
========================================================================== */

/* ==========================================================================
Footer
========================================================================== */

footer > * {
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--s);
}

/* Footer top */

.is-style-footer-top .grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.is-style-footer-top .wp-block-image {
    max-width: 320px;
    margin-bottom: var(--wp--preset--spacing--l);
}

/* Footer bottom */

.qt-section.is-style-footer-bottom {
    padding-top: 0;
    padding-bottom: var(--wp--preset--spacing--l);
}

.qt-section.is-style-footer-bottom .qt-section__inner {
    padding-top: var(--wp--preset--spacing--l);
    border-top: var(--wp--preset--color--light-green) solid 1px;
}

@media screen and (max-width: 670px) {
    .is-style-footer-top .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-gap: calc(2 * var(--wp--style--block-gap));
    }

    .is-style-footer-top .qt-container:has(.wp-block-site-logo) {
        grid-column: 1/-1;
    }

    .is-style-footer-bottom .wp-block-list {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 510px) {
    .is-style-footer-top .grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Navigation
========================================================================== */

.footer-heading,
.is-style-footer-heading {
    font-size: var(--wp--preset--font-size--s);
    font-weight: 500;
    color: var(--wp--preset--color--light-green);
    margin-bottom: 1.5em;
}

.footer-menu .menu {
    display: block;
    line-height: 1.5;
    margin-top: 1em;
}

.footer-menu .menu-item a {
    font-size: var(--wp--preset--font-size--s);
    text-decoration: none;
}

/* ==========================================================================
Utility classes
========================================================================== */

/* ==========================================================================
Components and modules
========================================================================== */

/* Breadcrumbs
========================================================================== */

.rank-math-breadcrumb {
    color: var(--wp--preset--color--dark-green);
}

.rank-math-breadcrumb a{
    color: var(--wp--preset--color--dark-green);
}

.rank-math-breadcrumb .last {
	opacity: 0.6;
}

.page .rank-math-breadcrumb {
    width: fit-content;
    background-color: var(--wp--preset--color--neutral-1);
    padding: var(--wp--preset--spacing--tiny) var(--wp--preset--spacing--s);
    border-radius: 8px;
}

/* Pagination
========================================================================== */

/* Current, hover */
:is(.wp-block-query-pagination, .pagination) .page-numbers.current,
:is(.wp-block-query-pagination, .pagination) .page-numbers:hover {
    background-color: var(--wp--preset--color--beige);
    color: var(--wp--preset--color--dark-green);
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    background-color: var(--wp--preset--color--dark-teal);
    color: var(--wp--preset--color--teal);
}

/* Prev, next */
.pagination .page-numbers,
.wp-block-query-pagination .page-numbers {
    background-color: var(--wp--preset--color--neutral-3);
    border: 1px solid transparent;
    border-radius: 15px;
}

.pagination .page-numbers path {
    fill: var(--wp--preset--color--dark-teal);
}

.pagination .page-numbers:hover path {
    fill: var(--wp--preset--color--teal);
}

.pagination .page-numbers:is(.prev, .next):hover {
    background-color: var(--wp--preset--color--dark-teal);
    color: var(--wp--preset--color--teal);
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next,
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    background-color: var(--wp--preset--color--neutral-3);
    color: var(--wp--preset--color--black);
    border-radius: 15px;
}

/* Accordion
========================================================================== */

/* Accordion heading */

/* Accordion content */

/* Accordion icon */

/* Tabs
========================================================================== */

/* Splide slider
========================================================================== */

/* Slider header */

/* ==========================================================================
Styles for pages, sections, blocks and others.
========================================================================== */

/* Page: Search results 
========================================================================== */

/* Section: Hero
========================================================================== */

.is-style-hero .wp-block-cover {
    padding: var(--wp--preset--spacing--xxl) var(--wp--preset--spacing--m);
    height: 60vh;
    align-items: center;
}

.is-style-hero .wp-block-cover .qt-container {
    background-color: rgba(0, 0, 0, 0.3);
    padding: var(--wp--preset--spacing--m) var(--wp--preset--spacing--m)
        var(--wp--preset--spacing--s);
    border-radius: 8px;
}

/* Section: Subhero
========================================================================== */

.entry-content:has(.is-style-has-navigation-links) .is-style-subhero {
    margin-bottom: var(--wp--preset--spacing--m);
}

.is-style-subhero .wp-block-cover {
    height: 40vh;
    align-items: center;
    min-height: 280px;
}

.is-style-subhero .wp-block-cover__inner-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.is-style-subhero .rank-math-breadcrumb {
    width: fit-content;
    background-color: var(--wp--preset--color--neutral-1);
    padding: var(--wp--preset--spacing--tiny) var(--wp--preset--spacing--s);
    border-radius: 8px;
}

.is-style-subhero .is-style-breadcrumbs {
    position: absolute;
    top: var(--wp--preset--spacing--xs);
}

@media screen and (max-width: 670px) {
    .is-style-hero .wp-block-cover {
        min-height: 240px;
    }
}

/* Section: Text and Image columns
========================================================================== */

.is-style-text-column {
	align-self: center;
}

.is-style-text-column:first-child {
    padding-left: 0;
}

.is-style-image-column img,
.is-style-image-column figure {
    height: 100%;
}

/* Navigation links
========================================================================== */

.qt-section.is-style-has-navigation-links {
    padding-top: var(--wp--preset--spacing--l);
}

.qt-section__inner:has(.is-style-navigation-link) {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--s);
    justify-content: center;
}

.qt-container.is-style-navigation-link {
    flex-grow: 1;
    background-color: var(--wp--preset--color--light-green);
    border-radius: 8px;
}

.is-style-arrow-link a {
    background-color: var(--wp--preset--color--light-green);
    border-radius: 8px;
    text-wrap: nowrap;
    flex-grow: 1;
}

.is-style-download-link a {
    border: 1px solid var(--wp--preset--color--light-green);
    border-radius: 8px;
    text-wrap: nowrap;
    flex-grow: 1;
    margin-top: var(--wp--preset--spacing--l);
}

.is-style-download-link + .is-style-download-link a {
    margin-top: 0;
}

.is-style-arrow-link a:hover::after,
.is-style-arrow-link a:focus::after {
    transform: translateX(0);
    transform: rotate(270deg);
}

.is-style-navigation-link a,
.is-style-arrow-link a,
.is-style-download-link a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
    font-weight: 500;
}

.is-style-download-link a:after,
.is-style-arrow-link a:after,
.is-style-navigation-link a:after {
    content: "";
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='white'/%3E%3Cmask id='mask0_30935_5776' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='4' width='32' height='32'%3E%3Crect x='4' y='4' width='32' height='32' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_30935_5776)'%3E%3Cpath d='M18.6667 9.33337V25.5667L11.2 18.1L9.33333 20L20 30.6667L30.6667 20L28.8 18.1L21.3333 25.5667V9.33337H18.6667Z' fill='%23073B3A'/%3E%3C/g%3E%3C/svg%3E%0A");
    background-size: contain;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
}

.is-style-download-link a:after {
    transform: rotate(225deg);
}

.is-style-arrow-link a:after {
    transform: rotate(270deg);
}

/* Media and text
========================================================================== */

.wp-block-image img,
.wp-block-post-featured-image img {
    width: 100%;
    height: auto;
}

/* Section - Intro with button
========================================================================== */

/* Section - Boxes with aspect ratio
========================================================================== */

/* Board Member Cards
========================================================================== */

.board-members {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--m);
}

.card--member {
    display: flex;
    flex-grow: 1;
    width: 348px;
    flex-direction: row;
    gap: var(--wp--preset--spacing--m);
    background-color: var(--wp--preset--color--light-green);
    border-radius: 8px;
    padding: var(--wp--preset--spacing--m);
}

.card--member .card__media {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    overflow: hidden;
}

.card--member .card__name {
    font-weight: 700;
    margin-bottom: 4px;
}

.card--member .card__responsability {
    margin-bottom: 4px;
    font-size: var(--wp--preset--font-size--xs);
}

.card--member .card__email {
    font-size: var(--wp--preset--font-size--xs);
}

/* Slider - Logos
========================================================================== */

/* Archive: Category
========================================================================== */

/* Page: Articles
========================================================================== */

.articles.grid,
.latest-articles.grid {
    grid-gap: var(--wp--preset--spacing--l);
}

/* Filter buttons */
.articles__filter-buttons {
    margin-bottom: calc(2 * var(--wp--style--block-gap));
    margin-top: 0;
    align-items: center;
}

.articles__filter-buttons::before {
    content: "Filtrera:";
    font-weight: 500;
    font-size: var(--wp--preset--font-size--m);
}

.articles__filter-buttons .wp-block-button__link:is(.active, :hover) {
    background-color: var(--wp--preset--color--dark-teal);
    color: var(--wp--preset--color--teal);
}

/* Card */
.card--article {
    background-color: var(--wp--preset--color--teal);
    border-radius: 8px;
}

.card--article .card__image {
    aspect-ratio: 4/3;
    border-radius: 8px;
    position: relative;
}

.card--article .card__content {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--s);
}

.card--article .card__image-img {
    height: 100%;
}

.card--article .card__title {
    margin-bottom: 0;
    line-height: 1.15;
    font-weight: 500;
}

/* Single: Article
========================================================================== */

.single .wp-block-post-title {
    margin-bottom: 0;
}

.single .wp-block-cover {
    position: relative;
    border-radius: 8px;
}

.single .wp-block-cover__inner-container {
    width: 100%;
    height: 100%;
}

.single .wp-block-cover .is-style-tag {
    position: absolute;
    top: var(--wp--preset--spacing--tiny);
    left: var(--wp--preset--spacing--tiny);
}

.single .qt-container:has(.wp-block-post-title) {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--m);
}

/* Post meta */
.single .post-meta:has(.post-meta__categories) {
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--l);
    display: flex;
    gap: var(--wp--preset--spacing--tiny);
    align-items: center;
}

.single .post-meta:has(.post-meta__date) {
    margin-top: 0;
}

.single .post-meta__categories {
    display: flex;
    gap: var(--wp--style--block-gap);
    margin: 0;
}

.single .post-meta__categories::before {
    display: none;
}

.single .post-meta__date {
    font-size: var(--wp--preset--font-size--xs);
    color: initial;
}

/* Featured image */
.single .wp-block-post-featured-image img {
    aspect-ratio: var(--wp--custom--aspect-ratio--landscape-wide);
    border-radius: 8px;
}

/* Page: Publications
========================================================================== */

/* Single: Publication
========================================================================== */

/* Section: Employees
========================================================================== */

/* Section: Testimonial slider
========================================================================== */

/* Section: Feature slider
========================================================================== */

/* Section: Image gallery with lightbox
========================================================================== */

/* Section: FAQ
========================================================================== */
