/* --- Swiper Base --- */
.swiper {
  padding-bottom: 70px;
  perspective: 1200px;
}
.swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0.85;
  width: 300px; /* Fallback width for better calculation */
}

/* --- Active Center Slide --- */
.swiper-slide-active {
  transform: translateZ(80px) scale(1.05) rotateY(0deg);
  opacity: 1;
  z-index: 10;
}

/* --- Side Tilt --- */
.swiper-slide-prev {
  transform: translateX(-60px) rotateY(15deg) translateZ(-60px);
  opacity: 0.75;
}
.swiper-slide-next {
  transform: translateX(60px) rotateY(-15deg) translateZ(-60px);
  opacity: 0.75;
}

/* --- Navigation Arrows --- */
.swiper-button-next,
.swiper-button-prev {
  color: white;
  top: 45%; /* Adjusted slightly */
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 50; /* Increased Z-Index to ensure it's clickable */
  position: absolute; /* Ensure absolute positioning */
}

/* Explicit positioning to prevent override issues */
.swiper-button-next { right: 10px; left: auto; }
.swiper-button-prev { left: 10px; right: auto; }

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

/* --- Swiper Arrow Icon Sizing --- */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px; /* Make the arrow icon smaller and cleaner */
    font-weight: bold;
}

/* --- Pagination --- */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e0;
  opacity: 1;
  margin: 0 6px !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 9999px;
  background: #2563eb;
}

/* --- Blog Card --- */
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 960 / 640;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover img {
  transform: scale(1.05);
}
.title-link {
  padding: 1rem 0;
  color: #2563eb;
  transition: transform 0.3s ease;
}
.title-link:hover {
  transform: translateY(-3px);
}
.tab-btn.active {
  background: #111827 !important;
  color: #fff !important;
}

/* 🔥 Fade Animation */
.fade-up-tabs {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: all 0.8s ease-out;
}
.fade-up-tabs.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}