/* ========================= */
/* CHAPTER ROTATION */
/* ========================= */

.chap-rotation {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff6ef;
  padding: 40px 20px;
}

/* ✅ RESPONSIVE STAGE */
.chap-stage {
  position: relative;
  width: 90vw;
  max-width: 650px;
  height: 90vw;
  max-height: 650px;
}

/* ========================= */
/* CARD */
/* ========================= */
.chapter-card {
  position: absolute;
  width: 240px;
  height: 200px;
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  opacity: 0.45;
  transform: scale(0.85);
  transition: 0.3s;
}

/* IMAGE */
.chapter-card img {
  width: 100%;
  height: 120px;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
}

/* TEXT */
.chapter-card h4 {
  font-size: 13px;
  margin-top: 5px;
}

.chapter-card p {
  font-size: 11px;
  color: #555;
}

/* ACTIVE CENTER */
.chapter-card.active {
  opacity: 1;
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* ========================= */
/* 📱 TABLET */
/* ========================= */
@media (max-width: 900px){

  .chapter-card {
    width: 200px;
    height: 180px;
  }

  .chapter-card img {
    height: 110px;
  }

}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */
@media (max-width:768px){

  .chap-rotation {
    min-height: auto;
    padding: 30px 10px;
  }

  .chap-stage {
    width: 95vw;
    height: 95vw;
   
  }

  .chapter-card {
    width: 260px;
    height: 150px;
  }

  .chapter-card img {
    height: 90px;

  }

  .chapter-card h4 {
    font-size: 11px;
  }

  .chapter-card p {
    font-size: 10px;
  }

}

/* ========================= */
/* 📱 SMALL MOBILE */
/* ========================= */
@media (max-width: 400px){

  .chapter-card {
    width: 140px;
    height: 130px;
  }

  .chapter-card img {
    height: 80px;
  }

}