/* Text Image Section Component Specific Styles */

/* WYSIWYG Content Formatting */
.text-image-section-component .wysiwyg-content p {
  margin-bottom: 1rem;
}

.text-image-section-component .wysiwyg-content p:last-child {
  margin-bottom: 0;
}

.text-image-section-component .wysiwyg-content ul,
.text-image-section-component .wysiwyg-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-position: outside;
}

.text-image-section-component .wysiwyg-content ul {
  list-style-type: disc;
}

.text-image-section-component .wysiwyg-content ol {
  list-style-type: decimal;
}

/* Link styling within WYSIWYG content */
.text-image-section-component .wysiwyg-content a {
  color: #16a1c0;
  text-decoration: underline;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.text-image-section-component .wysiwyg-content a:hover {
  opacity: 0.8;
}

/* Emphasis and strong elements */
.text-image-section-component .wysiwyg-content em {
  font-style: italic;
}

.text-image-section-component .wysiwyg-content strong {
  font-weight: bold;
}

/* Spacing for headings within WYSIWYG */
.text-image-section-component .wysiwyg-content h1,
.text-image-section-component .wysiwyg-content h2,
.text-image-section-component .wysiwyg-content h3,
.text-image-section-component .wysiwyg-content h4,
.text-image-section-component .wysiwyg-content h5,
.text-image-section-component .wysiwyg-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
  color: #171717;
}

/* Image styling */
.text-image-section-component img {
  transition: transform 0.3s ease;
}

.text-image-section-component img:hover {
  transform: scale(1.02);
}

/* Responsive styling adjustments */
@media (max-width: 768px) {
  .text-image-section-component .flex-row-reverse,
  .text-image-section-component .flex-row {
    display: flex;
    flex-direction: column-reverse;
  }

  .text-image-section-component img {
    margin-top: 0;
    margin-bottom: 2rem;
  }
}
