/* Main section background and layout */
.index_content_3 {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background-color: black;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  color: #fff;
  gap: clamp(1rem, 3vw, 2rem);
}

/* Left text column */
.index_content_3_Content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  border-radius: 12px;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255, 255, 255, .06) 0%, transparent 60%),
    linear-gradient(180deg, #0b1b22 0%, #0a151a 100%);
  /* deep teal/blue look */
}

.index_content_3_Content h1 {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.index_content_3_Content h2 {
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 700;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  text-align: center;
  color: #ffd700;
}

/* Right images column */
.index_content_3_images {
  flex: 3;
}

/* Carousel */
.carousel-container {
  width: 100%;
  overflow: hidden;
  /* hide overflow; JS handles movement */
  position: relative;
  /* removed padding-right that caused end clipping */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  --gap: 1rem;
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform .5s ease-in-out;
}

.image-wrapper {
  flex: 0 0 calc((100%/3) - (var(--gap) * 2 / 3));
  padding: 5px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  transition: transform .3s ease;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.image-caption {
  margin-top: .5rem;
  text-align: center;
  color: #ffd700;
  font-size: clamp(.8rem, 1.5vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(255, 215, 0, .8);
  word-break: break-word;
}

/* Mobile */
@media (max-width: 768px) {
  .index_content_3 {
    flex-direction: column;
    padding: clamp(1.5rem, 4vw, 2rem) clamp(.5rem, 3vw, 1rem);
    align-items: flex-start;
  }

  .index_content_3_Content {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
  }

  .index_content_3_Content h1,
  .index_content_3_Content h2 {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(1rem, 5vw, 2.5rem);
    margin: .2rem 0;
  }

  .index_content_3_images {
    width: 100%;
    margin-top: 1rem;
  }

  .image-wrapper {
    flex: 0 0 calc(50% - (var(--gap)/2));
    padding: clamp(.2rem, 1vw, .3rem);
  }

  .image-wrapper img {
    border-radius: 6px;
  }

  .carousel-pagination {
    display: none !important;
  }
}

/* Pagination dots */
.carousel-pagination {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  align-items: center;
  z-index: 10;
}

.carousel-pagination button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: background .3s ease;
  padding: 0;
}

.carousel-pagination button.active {
  background: #ffd700;
}