.btn-outline-border-primar {
  background-color: var(--bd-primary);
  color: var(--bd-white);
  border: 1px solid var(--bd-primary);
}

.bd-course-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  text-transform: capitalize;
  color: #b5965b;
}

.bd-bt {
  font-size: 16px;
  text-transform: capitalize;
  color: var(--bd-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  height: 37px;
  transition: all 0.3s linear;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -o-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.bd-course-content-body p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ribbon {
  width: 100px;
  background: red;
  color: #fff;
  font-weight: bold;
  text-align: center;
  position: absolute;
  top: 10px;
  left: -26px;
  transform: rotate(-45deg);
  z-index: 10;
  font-size: 12px;
  padding: 5px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bd-course-thumb-style-two {
  overflow: hidden;
}

.ribbon-free {
  background-color: #28a745;
}

.ribbon-paid {
  background-color: #007bff;
}

.bd-course-wrapper.style-six .bd-course-content {
  padding: 22px 22px 0px 22px;
  background-color: var(--bd-white);
  box-shadow: 0px 10px 40px rgb(28 51 84 / 7%);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  min-height: 175px;
}

.bd-elements-course {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.book-showcase-container {
  width: 100%;
  position: relative;
}

.book-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-right: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid #ffeebf;
  transition: all 0.5s ease;
  min-height: 500px;
}

.book-image-container {
  flex: 0 0 300px;
  position: relative;
}

.book-image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.book-image:hover {
  transform: translateY(-5px);
}

.book-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-free {
  background: linear-gradient(45deg, #4caf50, #45a049);
  color: white;
}

.badge-paid {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  color: white;
}

.book-content {
  flex: 1;
  padding-left: 20px;
}

.book-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(45deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-direction: row;
}

.book-price {
  font-size: 4rem;
  font-weight: 700;
  color: #e74c3c;
}

.add-to-cart-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  text-decoration: none;
  display: inline-block;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
  background: linear-gradient(45deg, #2980b9, #3498db);
}

.book-description {
  color: #555;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 25px;
  text-align: justify;
}

.terms-conditions {
  background: #f8f9fa;
  width: 90%;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  margin-bottom: 25px;
}

.terms-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.terms-text {
  font-size: 14px;
  line-height: 1.5;
}

.scroll-navigation {
  position: relative;
  right: 60px;
  top: 75px;
  transform: translateY(-50%);
  z-index: 10;
}

.scroll-btn {
  display: block;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #3498db;
  border-radius: 50%;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.scroll-btn:hover {
  background: #3498db;
  transform: scale(1.1);
}

.scroll-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.scroll-btn.up::after {
  border-bottom: 12px solid #3498db;
}

.scroll-btn.down::after {
  border-top: 12px solid #3498db;
}

.scroll-btn:hover::after {
  border-top-color: white;
  border-bottom-color: white;
}

.book-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: black;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background: #3498db;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .book-display {
    flex-direction: column;
    gap: 30px;
    padding: 0;
    text-align: center;
    align-items: center;
    min-height: 1400px;
    max-height: 1400px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .terms-text {
    color: #ff4d28;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  .book-indicator {
    flex-direction: row;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
  }

  .terms-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: left;
  }

  .terms-conditions {
    background: none;
    padding: 0;
    border-radius: 0;
    border-left: none;
    height: auto;
    margin-bottom: 20px;
  }

  .bd-elements-course {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
  }

  .book-image-container {
    flex: none;
    width: 100%;
  }
  .book-description {
    width: 100%;
  }
  .terms-conditions {
    width: 100%;
  }
  .book-image {
    height: 500px;
    min-height: 500px;
    width: 100%;
    box-shadow: none;
  }

  .book-content {
    padding-left: 0;
  }

  .book-title {
    font-size: 20px;
    text-align: left;
    text-transform: capitalize;
  }

  .price-container {
    justify-content: space-between;
  }

  .scroll-navigation {
    right: 15px;
  }

  .scroll-btn {
    width: 40px;
    height: 40px;
  }

  .book-preview-list {
    display: none;
  }
}

.book-preview-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.book-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  text-align: center;
  width: 70px;
}

.book-preview-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.book-preview-item span {
  font-size: 16px;
  margin-top: 4px;
  color: #333;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-preview-item.active {
  opacity: 1;
  transform: scale(1.1);
}

.book-preview-item.active img {
  border: 2px solid #3498db;
}

.btn-danger {
  background-color: var(--bd-danger);
  max-width: 199px;
}

.btn-primary {
  background-color: var(--bd-primary);
  max-width: 199px;
}

/* Hide preview + navigation in mobile */
@media (max-width: 768px) {
  .book-preview-list,
  .scroll-navigation {
    display: none !important;
  }

  .mobile-swiper {
    display: block !important;
  }
}

/* Hide mobile swiper on desktop */
.mobile-swiper {
  display: none;
}
