﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
}

/* মেইন স্লাইডার কন্টেইনার (৯৫% চওড়া ও স্পেস) */
.slideshow-container {
  width: 95%;
  max-width: 1400px;
  margin: 20px auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  
  /* ফ্লিকার বন্ধ করার জন্য CSS Grid - সব ছবি একই জায়গায় থাকবে */
  display: grid;
  grid-template-areas: "stack";
}

/* সব স্লাইড একটার ওপর আরেকটা লেয়ার হিসেবে থাকবে */
.mySlides {
  grid-area: stack;
  opacity: 0; /* ডিফল্টভাবে আবছা থাকবে */
  transition: opacity 0.8s ease-in-out; /* স্মুথ ট্রানজিশন (ফ্লিকার ছাড়া) */
  pointer-events: none; /* ইন-অ্যাক্টিভ স্লাইডের বাটনে ক্লিক বন্ধ রাখতে */
  position: relative;
}

/* অ্যাক্টিভ স্লাইড স্মুথভাবে ভেসে উঠবে */
.mySlides.active {
  opacity: 1;
  pointer-events: auto; /* বাটনের ক্লিক আবার চালু হবে */
}

.mySlides img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---------------------------------
   বাটনের ডিজাইন
----------------------------------- */
.shop-now-btn {
  position: absolute;
  bottom: 12%;
  left: 5%;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.3s;
  z-index: 5;
  cursor: pointer;
}

.shop-now-btn:hover {
  transform: scale(1.05);
}

/* Solid Button */
.btn-solid {
  background-color: #FFE600;
  color: #000;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Semi-transparent Button */
.btn-semi {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

/* Complete Transparent Button */
.btn-transparent {
  background-color: transparent;
  color: #fff;
  border: 2px solid #ffffff;
}

/* ---------------------------------
   ডাইনামিক ডট পজিশনিং
----------------------------------- */
.dots-container {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; 
  z-index: 10;
  background: rgba(0, 0, 0, 0.2); 
  padding: 6px 14px;
  border-radius: 20px;
}

.dot {
  height: 8px;
  width: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #00E676;
  transform: scale(1.3);     
}

/* রেসপন্সিভ মোবাইল ভিউ */
@media screen and (max-width: 768px) {
  .slideshow-container {
    width: 95%;
    border-radius: 14px;
  }
  .shop-now-btn {
    padding: 8px 18px;
    font-size: 12px;
    bottom: 15%;
  }
}