.fmg-tof-wrap {
  --tof-navy: var(--fmg-color-ink-900, #141633);
  --tof-purple: var(--fmg-color-accent, #7334f0);
  --tof-text: #263247;
  --tof-glass: color-mix(in srgb, var(--tof-purple), transparent 93%);
  --tof-glass-border: color-mix(in srgb, var(--tof-purple), transparent 76%);
  font-family: "Nunito", sans-serif;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), var(--tof-glass));
  border-radius: var(--fmg-radius-lg, 24px);
  padding: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  border: 1px solid var(--tof-glass-border);
  border-top-color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 2px 6px rgba(20, 22, 51, 0.07), 0 20px 46px rgba(20, 22, 51, 0.11);
  backdrop-filter: blur(8px);
}

.fmg-tof-wrap::after {
  content: "";
  position: absolute;
  inset: auto -8% -56% auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--tof-purple), transparent 82%) 0%, rgba(115, 52, 240, 0) 72%);
  pointer-events: none;
  z-index: -1;
}

.fmg-tof-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  background: linear-gradient(155deg, #ffffff, #f6f0ff);
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tof-purple), transparent 78%);
  box-shadow: 0 2px 5px rgba(20, 22, 51, 0.08), 0 10px 22px color-mix(in srgb, var(--tof-purple), transparent 82%);
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fmg-tof-wrap:hover .fmg-tof-icon {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 3px 8px rgba(20, 22, 51, 0.1), 0 14px 28px color-mix(in srgb, var(--tof-purple), transparent 78%);
}

.fmg-tof-content {
  flex-grow: 1;
}

.fmg-tof-head {
  font-family: "Montserrat", sans-serif;
  color: var(--tof-navy);
  font-weight: 800;
  font-size: clamp(1.55rem, 1.35rem + 1vw, 2.05rem);
  margin: 0 0 0.55rem 0;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.fmg-tof-body {
  color: var(--tof-text);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 64ch;
}

.fmg-tof-body strong {
  color: var(--tof-purple);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .fmg-tof-icon {
    transition: none;
  }

  .fmg-tof-wrap:hover .fmg-tof-icon {
    transform: none;
  }
}

@media (max-width: 768px) {
  .fmg-tof-wrap {
    flex-direction: column;
    text-align: center;
    padding: 1.4rem 1.15rem;
    gap: 1rem;
    border-radius: 20px;
  }

  .fmg-tof-wrap::after {
    width: 280px;
    height: 280px;
    inset: auto -24% -50% auto;
  }

  .fmg-tof-icon {
    width: 74px;
    height: 74px;
    font-size: 2.1rem;
    margin-bottom: 0.15rem;
  }

  .fmg-tof-head {
    font-size: 1.45rem;
  }

  .fmg-tof-body {
    font-size: 1rem;
    max-width: 100%;
    line-height: 1.6;
  }
}
