/* Native Elementor content stays readable before motion is enhanced. */
.tcs-care-section {
  --tcs-care-image-height: 290px;
  --tcs-care-type-size: clamp(64px, 9.5vw, 156px);
  color: #0a2f47;
}
.tcs-care-section :is(.e-con, .elementor-widget) { min-width: 0; }
.tcs-care-section p { margin: 0; }
.tcs-care-section .tcs-care-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.tcs-care-section .tcs-care-cards > .e-con-inner {
  align-items: flex-start;
  justify-content: space-between;
}
.tcs-care-section .tcs-care-card { flex-shrink: 0; }
.tcs-care-section .tcs-care-image {
  width: 100%;
  height: var(--tcs-care-image-height);
  overflow: hidden;
  border-radius: 16px;
}
.tcs-care-section .tcs-care-image .elementor-widget-container { height: 100%; }
.tcs-care-section .tcs-care-image img {
  display: block;
  width: 100% !important;
  height: var(--tcs-care-image-height) !important;
  object-fit: cover;
}
.tcs-care-section.is-care-reveal-ready:not(.is-care-static) .tcs-care-image {
  clip-path: polygon(0 0, var(--tcs-care-wipe, 200%) 0, 0 var(--tcs-care-wipe, 200%));
  transition: clip-path .16s linear;
}
.tcs-care-section.is-care-reveal-ready:not(.is-care-static) .tcs-care-image img {
  transform: scale(var(--tcs-care-zoom, 1));
  transition: transform .16s linear;
}
.tcs-care-section .tcs-care-caption { position: relative; z-index: 2; }
.tcs-care-section .tcs-care-number { color: #0b6fa8; }
.tcs-care-section .tcs-care-title .elementor-heading-title { text-wrap: balance; }
.tcs-care-section .tcs-care-marquee {
  width: 100% !important;
  max-width: 100%;
  margin: 0 0 32px !important;
  padding: 0 28px;
  pointer-events: none;
}
.tcs-care-section .tcs-care-marquee .elementor-heading-title {
  color: #1a1918 !important;
  font-family: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif !important;
  font-size: clamp(32px, 5vw, 68px) !important;
  font-weight: 400 !important;
  font-style: normal;
  letter-spacing: -.055em !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}
.tcs-care-section .tcs-care-marquee-segment[aria-hidden="true"] { display: none; }
.tcs-care-section.is-care-enhanced:not(.is-care-static) .tcs-care-marquee {
  position: absolute;
  inset-inline: 0;
  top: calc(var(--tcs-care-image-height) - var(--tcs-care-type-size) * .55);
  z-index: 1;
  margin: 0 !important;
  padding: 0;
}
.tcs-care-section.is-care-enhanced:not(.is-care-static) .tcs-care-marquee .elementor-heading-title {
  display: flex;
  width: max-content;
  max-width: none;
  margin: 0;
  font-size: var(--tcs-care-type-size) !important;
  white-space: nowrap;
  text-wrap: nowrap;
  animation: tcs-care-marquee var(--tcs-care-duration, 20s) linear infinite;
  will-change: transform;
}
.tcs-care-section.is-care-enhanced:not(.is-care-static) .tcs-care-marquee-segment {
  display: block;
  flex: none;
  box-sizing: border-box;
  min-width: 100vw;
  padding-inline-end: .45em;
}
.tcs-care-section.is-care-enhanced.is-care-paused .tcs-care-marquee .elementor-heading-title {
  animation-play-state: paused;
}
.tcs-care-section .tcs-care-motion-toggle {
  border: 1px solid #0a2f4740;
  border-radius: 999px;
  background: transparent;
  color: #0a2f47;
  font: 500 14px/1.2 "Mukta Vaani", sans-serif;
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
}
.tcs-care-section .tcs-care-motion-toggle[hidden] { display: none; }
.tcs-care-section .tcs-care-motion-toggle:hover { background: #e3f1f9; }
.tcs-care-section .tcs-care-motion-toggle:focus-visible { outline: 2px solid #0b6fa8; outline-offset: 4px; }
@keyframes tcs-care-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 1024px) {
  .tcs-care-section {
    --tcs-care-image-height: 250px;
    --tcs-care-type-size: clamp(58px, 8.2vw, 90px);
  }
}
@media (max-width: 767px) {
  .tcs-care-section {
    --tcs-care-image-height: 300px;
    --tcs-care-type-size: clamp(38px, 9vw, 64px);
  }
  .tcs-care-section .tcs-care-cards > .e-con-inner { flex-direction: column; align-items: center; gap: 32px; }
  .tcs-care-section .tcs-care-card { --width: min(100%, 320px) !important; width: min(100%, 320px) !important; }
  .tcs-care-section .tcs-care-card--2 { margin-top: 0 !important; }
  .tcs-care-section .tcs-care-marquee { padding: 0 22px; }
  .tcs-care-section.is-care-enhanced:not(.is-care-static) .tcs-care-marquee {
    position: relative;
    top: auto;
    margin-bottom: 32px !important;
  }
}
/* Motion preferences also work if they change before JavaScript responds. */
@media (prefers-reduced-motion: reduce) {
  .tcs-care-section.is-care-reveal-ready:not(.is-care-static) .tcs-care-image {
    clip-path: none;
    transition: none;
  }
  .tcs-care-section.is-care-reveal-ready:not(.is-care-static) .tcs-care-image img {
    transform: none;
    transition: none;
  }
  .tcs-care-section.is-care-enhanced:not(.is-care-static) .tcs-care-marquee {
    position: relative;
    top: auto;
    margin-bottom: 32px !important;
    padding: 0 28px;
  }
  .tcs-care-section.is-care-enhanced:not(.is-care-static) .tcs-care-marquee .elementor-heading-title {
    display: block;
    width: 100%;
    font-size: clamp(32px, 5vw, 68px) !important;
    white-space: normal;
    text-wrap: balance;
    animation: none;
    transform: none;
    will-change: auto;
  }
  .tcs-care-section.is-care-enhanced:not(.is-care-static) .tcs-care-marquee-segment { min-width: 0; padding: 0; }
  .tcs-care-section .tcs-care-marquee-segment[aria-hidden="true"] { display: none !important; }
  .tcs-care-section .tcs-care-motion-toggle { display: none; }
}
