* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    max-width: 1300px;
    margin: auto;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

nav {
    background-color: var(--banner-blue);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 1300px;
    margin: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nav-brand {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    max-width: 95%;
}

.nav-logo a {
    display: flex;
    gap: 20px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: white;
}

.nav-logo h1 {
    font-size: 1.4rem;
    line-height: 1.4rem;
}

.nav-logo img {
    max-height: 50px;
}

.nav-lang {
    position: absolute;
    right: 10px;
    top: 10px;
}

.nav-lang a {
    color: white;
    text-decoration: none;
}

.nav-lang a:hover {
    text-decoration: underline;
}

.nav-content {
    display: flex;
    align-items: space-between;
    width: 100%;
    height: 100%;
}


.nav-list {
    display: flex;
    flex-direction: row;
    align-items: space-between;
    list-style: none;
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
}

.nav-list a {
    text-decoration: none;
    letter-spacing: 2px;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    display: block;
    transition: all 0.5s ease-in-out;
}

.nav-list a:hover {
    background-color: var(--secondary-color);
}

header {
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 120px);
    margin-top: 120px;
}

.header-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.header-content h1 {
    font-size: 2rem;
    color: white;
    text-align: center;
    max-width: 80%;
    padding: 40px 20px;
    border-radius: 5px;
    backdrop-filter: blur(15px);
}

.header-content a.btn {
    display: block;
    width: fit-content;
    margin-top: 20vh;
    background-color: none;
    color: black;
    font-weight: bold;
    padding: 20px 30px;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid white;
    background-color: var(--light-bg-color);
    transition: all 0.5s ease-in-out;
}

.header-content a.btn:hover {
    background-color: white;
    color: black;
}

section {
    padding-top: 120px;
    padding-bottom: 60px;
    border-left: 1px solid black;
    border-right: 1px solid black;
}

section:nth-child(even) {
    background: var(--light-bg-color);
}

section hr {
    max-width: 450px;
    border-top: none;
    border-bottom: 1px solid gainsboro;
    margin: auto;
    margin-bottom: 40px;
}

section h2 {
    font-size: 2.5rem;
    color: black;
    text-align: center;
}

section h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.8);
}

section p {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    text-align: justify;
    margin: 0 auto 10px auto;
    max-width: 800px;
}

section p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

section ol {
    margin: 20px auto;
    max-width: 800px;
    padding-left: 20px;
}

section li {
    margin: auto 60px 10px 40px;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    text-align: justify;
}

.content {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.curve-top {
    top: 0;
    width: 100%;
    height: 100px;
    fill: white;
    display: block;
    border-left: 1px solid black;
    border-right: 1px solid black;
}

.curve-bottom {
    bottom: 0;
    width: 100%;
    height: 100px;
    fill: white;
    display: block;
    border-left: 1px solid black;
    border-right: 1px solid black;
    background-color: var(--banner-blue);
}

.card-container {
    columns: 3;
    column-gap: 1.5rem;
    width: 90%;
    margin: 80px auto 80px auto;
}

.card {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: space-between;
    border-radius: 0px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    break-inside: avoid;
    text-align: left;
}


.card .btn {
    text-decoration: none;
    background-color: var(--secondary-color);
    color: white;
    max-width: fit-content;
    margin: 20px auto 20px auto;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid var(--secondary-color);
    transition: all 0.5s ease-in-out;
}

.card .btn:hover {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.1rem;
    color: black;
    margin: 20px 30px 0 30px;
    text-align: left;
}

.card p {
    margin: 20px 30px;
    font-size: 1rem;
    text-align: left;

}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.team-member p {
    font-size: 1rem;
    text-align: left;
    width: 100%;
}

.team-member img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Team two-column version */

.team-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}


.team-grid-2 .team-member {
    margin: 20px 0;
}

.team-grid-2 .team-member h3 {
    text-align: left;
    width: 100%;
    margin-bottom: 0px;
    color: black;
}

.team-grid-2 .team-member p {
    margin-bottom: 0;
    text-align: left;
}

.contact {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 100px;
}

.contact div {
    min-width: 30%;
}

.contact div>* {
    margin-bottom: 20px;
    color: white !important;
}

.contact h2 {
    text-align: left;
}

.contact img {
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
}

footer {
    padding: 10px;
    text-align: center;
    color: white;
    background-color: black;
}

#contact {
    background-color: var(--banner-blue);
}

#contact p {
    text-align: left;
}

@media only screen and (max-width: 1000px) {
    .nav-logo h1 {
        font-size: 1rem;
    }

    .nav-list {
        flex-wrap: wrap;
    }

    .card-container {
        columns: 2;
        width: 98%;

    }

    .team-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

@media only screen and (max-width: 750px) {

    .nav-logo a {
        display: flex;
        flex-wrap: wrap;
    }

    .nav-brand {
        align-items: normal;
    }

    .nav-list a {
        padding: 5px 15px;
    }

    header {
        margin-top: 200px;
        height: calc(100vh - 200px);
    }

    .header-content h1 {
        font-size: 1.7rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid-2 {
        grid-template-columns: 1fr;
        max-width: 80%;
        margin: auto;
    }

    .card {
        max-width: 100%;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header a.btn {
        padding: 15px 20px;
    }

    .contact {
        flex-direction: column;
        align-items: left;
        gap: 40px;
        max-width: 90%;
    }

}

@media only screen and (max-width: 600px) {
    nav {
        height: auto;
    }

    header {
        margin-top: 200px;
        height: calc(100vh - 200px);
    }

    .header-content h1 {
        font-size: 1.4rem;
    }

    .content {
        padding: 10px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .card-container {
        width: 100%;
        columns: 1;
    }

    .card {
        max-width: 100%;
    }

    header h1 {
        font-size: 2rem;
    }

    header a.btn {
        padding: 10px 15px;
    }


}