  .slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
  }
  .slider iframe {padding-top:60px; }
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(80%);
    transform: scale(1);
    animation: zoomEffect 10s ease-in-out infinite;
  }

  /* Zoom animation for video-like effect */
  @keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  .active {
    opacity: 1;
    z-index: 1;
  }

  /* Caption styling */
  .caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
   font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    
    color: #fff;
    padding: 14px 30px;
        text-shadow: 0px 3px 10px rgba(0,0,0,0.6);   
    letter-spacing: 0.5px;
    text-align: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  }

  .active .caption {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }

  /* Always visible navigation buttons */
  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 21px;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
  }

  .prev:hover, .next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
  }

  .prev { left: 25px; }
  .next { right: 25px; }

  /* Dots for progress effect (optional) */
  .dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }

  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease;
  }

  .dot.active {
    background: #fff;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .slider { height: 60vh; }
    .caption { font-size: 1rem; bottom: 30px; padding: 10px 18px; }
    .prev, .next { font-size: 1.4rem; padding: 10px 14px; }
  }