:root {
  --black: #111;
  --white: #fff;
  --grey: #444;
  --link: #708dff;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;

}

a {
  color: var(--link);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

h1 {
  font-size: larger;
}

#container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#logo {
  border-radius: 50%;
  border: 2px solid var(--grey);
}

#header-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#header-numbers {
  display: flex;
  gap: 20px;
  flex-direction: row;
}

.header-numbers-item {
  display: flex;
  flex-direction: column;
}

.header-numbers-value {
  font-size: medium;
  font-weight: bold;
  color: var(--white);
}

.header-numbers-label {
  font-size: small;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

nav li {
  display: inline;
}

nav li.active a {
  color: var(--white);
  border-bottom: 2px solid var(--white);
  /* Add border to the active link */
  padding-bottom: 1px;
  /* Space between icon and border */
  padding-left: 5px;
  /* Add left padding */
  padding-right: 5px;
  /* Add right padding */
  display: inline-block;
  /* Essential for padding and border to work as expected */
}

nav a {
  color: var(--white);
  font-size: 1.5em;
}

nav li a {
  color: var(--grey);
}

#members-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

#members-grid .grid-item {
  position: relative;
  overflow: hidden;
}

#members-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 1/1.5;
  object-fit: cover;
}

#members-grid .overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 6px 5px 5px 5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}

#members-grid .overlay-title {
  font-size: medium;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

#members-grid .overlay-subtitle {
  font-size: small;
  opacity: 0.85;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

#news-item {
  background: var(--white);
  padding: 10px 0;
  border-radius: 10px;
}

#news-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  margin-bottom: 10px;
  padding: 0 10px;
}

#news-title h2 {
  margin: 0;
  font-size: medium;
}

#news-title img {
  border-radius: 50%;
  border: 2px solid var(--grey);
}

#news-item p {
  font-size: small;
  color: var(--black);
  padding: 0 10px;
  text-align: right;
}

#about-text {
  font-size: medium;
  line-height: 1.5;
  color: var(--white);
}