
/* Desktop first - Main and layouts */

*, *::before, *::after {
    box-sizing: border-box;    
}

body {
    display: block;
    margin: 0 auto 0 auto;
    padding-top: 10em;
    padding-bottom: 5em;
    background: #F5F5F5;
    color: #002626;
    max-width: 1200px;
}

main {
    display: flex;
    flex-direction: column;
    align-self: center;
}

footer {
    margin-top: 8em;
}

section {
    padding: 120px 0 0 0;
}

.hero {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 100vw;
    padding-bottom: 2em;
    padding: 0;
}

.hero img,
.team-wrap img {
    width: 45%;
    border-radius: 16px;
}

.abt-txt {
    width: 60%;
}

.abt-img {
    display: flex;
    width: 100%;
    gap: 24px;
    padding-top: 1.9em;
}

.abt-img img {
    width: 49%;
    border-radius: 16px;
}

img {
    width: 100%;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.two-col {
    display: flex;
    align-items: flex-start;
    gap: 140px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
    gap: 16px;
    background-color: #F5F5F5;
    border: 1px solid #f5f5f5;
    border-radius: 24px;
    transition: border 0.3s ease, background 0.3s ease;
}

.project-card:hover {
    padding: 1em;
    border-radius: 24px;
    border: 1px solid #00262626;
    background-color: #f3f0f0;
}

.margin-top {
    margin-top: 1rem;
}

.project-wrap a:hover {
    border-bottom: 1px solid #f5f5f5;
}

.project-wrap a:hover .tag {
    background-color: #00262629;
    border: 1px solid #98b7d4b7;
}

.project-card-short {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

.project-card-col {
    display: flex;
    flex-direction: column;
    width: 25%;
    gap: 64px;
}

.project-card-col img {
    height: 200px;
}

.card-left-col, 
.project-content, 
.description, 
.table {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.card-left-col {
    flex-shrink: 0;
}

.project-content {
    gap: 24px;
}

.description-short h3 {
    font-size: 1.2rem;
}
.description-short p{
    font-size: 1rem;
    color: #646468;
    margin: 0.5em 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 1em;
}

.tag {
    background-color: #f0ebeb;
    border: 1px solid #cdc7c7;
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: center;
    border-radius: 20px;
    padding: 0.5em 1em;
    transition: background 0.3s ease, border 0.3s ease;
}

.tag p{
    font-size: 1rem;
    margin: 0;
}

.preview {
    width: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.footer-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    max-width: fit-content;
}

.link-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.news-card {
    display: flex;
    width: 342px;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Articles and publications section */

.publication-item-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    border-bottom: 1px solid #000;
    transition: padding 0.3s ease, background 0.3s ease;
}

.publication-item-link:hover {
    background-color: #e6e6e6;
    padding-left: 4px;
}

.publication-item-link p {
    flex: 1 0 0;
}

/* Team section */

.team-wrap, 
.team-big-row,
.team-card-big,
.team-card-small {
    display: flex;
    align-items: flex-start;
}

.team-wrap {
    align-content: flex-start;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-big-row{
    padding-bottom: 24px;
    gap: 48px;  
}

.team-card-big{
    gap: 24px;
    width: 50%;
}   

.team-card-small {
    flex-direction: column;
    width: 22%;
    gap: 16px;
    margin-top: 32px;
}

.team-card-small img {
    width: 100%;
}

.team-card-small p,
.team-card-big p {
    font-size: 1rem;
    margin-bottom: 0;
}

.team-card-big h5,
.team-card-small h5 {
    font-size: 1rem;
    margin: 0.5em 0 1em 0 ;
}

li {
    font-size: 1.25rem;
    margin: 1em 0;
}

.article-wrap {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 80px;
        max-width: 1200px;
    }

.article-container {
    max-width: 768px;
    width: 100vw;
}

.article-section {
    padding-top: 80px;
}

.breadcrumbs{
    margin-top: 24px;
}

    .sticky-nav {
        display: block;
        position: sticky;
        margin-top: 4em;
        top: 70px;
        z-index: 1;
        padding: 10px;
        height: min-content;
    }

    .sticky-nav ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }
    .sticky-nav li {
        margin: 0;
        padding: 1em 1em 1em 0;
        border-bottom: 1px solid #0026265c;
        transition: padding 0.3s ease, background 0.3s ease;
    }

    .sticky-nav li:hover {
        padding: 1em 0.5em 1em 0.5em;
        background-color: #00262629;
    }

/*  Fonts */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  }

.logo {
    font-size: 1.5rem; /* 20px */
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    margin: 0;
}

h1 {
    width: 100%;
    font-size: 4rem; /* 64px */
    font-style: normal;
    line-height: 110%
}

.hero h1 {
    font-weight: 700;
    /* width: 965px; */
    margin: 0;
}

footer img {
    width: 100%;
    border-radius: 16px;
}

section h2 {
    font-size: 2.813rem; /* 45px */
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 1em 0;
}

.sorry-section h2 {
    margin: 0;
}

h3 {
    font-size: 2rem; /* 24px */
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    margin: 0;
}

h4 {
    font-size: 2.813rem; /* 45px */
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 1em 0;
    max-width: 85%;
}

h5 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    color: #002626;
    font-size: 1.25rem; /* 20px */
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.sorry-section p {
    margin: 1.5em 0 3em 0;
}

.hero p {
    max-width: 460px;
}

.description p {
    line-height: 120%;
    align-self: stretch;
}

.link-footer p, 
.link-footer a {
    font-size: 1.5rem; /* 24px */
    margin: 0;
}

.white {
    color: #fff;
}

.gray {
    color: #86868B;
}

.a-right {
    width: 100%;
    text-align: right;
}

.italic {
    font-style: italic;
}

.numbers {
    text-align: right;
    font-size: 4rem; /* 64px */
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.strikethrough {
    text-decoration: line-through;
    color: #646468;
}

/* Navigation bar */

header {
    display: flex;
    justify-content: center;
    width: 100%;
}

nav {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 1em;
    box-sizing: border-box;
    width: 100vw;
    max-width: 1200px;
    height: fit-content;
    z-index: 2;
    position: fixed;
    overflow: hidden;
    top: 0;
}

.nav-links {
    display: flex;
    padding: 3px 0px;
    align-items: flex-start;
    gap: 25px;
}

.menu-mobile {
    display: none;
}

/* Links */

a {
    font-size: 1.05rem;
    color: #002626;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.language-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
}

a:active {
    color: rgb(208, 208, 208);
    font-weight: 500;
}

a:hover{
    border-bottom: 1px solid #002626;
}

.project-wrap a {
    width: 68%;
}


/* Mobile Styles */

@media screen and (max-width: 768px) {

    /* Navigation burger menu */

    nav {
        padding: 2.5em 1em 1em 1em;
    }

    .nav-links {
        display: none;
    }

    .menu-mobile {
        display: flex;
        gap: 16px;
    }

    /* Fonts */

    h1 {
        font-size: 2.5rem; /* 32px */
    }


    .hero h1 {
        width: 100%;
        margin-bottom: 1em;
    }

    p {
        font-size: 1rem;
    }

    .link-footer p, 
    .link-footer a {
        font-size: 1.125rem; /* 18px */
    }


    section h2,
    h4 {
        font-size: 1.75rem; /* 28px */
    }

    h4 {
        max-width: 100%;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Layouts */

    body {
        padding: 6em 0 3em 0;
    }

    main {
        gap: 30px;
        margin: 0 1rem;
    }

    .hero {
        flex-direction: column;
        padding-top: 24px;
    }

    .hero img {
        width: 100%;
    }

    section {
        padding-top: 60px;
    }

    .project-wrap {
        flex-direction: column;
    }

    .project-wrap a {
        width: 100%;
    }

    .project-card {
        flex-direction: column;
        height: max-content;
        width: 100%;
        gap: 0;
    }

    .project-card-col {
        width: 100%;
    }

    .description {
        margin-top: 16px;
    }

    .abt-txt {
        width: 100%;
    }

    .abt-img {
        flex-direction: column;
    }

    .abt-img img {
        width: 100%;
    }

    .team-wrap,
    .team-big-row,
    .team-card-big {
        flex-direction: column;
    }

    .team-card-big,
    .team-card-small {
        width: 100%;
    }

    .team-wrap img {
        width: 100%;
    }

    footer {
        margin-top: 0;
    }

    .footer-list {
        display: flex;
    }

    .publications-wrap {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    /* Pelican project styles */

    .article-wrap {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .article-container {
        max-width: 99%;
    }

    .article-section li {
        font-size: 1rem;
    }

    .sticky-nav {
        position: unset;
        margin-top: 0;
    }

    .news-wrap {
        flex-direction: column;
    }
    .news-card {
        width: 100%;
    }

}
/* Publications */

.pub-header {
    padding: 0 0 2em 0;
    max-width: 900px;
}

.pub-header h1 {
    font-size: 2.813rem; /* 45px */
    font-weight: 700;
    margin: 0 0 0.5em 0;
}

.pub-kicker {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #646468;
    margin: 0 0 1.5em 0;
}

.pub-kicker a {
    font-size: 1rem;
    color: #646468;
    border-bottom: 1px solid #cdc7c7;
}

.pub-meta,
.pub-source {
    font-size: 1.05rem;
    line-height: 150%;
    color: #646468;
    margin: 0 0 0.4em 0;
}

.pub-lead {
    max-width: 760px;
}

.pub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 2em;
}

.pub-btn {
    background-color: #002626;
    color: #f5f5f5;
    border: 1px solid #002626;
    border-radius: 16px;
    padding: 12px 24px;
    transition: opacity 0.3s ease;
}

.pub-btn:hover {
    opacity: 0.8;
}

.pub-btn-ghost {
    background-color: transparent;
    color: #002626;
}

.pub-body {
    padding: 2em 0 0 0;
    max-width: 760px;
}

.pub-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em 0;
}

.pub-body p {
    margin: 0 0 1.2em 0;
}

.pub-keywords,
.pub-note {
    font-size: 1.05rem;
    line-height: 160%;
    color: #646468;
    border-left: 3px solid #cdc7c7;
    padding-left: 16px;
}

.pub-note a {
    font-size: 1.05rem;
    border-bottom: 1px solid #cdc7c7;
}

/* Publications index */

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
}

.pub-card {
    border-top: 1px solid #cdc7c7;
    padding-top: 24px;
    max-width: 900px;
}

.pub-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 130%;
    margin: 0 0 0.5em 0;
}

.pub-card h2 a {
    font-size: inherit;
    border-bottom: none;
}

.pub-card h2 a:hover {
    border-bottom: 1px solid #002626;
}

.pub-links {
    display: flex;
    gap: 24px;
    margin: 1em 0 0 0;
}

.pub-links a {
    border-bottom: 1px solid #002626;
}

@media screen and (max-width: 768px) {

    .pub-header h1 {
        font-size: 2rem;
    }

    .pub-body h2 {
        font-size: 1.6rem;
    }

    .pub-actions {
        flex-direction: column;
    }

    .pub-btn {
        text-align: center;
    }

}
