.header {
  text-align: center;
  background: url(images/bg.jpg) no-repeat center center;
  background: #0a0f1a;
  background-size: cover;
  padding: 40px 20px;
  color: #c6d0df;
}

.avatar2 {
    margin: 0 auto 20px;
}
.avatar2 img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin:0 auto;
}

.subtitle2 {
  font-weight: 600;
  margin-top: 10px;
}

.description {
  font-size: 14px;
  margin: 10px auto 20px;
  max-width: 600px;
}
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap:15px;
}
.socials a {
  display: flex;
}
a,svg {
  transition:all linear .25s;
}
.socials a svg {
  width: auto;
  height: 24px;
  fill:#3575FF;
}
.socials a:hover svg {
  fill:#ffe600;
  fill:#B20010;
}

.cards {
  padding: 30px 20px 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: auto;
  margin-top: 20px;
}

.card5 {
  background: url(images/bg.jpg) no-repeat center center;
  background: #0a0f1a;
  border-radius: 15px;
  padding: 20px 20px 25px;
  display: flex;
  align-items: center;
  color: #c6d0df;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  border-bottom: 0;
  transition:all linear .25s;
  text-decoration: none;
  position: relative;
  overflow:hidden;
  z-index: 2;
}
.card5:after {
  content:' ';
  display: block;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right,#00A5F4,#2C7FFF,#7F23FE);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -2;
}
.card5:before {
  content:' ';
  display: block;
  width: 100%;
  height: 50px;
  background: #0A0F1A;
  position: absolute;
  left: 0;
  bottom: 5px;
  z-index: -1;
  border-radius: 11px;
}
.card5 .category {
  margin:0 0 10px;
}
.card5 .description {
  margin:0 0 10px;
}

.card5:hover {
  border-color: #ffe600;
  border-color: #B20010;
  transform:translateY(-5px);
}

.card5 img {
  max-width: 100%;
  max-height: 100%;
}
.card5 .img {
  width: 100%;
  max-width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  margin-right: 20px;
}
.vline {
  height: 1px;
}
.text h2 {
  font-size: 18px;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.text p {
  margin: 0;
  font-size: 14px;
}

.badge {
  position: absolute;
  text-transform: uppercase;
  top: 20px;
  right: 20px;
  background: #ffe600;
  background: #B20010;
  color: #002c61;
  color: #c6d0df;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
}
.card5 .more {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.card5 .more img {
  width: 20px;
  margin-left: 7px;
}

/* Адаптивність */
@media (max-width: 600px) {
  .card5 {
    padding: 30px 15px;
    margin:0 -20px;
    border-radius: 0;
    transform: none !important;
  }
  .card5:after {
    height: 3px;
  }
  .cards {
    gap:0;
  }
  .card5:before {
    display: none;
  }

  .card5 .img {
    max-width:80px;
    height: 80px;
    margin:0 15px 0 0;
  }

  .badge {
    right:20px;
    top:auto;
    bottom:27px;
  }
  .card5 .more {
    margin-top: 15px;
  }
  .text h2 {
    font-size: 17px;
  }
}
