@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: normal;
    src: url("./../../fonts/Roboto/Roboto-Regular.woff") format("woff");
    url("./../../fonts/Roboto/Roboto-Regular.ttf") format("ttf");
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
    font-style: normal;
    font-weight: normal;
    src: url("./../../fonts/HelveticaRegular.woff") format("woff");
    url("./../../fonts/Helvetica.ttf") format("ttf");
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Helvetica", "sans-serif", "Arial";
}

.container {
    margin: 6.5vh 3.13vw 0 4vw;
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    justify-content: center;
}

.block {
    width: 17.5%;
    min-width: 228px;
    max-width: 280px;
    min-height: 180px;
  text-align: center;
  font-size: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.block a {
    text-decoration: none;
    display: contents;
}

.block img {
  transition: 0.5s;
  object-fit: cover;
  object-position: 0 20%;
  width: 100%;
  filter: grayscale(100%);
}

.block img:hover {
  transition: 0.5s;
  filter: grayscale(0%);
}

.topic {
  font-weight: 700;
  line-height: 42px;
  font-size: 28px;
}

.description {
  width: 100%;
  background: #125488;
  text-align: center;
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
  padding: 2px 0 7px 0;
}

.blue-white {
  background: #125488;
  color: white;
}

.white-blue {
  transition: 0.5s;
  background: white;
  color: #125488;
  padding: 0 12px;
}

.block:nth-child(n+7) {
  visibility: hidden;
  opacity: 0;
}

.block.animate {
  visibility: visible;
  opacity: 1;
  animation: fade-in 1s ease-in-out forwards;
}

.foot{
    margin: 17px 0 30px 0;
    font-size: 16px;
    text-align: end;
    font-family: "Roboto", "sans-serif", "Arial";
    font-weight: 550;
    color: #062056;
}

.foot img {
    margin-bottom: -12px;
}
@keyframes fade-in {
  0% {
      transform: translateY(100%);
  }
  100% {
      transform: translateY(0);
  }
}

@media (max-width: 1500px) {
    .topic {
        font-size: 20px;
        line-height: 30px;
        margin: 0 16px;
    }

    .description {
        font-size: 14px;
        padding: 2px 0 6px 0;
    }
    .container{
        gap: 13px;
        margin: 5.3vh 3.8vw 0 3.6vw;
    }

    .container :nth-child(5){
        order: 11 !important;
    }

    .container :nth-child(14){
        order: 11 !important;
    }
    .container :nth-child(22){
        order: 23 !important;
    }
}
@media (max-width: 1027px) {
    .container :nth-child(5){
        order: 10 !important;
    }
    .container :nth-child(14){
        order: 12 !important;
    }
}

@media (max-width: 767px) {
    .container :nth-child(5){
        order: 9 !important;
    }

    .container :nth-child(14){
        order: 16 !important;
    }
}

@media (max-width: 510px) {
    .block {
        width: 20%;
        min-width: 163px;
        max-height: 180px;
    }
    .topic {
        font-size: 14px;
        line-height: 21px;
        margin: 0 10px;
    }

    .description {
        font-size: 11px;
        line-height: 15px;
        padding: 2px 0;
    }
    .container{
        gap: 9px 7px;
        margin: 5.3vh 3.6vw 0 3.6vw;
    }
    .foot{
        margin-bottom: 20px;
    }
}

@media (max-width: 359px) {
    .block {
        width: 20%;
        min-width: 140px;
        min-height: 160px;
    }
    .topic {
        font-size: 12px;
        line-height: 21px;
        margin: 0 10px;
    }

    .description {
        font-size: 9px;
        line-height: 15px;
        padding: 2px 0;
    }
    .container{
        gap: 7px;
    }
}