* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background-color: #f9f9f7;
    line-height: 1.7;
}

/* Navigation */
nav {
    background-color: #d27e1a;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav .logo img {
    height: 80px;
    padding: 2px 0;
}

.navbar-icon {
    display: block;
    width: 20px;
    height: 30px;
    background-image: url('/images/hmdb_icon_white.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 30px;
}

.navbar-icon:hover {
        background-image: url('/images/hmdb_icon_blue.svg');
}

nav p {
    color: #fff;
    font-size: 1.7rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

nav p:hover {
    color: #162054;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

nav ul li a {
    color: #d6e8ff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 1rem 1.1rem;
    display: block;
    transition: background 0.2s, color 0.2s;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: #162054;
    border-bottom-color: #162054;
    background-color: rgba(255,255,255,0.07);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
}

main h1 {
    font-size: 2rem;
    color: #162054;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #6ab0f5;
    padding-bottom: 0.5rem;
}

main p {
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
}

.intro-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.intro-row p {
    margin-bottom: 0;
    flex: 1;
}

.intro-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
    margin-top: -20px;
}

@media (max-width: 820px) {
    .intro-row {
        flex-direction: column;
    }

    .intro-logo {
        width: 180px;
        max-width: 100%;
        align-self: center;
    }
}

main ul {
    list-style: disc;
    padding-left: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

main ul li {
    font-size: 1.2rem;
}

.item-row {
    display: flex;
    align-items: flex-start;
}

.item-logo {
    float: right;
    width: auto;
    height: 100px;
    object-fit: contain;
}

.hmdb-logo {
    width: auto;
    height: 170px;
    margin-left: 1rem;
}

.metaboanalyst-logo {
    width: auto;
    height: 190px;
}

.on-top-logos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
}

.funding-logos {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 0.5rem 0.75rem;
    margin-left: 1rem;
    justify-items: center;
    align-items: center;
}

.smpdb-logo {
    width: auto;
    height: 60px;
    margin-bottom: 1.5rem;
}

.pathbank-logo {
    width: auto;
    height: 60px;
    margin-top: 1.5rem;
}

.foodb-logo {
    width: auto;
    height: 60px;
    margin-bottom: 0.25rem;
}

.drugbank-logo {
    width: auto;
    height: 130px;
    margin-top: 0.25rem;
}

.uni-logo {
    height: 85px;
    width: auto;
}

.blooddrop-image {
    width: auto;
    height: 70px;
    margin-left: 1rem;
}

.tmic-logo {
    width: auto;
    height: 80px;
    margin-left: 1rem;
}

.nserc-logo {
    width: auto;
    height: 70px;
    margin-left: 0;
    margin-top: -1rem;
}

.genome-canada-logo {
    width: auto;
    height: 90px;
    margin-left: 0;
    margin-top: -1rem;
}

.innovation-logo {
    width: auto;
    height: 60px;
    grid-column: 1 / -1;
}

.alberta-innovates-logo {
    width: auto;
    height: 70px;
    grid-column: 1 / -2;
}

.cihr-logo {
    width: auto;
    height: 80px;
    margin-left: 2rem;
    grid-column: 2 / -2;
}

.mime-logo {
    width: auto;
    height: 100px;
}