#billboard
{
background-color:#EFEEE8;
background-image: url('../images/bannerback.png');
    background-size: cover;
}

/* =======================
   Desktop Layout
========================== */
/* =======================
   Global Base Styles
========================== */

/* =======================
   Desktop Layout
========================== */

.book-section {
  display: block;
}
.book-mobile {
  display: none;
}

.book-stand-wrap {
  width: 100%;
  overflow-x: auto;
  position: relative;
  text-align: center;
}

.cupboard-bg {
  background: url('../images/bookstand3.png') repeat-x center bottom;
  background-size: 20% auto;
  padding: 80px 0 50px;
}

.book-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: nowrap;
  padding: 0 20px;
}

.book-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.book-image {
  max-height: 300px;
  width: auto;
  z-index: 2;
  margin-bottom: -40px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Hover Zoom */
.book-item:hover .book-image {
  transform: scale(1.08);
}

/* Download Button Desktop */
.book-item .download-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  text-decoration: none;
}

.book-item:hover .download-link {
  opacity: 1;
}
.whitefont
{
  color:#fff;
}
/* =======================
   Mobile Layout
========================== */
@media (max-width: 768px) {

  .book-mobile {
    display: block;
  }
  .book-section {
    display: none;
  }
  .book-mobile .section-header {
    text-align: center;
    margin-bottom: 20px;
  }
  .book-mobile .section-header span {
    font-size: 16px;
    color: #666;
  }
  .book-mobile .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 5px;
  }
  .book-mobile .book-stand-wrap {
    max-width: 280px;
    margin: 0 auto;
    padding-bottom: 4px;
    position: relative;
  }
  .book-mobile .book-stand-wrap + .book-stand-wrap {
    margin-top: -8px;
  }
  .book-mobile .book-stand-wrap .stand {
    width: 100%;
    display: block;
  }
  .book-mobile .book-stand-wrap .book {
    width: 48%;
    aspect-ratio: 2 / 3;
    position: absolute;
    top: 8.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: transform 0.3s ease;
  }
  .book-mobile .book-stand-wrap:hover .book {
    transform: translateX(-50%) scale(1.08);
  }
  .mobspview
{
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    transition: opacity 0.3s ease;
    z-index: 3;
    text-decoration: none;
}
  .book-mobile .book-stand-wrap .download-link {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    text-decoration: none;
  }
  .book-mobile .book-stand-wrap:hover .download-link {
    opacity: 1;
  }
}



/* Main slider structure */
.main-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Individual slider item */
.slider-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

/* Banner text content */
.banner-content {
  max-width: 600px;
  z-index: 2;
  margin-bottom: 20px;
}

/* Banner title */
.banner-title {
  font-size: 2em;
  margin-bottom: 10px;
}

/* CTA button style */
.btn-wrap {
  margin-top: 15px;
}

/* Banner image (ensure it's responsive and not cut off) */
.banner-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  z-index: 1;
}

/* Slick arrow buttons (optional style, adjust as needed) */
.slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 3;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Responsive tweaks for larger screens */
@media (min-width: 550px) {
  .slider-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 60px 40px;
  }

  .banner-content {
    flex: 1;
    margin-right: 40px;
  }

  .banner-image {
    flex: 1;
    max-width: 100%;
    height: auto;
  }
}
/* desktop: keep existing layout (you can adjust if needed) */
@media (min-width: 769px) {
  .slider-item {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
  }
  .banner-content {
    flex: 1;
  }
  .banner-image {
    flex: 0 0 auto;
    max-width: 350px;
  }
}
#billboard .slider-item::before {
  display: none;
}

/* mobile tweaks: make image appear as if placed on a table */
@media (max-width: 768px) {
  #billboard .slider-item {
    display: block;
    position: relative;
    padding-bottom: 180px; /* space for the book image “sitting” */
    overflow: visible;
  }

  /* subtle “table” illusion using a gradient overlay at bottom */
  #billboard .slider-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top, #d9cbbf 0%, rgba(217,203,191,0) 70%);
    pointer-events: none;
    z-index: 1;
  }

  .banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px 140px; /* give vertical breathing room above the image */
  }

  .banner-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(10%);
    max-width: 220px;
    z-index: 2;
  }

  .btn-wrap {
    margin-top: 1rem;
  }
}
@media (max-width: 480px) {
  .slider-item {
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    text-align: center;
  }

  .banner-content {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .banner-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .banner-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .btn-wrap {
    margin-top: 10px;
    margin-bottom: 150px;
  }

  .banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: none;
  }

  .main-slider,
  .slider-item {
    width: 100%;
  }

  .container,
  .row,
  .col-md-12 {
    padding: 0;
    margin: 0;
  }
}
@media (max-width: 400px) {
  .main-slider .banner-content {
        margin-top: -50px;
    }
  .slider-item {
    display: block;               /* stack vertically */
    text-align: center;
    padding: 10px 0 150px;        /* extra bottom padding for image */
    position: relative;
    overflow: visible;            /* avoid cropping */
  }

  .banner-content {
    padding: 0 10px;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
  }
.btn-wrap {
    margin-top: 10px;
    margin-bottom: 150px;
  }
  .banner-image {
    width: 90%;
    height: auto;
    max-height: none;             /* allow full image height */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  /* Ensure container doesn't hide the image */
  .main-slider,
  .container,
  .row,
  .col-md-12 {
    overflow: visible;
    padding: 0;
    margin: 0;
  }
}
