/*Business Branding name and Carousel*/
.container {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: auto;
  align-items: center;
  border-radius: 4px;
  gap: 6px;
  padding: 5px 12px;
  flex-wrap: nowrap;
}

.branding {
  flex: 0 0 62%;
  font-size: 3.215em;
  font-weight: normal;
  padding: 6px;
  color: #103d5f;
  line-height: 1.35em;
  align-items: center;
  justify-content: center;
  font-family: 'Monda', sans-serif;
}

.carousel {
  flex: 0 0 36%;
  position: relative;
  overflow: hidden;
  height: 195px;
  border-radius: 0;
  border-left: 1px solid #eaeded;
  box-shadow: none;
  border: 2px solid #eaeded;
}

.slides {
  position: relative;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
  border-radius: 4px;
  z-index: 0;
}

.slide.active {
  transform: translateX(0);
  z-index: 1;
}

.slide.exit-left {
  transform: translateX(-100%);
  z-index: 0;
}
.carousel button.prev,
.carousel button.next {
  position: absolute;
  bottom: 10px;
  padding: 6px 12px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.6); /* light background */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #333;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* Position buttons bottom-left and bottom-right */
.carousel button.prev { left: 10px; }

.carousel button.next { right: 10px; }

/* Show buttons on hover */
.carousel:hover button.prev,
.carousel:hover button.next {
  opacity: 1;
}

/*Responsive Tweaks */

@media (max-width: 480px) {
  .container {
    flex-wrap: wrap; /* allow wrapping */
    flex-direction: column; /* stack vertically */
    gap: 12px;
  }
  .branding, .carousel {
    flex: 0 0 100%;
    width: 100%;
  }
  .branding {
    text-align: center;
  }
}

/* Slight font size scaling on tablets portrait (481px to 780px) */
@media (max-width: 780px) and (min-width: 481px) {
  .branding {
    font-size: 2.8em;
  }
  .carousel {
    height: 180px;
  }
}

/* Smaller font for smartphones */
@media (max-width: 480px) {
  .branding {
    flex: 0 0 100%;
    font-size: 2em;
    padding: 6px;
  }
  .carousel {
    flex: 0 0 100%;
    height: 160px;
    border-left: none;
    border-top: 1px solid #eaeded;
  }
  .carousel button.prev,
  .carousel button.next {
    bottom: 6px;
    padding: 4px 10px;
    font-size: 16px;
  }
}
