/* =========================================================
   BASE – PERSON LAYOUT (Shared Single Layout)
========================================================= */

.person-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* PHOTO COLUMN */

.person-photo {
    flex: 0 0 260px;
}

.person-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* INFO COLUMN */

.person-info {
    flex: 1;
}

.person-name {
    margin: 0 0 10px 0;
}

.person-position {
    font-weight: 600;
    margin-bottom: 12px;
}

/* =========================================================
   LINKS (Academic Icons)
========================================================= */

.person-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 15px 0;
}

/* Remove default underline */
.person-links a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* ICON STYLE */
.person-icon {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hover effect */
.person-links a:hover .person-icon {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* =========================================================
   CONTACT INFO
========================================================= */

.person-contact {
    margin-top: 15px;
}

.person-contact div {
    margin-bottom: 6px;
    font-size: 14px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .person-header {
        flex-direction: column;
    }

    .person-photo {
        max-width: 250px;
    }

    .person-links {
        gap: 12px;
    }
}

/* Prevent layout shift */
html {
    overflow-y: scroll;
}

/* =========================================
   INSTITUTIONAL FOOTER
========================================= */
.institutional-footer {
    text-align: center;
}

.institutional-affiliation {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.institutional-logos img {
    height: 65px;
    width: auto;
}

.institutional-logos img.logo-ehu {
    height: 95px !important;
}


.institutional-logos img:hover {
    opacity: 1;
}

html {
  scroll-behavior: smooth;
}

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


/* === Override Blocksy submenu === */
/* ===== GENERAL HEADER SUBMENU (Blocksy) ===== */

.ct-header .sub-menu,
.ct-header .ct-menu-dropdown {
  background-color: #3C79B6 !important;
  border-radius: 10px;

  transform: translateY(-50px) !important;

  padding: 8px 0;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}


.ct-header .sub-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ct-header .sub-menu li:last-child {
  border-bottom: none;
}

.ct-header .sub-menu a {
  color: #eaf2fb !important;
  padding: 12px 20px;
  display: block;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ct-header .sub-menu a:hover {
  background-color: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
}
