.main .social-icons {
  width: 50%;
}

.main .social-icons .bi-instagram:hover {
  color: #2789ce;
  transition: 300ms ease;
  transform: scale(1.1);
}

.main .social-icons .bi-facebook:hover {
  color: #2789ce;
  transition: 300ms ease;
  transform: scale(1.1);
}

.main .social-icons .bi-twitter:hover {
  color: #2789ce;
  transition: 300ms ease;
  transform: scale(1.1);
}

.main .apresentation {
  height: 80vh;
  max-width: 700px;
  justify-content: center;
}

.main .last-publications {
  margin-top: 120px;
  padding: 2rem 0;
}

.main .last-publications h2 {
  font-size: 2rem;
  color: #2c3e50;
  font-weight: 300;
  margin-bottom: 0.75rem;
  position: relative;
}

.main .last-publications .card {
  width: 75%;
  border: none;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(39, 137, 206, 0.06);
  border: 1px solid rgba(39, 137, 206, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.main .last-publications .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2789ce, #1e6bb8);
  transition: left 0.5s ease;
  z-index: 2;
}

.main .last-publications .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(39, 137, 206, 0.12);
  border-color: rgba(39, 137, 206, 0.15);
}

.main .last-publications .card:hover::before {
  left: 100%;
}

.main .last-publications .card .card-body {
  padding: 1.25rem 1rem;
  position: relative;
}

.main .last-publications .card .card-title {
  color: #2c3e50;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
  position: relative;
}

.main .last-publications .card .card-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2789ce, #1e6bb8);
  transition: width 0.3s ease;
}

.main .last-publications .card .card-title:hover {
  color: #2789ce;
}

.main .last-publications .card .card-title:hover::after {
  width: 100%;
}

.main .last-publications .card a {
  text-decoration: none;
  color: inherit;
}

.main .last-publications .card .post-date {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(39, 137, 206, 0.04);
  padding: 0.25rem 0.625rem;
  border-radius: 15px;
  border: 1px solid rgba(39, 137, 206, 0.08);
  width: fit-content;
  margin: 0 0 0 auto;
}

.main .last-publications .card .post-date i {
  color: #2789ce;
  font-size: 0.8rem;
}

.main .last-publications .card .card-text {
  color: #5a6c7d;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.main .last-publications .card .date-and-category {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.main .last-publications .card .category {
  color: #6c757d;
  background: rgba(39, 137, 206, 0.04);
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(39, 137, 206, 0.2);
  margin: 0;
  border: 1px solid rgba(39, 137, 206, 0.08);
}

.main .last-publications .card .d-flex {
  align-items: flex-start;
}

.main .last-publications .card .d-flex > a {
  flex: 1;
  margin-right: 0.75rem;
}

.main .last-publications .more-posts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  background: #2789ce;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
  margin-top: 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(39, 137, 206, 0.15);
}

.main .last-publications .more-posts-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(39, 137, 206, 0.2);
  background: #1e6bb8;
  text-decoration: none;
  color: white;
}

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

.main .last-publications .card {
  animation: fadeInUp 0.5s ease-out forwards;
}

.main .last-publications .card:nth-child(3) { animation-delay: 0.1s; }
.main .last-publications .card:nth-child(4) { animation-delay: 0.15s; }
.main .last-publications .card:nth-child(5) { animation-delay: 0.2s; }
.main .last-publications .card:nth-child(6) { animation-delay: 0.25s; }
.main .last-publications .card:nth-child(7) { animation-delay: 0.3s; }

.main .last-publications .more-posts-btn {
  animation: fadeInUp 0.5s ease-out 0.4s both;
}

@media(max-width: 768px){
  .main .last-publications .card {
    width: 100%;
  }

  .main .last-publications {
    margin-top: 80px;
    padding: 1.5rem 0;
  }

  .main .last-publications h2 {
    font-size: 1.75rem;
  }

  .main .last-publications .card .card-body {
    padding: 1rem 0.875rem;
  }

  .main .last-publications .card .card-title {
    font-size: 1rem;
  }

  .main .last-publications .card .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .main .last-publications .card .d-flex > a {
    margin-right: 0;
    margin-bottom: 0.375rem;
  }

  .main .last-publications .card .post-date {
    margin-left: 0;
    margin-top: 0;
  }

  .main .last-publications .more-posts-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    margin-top: 1.25rem;
  }

  .main .last-publications .card:hover {
    transform: translateY(-2px);
  }

  .date-and-category {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.625rem;
  }
}

@media(max-width: 575px){
  .main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .main .last-publications .card .card-body {
    padding: 0.875rem 0.75rem;
  }

  .main .last-publications .card .card-title {
    font-size: 0.95rem;
  }

  .main .last-publications .card .card-text {
    font-size: 0.85rem;
    margin-bottom: 0.625rem;
  }

  .main .last-publications .card .post-date {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .main .last-publications .card .category {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

@media(max-width: 660px){
  .main .apresentation {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main .last-publications .card,
  .main .last-publications .more-posts-btn,
  .main .social-icons i {
    transition: none;
    animation: none;
  }

  .main .last-publications .card:hover,
  .main .social-icons i:hover {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .main .last-publications .card {
    border: 2px solid #2789ce;
  }

  .main .last-publications .card .category {
    background: #2789ce;
    color: white;
  }

  .main .last-publications .more-posts-btn {
    background: #2789ce;
    border: 2px solid #1e6bb8;
  }
}
