.modern-slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Main Image Container */
.main-image-container {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1rem;
}

.slide-img.active {
  opacity: 1;
  transform: translateX(0);
  animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

.slide-img {
  animation: slideOut 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation Buttons */
.nav-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.9);
}

.main-image-container:hover .nav-btn {
  opacity: 1;
  transform: scale(1);
}

.nav-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn svg {
  transition: transform 0.3s ease;
}

.nav-btn:hover svg {
  transform: scale(1.2);
}

/* Slide Counter */
.slide-counter {
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 2;
  animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Play Button */
.play-btn {
  width: 44px;
  height: 44px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.9) !important;
  transform: scale(1.1);
}

.play-btn {
  transform: translateX(1px);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  padding: 0 20px;
}

.thumbnail-item {
  position: relative;
  width: 120px;
  height: 80px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  filter: grayscale(30%);
}

.thumbnail-item:hover {
  transform: translateY(-5px) scale(1.05);
  opacity: 0.8;
  filter: grayscale(0%);
}

.thumbnail-item.active {
  opacity: 1;
  transform: translateY(-5px) scale(1.05);
  filter: grayscale(0%);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumbnail-item.active .thumbnail-img {
  transform: scale(1.1);
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-item.active .thumbnail-overlay {
  opacity: 0.3;
}

/* Progress Bar */
.progress-container {
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 20px;
}

.progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  transition: width 0.3s ease;
  animation: progressAnimation 5s linear infinite;
}

@keyframes progressAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-image-container {
    aspect-ratio: 4/3;
  }

  .nav-btn {
    width: 48px;
    height: 48px;
    opacity: 0.8;
  }

  .thumbnail-item {
    width: 100px;
    height: 70px;
  }

  .thumbnail-gallery {
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .thumbnail-item {
    width: 80px;
    height: 60px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }
}

/* Hover Effects */
.thumbnail-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  border: 2px solid transparent;

  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-item.active::after {
  opacity: 1;
  animation: borderGlow 2s infinite;
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Loading Animation */
.slide-img{
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}







.title-post{
    font-family: "Khmer OS Muol Light";
}
.title-description{
    font-family: "Khmer OS Siemreap";
    letter-spacing: 1px;
    line-height: 1.5;
}

.description-post{
    font-family: "Khmer OS Siemreap";
    text-align: justify;
    line-height: 1.5;
}
