/* =======================
   Variables
======================= */
:root {
  --book-bg: #f5fafd;
  --book-accent: #3b82f6;
  --book-accent-2: #8bd2f5;
  --book-accent-3: #f58fb5;
  --book-card: #ffffff;
  --book-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

/* =======================
   Page Layout
======================= */
.book-page {
  background: var(--book-bg);
  display: flex;
  flex-direction: column;
  /* gap: 48px;
  padding-bottom: 48px; */
}

.book-section {
  width: auto;
  height: auto;
  margin: 0 auto;
  /* padding: 32px 20px; */
  display: grid;
  gap: 18px;
}

/* =======================
   About-Book Section Host
======================= */
.about-author-block {
  position: relative;
  overflow: visible;
}

/* =======================
   Hanging Objects
======================= */
@keyframes swing {
  0% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }

  100% {
    transform: rotate(-8deg);
  }
}

.hanging-object {
  position: absolute;
  top: 0;
  transform-origin: top center;
  animation: swing 3.6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.hanging-object img {
  width: 70px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Individual positions (evenly spread across the top) */

.hanging-object.item-1 {
  left: 5%;
  /* top: -20px; */
  animation-delay: 0s;
}

.hanging-object.item-2 {
  left: 15%;
  /* top: -40px; */
  animation-delay: -1.5s;
  width: 50px;
}

.hanging-object.item-3 {
  right: 10%;
  /* top: -30px; */
  animation-delay: -0.7s;
  width: 100px;
}

.hanging-object.item-4 {
  right: 20%;
  top: -10px;
  animation-delay: -2.2s;
  width: 10%;
}

.hanging-object.item-5 {
  right: 5%;
  /* top: -10px; */
  animation-delay: -3s;
  width: 70px;
}

.hanging-object.item-6 {
  left: 25%;
  /* top: -30px; */
  animation-delay: -4.5s;
  width: 100px;
}

.hanging-object img {
  width: 100%;
}

.section-header h2 {
  margin: 6px 0 0;
}

/* =======================
   Hero Section
======================= */
.book-hero {
  width: 100%;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: url("../images/updateimages/About\ section\ 3.png") bottom/cover no-repeat;
  padding: 48px 20px;
  margin: -8pc auto 0pc;
  flex-direction: column;
  gap: 24px;
}



.book-hero-copy {
  text-align: center;
  max-width: 700px;
}

.book-hero-copy .subtitle {
  color: #42526b;
  font-weight: 700;
  margin: 0 0 6px;
}

.book-hero-copy .lead {
  color: #2f3d4d;
}

.book-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #fff;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
  padding: 12px 22px;
  border: none;
  cursor: pointer;
}

.btn.ghost {
  border: 1px solid #1f2d3d;
  background: #fff;
  color: #1f2d3d;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.body-text {
  color: #2f3d4d;
  line-height: 1.6;
}

/* =======================
   Learn Cards
======================= */
.learn-cards .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.learn-card {
  background: var(--book-card);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--book-shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.learn-card span {
  font-size: 22px;
}

.learn-card h3 {
  margin: 0 0 4px;
}

/* =======================
   Details Section
======================= */
.details .details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.details-grid div {
  background: var(--book-card);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--book-shadow);
  display: grid;
  gap: 4px;
}

.details-grid span {
  color: #6b7280;
  font-size: 14px;
}

.details-grid strong {
  color: #1f2d3d;
}

.parents {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.1));
  border-radius: 18px;
  box-shadow: var(--book-shadow);
}

/* =======================
   Preview Section
======================= */
.preview .preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.preview-frame {
  background: #e8f1fb;
  border-radius: 16px;
  height: 220px;
  display: grid;
  place-items: center;
  color: #42526b;
  font-weight: 700;
  box-shadow: var(--book-shadow);
}

/* =======================
   Call to Action
======================= */
.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
  border-radius: 22px;
  box-shadow: var(--book-shadow);
  padding: 20px 12px;
}

.cta-inner {
  display: grid;
  gap: 12px;
  place-items: center;
}

/* =======================
   Book Container
======================= */
.book-container {
  display: flex;
  gap: 20px;
  margin: 40px;
}

.book-box {
  flex: 1;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.book-box h2 {
  margin-bottom: 10px;
}

.book-box p {
  font-size: 1.2rem;
}

/* =======================
   Slider
======================= */
.slider {
  display: flex;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 1pc 0;
}

.item {
  animation: animate 25s linear infinite;
}

.item img {
  width: 100%;
  padding: 0 30px;
}

.slider:hover .item {
  animation-play-state: paused;
}

@keyframes animate {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-1800px, 0, 0);
  }
}

/* =======================
   Responsive
======================= */
@media screen and (min-width: 1024px) and (max-width: 1440px) {

  .book-hero-copy h1 {
    font-size: clamp(28px, 4vw, 39px);
  }

  .book-hero-copy .lead {
    font-size: 19px;
  }

  .book-hero-copy .btn {
    font-size: 15px;
  }

}


@media (max-width: 1024px) {
  .book-hero {
    height: auto;
    padding: 40px 16px;
    flex-direction: column;
    gap: 24px;
    height: 100vh;
  }

  .book-hero {
    background: url("../images/updateimages/About_section.jpg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    height: 100vh;
  }

  .book-hero-copy {
    max-width: 640px;
  }

}

@media (max-width: 768px) {
  .book-hero {
    margin: 0 auto;
    padding: 32px 16px;
    height: 70vh;
  }

  .book-section {
    padding: 24px 16px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 576px) {
  .book-hero {
    padding: 28px 1pc;
    min-height: 85vh;
  }

  .btn {
    font-size: 16px;
  }

  .book-hero-actions {
    justify-content: center;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 20px 12px;
  }



  .book-container {
    flex-direction: column;
    margin: auto;
  }
}