.nb-casestudy {
  padding: 60px 0 40px;
  background: #fff;
}

.nb-casestudy__header {
  margin-bottom: 40px; text-align: center;
}
.nb-casestudy__header .nb-section-title h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color:var(--text);
  margin-bottom: 10px;margin-top:0
}
.nb-casestudy__header .nb-section-title p {
 font-size: 16px; font-weight: 500;
  color: #1E293B;
  
  line-height: 1.65; text-align: center;
}

.nb-casestudy__slider-wrap {
  overflow: hidden;
  width: 100%;
  margin-bottom: 30px;
}

.nb-casestudy__track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Desktop: Show 2 cards */
.nb-casestudy__card {
  flex: 0 0 calc(50% - 12px);
  min-width: calc(50% - 12px);
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
 
  text-decoration: none;
  color: inherit;

}

.nb-casestudy-card{padding:10px; background: #f1f5f9;}
.nb-casestudy__body{padding-top:20px;padding-bottom: 15px;}
.nb-casestudy__img {
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.nb-casestudy__img img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block; border-radius: 12px;
}

.nb-casestudy__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #475569;
  margin-bottom: 12px;
  font-weight: 500;
}

.nb-casestudy__body h3 {
  font-size: 24px;
  font-weight: 600;
  color:#1E293B;
  line-height: 1.5;margin:0;
}

/* Controls */
.nb-casestudy__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.nb-casestudy__progress {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.nb-casestudy__progress-track {
  flex: 1;
  height: 4px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.nb-casestudy__progress-bar {
  height: 100%;
  background:#1A508E;
  border-radius: 99px;
  width: 0%;
  transition: width 0.5s ease;
}
.nb-casestudy__count {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.nb-cs-current { color: #1a1a2e; }

.nb-casestudy__nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.nb-casestudy__nav button {
  width: 44px; 
  height: 44px;
  border-radius:8px;
  border:none;
  background: #E2E8F0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer;
  color:var(--text);
  transition: all 0.3s ease;
}
.nb-casestudy__nav button:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* Mobile: Show 1 card */
@media(max-width: 768px) {
  .nb-casestudy{padding:40px 0}
  .nb-casestudy__card {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .nb-casestudy__body h3 { 
    font-size: 18px; 
  }
  .nb-casestudy__controls {
    flex-direction: column;
    gap: 16px;
  }
  .nb-casestudy__progress {
    width: 100%;
  }
}
@media(max-width: 568px) {
   .nb-casestudy{padding:30px 0}
}

@media(max-width: 480px) {
  .nb-casestudy__img {
    height: 220px;
  }
  .nb-casestudy__body {
    padding: 20px;
  }
 
}