/* ==========================================================
   IB-S shared components v1.0.0
   Page hero for internal pages — mirrors the About hero
   ========================================================== */
.et_pb_section:has(.ibs-phero),
.et_pb_row:has(.ibs-phero),
.et_pb_column:has(.ibs-phero) {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
.ibs-phero {
    position: relative;
    overflow: hidden;
    min-height: 48vh;
    display: flex;
    align-items: flex-end;
    background-color: #08160f;
    background-image: url('https://devix.maindomain.pt/wp-content/uploads/2021/07/parallax-background-2-clean.jpg');
    background-size: cover;
    background-position: center 40%;
}
.ibs-phero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8,22,15,0.92) 0%, rgba(13,34,24,0.82) 55%, rgba(8,22,15,0.70) 100%);
    z-index: 0;
}
.ibs-phero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 150px 5vw 72px;
    box-sizing: border-box;
}
.ibs-phero__ey {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #3dba72 !important;
    margin-bottom: 1.1rem;
}
.ibs-phero__title {
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
}
.ibs-phero__sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    color: rgba(210,245,225,.82) !important;
    max-width: 640px;
    margin: 0;
    padding: 0 !important;
}
@media (max-width: 768px) {
    .ibs-phero { min-height: 40vh; }
    .ibs-phero__inner { padding: 120px 6vw 48px; }
}

/* Empty pages: full-width hero, no default title or sidebar */
body.ibs-empty-page #sidebar,
body.ibs-empty-page .entry-title.main_title,
body.ibs-empty-page #main-content .container::before { display: none !important; }
body.ibs-empty-page #main-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
body.ibs-empty-page #left-area {
    width: 100% !important;
    padding: 0 !important;
    float: none !important;
}
body.ibs-empty-page article.page { padding: 0 !important; margin: 0 !important; }
body.ibs-empty-page .ibs-phero { min-height: 52vh; }

/* ==========================================================
   Card accent line — grows from left to right on hover.
   Shared by research areas, news, projects and team cards.
   ========================================================== */
.ibs-ra__card,
.ibs-news__card,
.ibs-proj-card,
.ibs-team-card {
    position: relative;
    overflow: hidden;
}
.ibs-ra__card::before,
.ibs-news__card::before,
.ibs-proj-card::before,
.ibs-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3dba72;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.16,1,.3,1);
    z-index: 2;
    pointer-events: none;
}
.ibs-ra__card:hover::before,
.ibs-news__card:hover::before,
.ibs-proj-card:hover::before,
.ibs-team-card:hover::before,
.ibs-ra__card:focus-visible::before,
.ibs-news__card:focus-visible::before {
    transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
    .ibs-ra__card::before,
    .ibs-news__card::before,
    .ibs-proj-card::before,
    .ibs-team-card::before { transition: none; }
}

/* Display figures use the heading font, like every other title */
.ibs-hero__stat-n, .ibs-who__n { font-family: var(--et_global_heading_font, 'Quicksand'), sans-serif !important; }
