/**
Theme Name:   basqueandbeyond
Template:     astra
Author:       neartek
Description:  Tema hijo para personalizar el tema Astra.
Version:      1.0.0
*/


.researcher_publications p, .researcher_info p {
    margin-top: 0px !important; 
    margin-bottom: 0px !important; 
}

.researcher_publications  h2, .researcher_info h2 {
    margin-top: 1.5em; 
}

.researcher_publications li {
    padding-top: 10px; 
    padding-bottom: 10px;
    margin-left: 0px;
    padding-left: 0px;
    border-bottom: 1px;
    border-style: solid;
    border-color: rgb(205, 206, 208);
    list-style-type: none;
}


.recommended_links li {
    padding-top: 10px; 
    padding-bottom: 10px;
    margin-left: 0px;
    padding-left: 0px;
    border-bottom: 1px;
    border-style: solid;
    border-color: rgb(240, 240, 240);
    list-style-type: none;
}

.recommended_links h3 {
    margin-top:40px !important;
}

.researcher_publications ul {
    margin-left: 0px !important;
    padding-left: 0px;
}

#researchers_posts_grid img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.post-template-default nav.post-navigation { display:none; }

.researchers_cards img {
    object-fit:cover;
}


/* Estilos para logo cambiante en cabecera */

body.home .ast-site-identity {
    /*display: none;*/
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.home .ast-header-sticked .ast-site-identity {
    /*display: inline-block;*/
    opacity: 1;
}

.ast-logo-big {
    display: block; /* Como bloque para centrarlo */
    margin: 0 auto; /* Centra horizontalmente */
    max-width: 740px; /* Ajusta el tamaño máximo */
}

body.home .ast-main-header-wrap {
    border-top: 1px solid #EAEAEA; /* Ajusta el grosor y color del borde */
}


@media (max-width: 1200px) {
    /* Ocultar el logo grande en dispositivos pequeños */
    .ast-logo-big {
        display: none;
    }

    /* Mostrar el logo pequeño en dispositivos pequeños */
    .ast-site-identity {
        opacity: 1 !important;
    }
}

/* Fin estilos para logo cambiante en cabecera */


.ast-title-bar-wrap { background-position: 0% 0%; }

.book_info > div { 
    /*height:100%;*/
    row-gap: 0px !important; 
}
.book_info p {
    margin-top:0px;
    margin-bottom:10px;
    padding-top:0px;
    padding-bottom:0px;
}

.contact_address p {
    margin-top:0px;
    margin-bottom:10px;
    padding-top:0px;
    padding-bottom:0px;
}



/* Inner menu */


.inner_menu ul li {
    flex-basis: unset;
    padding-left: 30px !important;
    padding-right: 30px !important;
    font-size: 22px;
    color: #4c4b4b;
    border-right: dashed 1px;
}

.inner_menu ul li:last-child {
    border-right: 0px;
}


.inner_menu li:hover::after {
    content: ""; /* Genera el pseudo-elemento */
    position: absolute; /* Posición absoluta respecto al li */
    bottom: 0; /* Aparece en la parte inferior */
    left: 5%; /* Espaciado desde la izquierda */
    right: 5%; /* Espaciado desde la derecha */
    height: 1px; /* Grosor del borde inferior */
    background-color: #68D0EC; /* Color del borde inferior */
}

.inner_menu_el li:hover::after {
    bottom: unset; /* Aparece en la parte inferior */
    top: 0;
    height: 3px; /* Grosor del borde inferior */
    background-color: #ab1c8f; /* Color del borde inferior */
}

.inner_menu_publications li:hover::after {
    bottom: unset; /* Aparece en la parte inferior */
    top: 0;
    height: 3px; /* Grosor del borde inferior */
    background-color: #FFAB4B; /* Color del borde inferior */
}

.inner_menu_projects li:hover::after {
    bottom: unset; /* Aparece en la parte inferior */
    top: 0;
    height: 3px; /* Grosor del borde inferior */
    background-color: #06C29FC4; /* Color del borde inferior */
}

.inner_menu ul li a {
    text-decoration: none !important;
}

.inner_menu ul {
    justify-content: center;
    column-gap: 0px;
}



p { margin:0;}

.bb_txtsmall{ font-size:small; }
.bb_bold{ font-weight:700; }

.bb_background_gray { 
    background-color: #f4f4f5;
}

.bb_background_beige { 
    background-color: #f2f0e9;
}

.bb_p_container p {
    margin-bottom:20px;
}

.bb_talks_table td:nth-child(1) {
    width: 80px;
}

/* Botón principal del selector de idioma */
.main-header-menu .pll-parent-menu-item > a,
.main-header-menu .pll-parent-menu-item > a:hover,
.main-header-menu .pll-parent-menu-item > a:focus {
    color: blue !important;       /* Color azul */
    font-weight: normal !important;  /* Quita la negrita */
}

/* Flecha del desplegable */
.main-header-menu .pll-parent-menu-item > a .ast-header-navigation-arrow svg {
    fill: blue !important;        /* Flecha azul */
}

/* Forzar autoría de imagen slider a la esquina inferior derecha */
.author_credit {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    background-color: rgba(0, 0, 0, 0.4); /* Fondo oscurito para que se lea */
    color: #ffffff !important;
    font-size: 11px !important;
    border-radius: 3px;
    z-index: 10;
    line-height: 1;
}

/* Asegurar que el Slider Child sea el punto de referencia, para la clase .credito-autor */
.wp-block-uagb-slider-child {
    position: relative !important;
}



.ast-advanced-headers-layout-2
 {
    text-align: left; 
}



.page-id-1692 .ast-title-bar-wrap::after { background-color: #68D0EC; } /* Zabalkundea */
.page-id-1698 .ast-title-bar-wrap::after { background-color: #06C29F; } /* Proiektuak */
.page-id-1694 .ast-title-bar-wrap::after { background-color: #0839A3; } /* Babesleak */
.page-id-1686 .ast-title-bar-wrap::after { background-color: #AB1C8F; } /* Kanpoko estekak */
.page-id-1689 .ast-title-bar-wrap::after { background-color: #109FD2; } /* Harremanetarako */

.post-type-archive-researcher .ast-title-bar-wrap::after { background-color: #FC5203; } /* Researchers, Ikertzaileak */
.post-type-archive-publication .ast-title-bar-wrap::after { background-color: #F07C27; } /* Publications, Argitalpenak */
.post-type-archive-activity .ast-title-bar-wrap::after { background-color: #68D0EC; } /* Activities, Jarduerak */
.page-id-1554 .ast-title-bar-wrap::after { background-color: #68D0EC; } /* Outreach */
.page-id-32 .ast-title-bar-wrap::after { background-color: #06C29F; } /* Projects */
.page-id-33 .ast-title-bar-wrap::after { background-color: #0839A3; } /* Funding */
.page-id-35 .ast-title-bar-wrap::after { background-color: #AB1C8F; } /* External Links */
.page-id-34 .ast-title-bar-wrap::after { background-color: #109FD2; } /* Contact */

/* Global overlay transparency for page headers */
.ast-title-bar-wrap::after {
    opacity: 0.7;
}

/* Ajusta el tamaño de los encabezados h1 a un poco más grande */
h1, .entry-content h1 {
    font-size: 5em;
}




/*CONFIGURACIÓN DE MENÚ HAMBURGUESA Y LOGO*/

/* Forzar el menú hamburguesa a partir de 1200px */
@media (max-width: 1200px) {
    /* Esconder cabecera de escritorio */
    .ast-theme-transparent-header #ast-desktop-header,
    #ast-desktop-header {
        display: none !important;
    }
    
    /* Mostrar cabecera móvil */
    .ast-theme-transparent-header #ast-mobile-header,
    #ast-mobile-header {
        display: block !important;
    }
}

/* Aplicar los paddings nativos de Astra entre 921px y 1200px */
@media (min-width: 921px) and (max-width: 1200px) {
    #masthead .ast-mobile-header-wrap .ast-primary-header-bar, 
    #masthead .ast-mobile-header-wrap .ast-below-header-bar, 
    #masthead .ast-mobile-header-wrap .ast-above-header-bar {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Ocultar el logo SOLO en el tramo donde el menú necesita su espacio */
@media (min-width: 1201px) and (max-width: 1446px) {
    .site-branding, 
    .ast-header-site-branding {
        display: none !important;
    }
}

/* Asegurar el centrado perfecto del menú cuando no está el logo */
@media (min-width: 1201px) {
    .site-header-section.ast-flex.main-header-section {
        justify-content: center !important;
    }
}

/* Ajuste fluido del menú en euskera para evitar saltos de línea */
@media (min-width: 1201px) and (max-width: 1650px) {
    html[lang="eu"] #ast-desktop-header .main-header-menu {
        flex-wrap: nowrap !important;
    }

    html[lang="eu"] #ast-desktop-header .main-header-menu > li > a {
        font-size: clamp(15px, calc(0.41vw + 10px), 16px) !important;
        padding-left: clamp(7px, calc(1.225vw - 7.7px), 10px) !important;
        padding-right: clamp(7px, calc(1.225vw - 7.7px), 10px) !important;
        letter-spacing: -0.01em;
    }

    html[lang="eu"] #ast-desktop-header .main-header-menu > li.menu-item {
        margin: 0 !important;
    }

    html[lang="eu"] #ast-desktop-header .main-header-menu .pll-parent-menu-item {
        flex-shrink: 0;
    }

    html[lang="eu"] #ast-desktop-header .main-header-menu .pll-parent-menu-item > a {
        font-size: clamp(13px, calc(0.6vw + 5.8px), 14px) !important;
        padding-left: clamp(3px, calc(1.225vw - 11.7px), 6px) !important;
        padding-right: clamp(3px, calc(1.225vw - 11.7px), 6px) !important;
        white-space: nowrap;
    }
}

/* En euskera, mostrar logo reducido hasta que el menú encaje */
@media (min-width: 1447px) and (max-width: 1650px) {
    html[lang="eu"] #ast-desktop-header .site-branding,
    html[lang="eu"] #ast-desktop-header .ast-header-site-branding {
        display: block !important;
        flex-shrink: 0;
    }

    html[lang="eu"] #ast-desktop-header .custom-logo-link img,
    html[lang="eu"] #ast-desktop-header .ast-site-identity .custom-logo {
        width: clamp(120px, calc(4vw + 60px), 160px) !important;
        max-width: clamp(120px, calc(4vw + 60px), 160px) !important;
        height: auto !important;
    }
}

/* FIN CONFIGURACIÓN DE MENÚ HAMBURGUESA Y LOGO */