/* shortcode-related-top.css */

.related-top-vertical {
  background-color: #fbfbfb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  margin: 2em auto;

}

.related-top-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.related-top-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-top-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4em 1.6em;
  flex: 1;
}

.related-top-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.related-top-excerpt {
  font-size: 0.95em;
  color: #444;
  line-height: 1.4;
  margin-bottom: 1.2em;
}

.related-top-footer {
  display: flex;
  justify-content: flex-end;
}

.related-top-button {
  background: #64acc9;
  color: #fff;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95em;
  transition: 0.2s ease;
}

.related-top-button:hover {
  background: #8fd394;
}

.related-top-vertical.style-light {
  background-color: #ffffff;
}

.related-top-vertical.style-dark {
  background-color: #1f1f1f;
  color: #fff;
}

.related-top-vertical.style-dark .related-top-button {
  background: #fff;
  color: #1f1f1f;
}

/* Desktop */
@media (min-width: 768px) {
  .related-top-vertical {
    flex-direction: row;
    max-width: 760px;
  }

  .related-top-image-wrapper {
    width: 40%;
    height: auto;
    aspect-ratio: auto;
  }

  .related-top-image {
    height: 100%;
  }

  .related-top-body {
    width: 60%;
  }
}

.related-top-excerpt {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 1em;
  line-height: 1.5;
}
