/* ============================
   Home Page Only (NyaySar)
   V2 — Clean + Premium + Light
   (No duplicates)
============================ */

/* ===== Hero Fold ===== */
.ns-fold{
  min-height:auto;
  display:block;
  padding-top:8px;
}

.ns-hero{
  display:block;
  padding:12px var(--ns-pad) 6px;
}

.ns-hero--compact .ns-hero__content{
  text-align:center;
  color:#133a73;
  max-width:980px;
  margin-inline:auto;
}

.ns-hero__line{
  margin:6px 0;
  font-weight:900;
  font-size:clamp(22px, 3.6vw, 34px);
  letter-spacing:.2px;
}

.ns-hero__trust{
  margin:8px auto 10px;
  max-width:780px;
  color:#4f6aa5;
  font-weight:800;
  font-size:13px;
}

/* ===== Trust Badges ===== */
.ns-badges{
  margin:10px auto 6px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}

.ns-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:var(--ns-header);
  background:rgba(15,47,85,.06);
  border:1px solid rgba(15,47,85,.10);
}

/* ===== Services Row ===== */
.ns-svcrow{
  margin-top:10px;
}

.ns-svcrow__viewport{
  width:100%;
  overflow:auto;
  padding:0 8px 6px;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}

.ns-svcrow__track{
  display:flex;
  gap:16px;
  padding:8px 2px;
}

.ns-svcrow__track > li{
  list-style:none;
  flex:0 0 auto;
  scroll-snap-align:center;
}

.ns-svc{
  position:relative;
  display:grid;
  place-items:center;
  width:clamp(145px, 15vw, 215px);
  aspect-ratio:1 / 1;
  border-radius:50%;
  overflow:hidden;
  background:#f2f6ff;
  border:1px solid rgba(15,47,85,.10);
  box-shadow:0 10px 22px rgba(10,25,60,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}

.ns-svc:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(0,0,0,.10);
}

.ns-svc img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .28s ease;
  opacity:.96;
}

.ns-svc:hover img{
  transform:scale(1.05);
}

/* ===== Home Grid ===== */
.ns-homegrid .ns-homegrid__cols{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:stretch;
  max-width:980px;
  margin:0 auto;
}

.ns-homegrid .ns-panel,
.ns-homegrid .ns-browse__panel{
  border-color:#edf2fa;
  box-shadow:0 8px 20px rgba(10,25,60,.06);
}

/* ===== Browse Form ===== */
.ns-homegrid .ns-browse__form{
  display:grid;
  grid-template-columns:1fr 1fr 1fr auto;
  gap:10px;
  align-items:end;
}

.ns-homegrid .ns-browse__form input,
.ns-homegrid .ns-browse__form select{
  height:44px;
  padding:0 12px;
  border:1px solid #cfe0ff;
  border-radius:12px;
  background:#f9fbff;
}

/* ===== Sticky Search Panel ===== */
@media (min-width:980px){
  #browse .ns-browse__panel{
    position:sticky;
    top:14px;
    z-index:2;
  }
}

/* ===== How It Works ===== */
.ns-how{
  padding:16px 0 6px;
}

.ns-how__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin-top:12px;
  text-align:center;
}

.ns-how__step{
  width:42px;
  height:42px;
  margin:0 auto 10px;
  border-radius:50%;
  background:var(--ns-accent);
  color:#043a6b;
  display:grid;
  place-items:center;
  font-weight:900;
}

.ns-how__item h4{
  margin:6px 0 4px;
  color:var(--ns-header);
}

.ns-how__item p{
  margin:0;
  color:var(--ns-muted);
  font-size:14px;
}

/* ===== CTA ===== */
.ns-cta__panel{
  background:linear-gradient(135deg, var(--ns-header), #1a4a85);
  color:#fff;
  border:0;
}

.ns-cta__panel h2{
  margin:0 0 8px;
}

.ns-cta__panel p{
  margin:0 0 14px;
  color:rgba(255,255,255,.88);
  font-weight:700;
}

.ns-btn--block{
  display:block;
  width:100%;
  text-align:center;
  padding:12px 14px;
  border-radius:14px;
}

/* ===== Why Choose ===== */
.ns-why{
  padding:16px 0;
}

.ns-why__grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px 28px;
  margin-top:14px;
}

.ns-why__item{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.ns-why__icon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:rgba(15,47,85,.06);
  border:1px solid rgba(15,47,85,.08);
  display:grid;
  place-items:center;
  font-weight:900;
  color:var(--ns-header);
  flex-shrink:0;
}

.ns-why__item h4{
  margin:0 0 5px;
  font-size:15.5px;
  color:var(--ns-header);
}

.ns-why__item p{
  margin:0;
  color:var(--ns-muted);
  font-size:14px;
  line-height:1.5;
}

/* ===== Testimonials ===== */
.ns-testimonials{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

.ns-quote{
  background:#fff;
  border:1px solid #edf2fa;
  border-radius:14px;
  padding:16px;
  box-shadow:0 4px 10px rgba(10,25,60,.04);
  font-style:italic;
}

.ns-quote span{
  display:block;
  margin-top:8px;
  color:#4f6aa5;
  font-style:normal;
}

/* ===== Responsive ===== */
@media (max-width:1100px){
  .ns-homegrid .ns-browse__form{
    grid-template-columns:1fr 1fr;
  }

  .ns-why__grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  .ns-how__grid{
    grid-template-columns:1fr;
  }

  .ns-testimonials{
    grid-template-columns:1fr;
  }
}

@media (max-width:560px){
  .ns-homegrid .ns-browse__form{
    grid-template-columns:1fr;
  }
}

/* ===== One-time signup success toast ===== */
.ns-home-toast-wrap{
  width:100%;
  padding:12px 16px 0;
}

.ns-home-toast{
  max-width:980px;
  margin:0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  background:#ecfdf3;
  border:1px solid #b7ebc6;
  color:#14532d;
  border-radius:14px;
  padding:12px 14px;
  box-shadow:0 8px 20px rgba(10,25,60,.06);
  animation:nsToastIn .22s ease;
}

.ns-home-toast__text{
  font-size:14px;
  line-height:1.5;
  font-weight:700;
}

.ns-home-toast__close{
  appearance:none;
  border:0;
  background:transparent;
  color:#14532d;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  padding:0 2px;
  flex:0 0 auto;
}

.ns-home-toast-wrap.is-hiding,
.ns-home-toast-wrap .is-hiding{
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .2s ease, transform .2s ease;
}

@keyframes nsToastIn{
  from{
    opacity:0;
    transform:translateY(-6px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media (max-width:560px){
  .ns-home-toast{
    padding:11px 12px;
    border-radius:12px;
  }

  .ns-home-toast__text{
    font-size:13.5px;
  }
}
