/* =========================================
   Islamic Light — Ultra Realistic Pillow Emboss Carousel
   Author: Md Ayesh Ali
   ========================================= */

.update-section {
  width: 100%;
  padding: 18px 8px 14px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* ৩D ভিউ কন্টেইনার */
.carousel-container {
  width: 100%;
  max-width: 900px;
  height: 265px;
  margin: 0 auto;
  position: relative;
  perspective: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

/* =========================================
   কার্ড বেস (হুবহু ছবির মতো সুস্পষ্ট ফোলা ৩D লুক)
   ========================================= */

.c-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 88%;
  max-width: 580px;
  height: 232px;
  margin-left: -44%;
  border-radius: 36px; /* ছবির মতো অত্যন্ত মসৃণ কার্ভ */
  
  /* 🔥 ছবির মতো ভার্টিক্যাল সিলিন্ড্রিকাল কার্ভ লাইটিং */
  background: linear-gradient(
    180deg, 
    #ffffff 0%, 
    #ebf0ee 28%, 
    #dbe3e0 72%, 
    #edf2f0 100%
  );
  
  /* অত্যন্ত সূক্ষ্ম চকচকে বর্ডার */
  border-top: 1.5px solid rgba(255, 255, 255, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.85);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1.5px solid rgba(0, 77, 64, 0.12);
  
  /* 🔥 ছবির মতো দ্বৈত ইনসেট লাইট ও নিচে স্পষ্ট ড্রপ শ্যাডো */
  box-shadow: 
    0 18px 28px -5px rgba(0, 77, 64, 0.18),
    0 8px 14px -3px rgba(0, 0, 0, 0.12),
    0 -3px 8px rgba(255, 255, 255, 0.95),
    inset 0 3px 4px rgba(255, 255, 255, 1),
    inset 0 -3px 5px rgba(0, 77, 64, 0.08);
    
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  user-select: none;
  cursor: pointer;

  /* স্লো-মোশন ট্রানজিশন */
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.4s ease,
              filter 1.4s ease,
              box-shadow 1.4s ease;
}

@media (min-width: 660px) {
  .c-card {
    margin-left: -290px;
  }
}

/* ডার্ক মোডেও বাস্তবসম্মত ফোলা ভাব */
[data-theme="dark"] .c-card {
  background: linear-gradient(
    180deg, 
    #2c3935 0%, 
    #1e2926 28%, 
    #151e1b 72%, 
    #212c29 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.6);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.8);
  box-shadow: 
    0 20px 32px rgba(0, 0, 0, 0.75),
    0 -2px 6px rgba(255, 255, 255, 0.05),
    inset 0 2px 3px rgba(255, 255, 255, 0.15),
    inset 0 -3px 5px rgba(0, 0, 0, 0.55);
}

/* =========================================
   ৩D পজিশন ও সাইজ স্কেলিং
   ========================================= */

/* মাঝখানের প্রধান সক্রিয় কার্ড (সর্বাধিক স্পষ্ট ও উঁচু) */
.c-card.active {
  transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  filter: none;
  box-shadow: 
    0 26px 40px -6px rgba(0, 77, 64, 0.24),
    0 12px 18px -4px rgba(0, 0, 0, 0.15),
    0 -4px 10px rgba(255, 255, 255, 1),
    inset 0 3px 5px rgba(255, 255, 255, 1),
    inset 0 -4px 6px rgba(0, 77, 64, 0.10);
}

[data-theme="dark"] .c-card.active {
  box-shadow: 
    0 28px 45px rgba(0, 0, 0, 0.88),
    0 -3px 8px rgba(255, 255, 255, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.22),
    inset 0 -4px 6px rgba(0, 0, 0, 0.65);
}

/* বাঁ দিকের কার্ড */
.c-card.prev-card {
  transform: translateX(-52%) translateZ(-180px) rotateY(36deg) scale(0.82);
  opacity: 0.45;
  z-index: 5;
  filter: brightness(0.92);
}

/* ডান দিকের কার্ড */
.c-card.next-card {
  transform: translateX(52%) translateZ(-180px) rotateY(-36deg) scale(0.82);
  opacity: 0.45;
  z-index: 5;
  filter: brightness(0.92);
}

/* পেছনের লুকানো কার্ড */
.c-card.hidden {
  transform: translateZ(-350px) scale(0.65);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* =========================================
   কার্ডের অভ্যন্তরীণ উপাদান
   ========================================= */

/* আইকন বক্স */
.c-icon {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(145deg, #005f4f, #004035);
  color: #fff;
  font-size: 25px;
  box-shadow: 
    0 8px 18px rgba(0, 77, 64, 0.32),
    0 -2px 6px rgba(255, 255, 255, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .c-icon {
  box-shadow: 
    0 8px 18px rgba(0, 0, 0, 0.7),
    0 -2px 6px rgba(255, 255, 255, 0.06);
}

.c-content {
  flex: 1;
  min-width: 0;
}

.c-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

/* ব্যাজ (ছোট ফোলা পিল লুক) */
.c-badge {
  background: linear-gradient(180deg, #ffffff 0%, #e1ebe6 100%);
  color: #005a4e;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 30px;
  box-shadow: 
    0 3px 6px rgba(0, 77, 64, 0.12),
    0 -1px 3px rgba(255, 255, 255, 0.95),
    inset 0 1px 2px rgba(255, 255, 255, 1);
}

[data-theme="dark"] .c-badge {
  background: linear-gradient(180deg, #273731 0%, #17211e 100%);
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.c-date {
  color: #777;
  font-size: 11.5px;
}

[data-theme="dark"] .c-date {
  color: #a0a0a0;
}

.c-title {
  color: #004d40;
  font-size: 17.5px;
  font-weight: 800;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .c-title {
  color: #4db6ac;
}

.c-desc {
  color: #555;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .c-desc {
  color: #c5c5c5;
}

/* অ্যাকশন বাটন */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 30px;
  background: linear-gradient(145deg, #00796b, #004d40);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 
    0 6px 14px rgba(0, 77, 64, 0.32),
    0 -2px 6px rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 18px rgba(0, 77, 64, 0.38),
    0 -2px 8px rgba(255, 255, 255, 0.9);
}

/* =========================================
   কন্ট্রোল বাটন ও ডটস
   ========================================= */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.c-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #ffffff 0%, #e2ece7 100%);
  color: #004d40;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 5px 10px rgba(0, 77, 64, 0.14),
    0 -2px 6px rgba(255, 255, 255, 1),
    inset 0 1px 2px rgba(255, 255, 255, 1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .c-nav {
  background: linear-gradient(180deg, #273731 0%, #17211e 100%);
  color: #fff;
  box-shadow: 
    0 5px 10px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.c-nav:hover {
  transform: scale(1.08);
}

.update-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.update-dot-item {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 20px;
  background: #d1ded9;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(255, 255, 255, 0.9);
  transition: width 0.3s ease, background 0.3s ease;
}

.update-dot-item.active {
  width: 24px;
  background: #004d40;
  box-shadow: 
    0 3px 6px rgba(0, 77, 64, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* =========================================
   মোবাইল রেসপনসিভ
   ========================================= */

@media (max-width: 500px) {
  .carousel-container {
    height: 285px;
  }

  .c-card {
    height: 272px;
    display: block;
    padding: 20px 18px;
    width: 86%;
    margin-left: -43%;
    border-radius: 30px;
  }

  .c-card.prev-card {
    transform: translateX(-42%) translateZ(-150px) rotateY(30deg) scale(0.84);
  }

  .c-card.next-card {
    transform: translateX(42%) translateZ(-150px) rotateY(-30deg) scale(0.84);
  }

  .c-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 15px;
    font-size: 21px;
  }

  .c-title {
    font-size: 16px;
  }

  .c-desc {
    font-size: 12.5px;
  }
   }
