/* @override 
  https://acsh.local/themes/custom/b5sci20/css/tiny-slider-theme.css?* */

.tns-product .tns-controls {
  width: 162px;
}

.tns-product .tns-controls .tns-prev-prod,
.tns-product .tns-controls .tns-next-prod {
  border-radius: 24px;
  border: none;
  font-size: 24px !important;
  width: 48px;
  height: 48px;
  line-height: 36px;
  text-align: center;
  color: #FFFFFF;
  background-color: #000000;
}

.tns-product .tns-controls .tns-prev-prod:hover,
.tns-product .tns-controls .tns-next-prod:hover {
  color: #000000;
  background-color: #D6D1CA;
}

.tns-product .tns-controls .tns-next-prod {
  margin-left: 60px;
}

.tns-slider .tns-item {
  border: 5px solid #fff;
  border-collapse: collapse;
}




.front-slider .views-field-title {
  margin-top: -4rem;
  background-color: #333;
  height: 4rem;
  padding: 10px;
  font-weight: bold;
  font-style: italic;
}

.front-slider .views-field-title a {
  color: #fdedc3;
}

.front-slider img {
  margin-bottom: 0px !important;
}

.tns-nav {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.tns-nav button {
  background-color: #9e9e9e;
  border: none;
  margin-left: 5px;
  margin-right: 5px;
  height: 12px;
  border-radius: 10px;
  width: 12px;
}

.tns-nav button.tns-nav-active {
  background-color: var(--bs-blue);
}

/* Hero Slider Styles */
.hero-slider-wrapper {
  position: relative;
}

.hero-slider-wrapper .tns-environment {
  position: relative;
}

.hero-slider-wrapper .tns-controls.theme-slides {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 1rem;
}

.hero-slider-wrapper .tns-controls.theme-slides button {
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-wrapper .tns-controls.theme-slides button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.hero-slider-wrapper .tns-hero-slides {
  overflow: hidden;
}

.hero-slider-wrapper .tns-nav {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero-slider-wrapper .tns-nav button {
  background-color: rgba(255, 255, 255, 0.5);
}

.hero-slider-wrapper .tns-nav button.tns-nav-active {
  background-color: #fff;
}

/* ======================================== */
/* Hero Slider with Thumbnail Navigation   */
/* ======================================== */

.hero-with-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 992px) {
  .hero-with-thumbnails {
    flex-direction: row;
  }

  .hero-main-slider {
    flex: 0 0 66.666%;
    max-width: 66.666%;
  }

  .hero-thumbnails-wrapper {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    display: flex;
    flex-direction: column;
  }
}

/* Thumbnails header - All Featured Articles link */
.hero-thumbnails-header {
  background-color: #f49511;
  padding: 0.75rem 1rem;
}

.hero-thumbnails-header .all-articles-link {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-thumbnails-header .all-articles-link:hover {
  text-decoration: underline;
}

/* Thumbnail navigation container */
.hero-thumbnails {
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: #3b5998;
}

.hero-thumbnails button {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: #3b5998;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1;
}

.hero-thumbnails button:last-child {
  border-bottom: none;
}

.hero-thumbnails button:hover {
  background-color: #4a6aa8;
}

.hero-thumbnails button.tns-nav-active {
  background-color: #2d4373;
  border-left: 4px solid #f49511;
}

.hero-thumbnails .thumb-title {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.hero-thumbnails .thumb-author {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.hero-thumbnails .thumb-author a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* Mobile: horizontal scrollable thumbnails */
@media (max-width: 991px) {
  .hero-with-thumbnails {
    flex-direction: column;
  }

  .hero-main-slider,
  .hero-thumbnails-wrapper {
    flex: none;
    max-width: 100%;
  }

  .hero-thumbnails {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-thumbnails::-webkit-scrollbar {
    display: none;
  }

  .hero-thumbnails button {
    flex: 0 0 auto;
    min-width: 200px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
  }

  .hero-thumbnails button:last-child {
    border-right: none;
  }

  .hero-thumbnails button.tns-nav-active {
    border-left: none;
    border-bottom: 3px solid #f49511;
  }

  .hero-thumbnails .thumb-title {
    font-size: 0.9rem;
  }

  .hero-thumbnails .thumb-author {
    font-size: 0.8rem;
  }
}