/* ===============================
   Global Direction Variable
================================ */
.bdt-style-1,
.bdt-style-2 {
  --dir: 1;
}
html[dir="rtl"] .bdt-style-1,
html[dir="rtl"] .bdt-style-2,
:dir(rtl) .bdt-style-1,
:dir(rtl) .bdt-style-2 {
  --dir: -1;
}
/* ===============================
   Animated Card Item
================================ */
.bdt-ep-animated-card-item {
  width: auto;
  max-inline-size: 350px;
  margin-inline: auto;
  block-size: 650px;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  position: relative;
}
/* ===============================
   Circle Background
================================ */
.bdt-ep-animated-card-circle {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}
.bdt-ep-animated-card-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #f9fdff;
  clip-path: circle(120px at center);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
/* ===============================
   Image Wrap
================================ */
.bdt-ep-animated-card .bdt-ep-animated-card-img-wrap {
  inline-size: 100%;
  block-size: 100%;
}
.bdt-ep-animated-card .bdt-ep-animated-card-img-wrap img {
  block-size: 300px;
  inline-size: 330px;
}
/* ===============================
   Animated Image
================================ */
.bdt-ep-animated-card-img {
  position: absolute;
  inset-block-start: 50%;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
/* ===============================
   Animated Content
================================ */
.bdt-ep-animated-card-content {
  position: absolute;
  inset-block-start: 0;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
/* ===============================
   Text Styles
================================ */
.bdt-ep-animated-card-sub-title {
  margin: 0;
  padding-block-end: 10px;
  font-size: 20px;
  text-transform: capitalize;
  color: #f0f0f1;
  transition: all 0.3s ease;
  font-weight: 500;
}
.bdt-ep-animated-card-title {
  margin: 0;
  font-size: 40px;
  padding-block-end: 10px;
  text-transform: capitalize;
  color: #fff;
  transition: all 0.3s ease;
}
.bdt-ep-animated-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(246, 246, 246, 0.671);
  padding-block-end: 10px;
}
.bdt-ep-animated-card-btn {
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  text-decoration: none;
  color: rgba(246, 246, 246, 0.904);
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}
.bdt-ep-animated-card-btn i,
.bdt-ep-animated-card-btn svg {
  opacity: 0;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}
.bdt-ep-animated-card-btn:hover {
  color: #fff;
}
.bdt-ep-animated-card-btn:hover i,
.bdt-ep-animated-card-btn:hover svg {
  opacity: 1;
  transform: translateX(10px);
}
.bdt-ep-animated-card-btn svg {
  inline-size: 1em;
  block-size: 1em;
  fill: rgba(246, 246, 246, 0.904);
}
/* ===============================
   Hover Effects
================================ */
.bdt-ep-animated-card:hover .bdt-ep-animated-card-circle::before {
  background: #1e87f0;
  clip-path: circle(1200px at center);
}
.bdt-ep-animated-card:hover .bdt-ep-animated-card-img {
  block-size: 300px;
  inset-block-start: 75%;
}
.bdt-ep-animated-card:hover .bdt-ep-animated-card-content {
  opacity: 1;
  visibility: visible;
}
/* ===============================
   Style 1 (Right / inline-end)
   RTL-safe via logical properties
================================ */
.bdt-style-1 .bdt-ep-animated-card-img {
  inset-inline-end: 50%;
  transform: translate(calc(50% * var(--dir)), -50%);
}
.bdt-style-1 .bdt-ep-animated-card-content {
  inset-inline-end: 20%;
}
.bdt-style-1:hover .bdt-ep-animated-card-content {
  inset-inline-end: 0;
}
.bdt-style-1:hover .bdt-ep-animated-card-img {
  inset-inline-end: 50%;
}
/* ===============================
   Style 2 (Left / inline-start)
   RTL-safe via logical properties
================================ */
.bdt-style-2 .bdt-ep-animated-card-img {
  inset-inline-start: 50%;
  transform: translate(calc(-50% * var(--dir)), -50%);
}
.bdt-style-2 .bdt-ep-animated-card-content {
  inset-inline-start: 20%;
}
.bdt-style-2:hover .bdt-ep-animated-card-content {
  inset-inline-start: 0;
}
.bdt-style-2:hover .bdt-ep-animated-card-img {
  inset-inline-start: 50%;
}
/* ===============================
   Responsive CSS
================================ */
@media (min-width: 768px) {
  .bdt-ep-animated-card:hover .bdt-ep-animated-card-img {
    block-size: 500px;
    inset-block-start: 50%;
  }
  .bdt-ep-animated-card-item {
    inline-size: 100%;
    block-size: 400px;
    max-inline-size: unset;
  }
  .bdt-ep-animated-card-item:hover .bdt-ep-animated-card-img {
    block-size: 500px;
    inset-block-start: 50%;
  }
  .bdt-ep-animated-card-content {
    inset-block-start: 50%;
    transform: translateY(-50%);
    max-inline-size: 450px;
    padding: 40px;
  }
  .bdt-ep-animated-card-img {
    inset-block-start: 50%;
  }
  .bdt-style-1 .bdt-ep-animated-card-content {
    inset-inline-end: 20%;
  }
  .bdt-style-1:hover .bdt-ep-animated-card-img {
    inset-inline-end: 75%;
  }
  .bdt-style-2:hover .bdt-ep-animated-card-img {
    inset-inline-start: 75%;
  }
}
@media (min-width: 1024px) {
  .bdt-ep-animated-card-content {
    max-inline-size: 600px;
    padding: 70px;
  }
  .bdt-style-1:hover .bdt-ep-animated-card-img {
    inset-inline-end: 80%;
  }
  .bdt-style-2:hover .bdt-ep-animated-card-img {
    inset-inline-start: 80%;
  }
}
