/* Global CSS reset to eliminate default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.carousel-container {
  /* max-width: 100%; */
  max-width: 1300px !important;
  margin: 0 auto;
  padding: 0 48px;
  overflow-x: hidden;
  position: relative;
}

/* Glide basic styles */
.glide {
  position: relative;
  width: 90%;
  box-sizing: border-box;
  margin: 0 auto;
}

.glide__track {
  overflow: visible;
  /* padding: 0 100px; */
  margin-top: 0px;
  padding-top: 0px;
}

.glide__slides {
  position: relative;
  width: 100%;
  list-style: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  touch-action: pan-Y;
  overflow: visible;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  margin-top: 0px;
  padding-top: 0px;
}

.glide__slide {
  position: relative;
  display: inline-block;
  vertical-align: top;
  white-space: normal;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s ease;
  width: 300px;
}

/* Move active/inactive visual styles to the image element to avoid layout shifts */
.glide__slide .carousel-image {
  opacity: 1;
  transform: none;
}

/* Navigation arrows */
.glide__arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
  z-index: 10;
}

.glide__arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  z-index: 2;
  padding: 15px 20px;
  background-color: #858585;
  border: none;
  border-radius: 50px;
  box-shadow: 0 0.25em 0.5em 0 rgba(0, 0, 0, 0.1);
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 150ms ease, border 300ms ease-in-out;
  pointer-events: auto;
  width: 50px;
  height: 50px;
}

.glide__arrow svg {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.glide__arrow:hover {
  opacity: 1;
  background-color: #666666;
}

.glide__arrow--left {
  left: -50px;
}

.glide__arrow--right {
  right: -50px;
}

.glide__arrow--right svg {
  transform: rotate(180deg);
}



/* Touch feedback */
.glide.touching .glide__slide {
  transition: none;
}

/* Card styles */
.glide_card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin: 1px;
  display: block;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 95%;
  height: auto;
  min-height: 120px;
}

.glide_card .carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.glide_card:hover .carousel-image {
  transform: scale(1.05);
}

/* Hide scrollbars */
.glide__track {
  overflow: hidden !important;
}

.glide__slides {
  overflow: hidden !important;
}

/* Hide scrollbars for webkit browsers */
.glide__track::-webkit-scrollbar,
.glide__slides::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbars for Firefox */
.glide__track,
.glide__slides {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0 24px;
    overflow: hidden;
    margin-top: 0px;
    max-width: 100%;
  }
  
  .glide__track {
    /* padding: 0 10px; */
    overflow: hidden;
    margin-top: 0px;
    padding-top: 0px;
  }
  
  /* Ensure slides stretch to same height on mobile */
  .glide__slide {
    display: flex;
    align-items: flex-start;
    width: 150px;
  }
  
  .glide_card {
      padding: 0;
      margin: 1px;
      border-radius: 8px;
      width: 95%;
      height: auto;
      min-height: 35px;
  }

  .glide_card .carousel-image {
      height: 100%;
      border-radius: 8px;
  }
  
  .placeholder-img {
      height: 100%;
      border-radius: 8px;
      font-size: 12px;
  }

  .glide__arrow {
      padding: 10px 15px;
      font-size: 14px;
      width: 40px;
      height: 40px;
  }

  .glide__arrow--left {
      left: -30px;
  }

  .glide__arrow--right {
      right: -30px;
  }
  
  /* Mobile indicator position adjustment */
  .glide__bullets {
    bottom: 20px;
  }
}

/* Placeholder image styles */
.placeholder-img {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

/* Hide breadcrumb */
#contents #breadcrumb {
  display: none;
}

/* Hide carousel bullets/dots completely */
.glide__bullets,
.glide__bullet {
  display: none !important;
}
