.nighochem-about-page {
  position: relative;
  overflow: hidden;
}
.nighochem-about-page::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: 25px;
  width: 500px;
  height: 500px;
  background-image: url("../../assets/images/logo-flask.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.425;
  pointer-events: none;
  z-index: 1;
}
.nighochem-about-content {
  position: relative;
  z-index: 2;
}
/* =========================================================
   NIGHOCHEM RESEARCH LAB CAROUSEL
   PREMIUM / STABLE / CINEMATIC
   ========================================================= */
.nighochem-carousel {
  width: 100%;
  position: relative;
  margin: 0 auto;
}
/* =========================================================
   CAROUSEL IMAGE AREA
   ========================================================= */
.nighochem-carousel .carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
  border-radius: 14px;
}
/* =========================================================
   SLIDES
   ========================================================= */
.nighochem-carousel .mySlides {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  animation: none !important;
}
/* Currently visible slide */
.nighochem-carousel .mySlides.is-visible {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
/* =========================================================
   SLIDE IMAGE
   ========================================================= */
.nighochem-carousel .mySlides img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*
     * Every slide ALWAYS starts at scale 1.
     */
  transform: scale(1);
  transform-origin: center center;
  /*
     * This is the actual Ken Burns animation.
     */
  transition: transform 4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
/* =========================================================
   ZOOM EFFECT
   Applied to EVERY active slide
   ========================================================= */
.nighochem-carousel .mySlides.is-zooming img {
  transform: scale(1.065) !important;
}
/* =========================================================
   FADE EFFECT
   ========================================================= */
.nighochem-carousel .mySlides.is-fading-in {
  animation: nighochemLabFadeIn 0.65s ease forwards;
}
.nighochem-carousel .mySlides.is-fading-out {
  animation: nighochemLabFadeOut 0.65s ease forwards;
}
@keyframes nighochemLabFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nighochemLabFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* =========================================================
   PREVIOUS / NEXT ARROWS
   ========================================================= */
.nighochem-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #1e5bb8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
/* Previous */
.nighochem-carousel .carousel-arrow.prev {
  left: 18px;
}
/* Next */
.nighochem-carousel .carousel-arrow.next {
  right: 18px;
}
/* Arrow */
.nighochem-carousel .carousel-arrow span {
  display: block;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  margin-top: -3px;
}
/* Hover */
.nighochem-carousel .carousel-arrow:hover {
  background: #1e5bb8;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
/* Click */
.nighochem-carousel .carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}
/* Keyboard focus */
.nighochem-carousel .carousel-arrow:focus {
  outline: none;
}
.nighochem-carousel .carousel-arrow:focus-visible {
  outline: 2px solid #5be300;
  outline-offset: 3px;
}
/* =========================================================
   DOT CONTAINER
   IMPORTANT:
   This is OUTSIDE .carousel-container
   ========================================================= */
.nighochem-carousel .dots-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 35px;
  padding: 0;
  background: transparent;
  border: none;
  z-index: 20;
}
/* =========================================================
   DOTS
   ========================================================= */
/* =========================================================
   DOTS — ORIGINAL STRUCTURE
   ONLY GRADIENT UPDATED
   ========================================================= */
.nighochem-carousel .dots {
  width: 14px;
  height: 14px;
  padding: 0;
  margin: 0;
  border: none !important;
  outline: none;
  border-radius: 50%;
  background: #1e5bb8;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transition:
    width 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease;
}
/* Hover */
.nighochem-carousel .dots:hover {
  transform: scale(1.15);
}
/* Active dot — SAME STRUCTURE, NEW GRADIENT */
.nighochem-carousel .dots.active {
  width: 38px;
  border-radius: 10px;
  background: linear-gradient(90deg, #35d34a 0%, #27c9b8 50%, #18a9e8 100%);
}
/* Focus */
.nighochem-carousel .dots:focus {
  outline: none;
}
.nighochem-carousel .dots:focus-visible {
  outline: 2px solid #5be300;
  outline-offset: 3px;
}
/* Mobile — SAME STRUCTURE */
@media (max-width: 768px) {
  .nighochem-carousel .dots-container {
    margin-top: 14px;
    gap: 7px;
  }
  .nighochem-carousel .dots {
    width: 11px;
    height: 11px;
  }
  .nighochem-carousel .dots.active {
    width: 30px;
  }
}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .nighochem-carousel .carousel-container {
    border-radius: 10px;
  }
  .nighochem-carousel .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  .nighochem-carousel .carousel-arrow.prev {
    left: 10px;
  }
  .nighochem-carousel .carousel-arrow.next {
    right: 10px;
  }
  .nighochem-carousel .carousel-arrow span {
    font-size: 28px;
  }
  .nighochem-carousel .dots-container {
    margin-top: 14px;
    gap: 7px;
  }
  .nighochem-carousel .dots {
    width: 11px;
    height: 11px;
  }
  .nighochem-carousel .dots.active {
    width: 30px;
  }
}
/* =========================================================
   SMALL MOBILE
   ========================================================= */
@media (max-width: 480px) {
  .nighochem-carousel .carousel-arrow {
    width: 36px;
    height: 36px;
  }
  .nighochem-carousel .carousel-arrow.prev {
    left: 7px;
  }
  .nighochem-carousel .carousel-arrow.next {
    right: 7px;
  }
  .nighochem-carousel .carousel-arrow span {
    font-size: 25px;
  }
}
/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .nighochem-carousel .mySlides img {
    transition: none !important;
    transform: none !important;
  }
  .nighochem-carousel .carousel-arrow,
  .nighochem-carousel .dots {
    transition: none !important;
  }
}

/* =========================================
   TRUST TITLE — PERFECT INLINE ALIGNMENT
   ========================================= */

.nighochem-trust-title {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 8px;
  line-height: 1.2;
}

.nighochem-trust-static {
  display: inline-block;
  white-space: nowrap;
}

.nighochem-trust-rotator {
  position: relative;
  display: inline-block;

  height: 1.2em;
  min-width: 280px;

  vertical-align: baseline;
  line-height: 1.2;

  top: 7px;
}

.nighochem-trust-rotator > span {
  position: absolute;
  left: 0;
  top: 0;

  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  transform: translateY(4px);

  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}

.nighochem-trust-rotator > span.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
