:root {
  --commonBlueColor: #002147;
  --bgColorFeaturesAnons: #14213d;
  --bgColorAnons: #ffb41b;
  --bgColorHover: #fff7c2;
  --fontColorFeature: #ffffff;
  --bgColorDataAnons: #e5e5e5;
}


/* ============= Buttons from main page ========== */

@keyframes transform {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.btn-list {
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  -webkit-justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Montserrat';
  background-color: var(--bgColorFeaturesAnons);
}

.btn-vstup {
  display: block;
  padding: 15px 5px;
  width: 230px;
  border-radius: 5px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  box-shadow: inset -2px -2px 5px 2px var(--commonBlueColor);
  margin-bottom: 5px;
  background-color: var(--bgColorHover);
  color: var(--commonBlueColor);
  opacity: 1;
  font-weight: bold;
  font-size: 14px;
}

.btn-vstup:hover {
  background-color: var(--bgColorAnons);
  /* border-color: var(--bgColorAnons); */
  text-shadow: 0 0 var(--bgColorHover);
  color: var(--bgColorFeaturesAnons);
  text-decoration: none;
  cursor: pointer;
  animation: transform 0.8s infinite alternate both;
}

.btn-vstup:active {
  animation: none;
  box-shadow: inset 2px 2px 5px 2px #6a6a6a;
}

.btn-vstup:last-child {
  margin-right: 0;
}

/* ======== FEATURES & ANONS ========== */

.feature-anons-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  background-color: var(--bgColorFeaturesAnons);
}

.feature-anons-container a,
.feature-anons-container a:hover {
  color: var(--bgColorFeaturesAnons);
}

.feature-anons-container ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-anons-container li a {
  font-family: 'Montserrat', sans-serif;
}

/* ========= FEATURES ========== */

.features-main-page {
  padding: 55px 25px 30px 25px;
  max-width: 65%;
  flex: 0 0 65%;
  color: var(--fontColorFeature);
  align-self: center;
}

.features-module-title,
.actually-module-title {
  padding-left: 0px;
  margin-bottom: 50px;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.features-module-title {
  text-shadow: 0 1px 2px var(--bgColorAnons);
  color: var(--fontColorFeature);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 25px;
}

.feature-item {
  padding: 15px;
  padding-top: 85px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #002147;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

.feature-item:hover {
  background-color: var(--bgColorHover);
  color: var(--bgColorFeaturesAnons);
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 10px;
  width: 70px;
  height: 85px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: all 0.3s ease-in;
}

.feature-item__legal::before {
  background-image: url('../features-anons-module/icons-features/icons8-lawyer-100.png');
}

.feature-item__it::before {
  background-image: url('../features-anons-module/icons-features/icons8-it-100.png');
}

.feature-item__dormitories::before {
  background-image: url('../features-anons-module/icons-features/icons8-student-center-100.png');
}

.feature-item__sport::before {
  background-image: url('../features-anons-module/icons-features/icons8-stadium-100.png');
}

.feature-item__mobility::before {
  background-image: url('../features-anons-module/icons-features/icons8-university-100.png');
}

.feature-item__professors::before {
  background-image: url('../features-anons-module/icons-features/icons8-literature-100.png');
  width: 100px;
  height: 95px;
}

/* === hover === */

.feature-item__legal:hover::before {
  background-image: url('../features-anons-module/icons-features/icons8-lawyer-blue-100.png');
}

.feature-item__it:hover::before {
  background-image: url('../features-anons-module/icons-features/icons8-it-blue-100.png');
}

.feature-item__dormitories:hover::before {
  background-image: url('../features-anons-module/icons-features/icons8-student-center-blue-100.png');
}

.feature-item__sport:hover::before {
  background-image: url('../features-anons-module/icons-features/icons8-stadium-blue-100.png');
}

.feature-item__mobility:hover::before {
  background-image: url('../features-anons-module/icons-features/icons8-university-100-blue.png');
}

.feature-item__professors:hover::before {
  background-image: url('../features-anons-module/icons-features/icons8-literature-100-blue.png');
}


.feature-title {
  margin-left: 0;
  padding-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  font-size: 1em;
  font-weight: bold;
}

.feature-text {
  margin: 0;
}

/* ================= ACTUALLY =========== */
.module-actually-main-page {
  position: relative;
  padding: 55px 40px 30px 25px;
  max-width: 35%;
  height: max-content;
  flex: 0 0 35%;
  background-color: var(--bgColorAnons);
  display: grid;
}

.module-actually-main-page::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 73px;
  bottom: -70px;
  left: 0;
  background-image: url('../features-anons-module/forActualy.svg');
  background-size: 110%;
  background-repeat: no-repeat;
}

.actually-module-title {
  color: var(--bgColorFeaturesAnons);
  text-shadow: 0 1px 2px var(--fontColorFeature);
  font-weight: 900;
}

.mod-articles-category-readmore {
  display: none;
}

.module-actually-main-page li {
  margin-bottom: 10px;
  display: grid;
  grid-template-areas:
    'data title';
  align-items: flex-start;
  justify-content: flex-start;
}

.mod-articles-category-date {
  margin-right: 14px;
  width: 75px;
  height: 75px;
  grid-area: data;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.mod-articles-category-date_month,
.mod-articles-category-date_day {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.mod-articles-category-date_month {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid var(--bgColorFeaturesAnons);
  background-color: var(--bgColorFeaturesAnons);
  height: 33%;
  color: var(--fontColorFeature);
}

.mod-articles-category-date_day {
  background-color: var(--bgColorDataAnons);
  color: var(--bgColorFeaturesAnons);
  height: 67%;
  font-weight: bold;
  font-size: 28px;
}

.module-actually-main-page li>a {
  grid-area: title;
  color: var(--bgColorFeaturesAnons);
  font-size: 15px;
  text-transform: uppercase;
  font-weight: bold;
}

.category-module-actually-main-page li>p {
  display: none;
}

a.btn-actually-read-more {
  margin-left: auto;
  padding: 10px 20px;
  background-color: var(--bgColorFeaturesAnons);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
}

a.btn-actually-read-more:hover {
  color: #ffffff;
  text-decoration: underline;
  background-color: var(--commonBlueColor);
}


/* ============= MEDIA QUERIES ========= */

@media screen and (max-width: 990px) {
  .feature-anons-container {
    padding-bottom: 66px;
    max-width: 950px;
  }

  .features-main-page,
  .module-actually-main-page {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

@media screen and (max-width: 690px) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 490px) {
  .features-main-page {
    padding: 50px 16px 25px 16px;
  }

  .features-list {
    gap: 16px;
  }

  .feature-item {
    padding: 10px;
    padding-top: 75px;
  }

  .feature-item::before {
    top: 5px;
    width: 60px;
    height: 75px;
  }

  .feature-text {
    display: none;
  }
}

@media screen and (max-width: 466px) {

  .features-module-title,
  .actually-module-title {
    font-size: 24px;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .module-actually-main-page li>a {
    font-size: 13px;
  }
}

div.counter {
  background-color: transparent;
  border-color: transparent;
}