/* Navbar */

.navbar {
  background: white;
}

.navbar__content {
  display: flex;
  padding: 10px 0;
}

.navbar__logo-container {
  flex-grow: 1;
}

.navbar__logo {
  max-width: 204px;
  max-height: 50.39px;
}

.navbar__toggle-menu {
  display: inline-block;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

@media(min-width: 768px) {
  .navbar__toggle-menu {
    display: none
  }
}

.navbar__ul {
  display: none;
  list-style: none;
  padding: 0;
}

@media(max-width: 767px) {
  .navbar__content:focus-within .navbar__ul {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    background: white;
    margin: 0;
    padding: 1rem;
    padding-bottom: 1.9rem;
    margin-top: 76px;
    display: flex;
    flex-direction: column-reverse;
    animation: langDropdownShowUp .2s;
  }
}

@media(min-width: 768px) {
  .navbar__ul {
    display: flex;
  }
}

.navbar__li {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: var(--text-color);
  display: flex;
}

@media(max-width: 767px) {
  .navbar__content:focus-within .navbar__ul .navbar__li {
    flex-direction: column;
  }
}

.navbar__li::before {
  content: '';
  width: 35px;
}

@media(max-width: 767px) {
  .navbar__content:focus-within .navbar__ul .navbar__li::before {
    content: '';
    height: 15px;
  }
}

.navbar__link {
  color: inherit;
  text-decoration: none;
}

.navbar__link:hover,
.navbar__link:focus {
  color: var(--primary);
  text-decoration: none;
}

.navbar__link--with-dropdown:focus,
.navbar__link--with-dropdown:hover {
  color: inherit;
}

.navbar__link-dropdown-toggle {
  transition: .2s;
}

.navbar__li:hover .navbar__link-dropdown-toggle {
  color: var(--primary);
}

.navbar__link--with-dropdown {
  outline: none;
  box-shadow: none;
}

.navbar__link--with-dropdown:focus .lang-dropdown,
.navbar__link--with-dropdown:focus-within .lang-dropdown {
  display: block;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 3rem;
  width: 150px;
  background: white;
  padding: 15px;
  list-style: none;
  box-shadow: 0px 15px 64px rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  animation: langDropdownShowUp .2s;
}

@media(max-width: 767px) {
  .navbar__content:focus-within .navbar__ul .lang-dropdown {
    width: 90%;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

@keyframes langDropdownShowUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-dropdown__item {
  margin-bottom: 10px;
}

.lang-dropdown__item:last-child {
  margin-bottom: 0;
}

.lang-dropdown__btn {
  display: block;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: 15px;
  border-radius: 10px;
  margin: none;
  border: none;
  background: none;
  cursor: pointer;
}

.lang-dropdown__btn:hover,
.lang-dropdown__btn:focus {
  background: rgba(0, 0, 0, 0.03);
  outline: none;
}

/* Post Card */

.post-card {
  width: 100%;
}

@media (min-width: 598px) {
  .post-card {
    width: 48%;
  }
}

@media (min-width: 1218px) {
  .post-card {
    width: 387px;
  }
}

.post-card__image-container,
.post-card__image {
  width: 100%;
}

.post-card__image {
  height: auto;
}

.post-card__title {
  font-style: normal;
  font-weight: bold;
  font-size: 26px;
  line-height: 41px;
  margin: 30px 0;
}

@media (min-width: 1218px) {
  .post-card__title {
    font-size: 36px;
  }
}

.post-card__publish-date {
  display: inline-block;
  margin: 30px 0;
  font-family: var(--default-font-family);
  font-weight: normal;
  font-size: 14px;
  line-height: 130%;
  color: #73728F;
}

.post-card__article-content p {
  font-family: Montserrat;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 170%;
  margin-bottom: 30px;
}

.post-card__article-content a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}

.post-card__article-content a:hover,
.post-card__article-content a:focus {
  color: var(--primary);
}

.post-card__article-content h2 {
  font-family: var(--default-font-family);
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 170%;
}

.post-card__article-content strong,
.post-card__article-content b {
  font-weight: 600;
}

.post-card__article-content li {
  line-height: 170%;
}

.post-card__article-content li:not(:last-child) {
  margin-bottom: 10px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
}

.tags__item {
  margin-right: 15px;
  margin-bottom: 15px;
  padding: 6px 12px;
  color: #00cfdd;
  background: rgb(0 207 221 / 15%);
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: .2s;
}

.tags__item:hover,
.tags__item:focus {
  background: rgb(0 207 221 / 9%);
}

/* CTA */

.cta__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  font-family: var(--default-font-family);
  margin-bottom: 20px;
  padding-right: 10px;
}

.cta__btn {
  padding: 16px 45px;
  background: var(--gradient-primary);
  border-radius: 60px;
  font-weight: bold;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  display: inline-block;
}

.cta__btn:hover,
.cta__btn:focus {
  animation: backgroundAnimation .5s forwards;
}

@keyframes backgroundAnimation {
  from {
    background-size: 100%;
  }
  to {
    background-size: 190%;
  }
}

.cta__btn--secondary {
  background: var(--gradient-secondary);
}

/* Links list */

.links-list__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 15px;
}

.links-list__ul {
  padding-left: 19px;
}

.links-list__li {
  font-size: 14px;
  line-height: 130%;
  margin-bottom: 10px;
}

.links-list__li:last-child {
  margin: 0;
}

/* Search Input  */

.search-input {
  display: flex;
  align-items: center;
  padding: 19px;
  background: white;
  box-shadow: 0px 7px 64px rgba(0, 0, 0, 0.07);
  border: 1px solid transparent;
  border-radius: 60px;
  transition: .2s all;
}

.search-input:focus-within {
  border-color: var(--secondary);
}

.search-input__icon {
  color: #73728F;
  transition: .2s all;
}

.search-input:focus-within .search-input__icon {
  color: var(--secondary);
}

.search-input__input {
  border: none;
  background: none;
  padding: none;
  max-width: auto;
  margin-left: 10px;
}

.search-input__input:focus {
  outline: none;
  box-shadow: none;
  border: none;
  background: none;
}

/* Footer */

.footer {
  margin-top: 110px;
}

.footer__content {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  border-top: 1px solid rgb(204 204 204 / 55%);
}

.footer__paragraph,
.footer__paragraph a {
  font-size: 16px;
  line-height: 130%;
  color: #73728f;
  text-decoration: none;
  transition: color .2s;
}

.footer__paragraph a:hover {
  color: var(--secondary);
}

/* Article Page Layout */

.page {
  margin-top: 60px;
}

.page__back-btn {
  color: #73728F;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: .2s all;
}

.page__back-btn-text {
  font-weight: bold;
  font-size: 18px;
  margin-left: 10px;
}

.page__back-btn:hover,
.page__back-btn:focus {
  color: var(--secondary);
}

.page__content-grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1218px) {
  .page__content-grid {
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
  }
}

.page__posts {
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 598px) {
  .page__posts {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1218px) {
  .page__posts {
    width: 804px;
  }
}

.page__side {
  width: 282px;
}

@media (min-width: 617px) {
  .page__side {
    width: 100%;
    margin: auto;
    display: flex;
  }
}

@media (min-width: 1218px) {
  .page__side {
    width: 282px;
    margin: auto;
    flex-direction: column;
  }
}

.page__post-top-margin {
  margin-top: 60px;
}

.page__side--margin-top {
  margin-top: 80px;
}

@media (min-width: 598px) {
  .page__side--margin-top {
    margin-top: 40px;
  }
}

@media (min-width: 617px) {
  .page__side-column {
    width: 47.8%;
  }
}

@media (min-width: 1218px) {
  .page__side-column {
    width: 100%;
  }
}

.page__side-item {
  margin-bottom: 50px;
}
