body {
  background-color: #fff;
  font-family: "Roboto", sans-serif;
}

/* Header Style */
.main-header {
  padding: 20px 0;
  font-weight: bold;
  color: #333;
}

/* --- Main Viewer Styles --- */
#main-viewer-container {
  min-height: 500px;
  /* Ensure AOS animation pops nicely */
  transition: all 0.3s ease-in-out;
}

.viewer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Type 1: Text Overlay Style (Slide 1) */
.overlay-container {
  position: relative;
  height: 500px; /* Fixed height for consistency */
  border-radius: 8px;
  overflow: hidden;
}
.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.4); Dark overlay */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.overlay-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
}
.slide-14-title {
  font-size: 3rem !important;
  font-weight: bold;
  color: rgb(255, 77, 77);
}
.overlay-text.bottom {
  justify-content: flex-end;
  padding-bottom: 2.5rem;
}
.slide-caption {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #333;
  margin-top: 1.25rem;
}

/* Type 2 & 3: Split Content Styles (Slides 2 & 4) */
.split-container {
  display: flex;
  height: 500px; /* Fixed height */
  border-radius: 8px;
  overflow: hidden;
}
.split-image-box {
  flex: 6; /* Takes 60% width */
}
.split-text-box {
  flex: 4; /* Takes 40% width */
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Beige background specifically shown in slide 2 */
.bg-beige {
  background-color: #f4f4ed;
  color: #333;
}
/* Default white background for others if needed */
.bg-white {
  background-color: #fff;
  color: #333;
}

.split-text-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.yellow-heart {
  color: #eab308;
}

/* --- Thumbnail Sidebar Styles --- */
.thumbnail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px; /* breathing room beside scrollbar */
}

.thumbnail-item {
  margin-bottom: 15px;
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.3s,
    transform 0.3s;
  position: relative;
}

.thumbnail-item:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* Highlight the active thumbnail */
.thumbnail-item.active {
  opacity: 1;
  box-shadow: 0 0 0 3px #0d6efd; /* Bootstrap primary blue outline */
  border-radius: 4px;
}

.thumb-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Small numbering for thumbnails */
.thumb-number {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.9rem;
}

/* --- Mobile adjustments --- */
@media (max-width: 767.98px) {
  .thumbnail-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    max-height: none;
    padding: 0 4px 10px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }

  .thumbnail-item {
    flex: 0 0 90px;
    margin: 0;
  }

  .thumb-img {
    height: 70px;
    object-fit: cover;
  }

  .thumb-number {
    left: 6px;
    top: 6px;
    transform: none;
    color: #555;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.85rem;
  }
}
