[x-cloak] {
  display: none !important;
}

/* Y.F custom styles */

.h-120,
.h-300 {
  height: 500px;
}
.h-300 {
  max-height: 500px;
  min-height: 500px;
}
@media (max-width: 768px) {
  .h-300 {
    height: 350px;
    max-height: 350px;
    min-height: 350px;
  }
  .h-120 {
    height: 300px;
  }
  @media (max-width: 640px) {
    .h-300 {
      height: 350px;
      max-height: 350px;
      min-height: 350px;
    }
    .h-120 {
      height: 300px;
    }
  }
}

/* Animation classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-and-up {
  opacity: 0;
  animation-name: fadeInUp;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation-name: fadeIn;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

/* Default fallback for non-desktop devices */
@media (max-width: 1023px) {
  .fade-in-and-up,
  .fade-in {
    opacity: 1;
    animation: none;
  }
}

.prose {
  width: 100%;
}

/* Paragraph styling for text sections */
.paragraph-content p {
  font-size: 1.125rem; /* text-lg */
  color: rgba(1, 74, 41, var(--tw-text-opacity));      /* text-gray-900 */
  margin-bottom: 1.25rem; /* mb-5 */
}

/* Logo Carousel */
.logo-carousel {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  animation: marquee 30s linear infinite;
  min-width: 100%;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%); /* Move exactly one track width */
  }
}

.logo-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem; /* w-28 = 7rem */
  height: 7rem; /* h-28 = 7rem */
}

.logo-spacer {
  display: inline-block;
  width: 60px; /* Space between logos */
}

/* Fix for logo carousel title max-width */
.font-heading.text-4xl.lg\:max-w-4xl {
  max-width: 56rem;
}
@media (min-width: 1024px) {
  .font-heading.text-4xl.lg\:max-w-4xl {
    max-width: 56rem;
  }
}

/* Footer menu styling */
.footer-menu h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-menu ul {
  margin-top: 0.5rem;
}

.footer-menu ul li {
  margin-bottom: 0.5rem;
}

.footer-menu ul li a {
  display: inline-block;
  color: white;
}

.footer-menu ul li a:hover {
  text-decoration: underline;
}

/* Custom styles for realisations block on article pages */
.article-realisations-section a.relative.group.inline-block.rounded-md {
  background-color: white !important;
}

.article-realisations-section a.relative.group.inline-block.rounded-md:hover {
  color: #1f2937 !important; /* Keep text dark on hover */
}

/* Make badges in realisations section have white background */
.article-realisations-section span.inline-block.py-1.px-3.mb-4.text-xs.font-semibold.text-gray-800.bg-gray-50.rounded-full.uppercase {
  background-color: white !important;
}

/* Logo Carousel - Styles removed, now handled by Alpine.js dynamically */

/* Remove old logo carousel styles if they exist */
.logo-carousel {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  animation: marquee 30s linear infinite;
  min-width: 100%;
}

.logo-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem; /* w-28 = 7rem */
  height: 7rem; /* h-28 = 7rem */
}

.logo-spacer {
  display: inline-block;
  width: 60px; /* Space between logos */
}
