.slider-two {
  display: flex !important;
  flex-wrap: wrap;
}
.slider-two .card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
.card-case-study {
  position: relative;
  overflow: hidden;
  /*width: 100%;
    */
  aspect-ratio: 4 / 3;
}
.card-case-study img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  justify-content: space-between !important;
}
.card-text {
  margin-top: auto !important;
}
/* ---- Hero banner (orange block under "Case Study") ---- */
.case-hero-banner {
  background: #f97e16;
  border-radius: 20px;
  padding: 27px;
  color: #ffffff;
  overflow: hidden;
}
.case-hero-banner .case-hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 20px;
}
.case-hero-banner .case-hero-desc {
  font-size: 20px;
  line-height: 32px;
  color: #ffffff;
  max-width: 430px;
  margin-bottom: 22px;
}
.case-industry-badge {
  display: inline-block;
  background: #ffffffb5;
  border: 2px solid #ffffff;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
}
.case-hero-img-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}
.case-hero-img-wrap img {
  width: 100%;
  height: auto;
}
.case-intro-img-box img {
  max-width: 100%;
  border-radius: 16px;
}
/* ---- Service tag pills ---- */
.case-tag-badge {
  display: inline-block;
  border: 1.5px solid #ffb533;
  color: #1a1a1a;
  background: #ffffff;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 15px;
  margin: 0 10px 12px 0;
}
/* ---- Challenges bullet list ---- */
.case-bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.case-bullet-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.case-bullet-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  color: #1a1a1a;
  font-size: 16px;
}
.case-shot-box img {
  max-width: 100%;
  border-radius: 10px 10px 0 0;
}
.case-study-section {
  background: #ffffff;
  padding: 20px 0;
}
.case-study-card {
  display: block;
  height: 100%;
}
.case-study-card:focus-visible {
  outline: none;
}
.case-study-card:focus-visible .card-inner {
  outline: 2px solid #c9a227;
  outline-offset: 3px;
}
.case-study-card .card-inner {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, #fff7e8 0%, #ffeac4 100%);
  border: 1px solid #ffb533 !important;
  border-radius: 16px !important;
  padding: 14px !important;
  padding-right: 44px !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
  will-change: transform;
  box-shadow: 0px 4px 12px 0px #00000008;
}
.case-study-card:hover .card-inner {
  background: #ffffff;
  border-color: #c9a227 !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(20, 32, 74, 0.11);
}
/* ---- Thumbnail ---- */
.case-study-card .card-img-wrapper {
  width: 34%;
  max-width: 190px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f2efe8;
}
.case-study-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}
/* ---- Text ---- */
.case-study-card .card-content {
  min-width: 0;
}
.case-study-card .card-title {
  font-size: 24px;
  font-weight: 400 !important;
  line-height: 1.3;
  color: #14204a;
  transition: color 0.22s ease;
}
.case-study-card:hover .card-title {
  color: #0e1a3c;
}
.case-study-card .card-tags {
  font-weight: 400;
  font-size: 17px !important;
  line-height: 1.35;
  color: #6b6a66 !important;
}
.case-study-card .card-tags .dot {
  color: #c9a227;
  font-size: 11px;
  vertical-align: 2px;
  margin: 0 4px;
}
.case-study-card:hover .card-inner::after {
  opacity: 1;
  transform: translate(0, -50%);
}
/* ---- Tablet ---- */
@media (max-width: 991.98px) {
  .case-study-card .card-title {
    font-size: 21px;
  }
  .case-study-card .card-tags {
    font-size: 15px !important;
  }
}
/* ---- Mobile ---- */
@media (max-width: 575.98px) {
  .case-study-card .card-inner {
    padding: 12px !important;
    padding-right: 34px !important;
  }
  .case-study-card .card-img-wrapper {
    width: 38%;
    max-width: 130px;
  }
  .case-study-card .card-title {
    font-size: 18px;
  }
  .case-study-card .card-tags {
    font-size: 14px !important;
  }
  .case-study-card .card-inner::after {
    right: 12px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-study-card .card-inner,
  .case-study-card .card-inner::after {
    transition: none;
  }
  .case-study-card:hover .card-inner {
    transform: none;
  }
}
/* Equal Height Card Wrapper Fix */
.case-card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
/* Fixed Height Container Only for Image & Overlay */
.portfolio-card-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  flex-shrink: 0;
}
.portfolio-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Card Details Below Image */
.case-card-wrapper .card-body-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
  padding-top: 12px;
}
.case-card-wrapper .text-line {
  font-size: 16px;
  margin-bottom: 4px;
  color: #000000;
  font-weight: 400;
}
.case-card-wrapper .card-text {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin-top: 2px;
  line-height: 1.3;
}
.case-study-card {
  transition: transform 0.3s ease;
}
.case-study-card:hover {
  transform: translateY(-4px);
}
.card-inner {
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  background-color: #e8e6e4a5;
}
.case-study-card:hover .card-inner {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0 !important;
}
.card-img-wrapper {
  width: 150px;
  /* height: 100px;
     */
  overflow: hidden;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
.case-study-card:hover .card-img-wrapper img {
  /* transform: scale(1.05);
     */
}
.card-tags {
  text-transform: capitalize !important;
  color: #000;
  font-size: 18px !important;
  line-height: 1.2;
}
.dot {
  color: #a0a0a0;
  margin: 0 2px;
}
@media (max-width: 991px) {
  .case-hero-banner .case-hero-title {
    font-size: 42px;
  }
}
@media (max-width: 767px) {
  
  .case-hero-banner {
    text-align: center;
    padding: 30px 22px;
  }
  .case-hero-banner .case-hero-title {
    font-size: 46px;
  }
  .case-hero-banner .case-hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .case-hero-img-wrap {
    margin-top: 24px;
  }
  .case-intro-img-box {
    margin-top: 20px;
    min-height: 280px;
  }
  .case-shot-box {
    margin-bottom: 16px;
  }
}

/* Card Container */
.case-study-card {
  transition: transform 0.3s ease;
  position: relative;
}

.case-study-card:hover {
  transform: translateY(-4px);
}

.case-study-card .card-inner {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid var(--card-border-color, #e2e8f0);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.case-study-card:hover .card-inner {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Left Image Box */
.case-study-card .card-img-wrapper {
  width: 50%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-study-card .card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Right Content Box */
.case-study-card .card-content {
  width: 50%;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
}

/* Custom Span Badge Button */
.case-study-card .custom-card-btn {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--btn-color, #333);
  background-color: transparent;
  border: 1px solid var(--btn-color, #333);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 5px;
  right: 20px;
}

.case-study-card:hover .custom-card-btn {
  background-color: var(--btn-color, #333);
  color: #ffffff;
}

/* Card Title */
.case-study-card .card-title {
  font-size: 30px;
  font-weight: 600;
  color: #000;
  line-height: 32px;
}

/* Bullet Points Tag List */
.case-study-card .card-tags-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study-card .card-tags-list li {
  font-size: 16px;
  color: #6b6a66;
  position: relative;
  padding-left: 14px;
  /* margin-bottom: 4px; */
  line-height: 26px;
}

.case-study-card .card-tags-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: #94a3b8;
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 575.98px) {
  .case-study-card .card-inner {
    flex-direction: column;
  }
  .case-study-card .card-img-wrapper,
  .case-study-card .card-content {
    width: 100%;
  }
  .case-study-card .card-img-wrapper {
    min-height: 160px;
  }
  .case-study-card .card-title {
    font-size: 18px;
  }
}
