/* Global layout */
html {
    scroll-behavior: smooth;
}

:root {
    --header-height: 70px;
    /* adjust if your header is taller/shorter */
}

/* For sections targeted by anchors */
section {
    scroll-margin-top: var(--header-height);
}


body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8fbfd;
    color: #1a1a1a;
    padding-top: 64px;
    /* space so fixed header doesn't cover content */
}

/* Sticky header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(248, 251, 253, 0.96);
    border-bottom: 1px solid #e3e9ee;
    z-index: 1000;
    box-sizing: border-box;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-nav {
    margin-left: auto;
    display: flex;
    gap: 22px;
}

.header-nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 500;
}

.header-nav a:hover {
    color: #169DEB;
    /* match your button blue */
}

/* Wordmark and icon in header */
.logo-wordmark {
    height: 28px;
    width: auto;
}

.logo-icon {
    height: 28px;
    width: auto;
    display: none;
    /* hidden at top */
}

/* When scrolled: show icon, hide wordmark */
body.scrolled .logo-wordmark {
    display: none;
}

body.scrolled .logo-icon {
    display: block;
}

/* Hero logo inside main content */
.hero-logo {
    width: 220px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}


.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
    text-align: center;
}

/* Hero */
.vision {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 720px;
    /* or 960px */
    margin: 0 auto 20px;
    /* re-center within container */
    display: block;
    color: #0a3d62;
    /* restrained medical blue */
}

.status {
    font-size: 1.1rem;
    color: #3d3d3d;
    margin-top: 0;
}

/* Contact button (CTA) */
.cta-button {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 32px;
    border-radius: 999px;
    border: none;
    background: #22B2FF;
    /* Flat Oviu blue */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(34, 178, 255, 0.35);
    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.cta-button:hover {
    background: #169DEB;
    /* Slightly darker hover state */
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(22, 157, 235, 0.38);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(22, 157, 235, 0.28);
}


/* Supported by */
.trust-section {
    margin-top: 50px;
    padding: 10px 0 30px;
}

.trust-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0a3d62;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px;
    align-items: center;
}

.trust-logos img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.65;
    /* soft, trust-building look */
    transition: opacity 0.2s;
}

.trust-logos img:hover {
    opacity: 1;
}

/* Team section */
.team-section {
    margin-top: 60px;
    text-align: left;
}

.team-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #0a3d62;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    /* Center the text horizontally */
}

/* Core member (you) */
.core-member {
    margin-bottom: 50px;
}

.core-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.photo-wrapper {
    position: relative;
    display: inline-block;
}

/* >>> This controls YOUR photo size <<< */
.core-photo {
    width: 160px;
    /* change this value to adjust your photo size */
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.25s;
}

.linkedin-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    opacity: 0.5;
    pointer-events: none;
    /* click goes to the link under */
}

/* Hover feedback */
.photo-wrapper a:hover .linkedin-badge {
    opacity: 1;
}

.photo-wrapper a:hover .core-photo {
    opacity: 0.95;
    transform: scale(1.02);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.core-text {
    max-width: 460px;
}

.team-name {
    font-size: 1.25rem;
    margin: 0 0 4px;
}

.team-role {
    font-size: 1rem;
    color: #3d3d3d;
    margin: 0 0 8px;
}

.team-bio {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.4;
    margin: 0;
}

/* Advisors row (two cards side by side) */
.advisors-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    /* will stack on small screens */
}

/* Base card style */
.advisor-card {
    background: #ffffff;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 18px 16px;
}

/* Scientific card narrower, clinical card wider */
.advisor-card-scientific {
    width: 450px;
    min-width: 240px;
}

.advisor-card-clinical {
    width: 450px;
    min-width: 240px;
}

/* Advisor titles */
.advisor-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0a3d62;
    text-align: center;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Entries inside cards */
.advisor-entry {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-items: center;
}

/* Advisor photos */
.advisor-photo {
    width: 120px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 10px;
}

.advisor-text {
    flex: 1;
}

.advisor-name {
    font-weight: 600;
    margin: 0 0 2px;
}

.advisor-role {
    font-size: 0.9rem;
    color: #3d3d3d;
    line-height: 1.3;
    margin: 0;
}

/* Layout for the clinical advisors inside their card */
.clinical-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Advisor photo wrapper */
.photo-wrapper-advisor {
    position: relative;
    display: inline-block;
}

/* LinkedIn badge for advisors */
.linkedin-badge-advisor {
    position: absolute;
    bottom: 6px;
    right: 15px;
    width: 22px;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

/* Hover feedback */
.photo-wrapper-advisor a:hover .linkedin-badge-advisor {
    opacity: 1;
}

/* CHUV badge for advisors */
.chuv-badge-advisor {
    position: absolute;
    bottom: 6px;
    right: 15px;
    width: 40px;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

/* Hover feedback */
.photo-wrapper-advisor a:hover .chuv-badge-advisor {
    opacity: 1;
}

.photo-wrapper-advisor a:hover .advisor-photo {
    opacity: 0.95;
    transform: scale(1.02);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.publications-section {
    margin-top: 60px;
    max-width: 720px;
    /* or 960px */
    margin: 0 auto 20px;
    /* re-center within container */
    display: block;
    text-align: left;
}

.publications-list {
    list-style-type: disc;
    margin-left: 20px;
    line-height: 1.5;
}

.publications-list a {
    color: #1e88e5;
    text-decoration: none;
}

.publications-list a:hover {
    text-decoration: underline;
}

.site-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #e5e5e5;
}