.custom-related-article .related-search-ads {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--footer-bg);
  box-shadow: 0 12px 30px rgba(8, 20, 44, 0.05);
}

.custom-related-article .related-search-ads h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.custom-related-article .related-search-ads .ad-unit {
  margin: 0;
}

.custom-related-article .custom-hidden-content {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.custom-related-article .custom-hidden-content.expanded {
  display: block;
  opacity: 1;
  max-height: 100vh;
}

.custom-related-article .read-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  max-width: 320px;
  margin: 2rem auto 0;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: var(--theme);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.custom-related-article .read-more-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(8, 20, 44, 0.12);
}

@media (max-width: 768px) {
  .custom-related-article .related-search-ads,
  .custom-related-article .read-more-button {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .custom-related-article .read-more-button {
    font-size: 0.95rem;
  }
}
