@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ast-article-post {
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 30px;
}

.ast-article-post:hover .post-thumb-img-content img {
  transform: none !important;
}

.wp-post-image {
  animation: fadeIn 2s ease-in forwards;
}

.post-content.ast-width-md-6 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: fadeIn 2s ease-in forwards;
  align-items: center;
  box-shadow: 0 0 20px 5px rgba(0,0,0,0.1);
  padding: 30px;
  background: #fff;
}

.button {
  width: 200px;
  height: 50px;
  margin-top: 80px;
  border-radius: 20px;
  box-shadow: 0 0 20px 5px rgba(0,0,0,0.1);
  background: #4a6cf7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  justify-self: end;
  margin-right: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px 8px rgba(74,108,247,0.25);
  background: #3a5bf5;
  color: white;
}

.button:active {
  transform: translateY(1px);
}

.modal_window_blog {
  display: none;
  width: 80%;
  max-width: 800px;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal_window_blog h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 25px 0;
  color: #222;
}

.modal_window_blog .content {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

@media (max-width: 1024px) {
  .post-content.ast-width-md-6 {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .button {
    margin-top: 40px;
    width: 180px;
    height: 45px;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .ast-article-post {
    border-radius: 15px;
    margin-bottom: 20px;
  }
  .post-content.ast-width-md-6 {
    padding: 15px;
  }
  .modal_window_blog {
    width: 90%;
    padding: 30px;
  }
  .modal_window_blog h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .modal_window_blog .content {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .ast-article-post {
    border-radius: 12px;
    margin-bottom: 15px;
  }
  .post-content.ast-width-md-6 {
    padding: 12px;
  }
  .button {
    width: 160px;
    height: 40px;
    margin-top: 30px;
    border-radius: 15px;
  }
  .modal_window_blog {
    width: 95%;
    padding: 20px;
  }
  .modal_window_blog h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .modal_window_blog .content {
    font-size: 15px;
  }
}