/* Main Styles for Digital Library */

/* General Styles */
body {
  font-family: "Nunito", sans-serif;
  color: #333;
  background-color: #f8f9fa;
}

a {
  color: #007bff;
  transition: all 0.3s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: none;
}

.full-body {
  background-image: url("https://digitallibrary.astgd.com/images/new-bg.png");
 background-color: #ffffff;
}

.fullbody-row {
    background-color: #f9f9f9;
}
/* Header Styles */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}
.card-body {
        background-color: #fafafa !important;
    border-radius: 0px 0px 8px 8px;
    border-top: 1px solid #bcbcbc;
}
/* Slideshow Styles */
.slideshow-container {
  margin-bottom: 2rem;
}

.carousel-item img {
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 10px 20px 0px 20px;
  width: fit-content;
  margin: 0 auto;
}
.sidebar-section {
    width: fit-content;
    height: fit-content;
    margin-left:3%;
    text-align: start;
}
.sidebar-section .card {
  margin-bottom: 1rem; /* Add some space between cards in the sidebar */
}
.sidebar-section .dramin-library-title h2 {
font-size: 1.25rem;
    margin-bottom: 0px;
    text-align:left;
    padding-top: 10px;
}
.sidebar-section .dramin-library-title .dramin-library-line {
  margin-bottom: 1rem;
}
.author-card {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between image and text */
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
}
.author-card:hover {
  box-shadow: 0 2px 8px 0 rgba(62, 62, 79, 0.23);
}
.author-card img {
  max-width: 40px !important; /* Adjust author image size for sidebar */
  height: 40px !important;;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0;
}
.author-card div {
  text-align: left;
}
.author-card h5 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
 .author-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
}
.category-card .card-title {
  font-size: 0.95rem;
}
.category-card .card-text {
  font-size: 0.85rem;
}

/* Ensure cards within sidebar take full width of their column */
.sidebar-section .row .col-12 .card,
.sidebar-section .row .col-12 .author-card {
  width: 100%;
}
.main-content-area .own-margin {
  margin-top: 2.5rem; /* Example: Adjust as needed for sections in main content */
  margin-bottom: 2.5rem;
}
.sidebar-section .own-margin {
  margin-top: 0; /* Sidebar sections might not need top margin from own-margin if stacked */
  margin-bottom: 2rem; /* Space between sidebar sections */
}
.sidebar-section section:last-child.own-margin {
  margin-bottom: 0; /* Remove bottom margin from the last section in sidebar */
}

.sidebar-top-banner {
  width: 100%;
  margin: 3rem 0;
  border-radius: 8px;
  background-color: #5D5050;
  padding: 10px;
}

.own-margin {
  margin-top: 25px;
}

/* Footer swiper */
/* Main Swiper */
.swiper-main {
  width: 720px; /* Or your desired width */
  height: 480px; /* Or your desired height */
  margin-bottom: 10px; /* Space between main swiper and thumbs */
}

.swiper-main .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Thumbnail Swiper */
.swiper-thumbs {
  height: 100px; /* Adjust as needed */
  box-sizing: border-box;
  padding: 10px 0;
}

.swiper-thumbs .swiper-slide {
  width: 25%; /* Show 4 thumbs by default, adjust as needed */
  height: 100%;
  opacity: 0.4;
  transition: opacity 0.3s;
  cursor: pointer;
}

.swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.swiper-thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Basic Swiper navigation button styling (if you keep them) */
.swiper-button-prev,
.swiper-button-next {
  color: #007aff; /* Example color */
}

/* Optional: Add a container for better layout if needed */
.swiper-container-wrapper {
  max-width: 720px; /* Same as main swiper width */
  margin: auto;
}

.swiper-title {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Book Card Styles */
.book-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book-views-header {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #333;
  border-bottom: 1px dashed #eee;
}

.book-card .card-img-top {
  padding: 5px 10px;
  height: 250px;
  object-fit: contain;
}

.book-card .card-title {
      font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4em;
    color: #323232;
}

.book-card .author {
  color: #6c757d;
  font-style: italic;
}

.book-card .category {
  color: #28a745;
  font-size: 0.9rem;
}/* featured book styles */

.dramin-library-title-inner {
  font-size: 23px;
  font-weight: 700;
    color: #333;
    margin: 0;
    border-left: 3px solid #3D5EE1;
    padding-left: 5px;
}

.dramin-library-line span {
  display: block;
  width: 60px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 2px;
}

.featured-item-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  padding: 6px;
  font-size: 16px;
  z-index: 10;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.541);
}
.fa-star {
  color: #ffd900;
}

.truncate-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Card Styles */
.category-card {
padding: 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateX(5px);
}

/* Author Card Styles */
.author-card {
  text-align: center;
  padding: 1rem;
}

.author-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #007bff;
}

.author-card h5 {
  margin-bottom: 0.5rem;
}

/* Book Detail Styles */
.book-cover img {
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-actions {
  margin-top: 1rem;
}

.book-description {
  line-height: 1.8;
}

/* Video page styles */

.video-card {
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000; /* Fallback if no thumbnail */
}
.video-thumbnail-wrapper iframe,
.video-thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-thumbnail-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  pointer-events: none; /* So it doesn't interfere with iframe click */
}
.video-card .card-body {
  padding: 15px;
}
.video-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}
.video-card .card-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}
.video-meta {
  font-size: 0.8rem;
  color: #888;
  margin-top: 10px;
}
.video-meta .fas {
  margin-right: 5px;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}


/* Footer Styles */
footer {
  background-color: #343a40;
  color: #fff;
  padding: 3rem 0;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: #007bff;
}

.social-icons a {
  font-size: 1.5rem;
  margin-right: 1rem;
}

/* Breadcrumb Styles */
.breadcrumb {
  margin-bottom: 1.5rem;
margin-bottom: 1.5rem;
    background-image: linear-gradient(360deg, rgb(40 42 40 / 88%) 50%, rgb(35 34 32 / 80%) 28%, rgba(0, 0, 0, 0.76) 70%), url(https://digitallibrary.astgd.com/images/banner-bg.png) !important;
      padding: 65px 0px;
    max-width: 100%;
    height: auto;
      display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.breadcrumb-item a , .breadcrumb-item.active , .breadcrumb-item+.breadcrumb-item::before {
font-size: 32px;
    color: #ffffff !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-item img {
    height: 250px;
  }

  .book-card .card-img-top {
    height: 200px;
  }

  .author-card img {
    width: 100px;
    height: 100px;
  }
}

/* Login Page Styles */
.login-form {
  max-width: 400px;
  margin: 0 auto;
}

/* Search Results Styles */
.search-highlight {
  background-color: #fff3cd;
  padding: 2px;
  border-radius: 3px;
}

/* Pagination Styles */
.pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
}

.pagination .page-link {
  color: #007bff;
}

.pagination .page-link:hover {
  color: #0056b3;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* From Index Page */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title h2 {
  font-size: 26px;
  font-weight: 600 !important;
  color: #111111 !important;
  margin: 0;
  font-family: "Shurjo", Arial, sans-serif !important;
}
.section-title .divider {
  flex-grow: 1;
  height: 1px;
  background-color: #111111;
  margin-left: 1rem;
}
.library-owner-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 10px 20px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.animated-portrait {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.owner-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.knowledge-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
}

.particle {
  position: absolute;
  background: rgba(37, 211, 102, 0.6);
  border-radius: 50%;
  pointer-events: none;
}

.particle-1 {
  width: 8px;
  height: 8px;
  top: 20%;
  left: -10px;
  animation: float-up 6s ease-in-out infinite;
}

.particle-2 {
  width: 8px;
  height: 8px;
  top: 60%;
  right: -10px;
  animation: float-down 7s ease-in-out infinite 1s;
}

.particle-3 {
  width: 10px;
  height: 10px;
  bottom: 10%;
  left: 30%;
  animation: float-around 8s ease-in-out infinite 2s;
}

@keyframes float-up {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  50% {
    transform: translate(20px, -40px) scale(1.1);
  }
  100% {
    transform: translate(40px, -80px) scale(0.8);
    opacity: 0;
  }
}

@keyframes float-down {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  30% {
    opacity: 0.7;
  }
  70% {
    transform: translate(-15px, 30px) scale(0.9);
  }
  100% {
    transform: translate(-30px, 60px) scale(0.6);
    opacity: 0;
  }
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  50% {
    transform: translate(15px, -15px) scale(1.2);
  }
  80% {
    transform: translate(-10px, 10px) scale(0.8);
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
}

.owner-content {
  flex: 1;
  min-width: 280px;
  color: #333;
}

.owner-content p {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  font-family: "Shurjo", Arial, sans-serif !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .library-owner-section {
    flex-direction: column;
    text-align: center;
  }

  .owner-content p {
    text-align: center;
    font-family: "Shurjo", Arial, sans-serif !important;
    line-height: 1.7;
    font-size: 1rem;
  }
  .owner-content h2 {
    text-align: center;
  }
  .particle-1,
  .particle-2,
  .particle-3 {
    animation-duration: 8s;
  }
}
.own-padding {
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}
.new-sideber-style {
background-color: #eaf2f8;
    padding: 0px 10px 20px;
    height: fit-content;
}

/* Author, Book, Video Length Selectors */
.author-length-wrapper,
.book-length-wrapper,
.video-length-wrapper {
  display: inline-block;
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  color: #333;
  margin-bottom: 15px;
}

.author-length-label,
.book-length-label,
.video-length-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.author-length-select,
.book-length-select,
.video-length-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.author-length-select:hover,
.author-length-select:focus,
.book-length-select:hover,
.book-length-select:focus,
.video-length-select:hover,
.video-length-select:focus {
  border-color: #28a745;
  outline: none;
  box-shadow: 0 0 4px rgba(40, 167, 69, 0.3);
}

/* Search Form Styles for Book, Author, Video */
#book-search label, #author-search label, #video-search label {
  display: flex;
  align-items: center;
}