.ffb-whm-section{
  --ffb-whm-maxw:1200px;
  --ffb-whm-py:56px;
  --ffb-whm-row-gap:72px;
  --ffb-whm-col-gap:56px;
  --ffb-whm-bg:transparent;

  --ffb-whm-kicker-bg:rgba(29,78,216,.10);
  --ffb-whm-kicker-color:#1d4ed8;
  --ffb-whm-title-color:#111827;
  --ffb-whm-desc-color:rgba(17,24,39,.75);

  --ffb-whm-btn-bg:#1d4ed8;
  --ffb-whm-btn-color:#fff;
  --ffb-whm-btn-hover-bg:#1b46c5;
  --ffb-whm-btn-hover-color:#fff;
  --ffb-whm-btn-radius:12px;

  --ffb-whm-media-bg:#fff;
  --ffb-whm-media-radius:18px;
  --ffb-whm-media-shadow:0 30px 70px rgba(17,24,39,.12);

  --ffb-whm-float-bg:#fff;
  --ffb-whm-float-radius:16px;
  --ffb-whm-float-shadow:0 20px 50px rgba(17,24,39,.14);

  background: var(--ffb-whm-bg);
  padding: var(--ffb-whm-py) 0;
  direction: rtl;
  font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ffb-whm-section *{box-sizing:border-box}

.ffb-whm-container{
  max-width: var(--ffb-whm-maxw);
  margin: 0 auto;
  padding: 0 18px;
}

.ffb-whm-section.is-fullwidth .ffb-whm-container{
  max-width: 100%;
}

.ffb-whm-stack{
  display:flex;
  flex-direction:column;
  gap: var(--ffb-whm-row-gap);
}

.ffb-whm-row{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--ffb-whm-col-gap);
  align-items:center;
}

.ffb-whm-row.is-reverse .ffb-whm-content{order:2}
.ffb-whm-row.is-reverse .ffb-whm-media{order:1}

.ffb-whm-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ffb-whm-kicker-bg);
  color: var(--ffb-whm-kicker-color);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.ffb-whm-title{
  margin: 14px 0 0;
  color: var(--ffb-whm-title-color);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.ffb-whm-desc{
  margin: 16px 0 0;
  color: var(--ffb-whm-desc-color);
  font-size: 18px;
  line-height: 1.9;
}

.ffb-whm-actions{margin-top: 22px;}

.ffb-whm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 22px;
  border-radius: var(--ffb-whm-btn-radius);
  background: var(--ffb-whm-btn-bg);
  color: var(--ffb-whm-btn-color);
  text-decoration:none;
  font-weight: 800;
  font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: 0 16px 40px rgba(29,78,216,.18);
}

.ffb-whm-btn:hover{
  background: var(--ffb-whm-btn-hover-bg);
  color: var(--ffb-whm-btn-hover-color);
  transform: translateY(-2px);
}

.ffb-whm-media{
  position: relative;
  min-height: 320px;
}

.ffb-whm-collage{
  position: relative;
  width: 100%;
  min-height: 360px;
}

.ffb-whm-card{
  position: absolute;
  inset: 0;
  border-radius: var(--ffb-whm-media-radius);
  background: var(--ffb-whm-media-bg);
  box-shadow: var(--ffb-whm-media-shadow);
  overflow: hidden;
}

.ffb-whm-card img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.ffb-whm-card.back{
  transform: translate(-28px, 22px) rotate(-2deg);
  opacity: .92;
  filter: saturate(.98);
}

.ffb-whm-card.main{
  transform: translate(0,0);
}

.ffb-whm-float{
  position:absolute;
  right: 14px;
  bottom: 14px;
  width: 96px;
  height: 96px;
  border-radius: var(--ffb-whm-float-radius);
  background: var(--ffb-whm-float-bg);
  box-shadow: var(--ffb-whm-float-shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.ffb-whm-float img{
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.ffb-whm-placeholder{
  border: 1px dashed rgba(17,24,39,.18);
  border-radius: var(--ffb-whm-media-radius);
  padding: 18px;
  text-align:center;
  color: rgba(17,24,39,.65);
  background: rgba(255,255,255,.7);
}

/* Responsive */
@media (max-width: 1024px){
  .ffb-whm-title{font-size: 34px}
  .ffb-whm-row{grid-template-columns:1fr;}
  .ffb-whm-media{order: 0}
  .ffb-whm-content{order: 0}
  .ffb-whm-row.is-reverse .ffb-whm-content{order:0}
  .ffb-whm-row.is-reverse .ffb-whm-media{order:0}
  .ffb-whm-collage{min-height: 320px}
  .ffb-whm-media{min-height: 280px}
}

@media (max-width: 600px){
  .ffb-whm-section{padding: 42px 0}
  .ffb-whm-title{font-size: 28px}
  .ffb-whm-desc{font-size: 16px}
  .ffb-whm-collage{min-height: 280px}
  .ffb-whm-card.back{transform: translate(-18px, 16px) rotate(-2deg)}
  .ffb-whm-float{width: 78px; height: 78px}
}

/* FirstM Unified repair layer */
.ffb-whm-section{max-width:100%;overflow:hidden;isolation:isolate;}
.ffb-whm-section.is-fullwidth{width:100vw;max-width:100vw;position:relative;left:50%;transform:translateX(-50%);margin-left:0;margin-right:0;}
.ffb-whm-container{max-width:min(var(--ffb-whm-maxw),100%);}
.ffb-whm-row,.ffb-whm-content,.ffb-whm-media{min-width:0;}
.ffb-whm-title{font-size:clamp(28px,3.1vw,40px);}
.ffb-whm-desc{font-size:clamp(15px,1.2vw,18px);}
.ffb-whm-card img,.ffb-whm-float img{max-width:100%;object-fit:contain;}
@media(max-width:600px){.ffb-whm-collage{min-height:260px}.ffb-whm-media{min-height:240px}}

/* FirstM Unified 1.0.3 frontend stability patch: keep widgets inside Elementor containers */
.ffb-migration-section.is-fullwidth,
.ffb-whm-section.is-fullwidth,
.ffb-support-section.ffb-support-fullwidth,
.ffb-os-tabs-section.ffb-fullwidth{
  width:100%!important;
  max-width:100%!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  margin-left:0!important;
  margin-right:0!important;
  position:relative!important;
  overflow:hidden!important;
}
.ffb-migration-section,
.ffb-whm-section,
.ffb-support-section,
.ffb-os-tabs-section,
.ffb-host-packages{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
.ffb-migration-section *,
.ffb-whm-section *,
.ffb-support-section *,
.ffb-os-tabs-section *,
.ffb-host-packages *{box-sizing:border-box!important;}
.ffb-ms-container,.ffb-whm-container,.ffb-support-inner,.ffb-os-tabs-inner{max-width:100%!important;margin-inline:auto!important;padding-inline:clamp(16px,3vw,32px)!important;}
.ffb-ms-grid,.ffb-whm-row,.ffb-support-wrap{min-width:0!important;}
.ffb-ms-content,.ffb-ms-media,.ffb-whm-content,.ffb-whm-media,.ffb-support-content,.ffb-support-media{min-width:0!important;max-width:100%!important;}
.ffb-ms-title,.ffb-whm-title,.ffb-support-title{overflow-wrap:break-word!important;}
.ffb-ms-desc,.ffb-whm-desc,.ffb-support-desc{overflow-wrap:break-word!important;}
.ffb-ms-image,.ffb-support-media img,.ffb-whm-card img,.ffb-whm-float img,.ffb-os-logo{max-width:100%!important;object-fit:contain!important;}
@media(max-width:860px){.ffb-ms-grid,.ffb-whm-row,.ffb-support-wrap{grid-template-columns:1fr!important;text-align:center!important}.ffb-ms-content,.ffb-whm-content,.ffb-support-content{text-align:center!important}.ffb-ms-actions{justify-content:center!important}}
