.nested-category-widget {
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #ececec;
}

.categories-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-icon-image {
  width: 90px;
  height: 90px;
  border: 2px dotted #aaa;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}

.category-icon-image:hover {
  border-color: #666;
}

.category-icon.active .category-icon-image {
  border-color: #4caf50 !important;
}


.category-links-section,
.tc-category-links-section {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.left-links {
  width: 30%;
  min-width: 200px;
}

.left-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.left-links li {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.left-links li:hover {
  background: #eef;
}

.link-image {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s;
}

.link-image:hover {
  transform: scale(1.1);
}

.right-details {
  flex: 1;
  border-left: 1px solid #ddd;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.active-link-title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.active-link-description {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #666;
}

.tc-category-title {
  font-weight: 500;
  font-size: 1.5rem;
}

.tc-categories-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media only screen and (max-width: 992px) {
  .tc-categories-icons {
    flex-direction: row;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 1rem;
  }
}


.book-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-height: 190px;
  min-width: 130px;
  padding: 15px;
  transition: all 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
  cursor: pointer;

}

.book-image-wrapper {
  min-height: 190px;
  min-width: 130px;
}

.book-item {
  min-width: 130px;
  min-height: 190px;
}

.book-image {
  width: 100%;
  border-radius: 10px;
}

.book-info {
  margin-top: 10px;
}

.book-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 8px;
}

.download-btn {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 5px 10px;
  background-color: #014751;
  color: white;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
}

.book-card:hover .download-btn {
  transition: opacity 0.3s ease;
  opacity: 1;
}

.category-links-carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.skeleton-loader {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.skeleton-card {
  width: 150px;
  height: 220px;
  background: #f0f0f0;
  border-radius: 10px;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: 200px 0;
  }
}

.swiper-slide {
  height: auto;
  box-shadow: 5px 5px 12px 1px rgba(0, 0, 0, 0.2);
  border: 0;
}

.tc-categories-icons .tc-category-icon {
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 0.5rem 0.3rem;
  transition: all 0.3s ease;
}

.tc-categories-icons .tc-category-icon:not(:first-child) {
  margin-top: 0.7rem;
}

.tc-categories-icons .tc-category-icon img {
  width: 65px;
  height: 65px;
  margin: 0 1rem;
}

.tc-categories-icons .tc-category-icon:hover {
  cursor: pointer;
  padding: 0.5rem 0.1rem;
  border: 1px solid #014751;
  background: #014751;
  color: white;
}

.category-title:hover {
  cursor: pointer;
}