.firstm-spb{
  width:100%;

  position:relative;
  isolation:isolate;
  background:transparent;
  padding: clamp(22px, 3vw, 42px) 0;
}

.firstm-wrap{
  width:100%;
  max-width: var(--firstm-maxw, 1100px);
  padding-inline: var(--firstm-pad-inline, 0px);
  margin-inline:auto;
  position:relative;
  z-index:2;
}

.firstm-decor{
  position:absolute;
  z-index:1;
  pointer-events:none;
  opacity: 1;
  max-width:220px;
  height:auto;
}

.firstm-decor-top{ top:-18px; right:-10px; }
.firstm-decor-bottom{ bottom:-18px; left:-10px; }

.firstm-head{ margin-bottom:10px; }
.firstm-sec-title{
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  margin:0;
}

.firstm-title-chip{
  display:inline-block;
  padding:.18em .5em;
  border-radius:10px;
  background: #ff8a2a;
  color:#fff;
  box-shadow: 0 10px 30px rgba(255, 138, 42, .25);
}

.firstm-desc{
  margin:0;
  max-width: 760px;
  opacity: .92;
  line-height:1.8;
  margin-bottom: var(--firstm-desc-space, 18px);
}

.firstm-grid{
  display:grid;
  grid-template-columns: repeat(var(--firstm-cols, 3), minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px){
  .firstm-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .firstm-grid{ grid-template-columns: 1fr; }
  .firstm-decor{ max-width:160px; opacity:.8; }
}

.firstm-card{
  position:relative;
  background: rgba(255,255,255,.0);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px 18px 16px;
  overflow:hidden;
  backdrop-filter: blur(8px);
}

.firstm-card-bg::before,
.firstm-card-bg::after{
  content:"";
  position:absolute;
  inset:auto;
  width:140px;
  height:140px;
  border-radius: 18px;
  opacity:.22;
  pointer-events:none;
}

.firstm-card-bg::before{
  top:-40px;
  right:-40px;
  background: rgba(255,138,42,.35);
  transform: rotate(10deg);
}

.firstm-card-bg::after{
  top:-28px;
  right:-28px;
  background: rgba(0,0,0,.10);
  transform: rotate(-18deg);
}

.firstm-card-title{
  margin:0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.firstm-card-desc{
  margin:0;
  line-height:1.8;
  opacity:.9;
  font-size: 14px;
}

.firstm-card:hover{
  transform: translateY(-2px);
  transition: .18s ease;
  border-color: rgba(255,138,42,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}


/* Decoration opacity + animations */
.firstm-decor-top{ opacity: var(--firstm-decor-top-opacity, .95) !important; }
.firstm-decor-bottom{ opacity: var(--firstm-decor-bottom-opacity, .85) !important; }

.firstm-anim-none{ animation: none !important; }

.firstm-anim-float{
  animation: firstmFloat var(--firstm-decor-speed, 14s) ease-in-out infinite;
}
.firstm-anim-rotate{
  animation: firstmRotate calc(var(--firstm-decor-speed, 14s) * 1.6) linear infinite;
  transform-origin: 50% 50%;
}
.firstm-anim-float_rotate{
  animation:
    firstmFloat var(--firstm-decor-speed, 14s) ease-in-out infinite,
    firstmRotate calc(var(--firstm-decor-speed, 14s) * 1.6) linear infinite;
  transform-origin: 50% 50%;
}
.firstm-anim-drift{
  animation: firstmDrift calc(var(--firstm-decor-speed, 14s) * 1.2) ease-in-out infinite;
}

@keyframes firstmFloat{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(0,-14px,0); }
}
@keyframes firstmRotate{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}
@keyframes firstmDrift{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(12px,-10px,0); }
}

@media (prefers-reduced-motion: reduce){
  .firstm-decor{ animation: none !important; }
  .firstm-card{ transition:none !important; transform:none !important; }
}

/* Optional: break out of Elementor/theme container */
.firstm-breakout{
  width:100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
