.before-after-section {
  padding: 80px 0 0;
}

.slider-container {
  position: relative;
  max-width: 1263px;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  border-radius: 15px;
  max-height: 780px;
}
.before-after-section h2 {
  font-size: 80px;
  line-height: 93%;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  color: #000;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 2rem;
}

.before-after-section p {
  font-family: "poppins";
  font-style: normal;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.667rem;
  color: #37454a;
  margin-bottom: 2.5rem;
}

/*New CSS*/
.comparisonSection {
  position: relative;
  padding-bottom: 56.25%; /* to maintain aspect ratio (responsive!) */
  border: 15px solid #eaeaea;
  border-radius: 8px;
}
.comparisonImage {
  width: 100%;
  height: 100%;
}
.afterImage {
  position: absolute;
  overflow: hidden;
  top: 0;
  transform: translate(100%, 0px);
}
.afterImage img {
  transform: translate(-100%, 0px);
}
.comparisonImage img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  object-fit: cover;
}
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
}

.before-after-section .about__buttons {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  gap: 0 10px;
}
@media only screen and (max-width: 767px) {
  .before-after-section .about__buttons {
    flex-wrap: wrap;
    gap: 30px 0;
  }
}
.before-after-section .brand__wrap {
  margin-top: 80px;
  text-align: center;
}
@media (min-width: 768px) and (max-width: 991px) {
  .before-after-section .brand__wrap {
    margin-top: 60px;
  }
}
@media only screen and (max-width: 767px) {
  .before-after-section .brand__wrap {
    margin-top: 30px;
  }
}
/* Base styles for the press logos section */
.before-after-section .press-logos {
  padding: 28px 0;
  margin-top: 1rem;
}

/* Common styles for all logo containers */
.before-after-section .press-logos .press-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  height: 2.5rem; /* Approximately 71px at default font size */
  width: auto; /* Let width adjust based on height to maintain aspect ratio */
}

/* Specific styling for MarketWatch logo */
.before-after-section .press-logos .market-watch img {
  height: 3.444rem; /* Slightly smaller height */
  margin-top: -0.389rem; /* Adjust vertical alignment */
  width: auto;
  max-width: 300px; /* Ensure it doesn't stretch too wide */
}

/* Hover effect for all logos */
.before-after-section .press-logos img:hover {
  opacity: 1;
}

/* "As Seen On" text styling */
.before-after-section .press-label {
  color: #666;
  font-size: 16px;
  margin-top: 20px;
  text-align: center;
}

/* Press Logos Section */
.press-logos {
  padding: 60px 0;
  text-align: center;
}

/* Flex container for logos */
.press-logos__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* Creates consistent spacing between logos */
  margin-bottom: 0rem;
}

/* Individual logo wrapper */
.press-logos__item {
  flex: 0 1 auto; /* Don't force growth, allow shrinking, base size on content */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

/* Base logo styling */
.press-logos__item img {
  height: 4.444rem; /* Approximately 71px at default font size */
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* MarketWatch specific styling */
.press-logos__item img.market-watch {
  height: 3.444rem;
  margin-top: -0.389rem;
}

/* Label styling */
.press-logos__label {
  margin-top: 0.5rem;
  color: #666;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .press-logos__container {
    gap: 1.5rem;
  }
  .press-logos__item img {
    height: 4rem;
  }
  .press-logos__item img.market-watch {
    height: 3rem;
  }
}

@media (max-width: 991px) {
  .press-logos__container {
    gap: 1rem;
  }
  .press-logos__item img {
    height: 3.5rem;
  }
  .press-logos__item img.market-watch {
    height: 2.5rem;
  }
}

@media (max-width: 767px) {
  .press-logos {
    padding: 30px 0;
  }
  .press-logos__container {
    gap: 0.75rem;
  }
  .press-logos__item img {
    height: 3rem;
  }
  .press-logos__item img.market-watch {
    height: 2rem;
  }
}
