/* Media queries para telas maiores */
@media (min-width: 768px) {
  nav ul {
    flex-direction: row;
  }
}

@media (max-width: 1280px) {
  header {
    flex-direction: row;
    align-items: center;
  }

  nav ul {
    flex-direction: row;
  }

  footer {
    display: flex;
    flex-direction: column;
    order: 4;
  }
}

@media (max-width: 480px) {
  footer {
    order: 4;
  }
}

@media (max-width: 600px) {
  .logo img {
    width: 200px;
    height: 40px;
    margin: 0;
  }

  .nav {
    margin: 0 50px 10px 0;
  }

  .menu {
    display: block;
    position: absolute;
    top: 4rem;
    left: 0;
    background: var(--primary-color);
    text-align: center;
    width: 100%;
    height: 0;
    z-index: 1000;
    visibility: hidden;
    overflow-y: hidden;
    transition: 0.5s;
  }

  .menu a {
    padding: 1rem 0;
    margin-inline: 1rem;
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.16);
    border-radius: 0;
  }

  .btn-menu {
    background: none;
    border: none;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black-color);
    font-weight: bold;
    padding: 1rem 0;
    cursor: pointer;
  }

  .hamburger {
    border-top: 0.125rem solid;
    width: 1.25rem;
  }

  .hamburger::after,
  .hamburger::before {
    content: " ";
    display: block;
    width: 1.25rem;
    height: 0.125rem;
    background: currentColor;
    margin-top: 0.3125rem;
    position: relative;
    transition: 0.3s;
  }

  .nav.active .menu {
    height: auto;
    visibility: visible;
    overflow-y: auto;
  }

  .nav.active .hamburger {
    border-top-color: transparent;
  }

  .nav.active .hamburger::before {
    transform: rotate(135deg);
  }

  .nav.active .hamburger::after {
    transform: rotate(-135deg);
    top: -0.4375rem;
  }

  .post h3 {
    font-size: 25px;
    letter-spacing: -1px;
    line-height: 1.2;
  }

  .recent-posts {
    order: 1; /* Garante que os posts venham antes do aside */
    width: 90%;
  }

  footer {
    order: 4;
  }
}
