.sigma-home{
  max-width:1100px;
  margin:0 auto;
  padding:40px 16px 54px;
}

.sigma-home-hero{
  margin-bottom:22px;
}

.sigma-home-hero h1{
  margin:0 0 8px;
  font-size:34px;
  line-height:1.2;
  letter-spacing:-.3px;
}

.sigma-home-hero p{
  margin:0;
  font-size:15px;
  opacity:.78;
}

.sigma-home-video-wrap{
  margin:22px 280px 22px 0;
  border:1px solid rgba(0,0,0,.08);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 6px 22px rgba(0,0,0,.06);
}

.sigma-home-video{
  display:block;
  width:100%;
  height:auto;
  background:#000;
}

.sigma-home-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}

.sigma-home-card{
  display:block;
  text-decoration:none !important;
  color:inherit;
  border:1px solid rgba(0,0,0,.08);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 6px 22px rgba(0,0,0,.06);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sigma-home-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 44px rgba(0,0,0,.12);
  border-color:rgba(0,0,0,.14);
}

.sigma-home-img{
  position:relative;
  height:160px;
  background-size:cover;
  background-position:center;
}

.sigma-home-img::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.35));
}

.sigma-home-badge{
  position:absolute;
  top:12px;
  right:12px;
  z-index:1;
  padding:6px 10px;
  font-size:12px;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
}

.sigma-home-body{
  padding:16px 16px 18px;
}

.sigma-home-title{
  font-size:18px;
  font-weight:800;
  margin:0 0 7px;
}

.sigma-home-desc{
  font-size:14px;
  line-height:1.45;
  opacity:.80;
  margin:0 0 12px;
}

.sigma-home-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  opacity:.9;
}

.sigma-home-cta span{
  display:inline-block;
  transform:translateX(0);
  transition:transform .16s ease;
}

.sigma-home-card:hover .sigma-home-cta span{
  transform:translateX(-2px);
}

@media (max-width: 980px){
  .sigma-home-grid{ grid-template-columns:1fr; }
  .sigma-home-img{ height:180px; }
}
/* Hero layout stays stable */
.sigma-home-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

/* Left block can grow, login always sticks to the right */
.sigma-home-hero-left{
  flex: 1 1 auto;
  min-width: 0;
}

.sigma-home-login{
  flex: 0 0 auto;
  margin-left: auto;          /* force to the right in flex */
  text-align: right;
  width: 260px;
  transform: scale(0.85);
  transform-origin: top right;
}

/* Ultimate Member form: prevent it from taking full row / weird floats */
.sigma-home-login .um,
.sigma-home-login .um-form{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* If UM applies floats, kill them inside our small box */
.sigma-home-login *{
  float: none !important;
}
/* anchor the login box top-right under the title */
.sigma-home-hero{
  position: relative;
  padding-right: 280px; /* משאיר מקום לקופסת ההתחברות */
}

/* force right/top, independent of UM styles */
.sigma-home-login{
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  text-align: right;
  transform: scale(0.85);
  transform-origin: top right;
}

/* keep UM form inside the box */
.sigma-home-login .um,
.sigma-home-login .um-form{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.sigma-home-grid{
  margin-top: 20px;
}
.sigma-home-grid{
  margin-right: 280px;
}

@media (max-width: 980px){
  .sigma-home{
    padding: 18px 14px 36px;
  }
  
  .sigma-home-hero{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-right: 0;
    margin-bottom: 18px;
  }
  
    .sigma-home-hero-left{
    display: none;
  }

  .sigma-home-hero{
    margin-bottom: 10px;
  }

  .sigma-home-hero-left{
    width: 100%;
  }

  .sigma-home-hero h1{
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .sigma-home-hero p{
    font-size: 15px;
  }

  .sigma-home-login{
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    text-align: right;
    transform: none;
  }

  .sigma-home-login .um,
  .sigma-home-login .um-form{
    width: 100% !important;
    max-width: 100% !important;
  }

  .sigma-home-video-wrap{
    margin: 14px 0 18px;
    border-radius: 18px;
  }

  .sigma-home-video{
    max-height: none;
  }

  .sigma-home-grid{
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
    margin-right: 0;
  }

  .sigma-home-card{
    border-radius: 18px;
  }

  .sigma-home-img{
    height: 180px;
  }

  .sigma-home-body{
    padding: 14px 14px 16px;
  }

  .sigma-home-title{
    font-size: 18px;
  }

  .sigma-home-desc{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .sigma-home-cta{
    font-size: 14px;
  }
}

