/* Wrapper - ক্যালেন্ডার + এনাউন্সমেন্ট এক লাইনে */
.schedule-announcement-wrapper {
  display: flex;
  gap: 2px; /* gap বড়ানো */
  align-items: flex-start;
  margin: 30px;
}

/* কাস্টম এনাউন্সমেন্ট স্লাইডার বক্স */
.custom-announcement-section {
  flex: 0 0 650px;
  margin-top: 0;
  padding: 15px 25px;   /* আগে 40px → অনেক কমানো হলো */
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* কাস্টম স্লাইডার container */
.custom-slider-container {
  position: relative;
  width: 100%;
  min-height: 260px; /* আগে 400px → ছোট করা হলো */
  height: auto;
  overflow: hidden;
  border-radius: 14px;
}

/* কাস্টম স্লাইড wrapper */
.custom-slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.custom-announcement-section h2 {
  text-align: center;   /* মাঝখানে আনা */
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1px;
  color: #333;
}




/* ইমেজ */
.custom-slide img,
.custom-slide video {
  max-width: 100%;
  height: auto;
  object-fit: cover; 
  border-radius: 14px;
  display: block;
  margin: 0 auto;
}

/* প্রতিটি স্লাইড */
.custom-slide { 
  position: relative;  /* title absolute বসানোর জন্য */
  min-width: 100%;
  display: flex;          
  justify-content: center;
  align-items: center;
  padding: 5px;
}

/* টাইটেল */
.custom-slide-title {
  position: absolute;
  bottom: 8px;   /* ইমেজের নিচে বসবে */
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  border-radius: 6px;
  max-width: 90%;
  z-index: 5;
}



/* Prev / Next বাটন */
.customPrevBtn, .customNextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  font-size: 22px;
}
.customPrevBtn { left: 14px; }
.customNextBtn { right: 14px; }
.customPrevBtn:hover, .customNextBtn:hover {
  background: rgba(0,0,0,0.85);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .schedule-announcement-wrapper {
    flex-direction: column;
  }
  .custom-announcement-section {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 2px;
    padding: 25px;
  }
  .custom-slider-container {
    height: 280px;
  }
}

/* মোবাইল */
@media screen and (max-width: 480px) {
  .custom-slider-container {
    height: 180px;  /* container height ছোট */
  }

  .custom-slide img, 
  .custom-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 14px;
  }

  .custom-slide-title {
    font-size: 12px;
    padding: 3px 6px;
    bottom: 6px;
  }
}
