/* Link Section Component Specific Styles */

.link-section-component article {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 
.link-section-component article:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
} */

/* Image hover effects */
.link-section-component article img {
  transition: transform 0.6s ease;
}

.link-section-component article:hover img {
  transform: scale(1.05);
}

/* CTA link hover effect */
.link-section-component a svg {
  transition: transform 0.2s ease;
}

.link-section-component a:hover svg {
  transform: translateX(4px);
}

/* Content styling for WYSIWYG editor */
.link-section-component .mb-4 p,
.link-section-component div:not(.mb-4) p {
  margin-bottom: 1rem;
}

.link-section-component .mb-4 p:last-child,
.link-section-component div:not(.mb-4) p:last-child {
  margin-bottom: 0;
}

.link-section-component .mb-4 ul,
.link-section-component .mb-4 ol,
.link-section-component div:not(.mb-4) ul,
.link-section-component div:not(.mb-4) ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.link-section-component .mb-4 ul,
.link-section-component div:not(.mb-4) ul {
  list-style-type: disc;
}

.link-section-component .mb-4 ol,
.link-section-component div:not(.mb-4) ol {
  list-style-type: decimal;
}

/* Link styling within WYSIWYG content */
.link-section-component .mb-4 a,
.link-section-component div:not(.mb-4) a {
  color: #16a1c0;
  text-decoration: underline;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.link-section-component .mb-4 a:hover,
.link-section-component div:not(.mb-4) a:hover {
  opacity: 0.8;
}

/* Remove the padding-bottom from content divs without CTA links */
.link-section-component div:not(.mb-4) {
  padding-bottom: 0;
}

/* "Read more" link at the bottom */
.link-section-component article > div {
  position: relative;
}

.link-section-component article > div > a {
  position: relative;
  display: inline-flex;
  margin-top: 0.5rem;
}

/* Spacing adjustments for responsive layout */
@media (max-width: 768px) {
  .link-section-component article {
    gap: 1.5rem;
  }

  .link-section-component article div:first-child {
    margin-bottom: 1.5rem;
  }
}
