/* ============================================================
   Elementor Case Study Slider — slider.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Manrope:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ── Slider shell ── */
.ecss-slider {
  width: 100%;
  overflow: hidden;
  padding: 48px 0 0;
  user-select: none;
  position: relative;
/*   font-family: 'Manrope', sans-serif; */
  box-sizing: border-box;
}
.ecss-slider *, .ecss-slider *::before, .ecss-slider *::after {
  box-sizing: border-box;
}

/* ── Track ── */
.ecss-track {
  display: flex;
  gap: 0;
  will-change: transform;
}
.ecss-track.anim {
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Slides ── */
.ecss-slide {
  flex-shrink: 0;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ecss-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: none;
}
.ecss-slide:not(.active) {
  opacity: 0.42;
  transform: scale(0.965);
  cursor: pointer;
}
.ecss-slide:not(.active):hover {
  opacity: 0.62;
  transform: scale(0.973);
}

/* ── Card ── */
.ecss-card {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}
.ecss-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* ── White content panel ── */
.ecss-card__panel {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.97);
  padding: 44px 42px 38px;
  width: min(490px, 54%);
  margin: 28px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
}

/* ── Title ── */
.ecss-card__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  color: #111;
  margin: 0 0 18px;
  line-height: 1.12;
}

/* ── Subtitle ── */
.ecss-card__subtitle {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
.ecss-card__subtitle-bar {
  flex-shrink: 0;
  width: 3px;
  align-self: stretch;
  min-height: 20px;
  background: #f25c05;
  border-radius: 2px;
}
.ecss-card__subtitle-text {
  font-size: clamp(13.5px, 1.1vw, 16px);
  font-style: italic;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin: 0;
}
.ecss-card__subtitle-text strong {
  color: #FF6300 !important;
  font-style: normal;
  font-weight: 700;
}

/* ── Body ── */
.ecss-card__body {
  font-size: clamp(13px, 0.95vw, 14.5px);
  color: #444;
  line-height: 1.78;
  margin: 0 0 26px;
  flex: 1;
}

/* ── Tags ── */
.ecss-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ecss-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 15px;
	border: 1.5px solid #EBEDEE;
	border-radius: 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: #333;
	background: #F9F9F9;
	transition: border-color 200ms, color 200ms;
	white-space: nowrap;
/* 	font-family: 'Manrope', sans-serif; */
}
.ecss-card__tag:hover {
  border-color: #f25c05;
  color: #f25c05;
}
.ecss-card__tag svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── Bottom bar ── */
.ecss-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px 52px;
}

/* ── Nav buttons ── */
.ecss-nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(242,92,5,0.5);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 220ms, border-color 220ms, transform 180ms;
}
.ecss-nav:hover {
  background: #f25c05;
  border-color: #f25c05;
  transform: scale(1.1);
}
.ecss-nav:active { transform: scale(0.91); }
.ecss-nav svg    { display: block; }

/* ── Dots ── */
.ecss-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ecss-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.22);
  cursor: pointer;
  transition: width 320ms cubic-bezier(0.4,0,0.2,1), background 320ms;
}
.ecss-dot.active {
/*   width: 28px; */
  background: #142029;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 960px) {
  .ecss-card__panel {
    width: min(460px, 65%);
    padding: 36px 32px 30px;
    margin: 22px;
  }
  .ecss-card { min-height: 400px; }
}

@media (max-width: 700px) {
  .ecss-card__panel {
    width: calc(100% - 32px);
    margin: 16px;
    padding: 28px 24px 24px;
    border-radius: 14px;
  }
  .ecss-card {
    min-height: 480px;
    align-items: flex-start;
  }
  .ecss-card__bg { opacity: 0.35; }
}

@media (max-width: 480px) {
  .ecss-card__panel {
    width: calc(100% - 14%) !important;
    margin: 12px;
    padding: 24px 20px 20px;
  }
  .ecss-card { min-height: 500px; }
  .ecss-card__title { font-size: 22px; }
  .ecss-card__tag   { font-size: 12px; padding: 6px 12px; }
}
