/* מצב סגור */
.nd-cover-closed {
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: center;
}

/* כשנפתח – הכריכה "זזה קדימה" */
.nd-cover-closed.opening {
  transform: scale(1.05) rotateY(-18deg);
  opacity: 0;
}

/* הקונטיינר של הספר בפתיחה */
.nd-flipbook-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* אחרי פתיחה */
.nd-flipbook-wrap.active {
  opacity: 1;
  transform: translateY(0);
}

.nd-book-close {
  position: absolute;
  top: 0px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  z-index: 9999;
  backdrop-filter: blur(6px);
  transition: 0.25s ease;
      background-color: #8acbcc00!important;

}

.nd-book-open-shadow {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: linear-gradient(to left, rgba(0,0,0,0.35), rgba(0,0,0,0));
  transition: width 0.45s ease;
  opacity: 0;
}

.nd-book-open-shadow.active {
  width: 160px;
  opacity: 1;
}

/*
.nd-book-close:hover {
  background: rgba(0,0,0,0.35);*/
}

/*.nd-page.stf__item.--right {
    height: 545px!important;
  top:0px!important;
}
.nd-page.stf__item.--left {
    height: 545px!important;
    top:0px!important;
}

nd-flipbook stf__wrapper --landscape{
    height: 550px!important;
}*/

@media (max-width: 767px){
  .nd-flipbook{
    max-width: 360px !important;
  }

  .nd-page-inner{
    padding: 24px 20px;
    font-size: 15px;
    line-height: 1.7;
  }

  .nd-book-nav{
    margin-top: 8px;
  }
}

.nd-flipbook-shell{
  max-width: 1100px;
    max-height: 550px!important;
  margin: 40px auto;
  direction: rtl;
  text-align: right;
  font-family: inherit;
  position: relative;
}

/* Closed cover */
.nd-cover-closed{
  cursor: pointer;
  position: relative;
  width: min(420px, 95vw);
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
 /* box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  transform: perspective(1400px) rotateY(-10deg);
  transition: transform .5s ease, box-shadow .5s ease;*/
}
  /*
.nd-cover-closed:hover{
 transform: perspective(1400px) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);*/
}
.nd-cover-closed img{
  width: 100%;
  height: auto;
  display:block;
}
.nd-cover-hint{
  position:absolute;
  inset:auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color:#fff;
  padding:14px;
  font-size:14px;
  text-align:center;
}

/* Open book area */
.nd-flipbook-wrap{
  margin-top: 10px;
  padding: 10px;
}

.nd-flipbook{
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.25));
}

.nd-page{
  background:#fbf8f2;
}

.nd-page-inner {
    padding: 20px 48px 20px 48px;
  font-size:16px;
  line-height:1.85;
  color:#151515;
  direction: rtl;
  text-align:right;
  box-sizing:border-box;
}

.nd-book-cta{
  margin-top:34px;
  text-align:center;
}
.nd-book-button{
  display:inline-block;
  padding:12px 28px;
  border-radius:999px;
  background:#8acbcc;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

.nd-book-button:hover{opacity:.9;}

.nd-book-nav{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:12px;
    color:#fff;
}
.nd-book-nav button{
  border:none;
  padding:9px 22px;
  border-radius:999px;
  background:#efefef;
  cursor:pointer;
  font-size:14px;
  color:#111;
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
}
.nd-book-nav button:disabled{
  opacity:.5;
  cursor:not-allowed;
}

@media (max-width: 767px){
  .nd-page-inner{
    padding:26px 22px 44px 22px;
    font-size:15px;
    line-height:1.75;
  }
}