/* =========================
   ABS Step Card - Full CSS
   ========================= */

/* Card base */
.abs-card{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:22px;
  transition:.3s ease;

  display:flex;
  gap:12px;
  align-items:flex-start;
}

/* Hover BG image + overlay */
.abs-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--absHoverImg);
  background-size:cover;
  background-position:center;
  opacity:0;
  transform:scale(1.03);
  transition:opacity .35s ease, transform .35s ease;
  z-index:0;
}

.abs-card::after{
  content:"";
  position:absolute;
  inset:0;
  /* default overlay, Elementor control overrides this */
  background:rgba(255,255,255,.70);
  opacity:0;
  transition:opacity .35s ease;
  z-index:0;
}

.abs-card:hover::before{
  opacity:1;
  transform:scale(1);
}

.abs-card:hover::after{
  opacity:1;
}

.abs-card > *{
  position:relative;
  z-index:1;
}

.abs-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 26px rgba(0,0,0,.08);
}

/* Badge */
.abs-badge{
  position:absolute;
  top:20px;
  right:20px;

  width:30px;
  height:30px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight:700;
  font-size:13px;

  z-index:3;
}

.abs-badge svg{
  width:35px;
  height:35px;
}

/* Main icon */
.abs-icon{
  width:44px;
  height:44px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.abs-icon svg{
  width:20px;
  height:20px;
}

/* Content */
.abs-content{
  flex:1;
  min-width:0;
}

.abs-title{
  margin:0 0 6px;
  font-size:16px;
}

.abs-desc{
  margin:0;
  font-size:14px;
  opacity:.78;
}

/* -------------------------
   Button: Smooth reveal (no space default)
   ------------------------- */

.abs-btn{
  display:inline-block;
  text-decoration:none;
  border-radius:12px;
  border-style:solid;
  border-color:rgba(0,0,0,.12);

  /* fully collapsed */
  max-height:0;
  overflow:hidden;
  padding:0;
  margin:0;
  border-width:0;

  opacity:0;
  transform: translateY(12px);
  pointer-events:none;

  /* smoother easing */
  transition:
    max-height .45s cubic-bezier(.22,1,.36,1),
    padding .35s cubic-bezier(.22,1,.36,1),
    margin .35s cubic-bezier(.22,1,.36,1),
    opacity .30s ease,
    transform .35s cubic-bezier(.22,1,.36,1),
    border-width .35s cubic-bezier(.22,1,.36,1),
    background .25s ease,
    color .25s ease,
    border-color .25s ease;
}

/* reveal on hover */
.abs-card:hover .abs-btn{
  max-height:120px;       /* smooth + safe */
  padding:10px 14px;
  margin-top:12px;
  border-width:1px;

  opacity:1;
  transform: translateY(0);
  pointer-events:auto;

  /* little delay feels premium */
  transition-delay: 0s, 0s, 0s, .06s, 0s, 0s, 0s, 0s, 0s;
}

/* Mobile always visible */
@media (max-width: 767px){
  .abs-btn{
    max-height:120px;
    padding:10px 14px;
    margin-top:12px;
    border-width:1px;

    opacity:1;
    transform:none;
    pointer-events:auto;
  }
}

/* -------------------------
   Icon Position Variants
   ------------------------- */

/* Left (default) */
.abs-card.abs-icon-left{
  flex-direction:row;
}

/* Right */
.abs-card.abs-icon-right{
  flex-direction:row-reverse;
}

/* Top */
.abs-card.abs-icon-top{
  flex-direction:column;
  align-items:flex-start;
}

/* Bottom */
.abs-card.abs-icon-bottom{
  flex-direction:column-reverse;
  align-items:flex-start;
}


.entry-content p {
    margin-bottom: 0px;
}