@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(15px);
  }
}
.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

/* Animation states for quote popup */
#quote-popup .popup-content {
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}
#quote-popup.show .popup-content {
  transform: scale(1);
  opacity: 1;
}

@keyframes bounceIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.bounce-animation {
  animation: bounceIcon 1.8s ease-in-out infinite;
}

/* ==========================================================================
   Blog Post Content & Image Text Wrapping (Global Fallback)
   ========================================================================== */
.blog-content {
    overflow: visible;
}

.blog-content::after {
    content: "";
    display: table;
    clear: both;
}

.blog-content figure {
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-content hr {
    clear: none !important;
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.blog-content p {
    clear: none !important;
    overflow: visible !important;
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
}

.blog-content p:empty {
    display: none !important;
}

.blog-content figure.align-left,
.blog-content img.align-left {
    float: left !important;
    display: block !important;
    clear: none !important;
    margin: 0.35rem 1.75rem 1.25rem 0 !important;
}

.blog-content figure.align-right,
.blog-content img.align-right {
    float: right !important;
    display: block !important;
    clear: none !important;
    margin: 0.35rem 0 1.25rem 1.75rem !important;
}

.blog-content figure.align-center {
    float: none !important;
    display: block !important;
    margin: 2rem auto !important;
    text-align: center !important;
    clear: both !important;
}

.blog-content figure.align-full {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem 0 !important;
    clear: both !important;
}

.blog-content figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.75rem !important;
    display: block !important;
    margin: 0 !important;
}

.blog-content figure figcaption {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
    font-style: italic !important;
    line-height: 1.25rem !important;
}

@media (max-width: 640px) {
    .blog-content figure.align-left,
    .blog-content figure.align-right {
        float: none !important;
        margin: 1.5rem auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
