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

html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background: #35424a;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

nav {
    background: #35424a;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

section {
    padding: 20px;
    margin: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #35424a;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.member {
    text-align: center;
}

.member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.logo {
    height: auto;
    max-height: 80px;
    width: auto;
    max-width: 100%;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: nowrap;
    background: #35424a;
    width: 100%;
    overflow: hidden;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    margin-left: auto;
    align-self: center;
    position: relative;
}

.menu-toggle span {
    background: #fff;
    height: 4px;
    width: 30px;
}

@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }
    
    section {
        margin: 10px;
    }
    
    .logo {
        max-height: 60px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .profile-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .profile-image {
        order: 1;
        width: 60%;
        max-width: 280px;
        margin: 0 auto 20px auto;
    }

    .profile-info {
        order: 2;
        width: 100%;
        padding: 0 10px;
    }
}

.profile-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-image {
    flex: 1 1 200px;
    min-width: 200px;
    margin: 0 20px 20px 0;
    max-width: 300px;
}

.profile-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.profile-info {
    flex: 2 1 300px;
    min-width: 250px;
}

.research-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.research-text {
    flex: 2 1 500px;
}

.research-img {
    flex: 1 1 250px;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}
